anthropic 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (860) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +3 -3
  4. data/lib/anthropic/error_classes.rb +100 -0
  5. data/lib/anthropic/errors.rb +73 -30
  6. data/lib/anthropic/foundry.rb +5 -0
  7. data/lib/anthropic/helpers/foundry/client.rb +207 -0
  8. data/lib/anthropic/internal/type/enum.rb +2 -2
  9. data/lib/anthropic/internal/type/file_input.rb +1 -1
  10. data/lib/anthropic/internal/util.rb +2 -2
  11. data/lib/anthropic/models/available_tools_limit_exceeded_error.rb +20 -0
  12. data/lib/anthropic/models/available_tools_limit_exceeded_error_details.rb +18 -0
  13. data/lib/anthropic/models/beta/beta_advisor_redacted_result_block.rb +1 -1
  14. data/lib/anthropic/models/beta/beta_advisor_result_block.rb +1 -1
  15. data/lib/anthropic/models/beta/beta_advisor_tool_20260301.rb +3 -3
  16. data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +22 -0
  17. data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +22 -0
  18. data/lib/anthropic/models/beta/beta_cloud_config_params.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_compaction_block.rb +1 -1
  20. data/lib/anthropic/models/beta/beta_content_block_param.rb +8 -2
  21. data/lib/anthropic/models/beta/beta_dream.rb +3 -3
  22. data/lib/anthropic/models/beta/beta_environment.rb +2 -2
  23. data/lib/anthropic/models/beta/beta_environment_archived_error.rb +21 -0
  24. data/lib/anthropic/models/beta/beta_environment_archived_error_details.rb +21 -0
  25. data/lib/anthropic/models/beta/beta_environment_create_disabled_error.rb +22 -0
  26. data/lib/anthropic/models/beta/beta_environment_create_disabled_error_details.rb +22 -0
  27. data/lib/anthropic/models/beta/beta_environment_not_found_error.rb +21 -0
  28. data/lib/anthropic/models/beta/beta_environment_not_found_error_details.rb +21 -0
  29. data/lib/anthropic/models/beta/beta_environment_update_disabled_error.rb +22 -0
  30. data/lib/anthropic/models/beta/beta_environment_update_disabled_error_details.rb +22 -0
  31. data/lib/anthropic/models/beta/beta_fallback_block_param.rb +15 -7
  32. data/lib/anthropic/models/beta/beta_fallback_param.rb +2 -2
  33. data/lib/anthropic/models/beta/beta_fallback_refusal_trigger.rb +1 -1
  34. data/lib/anthropic/models/beta/beta_image_transformations_param.rb +1 -1
  35. data/lib/anthropic/models/beta/beta_invalid_config_type_change_error.rb +22 -0
  36. data/lib/anthropic/models/beta/beta_invalid_config_type_change_error_details.rb +22 -0
  37. data/lib/anthropic/models/beta/beta_invalid_metadata_error.rb +22 -0
  38. data/lib/anthropic/models/beta/beta_invalid_metadata_error_details.rb +22 -0
  39. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +1 -1
  40. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +1 -1
  41. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +1 -1
  42. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rb +1 -1
  43. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +2 -2
  44. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +3 -4
  45. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +3 -4
  46. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +1 -1
  47. data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +8 -4
  48. data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +3 -3
  49. data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +1 -1
  50. data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +1 -1
  51. data/lib/anthropic/models/beta/beta_managed_agents_session.rb +1 -1
  52. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +1 -2
  53. data/lib/anthropic/models/beta/beta_model_capabilities.rb +1 -1
  54. data/lib/anthropic/models/beta/beta_output_tokens_details.rb +4 -4
  55. data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +1 -1
  56. data/lib/anthropic/models/beta/beta_response_tool_addition_block.rb +1 -1
  57. data/lib/anthropic/models/beta/beta_thinking_block_binding.rb +1 -1
  58. data/lib/anthropic/models/beta/beta_thinking_delta.rb +1 -1
  59. data/lib/anthropic/models/beta/beta_user_profile.rb +1 -1
  60. data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +2 -2
  61. data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +2 -2
  62. data/lib/anthropic/models/beta/deployment_create_params.rb +1 -2
  63. data/lib/anthropic/models/beta/deployment_run_list_params.rb +1 -1
  64. data/lib/anthropic/models/beta/deployment_update_params.rb +1 -2
  65. data/lib/anthropic/models/beta/dream_create_params.rb +2 -2
  66. data/lib/anthropic/models/beta/environment_create_params.rb +1 -1
  67. data/lib/anthropic/models/beta/environment_update_params.rb +1 -1
  68. data/lib/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error.rb +24 -0
  69. data/lib/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error_details.rb +30 -0
  70. data/lib/anthropic/models/beta/environments/beta_self_hosted_work.rb +2 -2
  71. data/lib/anthropic/models/beta/environments/beta_session_work_data.rb +2 -2
  72. data/lib/anthropic/models/beta/environments/beta_work_lease_state.rb +62 -0
  73. data/lib/anthropic/models/beta/file_list_params.rb +1 -1
  74. data/lib/anthropic/models/beta/memory_store_archive_params.rb +1 -1
  75. data/lib/anthropic/models/beta/memory_store_create_params.rb +1 -1
  76. data/lib/anthropic/models/beta/memory_store_delete_params.rb +1 -1
  77. data/lib/anthropic/models/beta/memory_store_list_params.rb +1 -1
  78. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +1 -1
  79. data/lib/anthropic/models/beta/memory_store_update_params.rb +1 -1
  80. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +2 -3
  81. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -3
  82. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +1 -1
  83. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +1 -1
  84. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +1 -1
  85. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +1 -1
  86. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +1 -1
  87. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +1 -1
  88. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +1 -1
  89. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +1 -1
  90. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +1 -1
  91. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +1 -1
  92. data/lib/anthropic/models/beta/messages/batch_create_params.rb +1 -1
  93. data/lib/anthropic/models/beta/model_list_params.rb +1 -1
  94. data/lib/anthropic/models/beta/organization/analytics/artifact_list_params.rb +3 -3
  95. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +14 -16
  96. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb +0 -1
  97. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +14 -16
  98. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_metrics.rb +1 -1
  99. data/lib/anthropic/models/beta/organization/analytics/connector_list_params.rb +1 -2
  100. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +18 -22
  101. data/lib/anthropic/models/beta/organization/analytics/cost_report_list_params.rb +5 -7
  102. data/lib/anthropic/models/beta/organization/analytics/plugin_list_params.rb +2 -2
  103. data/lib/anthropic/models/beta/organization/analytics/skill_list_params.rb +2 -2
  104. data/lib/anthropic/models/beta/organization/analytics/summary_list_params.rb +1 -1
  105. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +18 -21
  106. data/lib/anthropic/models/beta/organization/analytics/usage_report_list_params.rb +5 -7
  107. data/lib/anthropic/models/beta/organization/analytics/user_cost_report_list_params.rb +5 -7
  108. data/lib/anthropic/models/beta/organization/analytics/user_usage_report_list_params.rb +5 -7
  109. data/lib/anthropic/models/beta/organization/beta_analytics_actor.rb +1 -1
  110. data/lib/anthropic/models/beta/organization/beta_analytics_artifact_activity.rb +1 -1
  111. data/lib/anthropic/models/beta/organization/beta_analytics_connector_activity.rb +2 -3
  112. data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +10 -13
  113. data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +10 -13
  114. data/lib/anthropic/models/beta/organization/beta_analytics_plugin_activity.rb +3 -3
  115. data/lib/anthropic/models/beta/organization/beta_analytics_product_filter.rb +1 -1
  116. data/lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb +1 -1
  117. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +7 -8
  118. data/lib/anthropic/models/beta/organization/beta_analytics_skill_activity.rb +4 -5
  119. data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +10 -12
  120. data/lib/anthropic/models/beta/organization/beta_analytics_usage_cost_product_filter.rb +1 -1
  121. data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +11 -13
  122. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +2 -2
  123. data/lib/anthropic/models/beta/organization/beta_analytics_user_actor.rb +2 -3
  124. data/lib/anthropic/models/beta/organization/beta_api_key.rb +1 -1
  125. data/lib/anthropic/models/beta/organization/beta_api_key_scope_missing_error.rb +24 -0
  126. data/lib/anthropic/models/beta/organization/beta_api_key_scope_missing_error_details.rb +22 -0
  127. data/lib/anthropic/models/beta/organization/beta_azure_external_key_config.rb +1 -1
  128. data/lib/anthropic/models/beta/organization/beta_azure_external_key_config_param.rb +1 -1
  129. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rb +1 -1
  130. data/lib/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error.rb +23 -0
  131. data/lib/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error_details.rb +21 -0
  132. data/lib/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error.rb +24 -0
  133. data/lib/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error_details.rb +22 -0
  134. data/lib/anthropic/models/beta/organization/beta_external_key.rb +3 -4
  135. data/lib/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error.rb +23 -0
  136. data/lib/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error_details.rb +21 -0
  137. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -2
  138. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rb +1 -1
  139. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rb +1 -1
  140. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rb +1 -1
  141. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rb +1 -1
  142. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rb +1 -1
  143. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb +1 -1
  144. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rb +1 -1
  145. data/lib/anthropic/models/beta/organization/beta_plugin.rb +24 -18
  146. data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +1 -1
  147. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb +1 -1
  148. data/lib/anthropic/models/beta/organization/beta_plugin_name_taken_error.rb +24 -0
  149. data/lib/anthropic/models/beta/organization/beta_plugin_name_taken_error_details.rb +28 -0
  150. data/lib/anthropic/models/beta/organization/beta_registration_pending_error.rb +24 -0
  151. data/lib/anthropic/models/beta/organization/beta_registration_pending_error_details.rb +34 -0
  152. data/lib/anthropic/models/beta/organization/beta_scan_failed_error.rb +24 -0
  153. data/lib/anthropic/models/beta/organization/beta_scan_failed_error_details.rb +28 -0
  154. data/lib/anthropic/models/beta/organization/beta_scan_pending_error.rb +24 -0
  155. data/lib/anthropic/models/beta/organization/beta_scan_pending_error_details.rb +28 -0
  156. data/lib/anthropic/models/beta/organization/beta_service_account.rb +1 -1
  157. data/lib/anthropic/models/beta/organization/beta_skill_name_taken_error.rb +24 -0
  158. data/lib/anthropic/models/beta/organization/beta_skill_name_taken_error_details.rb +28 -0
  159. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error.rb +25 -0
  160. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error_details.rb +31 -0
  161. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error.rb +24 -0
  162. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error_details.rb +31 -0
  163. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error.rb +24 -0
  164. data/lib/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error_details.rb +31 -0
  165. data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +2 -2
  166. data/lib/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error.rb +24 -0
  167. data/lib/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error_details.rb +22 -0
  168. data/lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb +1 -1
  169. data/lib/anthropic/models/beta/organization/claude_tag/bundle_list_params.rb +1 -1
  170. data/lib/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rb +1 -1
  171. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rb +2 -2
  172. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rb +2 -2
  173. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rb +1 -1
  174. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rb +1 -1
  175. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rb +1 -1
  176. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rb +1 -1
  177. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rb +1 -1
  178. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rb +1 -1
  179. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rb +1 -1
  180. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rb +1 -1
  181. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rb +1 -1
  182. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rb +1 -1
  183. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rb +1 -1
  184. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rb +1 -1
  185. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rb +1 -1
  186. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rb +2 -2
  187. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rb +1 -1
  188. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rb +1 -1
  189. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +1 -1
  190. data/lib/anthropic/models/beta/organization/external_key_update_params.rb +1 -1
  191. data/lib/anthropic/models/beta/organization/federation/beta_federation_rule.rb +1 -1
  192. data/lib/anthropic/models/beta/organization/federation/rule_create_params.rb +2 -2
  193. data/lib/anthropic/models/beta/organization/invite_list_params.rb +1 -1
  194. data/lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb +7 -2
  195. data/lib/anthropic/models/beta/organization/plugins/installation_setting_set_params.rb +1 -1
  196. data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +1 -1
  197. data/lib/anthropic/models/beta/organization/rbac_groups/beta_deleted_rbac_group_member.rb +1 -1
  198. data/lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb +1 -1
  199. data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +1 -2
  200. data/lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb +2 -3
  201. data/lib/anthropic/models/beta/organization/telemetry_destination_list_params.rb +1 -1
  202. data/lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb +1 -1
  203. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +1 -1
  204. data/lib/anthropic/models/beta/organization/workspace_list_params.rb +11 -1
  205. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +2 -2
  206. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb +3 -3
  207. data/lib/anthropic/models/beta/session_create_params.rb +1 -2
  208. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +1 -2
  209. data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +3 -4
  210. data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +1 -1
  211. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rb +1 -1
  212. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +1 -2
  213. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +1 -1
  214. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +3 -3
  215. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rb +2 -2
  216. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rb +2 -2
  217. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rb +2 -2
  218. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rb +1 -1
  219. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +1 -1
  220. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +1 -1
  221. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +1 -1
  222. data/lib/anthropic/models/beta/sessions/event_list_params.rb +1 -1
  223. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +0 -1
  224. data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +1 -2
  225. data/lib/anthropic/models/beta/sessions/resource_update_response.rb +1 -2
  226. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +0 -1
  227. data/lib/anthropic/models/beta/user_profile_list_params.rb +1 -1
  228. data/lib/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rb +1 -1
  229. data/lib/anthropic/models/beta_unsupported_charset_error.rb +20 -0
  230. data/lib/anthropic/models/beta_unsupported_charset_error_details.rb +18 -0
  231. data/lib/anthropic/models/claude_code_key_creator_not_member_error.rb +20 -0
  232. data/lib/anthropic/models/claude_code_key_creator_not_member_error_details.rb +18 -0
  233. data/lib/anthropic/models/claude_code_version_too_old_error.rb +20 -0
  234. data/lib/anthropic/models/claude_code_version_too_old_error_details.rb +18 -0
  235. data/lib/anthropic/models/cmek_context_unavailable_error.rb +20 -0
  236. data/lib/anthropic/models/cmek_context_unavailable_error_details.rb +18 -0
  237. data/lib/anthropic/models/cmek_key_disabled_error.rb +20 -0
  238. data/lib/anthropic/models/cmek_key_disabled_error_details.rb +18 -0
  239. data/lib/anthropic/models/cmek_key_network_blocked_error.rb +20 -0
  240. data/lib/anthropic/models/cmek_key_network_blocked_error_details.rb +18 -0
  241. data/lib/anthropic/models/cmek_key_unreachable_error.rb +21 -0
  242. data/lib/anthropic/models/cmek_key_unreachable_error_details.rb +19 -0
  243. data/lib/anthropic/models/compaction_block_ambiguous_error.rb +20 -0
  244. data/lib/anthropic/models/compaction_block_ambiguous_error_details.rb +18 -0
  245. data/lib/anthropic/models/compaction_block_misplaced_error.rb +20 -0
  246. data/lib/anthropic/models/compaction_block_misplaced_error_details.rb +18 -0
  247. data/lib/anthropic/models/compaction_content_mismatch_error.rb +20 -0
  248. data/lib/anthropic/models/compaction_content_mismatch_error_details.rb +18 -0
  249. data/lib/anthropic/models/compaction_incomplete_turn_error.rb +19 -0
  250. data/lib/anthropic/models/compaction_incomplete_turn_error_details.rb +17 -0
  251. data/lib/anthropic/models/compaction_nothing_to_summarize_error.rb +19 -0
  252. data/lib/anthropic/models/compaction_nothing_to_summarize_error_details.rb +17 -0
  253. data/lib/anthropic/models/compaction_signature_invalid_error.rb +19 -0
  254. data/lib/anthropic/models/compaction_signature_invalid_error_details.rb +17 -0
  255. data/lib/anthropic/models/compaction_too_many_tool_references_error.rb +20 -0
  256. data/lib/anthropic/models/compaction_too_many_tool_references_error_details.rb +18 -0
  257. data/lib/anthropic/models/compaction_tool_changes_mismatch_error.rb +20 -0
  258. data/lib/anthropic/models/compaction_tool_changes_mismatch_error_details.rb +18 -0
  259. data/lib/anthropic/models/compaction_unavailable_error.rb +20 -0
  260. data/lib/anthropic/models/compaction_unavailable_error_details.rb +18 -0
  261. data/lib/anthropic/models/concurrent_membership_change_error.rb +20 -0
  262. data/lib/anthropic/models/concurrent_membership_change_error_details.rb +18 -0
  263. data/lib/anthropic/models/enforced_spend_limit_reached_error.rb +19 -0
  264. data/lib/anthropic/models/enforced_spend_limit_reached_error_details.rb +17 -0
  265. data/lib/anthropic/models/error_details.rb +505 -0
  266. data/lib/anthropic/models/error_type.rb +5 -2
  267. data/lib/anthropic/models/file_expired_error.rb +19 -0
  268. data/lib/anthropic/models/file_expired_error_details.rb +17 -0
  269. data/lib/anthropic/models/file_list_params.rb +1 -1
  270. data/lib/anthropic/models/file_not_downloadable_error.rb +20 -0
  271. data/lib/anthropic/models/file_not_downloadable_error_details.rb +18 -0
  272. data/lib/anthropic/models/image_transformations_param.rb +1 -1
  273. data/lib/anthropic/models/messages/batch_create_params.rb +1 -1
  274. data/lib/anthropic/models/model_capabilities.rb +1 -1
  275. data/lib/anthropic/models/model_list_params.rb +1 -1
  276. data/lib/anthropic/models/org_member_limit_exceeded_error.rb +20 -0
  277. data/lib/anthropic/models/org_member_limit_exceeded_error_details.rb +18 -0
  278. data/lib/anthropic/models/organization/already_member_error.rb +22 -0
  279. data/lib/anthropic/models/organization/already_member_error_details.rb +20 -0
  280. data/lib/anthropic/models/organization/analytics/artifact_list_params.rb +3 -3
  281. data/lib/anthropic/models/organization/analytics/connector_list_params.rb +1 -2
  282. data/lib/anthropic/models/organization/analytics/plugin_list_params.rb +2 -2
  283. data/lib/anthropic/models/organization/analytics/skill_list_params.rb +2 -2
  284. data/lib/anthropic/models/organization/analytics/summary_list_params.rb +1 -1
  285. data/lib/anthropic/models/organization/analytics_artifact_activity.rb +1 -1
  286. data/lib/anthropic/models/organization/analytics_connector_activity.rb +2 -3
  287. data/lib/anthropic/models/organization/analytics_plugin_activity.rb +3 -3
  288. data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +7 -8
  289. data/lib/anthropic/models/organization/analytics_skill_activity.rb +4 -5
  290. data/lib/anthropic/models/organization/analytics_user_activity.rb +2 -2
  291. data/lib/anthropic/models/organization/api_key.rb +1 -1
  292. data/lib/anthropic/models/organization/azure_external_key_config.rb +1 -1
  293. data/lib/anthropic/models/organization/azure_external_key_config_param.rb +1 -1
  294. data/lib/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error.rb +22 -0
  295. data/lib/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error_details.rb +20 -0
  296. data/lib/anthropic/models/organization/cannot_remove_last_member_error.rb +22 -0
  297. data/lib/anthropic/models/organization/cannot_remove_last_member_error_details.rb +20 -0
  298. data/lib/anthropic/models/organization/email_domain_not_allowed_error.rb +22 -0
  299. data/lib/anthropic/models/organization/email_domain_not_allowed_error_details.rb +20 -0
  300. data/lib/anthropic/models/organization/external_key.rb +3 -4
  301. data/lib/anthropic/models/organization/external_key_changed_error.rb +22 -0
  302. data/lib/anthropic/models/organization/external_key_changed_error_details.rb +20 -0
  303. data/lib/anthropic/models/organization/external_key_create_params.rb +1 -1
  304. data/lib/anthropic/models/organization/external_key_in_workspace_policy_error.rb +22 -0
  305. data/lib/anthropic/models/organization/external_key_in_workspace_policy_error_details.rb +20 -0
  306. data/lib/anthropic/models/organization/external_key_update_params.rb +1 -1
  307. data/lib/anthropic/models/organization/federation/rule_create_params.rb +2 -2
  308. data/lib/anthropic/models/organization/invite_already_exists_error.rb +22 -0
  309. data/lib/anthropic/models/organization/invite_already_exists_error_details.rb +20 -0
  310. data/lib/anthropic/models/organization/invite_list_params.rb +1 -1
  311. data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +23 -0
  312. data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +21 -0
  313. data/lib/anthropic/models/organization/org_api_key_limit_exceeded_error.rb +21 -0
  314. data/lib/anthropic/models/organization/org_api_key_limit_exceeded_error_details.rb +19 -0
  315. data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -2
  316. data/lib/anthropic/models/organization/organization_rate_limit_batch_group.rb +1 -1
  317. data/lib/anthropic/models/organization/organization_rate_limit_files_group.rb +1 -1
  318. data/lib/anthropic/models/organization/organization_rate_limit_model_group.rb +1 -1
  319. data/lib/anthropic/models/organization/organization_rate_limit_skills_group.rb +1 -1
  320. data/lib/anthropic/models/organization/organization_rate_limit_token_count_group.rb +1 -1
  321. data/lib/anthropic/models/organization/organization_rate_limit_value.rb +1 -1
  322. data/lib/anthropic/models/organization/organization_rate_limit_web_search_group.rb +1 -1
  323. data/lib/anthropic/models/organization/rbac_group_grants_owner_access_error.rb +24 -0
  324. data/lib/anthropic/models/organization/rbac_group_grants_owner_access_error_details.rb +22 -0
  325. data/lib/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error.rb +23 -0
  326. data/lib/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error_details.rb +21 -0
  327. data/lib/anthropic/models/organization/rbac_groups/deleted_rbac_group_member.rb +1 -1
  328. data/lib/anthropic/models/organization/rbac_roles/rbac_role_permission.rb +1 -1
  329. data/lib/anthropic/models/organization/service_account.rb +1 -1
  330. data/lib/anthropic/models/organization/spend_limit.rb +2 -2
  331. data/lib/anthropic/models/organization/workspace_api_key_limit_exceeded_error.rb +21 -0
  332. data/lib/anthropic/models/organization/workspace_api_key_limit_exceeded_error_details.rb +19 -0
  333. data/lib/anthropic/models/organization/workspace_create_params.rb +1 -1
  334. data/lib/anthropic/models/organization/workspace_list_params.rb +11 -1
  335. data/lib/anthropic/models/organization/workspace_member_limit_exceeded_error.rb +21 -0
  336. data/lib/anthropic/models/organization/workspace_member_limit_exceeded_error_details.rb +19 -0
  337. data/lib/anthropic/models/organization/workspace_policy_field.rb +16 -0
  338. data/lib/anthropic/models/organization/workspace_policy_violation_error.rb +23 -0
  339. data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +29 -0
  340. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +2 -2
  341. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb +3 -3
  342. data/lib/anthropic/models/organization_on_hold_error.rb +21 -0
  343. data/lib/anthropic/models/organization_on_hold_error_details.rb +25 -0
  344. data/lib/anthropic/models/organization_type_not_supported_error.rb +20 -0
  345. data/lib/anthropic/models/organization_type_not_supported_error_details.rb +18 -0
  346. data/lib/anthropic/models/output_tokens_details.rb +4 -4
  347. data/lib/anthropic/models/raw_content_block_delta.rb +1 -1
  348. data/lib/anthropic/models/request_body_encoding_invalid_error.rb +19 -0
  349. data/lib/anthropic/models/request_body_encoding_invalid_error_details.rb +17 -0
  350. data/lib/anthropic/models/request_body_encoding_unsupported_error.rb +19 -0
  351. data/lib/anthropic/models/request_body_encoding_unsupported_error_details.rb +17 -0
  352. data/lib/anthropic/models/request_body_too_large_after_decoding_error.rb +19 -0
  353. data/lib/anthropic/models/request_body_too_large_after_decoding_error_details.rb +17 -0
  354. data/lib/anthropic/models/skill_read_blocked_undecryptable_error.rb +20 -0
  355. data/lib/anthropic/models/skill_read_blocked_undecryptable_error_details.rb +18 -0
  356. data/lib/anthropic/models/storage_quota_exceeded_error.rb +20 -0
  357. data/lib/anthropic/models/storage_quota_exceeded_error_details.rb +18 -0
  358. data/lib/anthropic/models/thinking_delta.rb +1 -1
  359. data/lib/anthropic/models/thread_already_continued_error.rb +21 -0
  360. data/lib/anthropic/models/thread_already_continued_error_details.rb +19 -0
  361. data/lib/anthropic/models/thread_continue_in_flight_error.rb +21 -0
  362. data/lib/anthropic/models/thread_continue_in_flight_error_details.rb +19 -0
  363. data/lib/anthropic/models/thread_fingerprint_mismatch_error.rb +22 -0
  364. data/lib/anthropic/models/thread_fingerprint_mismatch_error_details.rb +20 -0
  365. data/lib/anthropic/models/thread_not_found_error.rb +20 -0
  366. data/lib/anthropic/models/thread_not_found_error_details.rb +18 -0
  367. data/lib/anthropic/models/thread_unsupported_feature_name.rb +20 -0
  368. data/lib/anthropic/models/thread_unsupported_request_error.rb +21 -0
  369. data/lib/anthropic/models/thread_unsupported_request_error_details.rb +34 -0
  370. data/lib/anthropic/models/tool_name_conflict_error.rb +20 -0
  371. data/lib/anthropic/models/tool_name_conflict_error_details.rb +18 -0
  372. data/lib/anthropic/models/tool_reference_unresolved_error.rb +20 -0
  373. data/lib/anthropic/models/tool_reference_unresolved_error_details.rb +18 -0
  374. data/lib/anthropic/models/user_profile.rb +1 -1
  375. data/lib/anthropic/models/user_profile_enforcement_action.rb +1 -1
  376. data/lib/anthropic/models/user_profile_enforcement_action_ban.rb +1 -1
  377. data/lib/anthropic/models/user_profile_enforcement_action_restriction.rb +1 -1
  378. data/lib/anthropic/models/user_profile_external_user_details.rb +2 -2
  379. data/lib/anthropic/models/user_profile_external_user_details_params.rb +2 -2
  380. data/lib/anthropic/models/user_profile_list_params.rb +1 -1
  381. data/lib/anthropic/models/user_profile_not_found_error.rb +21 -0
  382. data/lib/anthropic/models/user_profile_not_found_error_details.rb +19 -0
  383. data/lib/anthropic/models.rb +155 -0
  384. data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
  385. data/lib/anthropic/resources/beta/agents.rb +4 -4
  386. data/lib/anthropic/resources/beta/deployment_runs.rb +1 -1
  387. data/lib/anthropic/resources/beta/deployments.rb +3 -3
  388. data/lib/anthropic/resources/beta/dreams.rb +1 -1
  389. data/lib/anthropic/resources/beta/environments/work.rb +29 -0
  390. data/lib/anthropic/resources/beta/environments.rb +44 -1
  391. data/lib/anthropic/resources/beta/files.rb +56 -1
  392. data/lib/anthropic/resources/beta/memory_stores/memories.rb +6 -6
  393. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +5 -6
  394. data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
  395. data/lib/anthropic/resources/beta/messages/batches.rb +41 -0
  396. data/lib/anthropic/resources/beta/messages.rb +142 -0
  397. data/lib/anthropic/resources/beta/models.rb +13 -1
  398. data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +1 -1
  399. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +8 -8
  400. data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +3 -3
  401. data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +1 -1
  402. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +7 -7
  403. data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +3 -3
  404. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +9 -7
  405. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +9 -7
  406. data/lib/anthropic/resources/beta/organization/api_keys.rb +3 -0
  407. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +32 -4
  408. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +16 -2
  409. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +56 -5
  410. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +30 -3
  411. data/lib/anthropic/resources/beta/organization/external_keys.rb +10 -0
  412. data/lib/anthropic/resources/beta/organization/federation/rules.rb +2 -2
  413. data/lib/anthropic/resources/beta/organization/invites.rb +19 -1
  414. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +8 -5
  415. data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +3 -3
  416. data/lib/anthropic/resources/beta/organization/plugins/shares.rb +1 -1
  417. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +20 -4
  418. data/lib/anthropic/resources/beta/organization/plugins.rb +31 -4
  419. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +16 -0
  420. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +8 -0
  421. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +3 -0
  422. data/lib/anthropic/resources/beta/organization/spend_limits.rb +18 -2
  423. data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +3 -3
  424. data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +4 -4
  425. data/lib/anthropic/resources/beta/organization/users.rb +5 -0
  426. data/lib/anthropic/resources/beta/organization/webhooks.rb +2 -2
  427. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +4 -0
  428. data/lib/anthropic/resources/beta/organization/workspaces.rb +28 -2
  429. data/lib/anthropic/resources/beta/sessions/events.rb +4 -4
  430. data/lib/anthropic/resources/beta/sessions/resources.rb +7 -7
  431. data/lib/anthropic/resources/beta/sessions/threads/events.rb +3 -3
  432. data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
  433. data/lib/anthropic/resources/beta/sessions.rb +4 -4
  434. data/lib/anthropic/resources/beta/skills/versions.rb +30 -0
  435. data/lib/anthropic/resources/beta/skills.rb +30 -0
  436. data/lib/anthropic/resources/beta/tunnels/certificates.rb +4 -4
  437. data/lib/anthropic/resources/beta/tunnels.rb +3 -3
  438. data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
  439. data/lib/anthropic/resources/beta/vaults.rb +4 -4
  440. data/lib/anthropic/resources/files.rb +56 -1
  441. data/lib/anthropic/resources/messages/batches.rb +41 -0
  442. data/lib/anthropic/resources/messages.rb +142 -0
  443. data/lib/anthropic/resources/models.rb +13 -1
  444. data/lib/anthropic/resources/organization/analytics/artifacts.rb +1 -1
  445. data/lib/anthropic/resources/organization/analytics/summaries.rb +1 -1
  446. data/lib/anthropic/resources/organization/api_keys.rb +3 -0
  447. data/lib/anthropic/resources/organization/external_keys.rb +10 -0
  448. data/lib/anthropic/resources/organization/federation/rules.rb +2 -2
  449. data/lib/anthropic/resources/organization/invites.rb +19 -1
  450. data/lib/anthropic/resources/organization/rbac_groups/members.rb +16 -0
  451. data/lib/anthropic/resources/organization/rbac_groups.rb +8 -0
  452. data/lib/anthropic/resources/organization/spend_limits/effective.rb +3 -0
  453. data/lib/anthropic/resources/organization/users.rb +5 -0
  454. data/lib/anthropic/resources/organization/workspaces/members.rb +4 -0
  455. data/lib/anthropic/resources/organization/workspaces.rb +29 -3
  456. data/lib/anthropic/resources/skills/versions.rb +30 -0
  457. data/lib/anthropic/resources/skills.rb +30 -0
  458. data/lib/anthropic/version.rb +1 -1
  459. data/lib/anthropic.rb +151 -0
  460. data/rbi/anthropic/error_classes.rbi +15 -0
  461. data/rbi/anthropic/errors.rbi +56 -5
  462. data/rbi/anthropic/foundry.rbi +5 -0
  463. data/rbi/anthropic/helpers/foundry/client.rbi +116 -0
  464. data/rbi/anthropic/internal/type/file_input.rbi +1 -1
  465. data/rbi/anthropic/models/available_tools_limit_exceeded_error.rbi +17 -0
  466. data/rbi/anthropic/models/available_tools_limit_exceeded_error_details.rbi +28 -0
  467. data/rbi/anthropic/models/beta/beta_advisor_tool_20260301.rbi +6 -6
  468. data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +19 -0
  469. data/rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi +32 -0
  470. data/rbi/anthropic/models/beta/beta_dream.rbi +2 -2
  471. data/rbi/anthropic/models/beta/beta_environment.rbi +2 -2
  472. data/rbi/anthropic/models/beta/beta_environment_archived_error.rbi +18 -0
  473. data/rbi/anthropic/models/beta/beta_environment_archived_error_details.rbi +32 -0
  474. data/rbi/anthropic/models/beta/beta_environment_create_disabled_error.rbi +21 -0
  475. data/rbi/anthropic/models/beta/beta_environment_create_disabled_error_details.rbi +33 -0
  476. data/rbi/anthropic/models/beta/beta_environment_not_found_error.rbi +18 -0
  477. data/rbi/anthropic/models/beta/beta_environment_not_found_error_details.rbi +32 -0
  478. data/rbi/anthropic/models/beta/beta_environment_update_disabled_error.rbi +21 -0
  479. data/rbi/anthropic/models/beta/beta_environment_update_disabled_error_details.rbi +33 -0
  480. data/rbi/anthropic/models/beta/beta_fallback_block_param.rbi +15 -7
  481. data/rbi/anthropic/models/beta/beta_invalid_config_type_change_error.rbi +21 -0
  482. data/rbi/anthropic/models/beta/beta_invalid_config_type_change_error_details.rbi +33 -0
  483. data/rbi/anthropic/models/beta/beta_invalid_metadata_error.rbi +19 -0
  484. data/rbi/anthropic/models/beta/beta_invalid_metadata_error_details.rbi +32 -0
  485. data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule.rbi +2 -2
  486. data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rbi +2 -2
  487. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbi +4 -4
  488. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +4 -4
  489. data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +9 -3
  490. data/rbi/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbi +2 -2
  491. data/rbi/anthropic/models/beta/beta_managed_agents_schedule.rbi +2 -2
  492. data/rbi/anthropic/models/beta/beta_managed_agents_schedule_params.rbi +2 -2
  493. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +2 -2
  494. data/rbi/anthropic/models/beta/beta_output_tokens_details.rbi +8 -8
  495. data/rbi/anthropic/models/beta/deployment_create_params.rbi +2 -2
  496. data/rbi/anthropic/models/beta/deployment_update_params.rbi +2 -2
  497. data/rbi/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error.rbi +25 -0
  498. data/rbi/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error_details.rbi +62 -0
  499. data/rbi/anthropic/models/beta/environments/beta_self_hosted_work.rbi +2 -2
  500. data/rbi/anthropic/models/beta/environments/beta_session_work_data.rbi +2 -2
  501. data/rbi/anthropic/models/beta/environments/beta_work_lease_state.rbi +125 -0
  502. data/rbi/anthropic/models/beta/organization/analytics/artifact_list_params.rbi +4 -4
  503. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -14
  504. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -14
  505. data/rbi/anthropic/models/beta/organization/analytics/connector_list_params.rbi +2 -4
  506. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +26 -32
  507. data/rbi/anthropic/models/beta/organization/analytics/cost_report_list_params.rbi +4 -8
  508. data/rbi/anthropic/models/beta/organization/analytics/plugin_list_params.rbi +4 -4
  509. data/rbi/anthropic/models/beta/organization/analytics/skill_list_params.rbi +4 -4
  510. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +26 -32
  511. data/rbi/anthropic/models/beta/organization/analytics/usage_report_list_params.rbi +4 -8
  512. data/rbi/anthropic/models/beta/organization/analytics/user_cost_report_list_params.rbi +4 -8
  513. data/rbi/anthropic/models/beta/organization/analytics/user_usage_report_list_params.rbi +4 -8
  514. data/rbi/anthropic/models/beta/organization/beta_analytics_connector_activity.rbi +2 -4
  515. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +12 -14
  516. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +12 -14
  517. data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbi +4 -4
  518. data/rbi/anthropic/models/beta/organization/beta_analytics_product_filter.rbi +1 -1
  519. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +8 -10
  520. data/rbi/anthropic/models/beta/organization/beta_analytics_skill_activity.rbi +2 -4
  521. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +12 -14
  522. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_cost_product_filter.rbi +1 -1
  523. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +12 -14
  524. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +4 -4
  525. data/rbi/anthropic/models/beta/organization/beta_analytics_user_actor.rbi +2 -4
  526. data/rbi/anthropic/models/beta/organization/beta_api_key_scope_missing_error.rbi +25 -0
  527. data/rbi/anthropic/models/beta/organization/beta_api_key_scope_missing_error_details.rbi +32 -0
  528. data/rbi/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error.rbi +24 -0
  529. data/rbi/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error_details.rbi +31 -0
  530. data/rbi/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error.rbi +25 -0
  531. data/rbi/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error_details.rbi +32 -0
  532. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +2 -4
  533. data/rbi/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error.rbi +24 -0
  534. data/rbi/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error_details.rbi +31 -0
  535. data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +36 -27
  536. data/rbi/anthropic/models/beta/organization/beta_plugin_name_taken_error.rbi +25 -0
  537. data/rbi/anthropic/models/beta/organization/beta_plugin_name_taken_error_details.rbi +43 -0
  538. data/rbi/anthropic/models/beta/organization/beta_registration_pending_error.rbi +25 -0
  539. data/rbi/anthropic/models/beta/organization/beta_registration_pending_error_details.rbi +56 -0
  540. data/rbi/anthropic/models/beta/organization/beta_scan_failed_error.rbi +23 -0
  541. data/rbi/anthropic/models/beta/organization/beta_scan_failed_error_details.rbi +41 -0
  542. data/rbi/anthropic/models/beta/organization/beta_scan_pending_error.rbi +23 -0
  543. data/rbi/anthropic/models/beta/organization/beta_scan_pending_error_details.rbi +41 -0
  544. data/rbi/anthropic/models/beta/organization/beta_skill_name_taken_error.rbi +25 -0
  545. data/rbi/anthropic/models/beta/organization/beta_skill_name_taken_error_details.rbi +39 -0
  546. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error.rbi +26 -0
  547. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error_details.rbi +47 -0
  548. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error.rbi +25 -0
  549. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error_details.rbi +48 -0
  550. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error.rbi +25 -0
  551. data/rbi/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error_details.rbi +48 -0
  552. data/rbi/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error.rbi +25 -0
  553. data/rbi/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error_details.rbi +32 -0
  554. data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_version.rbi +12 -2
  555. data/rbi/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rbi +2 -2
  556. data/rbi/anthropic/models/beta/organization/telemetry_destination_create_params.rbi +2 -4
  557. data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +15 -0
  558. data/rbi/anthropic/models/beta/session_create_params.rbi +2 -2
  559. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +4 -4
  560. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +2 -2
  561. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +2 -2
  562. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbi +2 -2
  563. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbi +2 -2
  564. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbi +2 -2
  565. data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -2
  566. data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -2
  567. data/rbi/anthropic/models/beta_unsupported_charset_error.rbi +17 -0
  568. data/rbi/anthropic/models/beta_unsupported_charset_error_details.rbi +28 -0
  569. data/rbi/anthropic/models/claude_code_key_creator_not_member_error.rbi +17 -0
  570. data/rbi/anthropic/models/claude_code_key_creator_not_member_error_details.rbi +28 -0
  571. data/rbi/anthropic/models/claude_code_version_too_old_error.rbi +17 -0
  572. data/rbi/anthropic/models/claude_code_version_too_old_error_details.rbi +28 -0
  573. data/rbi/anthropic/models/cmek_context_unavailable_error.rbi +17 -0
  574. data/rbi/anthropic/models/cmek_context_unavailable_error_details.rbi +28 -0
  575. data/rbi/anthropic/models/cmek_key_disabled_error.rbi +17 -0
  576. data/rbi/anthropic/models/cmek_key_disabled_error_details.rbi +28 -0
  577. data/rbi/anthropic/models/cmek_key_network_blocked_error.rbi +17 -0
  578. data/rbi/anthropic/models/cmek_key_network_blocked_error_details.rbi +28 -0
  579. data/rbi/anthropic/models/cmek_key_unreachable_error.rbi +18 -0
  580. data/rbi/anthropic/models/cmek_key_unreachable_error_details.rbi +29 -0
  581. data/rbi/anthropic/models/compaction_block_ambiguous_error.rbi +17 -0
  582. data/rbi/anthropic/models/compaction_block_ambiguous_error_details.rbi +28 -0
  583. data/rbi/anthropic/models/compaction_block_misplaced_error.rbi +17 -0
  584. data/rbi/anthropic/models/compaction_block_misplaced_error_details.rbi +28 -0
  585. data/rbi/anthropic/models/compaction_content_mismatch_error.rbi +17 -0
  586. data/rbi/anthropic/models/compaction_content_mismatch_error_details.rbi +28 -0
  587. data/rbi/anthropic/models/compaction_incomplete_turn_error.rbi +16 -0
  588. data/rbi/anthropic/models/compaction_incomplete_turn_error_details.rbi +27 -0
  589. data/rbi/anthropic/models/compaction_nothing_to_summarize_error.rbi +16 -0
  590. data/rbi/anthropic/models/compaction_nothing_to_summarize_error_details.rbi +27 -0
  591. data/rbi/anthropic/models/compaction_signature_invalid_error.rbi +16 -0
  592. data/rbi/anthropic/models/compaction_signature_invalid_error_details.rbi +27 -0
  593. data/rbi/anthropic/models/compaction_too_many_tool_references_error.rbi +17 -0
  594. data/rbi/anthropic/models/compaction_too_many_tool_references_error_details.rbi +28 -0
  595. data/rbi/anthropic/models/compaction_tool_changes_mismatch_error.rbi +17 -0
  596. data/rbi/anthropic/models/compaction_tool_changes_mismatch_error_details.rbi +28 -0
  597. data/rbi/anthropic/models/compaction_unavailable_error.rbi +17 -0
  598. data/rbi/anthropic/models/compaction_unavailable_error_details.rbi +28 -0
  599. data/rbi/anthropic/models/concurrent_membership_change_error.rbi +17 -0
  600. data/rbi/anthropic/models/concurrent_membership_change_error_details.rbi +28 -0
  601. data/rbi/anthropic/models/enforced_spend_limit_reached_error.rbi +16 -0
  602. data/rbi/anthropic/models/enforced_spend_limit_reached_error_details.rbi +27 -0
  603. data/rbi/anthropic/models/error_details.rbi +497 -0
  604. data/rbi/anthropic/models/error_type.rbi +11 -2
  605. data/rbi/anthropic/models/file_expired_error.rbi +16 -0
  606. data/rbi/anthropic/models/file_expired_error_details.rbi +27 -0
  607. data/rbi/anthropic/models/file_not_downloadable_error.rbi +17 -0
  608. data/rbi/anthropic/models/file_not_downloadable_error_details.rbi +28 -0
  609. data/rbi/anthropic/models/org_member_limit_exceeded_error.rbi +17 -0
  610. data/rbi/anthropic/models/org_member_limit_exceeded_error_details.rbi +28 -0
  611. data/rbi/anthropic/models/organization/already_member_error.rbi +19 -0
  612. data/rbi/anthropic/models/organization/already_member_error_details.rbi +30 -0
  613. data/rbi/anthropic/models/organization/analytics/artifact_list_params.rbi +4 -4
  614. data/rbi/anthropic/models/organization/analytics/connector_list_params.rbi +2 -4
  615. data/rbi/anthropic/models/organization/analytics/plugin_list_params.rbi +4 -4
  616. data/rbi/anthropic/models/organization/analytics/skill_list_params.rbi +4 -4
  617. data/rbi/anthropic/models/organization/analytics_connector_activity.rbi +2 -4
  618. data/rbi/anthropic/models/organization/analytics_plugin_activity.rbi +4 -4
  619. data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +8 -10
  620. data/rbi/anthropic/models/organization/analytics_skill_activity.rbi +2 -4
  621. data/rbi/anthropic/models/organization/analytics_user_activity.rbi +4 -4
  622. data/rbi/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error.rbi +23 -0
  623. data/rbi/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error_details.rbi +30 -0
  624. data/rbi/anthropic/models/organization/cannot_remove_last_member_error.rbi +21 -0
  625. data/rbi/anthropic/models/organization/cannot_remove_last_member_error_details.rbi +30 -0
  626. data/rbi/anthropic/models/organization/email_domain_not_allowed_error.rbi +21 -0
  627. data/rbi/anthropic/models/organization/email_domain_not_allowed_error_details.rbi +30 -0
  628. data/rbi/anthropic/models/organization/external_key.rbi +2 -4
  629. data/rbi/anthropic/models/organization/external_key_changed_error.rbi +19 -0
  630. data/rbi/anthropic/models/organization/external_key_changed_error_details.rbi +30 -0
  631. data/rbi/anthropic/models/organization/external_key_in_workspace_policy_error.rbi +23 -0
  632. data/rbi/anthropic/models/organization/external_key_in_workspace_policy_error_details.rbi +30 -0
  633. data/rbi/anthropic/models/organization/invite_already_exists_error.rbi +21 -0
  634. data/rbi/anthropic/models/organization/invite_already_exists_error_details.rbi +30 -0
  635. data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +20 -0
  636. data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +31 -0
  637. data/rbi/anthropic/models/organization/org_api_key_limit_exceeded_error.rbi +20 -0
  638. data/rbi/anthropic/models/organization/org_api_key_limit_exceeded_error_details.rbi +29 -0
  639. data/rbi/anthropic/models/organization/rbac_group_grants_owner_access_error.rbi +25 -0
  640. data/rbi/anthropic/models/organization/rbac_group_grants_owner_access_error_details.rbi +32 -0
  641. data/rbi/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error.rbi +24 -0
  642. data/rbi/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error_details.rbi +31 -0
  643. data/rbi/anthropic/models/organization/rbac_roles/rbac_role_permission.rbi +2 -2
  644. data/rbi/anthropic/models/organization/workspace_api_key_limit_exceeded_error.rbi +22 -0
  645. data/rbi/anthropic/models/organization/workspace_api_key_limit_exceeded_error_details.rbi +29 -0
  646. data/rbi/anthropic/models/organization/workspace_list_params.rbi +15 -0
  647. data/rbi/anthropic/models/organization/workspace_member_limit_exceeded_error.rbi +22 -0
  648. data/rbi/anthropic/models/organization/workspace_member_limit_exceeded_error_details.rbi +29 -0
  649. data/rbi/anthropic/models/organization/workspace_policy_field.rbi +33 -0
  650. data/rbi/anthropic/models/organization/workspace_policy_violation_error.rbi +22 -0
  651. data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +53 -0
  652. data/rbi/anthropic/models/organization_on_hold_error.rbi +18 -0
  653. data/rbi/anthropic/models/organization_on_hold_error_details.rbi +38 -0
  654. data/rbi/anthropic/models/organization_type_not_supported_error.rbi +17 -0
  655. data/rbi/anthropic/models/organization_type_not_supported_error_details.rbi +28 -0
  656. data/rbi/anthropic/models/output_tokens_details.rbi +8 -8
  657. data/rbi/anthropic/models/request_body_encoding_invalid_error.rbi +16 -0
  658. data/rbi/anthropic/models/request_body_encoding_invalid_error_details.rbi +27 -0
  659. data/rbi/anthropic/models/request_body_encoding_unsupported_error.rbi +16 -0
  660. data/rbi/anthropic/models/request_body_encoding_unsupported_error_details.rbi +27 -0
  661. data/rbi/anthropic/models/request_body_too_large_after_decoding_error.rbi +16 -0
  662. data/rbi/anthropic/models/request_body_too_large_after_decoding_error_details.rbi +27 -0
  663. data/rbi/anthropic/models/skill_read_blocked_undecryptable_error.rbi +17 -0
  664. data/rbi/anthropic/models/skill_read_blocked_undecryptable_error_details.rbi +28 -0
  665. data/rbi/anthropic/models/storage_quota_exceeded_error.rbi +17 -0
  666. data/rbi/anthropic/models/storage_quota_exceeded_error_details.rbi +28 -0
  667. data/rbi/anthropic/models/thread_already_continued_error.rbi +18 -0
  668. data/rbi/anthropic/models/thread_already_continued_error_details.rbi +29 -0
  669. data/rbi/anthropic/models/thread_continue_in_flight_error.rbi +18 -0
  670. data/rbi/anthropic/models/thread_continue_in_flight_error_details.rbi +29 -0
  671. data/rbi/anthropic/models/thread_fingerprint_mismatch_error.rbi +19 -0
  672. data/rbi/anthropic/models/thread_fingerprint_mismatch_error_details.rbi +30 -0
  673. data/rbi/anthropic/models/thread_not_found_error.rbi +17 -0
  674. data/rbi/anthropic/models/thread_not_found_error_details.rbi +28 -0
  675. data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +44 -0
  676. data/rbi/anthropic/models/thread_unsupported_request_error.rbi +18 -0
  677. data/rbi/anthropic/models/thread_unsupported_request_error_details.rbi +65 -0
  678. data/rbi/anthropic/models/tool_name_conflict_error.rbi +17 -0
  679. data/rbi/anthropic/models/tool_name_conflict_error_details.rbi +28 -0
  680. data/rbi/anthropic/models/tool_reference_unresolved_error.rbi +17 -0
  681. data/rbi/anthropic/models/tool_reference_unresolved_error_details.rbi +28 -0
  682. data/rbi/anthropic/models/user_profile_not_found_error.rbi +18 -0
  683. data/rbi/anthropic/models/user_profile_not_found_error_details.rbi +29 -0
  684. data/rbi/anthropic/models.rbi +204 -0
  685. data/rbi/anthropic/resources/beta/organization/analytics/artifacts.rbi +2 -2
  686. data/rbi/anthropic/resources/beta/organization/analytics/connectors.rbi +1 -2
  687. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +12 -15
  688. data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +2 -4
  689. data/rbi/anthropic/resources/beta/organization/analytics/plugins.rbi +2 -2
  690. data/rbi/anthropic/resources/beta/organization/analytics/skills.rbi +2 -2
  691. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +12 -15
  692. data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +2 -4
  693. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +8 -8
  694. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +8 -8
  695. data/rbi/anthropic/resources/beta/organization/telemetry_destinations.rbi +1 -2
  696. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +5 -0
  697. data/rbi/anthropic/resources/organization/analytics/artifacts.rbi +2 -2
  698. data/rbi/anthropic/resources/organization/analytics/connectors.rbi +1 -2
  699. data/rbi/anthropic/resources/organization/analytics/plugins.rbi +2 -2
  700. data/rbi/anthropic/resources/organization/analytics/skills.rbi +2 -2
  701. data/rbi/anthropic/resources/organization/workspaces.rbi +5 -0
  702. data/sig/anthropic/error_classes.rbs +5 -0
  703. data/sig/anthropic/errors.rbs +44 -3
  704. data/sig/anthropic/foundry.rbs +3 -0
  705. data/sig/anthropic/helpers/foundry/client.rbs +44 -0
  706. data/sig/anthropic/models/available_tools_limit_exceeded_error.rbs +9 -0
  707. data/sig/anthropic/models/available_tools_limit_exceeded_error_details.rbs +14 -0
  708. data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +11 -0
  709. data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +17 -0
  710. data/sig/anthropic/models/beta/beta_environment_archived_error.rbs +11 -0
  711. data/sig/anthropic/models/beta/beta_environment_archived_error_details.rbs +18 -0
  712. data/sig/anthropic/models/beta/beta_environment_create_disabled_error.rbs +11 -0
  713. data/sig/anthropic/models/beta/beta_environment_create_disabled_error_details.rbs +18 -0
  714. data/sig/anthropic/models/beta/beta_environment_not_found_error.rbs +11 -0
  715. data/sig/anthropic/models/beta/beta_environment_not_found_error_details.rbs +18 -0
  716. data/sig/anthropic/models/beta/beta_environment_update_disabled_error.rbs +11 -0
  717. data/sig/anthropic/models/beta/beta_environment_update_disabled_error_details.rbs +18 -0
  718. data/sig/anthropic/models/beta/beta_invalid_config_type_change_error.rbs +11 -0
  719. data/sig/anthropic/models/beta/beta_invalid_config_type_change_error_details.rbs +18 -0
  720. data/sig/anthropic/models/beta/beta_invalid_metadata_error.rbs +11 -0
  721. data/sig/anthropic/models/beta/beta_invalid_metadata_error_details.rbs +18 -0
  722. data/sig/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error.rbs +13 -0
  723. data/sig/anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error_details.rbs +29 -0
  724. data/sig/anthropic/models/beta/environments/beta_work_lease_state.rbs +53 -0
  725. data/sig/anthropic/models/beta/organization/beta_api_key_scope_missing_error.rbs +13 -0
  726. data/sig/anthropic/models/beta/organization/beta_api_key_scope_missing_error_details.rbs +18 -0
  727. data/sig/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error.rbs +13 -0
  728. data/sig/anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error_details.rbs +18 -0
  729. data/sig/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error.rbs +13 -0
  730. data/sig/anthropic/models/beta/organization/beta_compliance_configuration_restricted_error_details.rbs +20 -0
  731. data/sig/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error.rbs +13 -0
  732. data/sig/anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error_details.rbs +22 -0
  733. data/sig/anthropic/models/beta/organization/beta_plugin_name_taken_error.rbs +13 -0
  734. data/sig/anthropic/models/beta/organization/beta_plugin_name_taken_error_details.rbs +23 -0
  735. data/sig/anthropic/models/beta/organization/beta_registration_pending_error.rbs +13 -0
  736. data/sig/anthropic/models/beta/organization/beta_registration_pending_error_details.rbs +34 -0
  737. data/sig/anthropic/models/beta/organization/beta_scan_failed_error.rbs +13 -0
  738. data/sig/anthropic/models/beta/organization/beta_scan_failed_error_details.rbs +26 -0
  739. data/sig/anthropic/models/beta/organization/beta_scan_pending_error.rbs +13 -0
  740. data/sig/anthropic/models/beta/organization/beta_scan_pending_error_details.rbs +26 -0
  741. data/sig/anthropic/models/beta/organization/beta_skill_name_taken_error.rbs +13 -0
  742. data/sig/anthropic/models/beta/organization/beta_skill_name_taken_error_details.rbs +23 -0
  743. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error.rbs +13 -0
  744. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_environment_not_found_error_details.rbs +29 -0
  745. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error.rbs +13 -0
  746. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error_details.rbs +29 -0
  747. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error.rbs +13 -0
  748. data/sig/anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error_details.rbs +29 -0
  749. data/sig/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error.rbs +13 -0
  750. data/sig/anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error_details.rbs +22 -0
  751. data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +7 -0
  752. data/sig/anthropic/models/beta_unsupported_charset_error.rbs +9 -0
  753. data/sig/anthropic/models/beta_unsupported_charset_error_details.rbs +14 -0
  754. data/sig/anthropic/models/claude_code_key_creator_not_member_error.rbs +9 -0
  755. data/sig/anthropic/models/claude_code_key_creator_not_member_error_details.rbs +14 -0
  756. data/sig/anthropic/models/claude_code_version_too_old_error.rbs +9 -0
  757. data/sig/anthropic/models/claude_code_version_too_old_error_details.rbs +14 -0
  758. data/sig/anthropic/models/cmek_context_unavailable_error.rbs +9 -0
  759. data/sig/anthropic/models/cmek_context_unavailable_error_details.rbs +14 -0
  760. data/sig/anthropic/models/cmek_key_disabled_error.rbs +9 -0
  761. data/sig/anthropic/models/cmek_key_disabled_error_details.rbs +13 -0
  762. data/sig/anthropic/models/cmek_key_network_blocked_error.rbs +9 -0
  763. data/sig/anthropic/models/cmek_key_network_blocked_error_details.rbs +14 -0
  764. data/sig/anthropic/models/cmek_key_unreachable_error.rbs +9 -0
  765. data/sig/anthropic/models/cmek_key_unreachable_error_details.rbs +14 -0
  766. data/sig/anthropic/models/compaction_block_ambiguous_error.rbs +9 -0
  767. data/sig/anthropic/models/compaction_block_ambiguous_error_details.rbs +14 -0
  768. data/sig/anthropic/models/compaction_block_misplaced_error.rbs +9 -0
  769. data/sig/anthropic/models/compaction_block_misplaced_error_details.rbs +14 -0
  770. data/sig/anthropic/models/compaction_content_mismatch_error.rbs +9 -0
  771. data/sig/anthropic/models/compaction_content_mismatch_error_details.rbs +14 -0
  772. data/sig/anthropic/models/compaction_incomplete_turn_error.rbs +9 -0
  773. data/sig/anthropic/models/compaction_incomplete_turn_error_details.rbs +14 -0
  774. data/sig/anthropic/models/compaction_nothing_to_summarize_error.rbs +9 -0
  775. data/sig/anthropic/models/compaction_nothing_to_summarize_error_details.rbs +14 -0
  776. data/sig/anthropic/models/compaction_signature_invalid_error.rbs +9 -0
  777. data/sig/anthropic/models/compaction_signature_invalid_error_details.rbs +14 -0
  778. data/sig/anthropic/models/compaction_too_many_tool_references_error.rbs +9 -0
  779. data/sig/anthropic/models/compaction_too_many_tool_references_error_details.rbs +16 -0
  780. data/sig/anthropic/models/compaction_tool_changes_mismatch_error.rbs +9 -0
  781. data/sig/anthropic/models/compaction_tool_changes_mismatch_error_details.rbs +14 -0
  782. data/sig/anthropic/models/compaction_unavailable_error.rbs +9 -0
  783. data/sig/anthropic/models/compaction_unavailable_error_details.rbs +14 -0
  784. data/sig/anthropic/models/concurrent_membership_change_error.rbs +9 -0
  785. data/sig/anthropic/models/concurrent_membership_change_error_details.rbs +14 -0
  786. data/sig/anthropic/models/enforced_spend_limit_reached_error.rbs +9 -0
  787. data/sig/anthropic/models/enforced_spend_limit_reached_error_details.rbs +14 -0
  788. data/sig/anthropic/models/error_details.rbs +512 -0
  789. data/sig/anthropic/models/error_type.rbs +10 -4
  790. data/sig/anthropic/models/file_expired_error.rbs +9 -0
  791. data/sig/anthropic/models/file_expired_error_details.rbs +13 -0
  792. data/sig/anthropic/models/file_not_downloadable_error.rbs +9 -0
  793. data/sig/anthropic/models/file_not_downloadable_error_details.rbs +14 -0
  794. data/sig/anthropic/models/org_member_limit_exceeded_error.rbs +9 -0
  795. data/sig/anthropic/models/org_member_limit_exceeded_error_details.rbs +14 -0
  796. data/sig/anthropic/models/organization/already_member_error.rbs +11 -0
  797. data/sig/anthropic/models/organization/already_member_error_details.rbs +15 -0
  798. data/sig/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error.rbs +11 -0
  799. data/sig/anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error_details.rbs +20 -0
  800. data/sig/anthropic/models/organization/cannot_remove_last_member_error.rbs +11 -0
  801. data/sig/anthropic/models/organization/cannot_remove_last_member_error_details.rbs +16 -0
  802. data/sig/anthropic/models/organization/email_domain_not_allowed_error.rbs +11 -0
  803. data/sig/anthropic/models/organization/email_domain_not_allowed_error_details.rbs +16 -0
  804. data/sig/anthropic/models/organization/external_key_changed_error.rbs +11 -0
  805. data/sig/anthropic/models/organization/external_key_changed_error_details.rbs +16 -0
  806. data/sig/anthropic/models/organization/external_key_in_workspace_policy_error.rbs +11 -0
  807. data/sig/anthropic/models/organization/external_key_in_workspace_policy_error_details.rbs +16 -0
  808. data/sig/anthropic/models/organization/invite_already_exists_error.rbs +11 -0
  809. data/sig/anthropic/models/organization/invite_already_exists_error_details.rbs +16 -0
  810. data/sig/anthropic/models/organization/key_profile_mismatch_error.rbs +11 -0
  811. data/sig/anthropic/models/organization/key_profile_mismatch_error_details.rbs +16 -0
  812. data/sig/anthropic/models/organization/org_api_key_limit_exceeded_error.rbs +11 -0
  813. data/sig/anthropic/models/organization/org_api_key_limit_exceeded_error_details.rbs +16 -0
  814. data/sig/anthropic/models/organization/rbac_group_grants_owner_access_error.rbs +11 -0
  815. data/sig/anthropic/models/organization/rbac_group_grants_owner_access_error_details.rbs +16 -0
  816. data/sig/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error.rbs +11 -0
  817. data/sig/anthropic/models/organization/rbac_group_owner_access_unconfirmed_error_details.rbs +18 -0
  818. data/sig/anthropic/models/organization/workspace_api_key_limit_exceeded_error.rbs +11 -0
  819. data/sig/anthropic/models/organization/workspace_api_key_limit_exceeded_error_details.rbs +16 -0
  820. data/sig/anthropic/models/organization/workspace_list_params.rbs +7 -0
  821. data/sig/anthropic/models/organization/workspace_member_limit_exceeded_error.rbs +11 -0
  822. data/sig/anthropic/models/organization/workspace_member_limit_exceeded_error_details.rbs +16 -0
  823. data/sig/anthropic/models/organization/workspace_policy_field.rbs +15 -0
  824. data/sig/anthropic/models/organization/workspace_policy_violation_error.rbs +11 -0
  825. data/sig/anthropic/models/organization/workspace_policy_violation_error_details.rbs +27 -0
  826. data/sig/anthropic/models/organization_on_hold_error.rbs +9 -0
  827. data/sig/anthropic/models/organization_on_hold_error_details.rbs +19 -0
  828. data/sig/anthropic/models/organization_type_not_supported_error.rbs +9 -0
  829. data/sig/anthropic/models/organization_type_not_supported_error_details.rbs +14 -0
  830. data/sig/anthropic/models/request_body_encoding_invalid_error.rbs +9 -0
  831. data/sig/anthropic/models/request_body_encoding_invalid_error_details.rbs +14 -0
  832. data/sig/anthropic/models/request_body_encoding_unsupported_error.rbs +9 -0
  833. data/sig/anthropic/models/request_body_encoding_unsupported_error_details.rbs +14 -0
  834. data/sig/anthropic/models/request_body_too_large_after_decoding_error.rbs +9 -0
  835. data/sig/anthropic/models/request_body_too_large_after_decoding_error_details.rbs +16 -0
  836. data/sig/anthropic/models/skill_read_blocked_undecryptable_error.rbs +9 -0
  837. data/sig/anthropic/models/skill_read_blocked_undecryptable_error_details.rbs +14 -0
  838. data/sig/anthropic/models/storage_quota_exceeded_error.rbs +9 -0
  839. data/sig/anthropic/models/storage_quota_exceeded_error_details.rbs +14 -0
  840. data/sig/anthropic/models/thread_already_continued_error.rbs +9 -0
  841. data/sig/anthropic/models/thread_already_continued_error_details.rbs +14 -0
  842. data/sig/anthropic/models/thread_continue_in_flight_error.rbs +9 -0
  843. data/sig/anthropic/models/thread_continue_in_flight_error_details.rbs +14 -0
  844. data/sig/anthropic/models/thread_fingerprint_mismatch_error.rbs +9 -0
  845. data/sig/anthropic/models/thread_fingerprint_mismatch_error_details.rbs +14 -0
  846. data/sig/anthropic/models/thread_not_found_error.rbs +9 -0
  847. data/sig/anthropic/models/thread_not_found_error_details.rbs +13 -0
  848. data/sig/anthropic/models/thread_unsupported_feature_name.rbs +26 -0
  849. data/sig/anthropic/models/thread_unsupported_request_error.rbs +9 -0
  850. data/sig/anthropic/models/thread_unsupported_request_error_details.rbs +25 -0
  851. data/sig/anthropic/models/tool_name_conflict_error.rbs +9 -0
  852. data/sig/anthropic/models/tool_name_conflict_error_details.rbs +13 -0
  853. data/sig/anthropic/models/tool_reference_unresolved_error.rbs +9 -0
  854. data/sig/anthropic/models/tool_reference_unresolved_error_details.rbs +14 -0
  855. data/sig/anthropic/models/user_profile_not_found_error.rbs +9 -0
  856. data/sig/anthropic/models/user_profile_not_found_error_details.rbs +14 -0
  857. data/sig/anthropic/models.rbs +152 -0
  858. data/sig/anthropic/resources/beta/organization/workspaces.rbs +1 -0
  859. data/sig/anthropic/resources/organization/workspaces.rbs +1 -0
  860. metadata +455 -2
@@ -25,6 +25,16 @@ module Anthropic
25
25
  #
26
26
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
27
27
  #
28
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
29
+ # no longer a member of the organization or of that workspace.
30
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
31
+ # Re-enable the key, then retry.
32
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
33
+ # workspace's customer-managed encryption key. The key itself may be healthy.
34
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
35
+ # organization disabled for any other reason, such as billing, does not get this
36
+ # code. `appeal_url`, when present, is where the organization can appeal.
37
+ #
28
38
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaFileMetadata>]
29
39
  #
30
40
  # @see Anthropic::Models::Beta::FileListParams
@@ -65,6 +75,16 @@ module Anthropic
65
75
  #
66
76
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
67
77
  #
78
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
79
+ # no longer a member of the organization or of that workspace.
80
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
81
+ # Re-enable the key, then retry.
82
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
83
+ # workspace's customer-managed encryption key. The key itself may be healthy.
84
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
85
+ # organization disabled for any other reason, such as billing, does not get this
86
+ # code. `appeal_url`, when present, is where the organization can appeal.
87
+ #
68
88
  # @return [Anthropic::Models::Beta::BetaDeletedFile]
69
89
  #
70
90
  # @see Anthropic::Models::Beta::FileDeleteParams
@@ -98,6 +118,19 @@ module Anthropic
98
118
  #
99
119
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
100
120
  #
121
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
122
+ # no longer a member of the organization or of that workspace.
123
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
124
+ # Re-enable the key, then retry.
125
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
126
+ # workspace's customer-managed encryption key. The key itself may be healthy.
127
+ # @raise [Anthropic::Models::FileNotDownloadableError] The file has `downloadable: false`. Only files generated by a tool, such as the
128
+ # code execution tool, can be downloaded.
129
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
130
+ # organization disabled for any other reason, such as billing, does not get this
131
+ # code. `appeal_url`, when present, is where the organization can appeal.
132
+ # @raise [Anthropic::Models::FileExpiredError] The file's `expires_at` has passed, so its content is no longer available.
133
+ #
101
134
  # @return [StringIO]
102
135
  #
103
136
  # @see Anthropic::Models::Beta::FileDownloadParams
@@ -134,6 +167,16 @@ module Anthropic
134
167
  #
135
168
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
136
169
  #
170
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
171
+ # no longer a member of the organization or of that workspace.
172
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
173
+ # Re-enable the key, then retry.
174
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
175
+ # workspace's customer-managed encryption key. The key itself may be healthy.
176
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
177
+ # organization disabled for any other reason, such as billing, does not get this
178
+ # code. `appeal_url`, when present, is where the organization can appeal.
179
+ #
137
180
  # @return [Anthropic::Models::Beta::BetaFileMetadata]
138
181
  #
139
182
  # @see Anthropic::Models::Beta::FileRetrieveMetadataParams
@@ -159,7 +202,7 @@ module Anthropic
159
202
  #
160
203
  # @overload upload(file:, expires_in_seconds: nil, betas: nil, workspace_id: nil, request_options: {})
161
204
  #
162
- # @param file [Pathname, StringIO, IO, String, Anthropic::FilePart] Body param: The file to upload. Only the final path component of the part's `fil
205
+ # @param file [Pathname, StringIO, IO, String, Anthropic::FilePart] Body param: The file to upload. Only the final path component of the part's
163
206
  #
164
207
  # @param expires_in_seconds [Integer] Body param: Seconds from upload until the file expires and its bytes become perm
165
208
  #
@@ -169,6 +212,18 @@ module Anthropic
169
212
  #
170
213
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
171
214
  #
215
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
216
+ # no longer a member of the organization or of that workspace.
217
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
218
+ # Re-enable the key, then retry.
219
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
220
+ # workspace's customer-managed encryption key. The key itself may be healthy.
221
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
222
+ # organization disabled for any other reason, such as billing, does not get this
223
+ # code. `appeal_url`, when present, is where the organization can appeal.
224
+ # @raise [Anthropic::Models::StorageQuotaExceededError] The organization's file storage quota is exhausted. Delete files to free up
225
+ # space, then retry the upload.
226
+ #
172
227
  # @return [Anthropic::Models::Beta::BetaFileMetadata]
173
228
  #
174
229
  # @see Anthropic::Models::Beta::FileUploadParams
@@ -20,7 +20,7 @@ module Anthropic
20
20
  #
21
21
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Query param: Whether a `memory` or `memory_version` in the response includes its
22
22
  #
23
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
23
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
24
24
  #
25
25
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
26
26
  #
@@ -64,7 +64,7 @@ module Anthropic
64
64
  #
65
65
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Query param: Whether a `memory` or `memory_version` in the response includes its
66
66
  #
67
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
67
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
68
68
  #
69
69
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
70
70
  #
@@ -121,7 +121,7 @@ module Anthropic
121
121
  #
122
122
  # @param precondition [Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition] Body param: The condition that the memory must meet for the update to apply. Omi
123
123
  #
124
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
124
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
125
125
  #
126
126
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
127
127
  #
@@ -173,11 +173,11 @@ module Anthropic
173
173
  #
174
174
  # @param page [String] Query param: The `next_page` value from a previous response, to get the next pag
175
175
  #
176
- # @param path_prefix [String] Query param: Return only memories whose path starts with this prefix, such as `/
176
+ # @param path_prefix [String] Query param: Return only memories whose path starts with this prefix, such as
177
177
  #
178
178
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Query param: Whether each memory in the response includes `content`. Defaults to
179
179
  #
180
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
180
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
181
181
  #
182
182
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
183
183
  #
@@ -223,7 +223,7 @@ module Anthropic
223
223
  #
224
224
  # @param expected_content_sha256 [String] Query param: Delete the memory only if its current `content_sha256` equals this
225
225
  #
226
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
226
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
227
227
  #
228
228
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
229
229
  #
@@ -19,7 +19,7 @@ module Anthropic
19
19
  #
20
20
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Query param: Whether a `memory` or `memory_version` in the response includes its
21
21
  #
22
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
22
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
23
23
  #
24
24
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
25
25
  #
@@ -65,8 +65,7 @@ module Anthropic
65
65
  #
66
66
  # @overload list(memory_store_id, api_key_id: nil, created_at_gte: nil, created_at_lte: nil, limit: nil, memory_id: nil, operation: nil, page: nil, service_account_id: nil, session_id: nil, view: nil, betas: nil, workspace_id: nil, request_options: {})
67
67
  #
68
- # @param memory_store_id [String] Path param: The ID of the memory store whose version history to list
69
- # (`memstore\_
68
+ # @param memory_store_id [String] Path param: The ID of the memory store whose version history to list (
70
69
  #
71
70
  # @param api_key_id [String] Query param: Return only versions written with the API key that has this ID.
72
71
  #
@@ -82,13 +81,13 @@ module Anthropic
82
81
  #
83
82
  # @param page [String] Query param: The `next_page` value from a previous response, to get the next pag
84
83
  #
85
- # @param service_account_id [String] Query param: Return only versions written by the service account with this ID (`
84
+ # @param service_account_id [String] Query param: Return only versions written by the service account with this ID (
86
85
  #
87
86
  # @param session_id [String] Query param: Return only versions written by the session with this ID.
88
87
  #
89
88
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Query param: Whether a `memory` or `memory_version` in the response includes its
90
89
  #
91
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
90
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
92
91
  #
93
92
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
94
93
  #
@@ -158,7 +157,7 @@ module Anthropic
158
157
  #
159
158
  # @param memory_store_id [String] Path param: The ID of the memory store that holds the version (`memstore_...`).
160
159
  #
161
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
160
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
162
161
  #
163
162
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
164
163
  #
@@ -23,7 +23,7 @@ module Anthropic
23
23
  #
24
24
  # @param metadata [Hash{Symbol=>String}] Body param: Key-value pairs for your own use, such as the end user that the stor
25
25
  #
26
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
26
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
27
27
  #
28
28
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
29
29
  #
@@ -58,7 +58,7 @@ module Anthropic
58
58
  #
59
59
  # @param memory_store_id [String] The ID of the memory store to retrieve (`memstore_...`).
60
60
  #
61
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
61
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
62
62
  #
63
63
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
64
64
  #
@@ -97,7 +97,7 @@ module Anthropic
97
97
  #
98
98
  # @param name [String, nil] Body param: The new name of the memory store, 1 to 255 characters long, without
99
99
  #
100
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
100
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
101
101
  #
102
102
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
103
103
  #
@@ -140,7 +140,7 @@ module Anthropic
140
140
  #
141
141
  # @param page [String] Query param: The `next_page` value from a previous response, to get the next pag
142
142
  #
143
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `agent-memory-2026-07
143
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
144
144
  #
145
145
  # @param workspace_id [String] Header param: Optional header to select the Workspace for this request. The valu
146
146
  #
@@ -180,7 +180,7 @@ module Anthropic
180
180
  #
181
181
  # @param memory_store_id [String] The ID of the memory store to delete (`memstore_...`).
182
182
  #
183
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
183
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
184
184
  #
185
185
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
186
186
  #
@@ -213,7 +213,7 @@ module Anthropic
213
213
  #
214
214
  # @param memory_store_id [String] The ID of the memory store to archive (`memstore_...`).
215
215
  #
216
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
216
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
217
217
  #
218
218
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
219
219
  #
@@ -29,6 +29,15 @@ module Anthropic
29
29
  #
30
30
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
31
31
  #
32
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
33
+ # no longer a member of the organization or of that workspace.
34
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
35
+ # Re-enable the key, then retry.
36
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
37
+ # organization disabled for any other reason, such as billing, does not get this
38
+ # code. `appeal_url`, when present, is where the organization can appeal.
39
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
40
+ #
32
41
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
33
42
  #
34
43
  # @see Anthropic::Models::Beta::Messages::BatchCreateParams
@@ -74,6 +83,12 @@ module Anthropic
74
83
  #
75
84
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
76
85
  #
86
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
87
+ # no longer a member of the organization or of that workspace.
88
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
89
+ # organization disabled for any other reason, such as billing, does not get this
90
+ # code. `appeal_url`, when present, is where the organization can appeal.
91
+ #
77
92
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
78
93
  #
79
94
  # @see Anthropic::Models::Beta::Messages::BatchRetrieveParams
@@ -115,6 +130,12 @@ module Anthropic
115
130
  #
116
131
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
117
132
  #
133
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
134
+ # no longer a member of the organization or of that workspace.
135
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
136
+ # organization disabled for any other reason, such as billing, does not get this
137
+ # code. `appeal_url`, when present, is where the organization can appeal.
138
+ #
118
139
  # @return [Anthropic::Internal::Page<Anthropic::Models::Beta::Messages::BetaMessageBatch>]
119
140
  #
120
141
  # @see Anthropic::Models::Beta::Messages::BatchListParams
@@ -161,6 +182,12 @@ module Anthropic
161
182
  #
162
183
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
163
184
  #
185
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
186
+ # no longer a member of the organization or of that workspace.
187
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
188
+ # organization disabled for any other reason, such as billing, does not get this
189
+ # code. `appeal_url`, when present, is where the organization can appeal.
190
+ #
164
191
  # @return [Anthropic::Models::Beta::Messages::BetaDeletedMessageBatch]
165
192
  #
166
193
  # @see Anthropic::Models::Beta::Messages::BatchDeleteParams
@@ -205,6 +232,12 @@ module Anthropic
205
232
  #
206
233
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
207
234
  #
235
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
236
+ # no longer a member of the organization or of that workspace.
237
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
238
+ # organization disabled for any other reason, such as billing, does not get this
239
+ # code. `appeal_url`, when present, is where the organization can appeal.
240
+ #
208
241
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
209
242
  #
210
243
  # @see Anthropic::Models::Beta::Messages::BatchCancelParams
@@ -245,6 +278,14 @@ module Anthropic
245
278
  #
246
279
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
247
280
  #
281
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
282
+ # no longer a member of the organization or of that workspace.
283
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
284
+ # Re-enable the key, then retry.
285
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
286
+ # organization disabled for any other reason, such as billing, does not get this
287
+ # code. `appeal_url`, when present, is where the organization can appeal.
288
+ #
248
289
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::Messages::BetaMessageBatchIndividualResponse>]
249
290
  #
250
291
  # @see Anthropic::Models::Beta::Messages::BatchResultsParams
@@ -132,6 +132,63 @@ module Anthropic
132
132
  #
133
133
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
134
134
  #
135
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
136
+ # size.
137
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
138
+ # no longer a member of the organization or of that workspace.
139
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
140
+ # requested model or the organization requires. Update Claude Code, then retry.
141
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
142
+ # Re-enable the key, then retry.
143
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
144
+ # workspace's customer-managed encryption key. The key itself may be healthy.
145
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
146
+ # block the conversation returned last.
147
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
148
+ # `system` message.
149
+ # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
150
+ # recorded.
151
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
152
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
153
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
154
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
155
+ # record.
156
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
157
+ # block.
158
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
159
+ # organization disabled for any other reason, such as billing, does not get this
160
+ # code. `appeal_url`, when present, is where the organization can appeal.
161
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
162
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
163
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
164
+ # each response can be continued only once. Continue from the Thread's most recent
165
+ # response `id`.
166
+ # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
167
+ # for it to complete and continue from its response `id`, or replay the full
168
+ # conversation with `thread: {"type": "create"}`.
169
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
170
+ # stored with the Thread; the message names each such field. Send the stored
171
+ # values, or replay the full conversation with `thread: {"type": "create"}` to
172
+ # change them.
173
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
174
+ # that Threads do not support; `unsupported`, when present, names it. Send the
175
+ # full conversation without `thread`, or change that field.
176
+ # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
177
+ # another kind, or of another MCP server, already holds.
178
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
179
+ # defined at that position in the conversation.
180
+ # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
181
+ # conversation with `thread: {"type": "create"}` to start a new Thread.
182
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
183
+ # workspace cannot currently decrypt.
184
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
185
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
186
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
187
+ # request; if this continues, check that the key is available in your key
188
+ # management service, or contact Anthropic support.
189
+ # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
190
+ # request.
191
+ #
135
192
  # @return [Anthropic::Models::Beta::BetaMessage]
136
193
  #
137
194
  # @see Anthropic::Models::Beta::MessageCreateParams
@@ -252,6 +309,63 @@ module Anthropic
252
309
  #
253
310
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
254
311
  #
312
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
313
+ # size.
314
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
315
+ # no longer a member of the organization or of that workspace.
316
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
317
+ # requested model or the organization requires. Update Claude Code, then retry.
318
+ # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
319
+ # Re-enable the key, then retry.
320
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
321
+ # workspace's customer-managed encryption key. The key itself may be healthy.
322
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
323
+ # block the conversation returned last.
324
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
325
+ # `system` message.
326
+ # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
327
+ # recorded.
328
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
329
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
330
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
331
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
332
+ # record.
333
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
334
+ # block.
335
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
336
+ # organization disabled for any other reason, such as billing, does not get this
337
+ # code. `appeal_url`, when present, is where the organization can appeal.
338
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
339
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
340
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
341
+ # each response can be continued only once. Continue from the Thread's most recent
342
+ # response `id`.
343
+ # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
344
+ # for it to complete and continue from its response `id`, or replay the full
345
+ # conversation with `thread: {"type": "create"}`.
346
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
347
+ # stored with the Thread; the message names each such field. Send the stored
348
+ # values, or replay the full conversation with `thread: {"type": "create"}` to
349
+ # change them.
350
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
351
+ # that Threads do not support; `unsupported`, when present, names it. Send the
352
+ # full conversation without `thread`, or change that field.
353
+ # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
354
+ # another kind, or of another MCP server, already holds.
355
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
356
+ # defined at that position in the conversation.
357
+ # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
358
+ # conversation with `thread: {"type": "create"}` to start a new Thread.
359
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
360
+ # workspace cannot currently decrypt.
361
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
362
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
363
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
364
+ # request; if this continues, check that the key is available in your key
365
+ # management service, or contact Anthropic support.
366
+ # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
367
+ # request.
368
+ #
255
369
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::BetaRawMessageStartEvent, Anthropic::Models::Beta::BetaRawMessageDeltaEvent, Anthropic::Models::Beta::BetaRawMessageStopEvent, Anthropic::Models::Beta::BetaRawContentBlockStartEvent, Anthropic::Models::Beta::BetaRawContentBlockDeltaEvent, Anthropic::Models::Beta::BetaRawContentBlockStopEvent>]
256
370
  #
257
371
  # @see Anthropic::Models::Beta::MessageCreateParams
@@ -338,6 +452,34 @@ module Anthropic
338
452
  #
339
453
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
340
454
  #
455
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
456
+ # size.
457
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
458
+ # no longer a member of the organization or of that workspace.
459
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
460
+ # block the conversation returned last.
461
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
462
+ # `system` message.
463
+ # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
464
+ # recorded.
465
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
466
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
467
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
468
+ # block.
469
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
470
+ # organization disabled for any other reason, such as billing, does not get this
471
+ # code. `appeal_url`, when present, is where the organization can appeal.
472
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
473
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
474
+ # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
475
+ # another kind, or of another MCP server, already holds.
476
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
477
+ # defined at that position in the conversation.
478
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
479
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
480
+ # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
481
+ # request.
482
+ #
341
483
  # @return [Anthropic::Models::Beta::BetaMessageTokensCount]
342
484
  #
343
485
  # @see Anthropic::Models::Beta::MessageCountTokensParams
@@ -22,6 +22,12 @@ module Anthropic
22
22
  #
23
23
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
24
24
  #
25
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
26
+ # no longer a member of the organization or of that workspace.
27
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
28
+ # organization disabled for any other reason, such as billing, does not get this
29
+ # code. `appeal_url`, when present, is where the organization can appeal.
30
+ #
25
31
  # @return [Anthropic::Models::Beta::BetaModelInfo]
26
32
  #
27
33
  # @see Anthropic::Models::Beta::ModelRetrieveParams
@@ -54,7 +60,7 @@ module Anthropic
54
60
  #
55
61
  # @param before_id [String] Query param: ID of the object to use as a cursor for pagination. When provided,
56
62
  #
57
- # @param lifecycle [Array<Symbol, Anthropic::Models::Beta::ModelListParams::Lifecycle>] Query param: Filter the list to models in any of the given lifecycle stages (`ac
63
+ # @param lifecycle [Array<Symbol, Anthropic::Models::Beta::ModelListParams::Lifecycle>] Query param: Filter the list to models in any of the given lifecycle stages (
58
64
  #
59
65
  # @param limit [Integer] Query param: Number of items to return per page.
60
66
  #
@@ -64,6 +70,12 @@ module Anthropic
64
70
  #
65
71
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
66
72
  #
73
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
74
+ # no longer a member of the organization or of that workspace.
75
+ # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
76
+ # organization disabled for any other reason, such as billing, does not get this
77
+ # code. `appeal_url`, when present, is where the organization can appeal.
78
+ #
67
79
  # @return [Anthropic::Internal::Page<Anthropic::Models::Beta::BetaModelInfo>]
68
80
  #
69
81
  # @see Anthropic::Models::Beta::ModelListParams
@@ -27,7 +27,7 @@ module Anthropic
27
27
  #
28
28
  # @param limit [Integer, nil] Maximum rows to return (1-1000, default 100). The ungrouped artifact-type cube i
29
29
  #
30
- # @param page [String, nil] Opaque cursor from a previous response's `next_page` field. Only valid with `gro
30
+ # @param page [String, nil] Opaque cursor from a previous response's `next_page` field. Only valid with
31
31
  #
32
32
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
33
33
  #
@@ -25,7 +25,7 @@ module Anthropic
25
25
  #
26
26
  # @param actor_ids [Array<String>, nil] Query param: Filter to usage attributed to specific identities, by tagged ID: a
27
27
  #
28
- # @param actor_types [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsActorType>, nil] Query param: Filter to usage attributed to specific kinds of identity. Use `grou
28
+ # @param actor_types [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsActorType>, nil] Query param: Filter to usage attributed to specific kinds of identity. Use
29
29
  #
30
30
  # @param agent_ids [Array<String>, nil] Query param: Filter to usage incurred by sessions of specific Claude Managed Age
31
31
  #
@@ -35,7 +35,7 @@ module Anthropic
35
35
  #
36
36
  # @param claude_tag_user_ids [Array<String>, nil] Query param: Filter to Claude Tag (Claude in Slack) usage attributed to specific
37
37
  #
38
- # @param context_windows [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsContextWindow>, nil] Query param: Filter to specific context-window pricing tiers. Use `group_by[]=co
38
+ # @param context_windows [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsContextWindow>, nil] Query param: Filter to specific context-window pricing tiers. Use
39
39
  #
40
40
  # @param deployment_ids [Array<String>, nil] Query param: Filter to usage incurred by Claude Managed Agents sessions that spe
41
41
  #
@@ -43,13 +43,13 @@ module Anthropic
43
43
  #
44
44
  # @param environment_ids [Array<String>, nil] Query param: Filter to usage incurred by Claude Managed Agents sessions that ran
45
45
  #
46
- # @param exclude_deleted_users [Boolean] Query param: If true, omit rows whose `actor` is a `user_actor` with `deleted: t
46
+ # @param exclude_deleted_users [Boolean] Query param: If true, omit rows whose `actor` is a `user_actor` with
47
47
  #
48
- # @param group_by [Array<Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy>, nil] Query param: Dimensions to break cost out by (at most 5, not counting `cost_type
48
+ # @param group_by [Array<Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy>, nil] Query param: Dimensions to break cost out by (at most 5, not counting
49
49
  #
50
50
  # @param inference_geos [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsInferenceGeoFilter>, nil] Query param: Filter to specific inference regions. `not_available` matches rows
51
51
  #
52
- # @param limit [Integer] Query param: Number of rows per page (1-1000, default 20). `cost_type`/`token_ty
52
+ # @param limit [Integer] Query param: Number of rows per page (1-1000, default 20). `cost_type`/
53
53
  #
54
54
  # @param models [Array<String>, nil] Query param: Models to include. Defaults to all models. Use `group_by[]=model` t
55
55
  #
@@ -67,7 +67,7 @@ module Anthropic
67
67
  #
68
68
  # @param session_ids [Array<String>, nil] Query param: Filter to usage incurred by specific Claude Managed Agents sessions
69
69
  #
70
- # @param slack_channel_ids [Array<String>, nil] Query param: Filter to usage originating from specific Slack channels. Use `grou
70
+ # @param slack_channel_ids [Array<String>, nil] Query param: Filter to usage originating from specific Slack channels. Use
71
71
  #
72
72
  # @param speeds [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsSpeed>, nil] Query param: Filter to fast or standard inference mode. Use `group_by[]=speed` t
73
73
  #
@@ -75,9 +75,9 @@ module Anthropic
75
75
  #
76
76
  # @param user_profile_ids [Array<String>, nil] Query param: Filter to usage attributed to specific user profiles, by tagged use
77
77
  #
78
- # @param workspace_ids [Array<String>, nil] Query param: Filter to usage in specific workspaces, by tagged workspace ID (`wr
78
+ # @param workspace_ids [Array<String>, nil] Query param: Filter to usage in specific workspaces, by tagged workspace ID (
79
79
  #
80
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `analytics-usage-cost
80
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
81
81
  #
82
82
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
83
83
  #
@@ -36,13 +36,13 @@ module Anthropic
36
36
  #
37
37
  # @param context_windows [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsContextWindow>, nil] Filter to specific context-window pricing tiers. Use `group_by[]=context_window`
38
38
  #
39
- # @param ending_at [Time, nil] End of range, exclusive. When omitted, defaults to the earlier of now and `start
39
+ # @param ending_at [Time, nil] End of range, exclusive. When omitted, defaults to the earlier of now and
40
40
  #
41
41
  # @param group_by [Array<Symbol, Anthropic::Models::Beta::Organization::Analytics::CostReportListParams::GroupBy>, nil] Dimensions to break each time bucket out by. Defaults to no grouping (one total
42
42
  #
43
43
  # @param inference_geos [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsInferenceGeoFilter>, nil] Filter to specific inference regions. `not_available` matches rows where the reg
44
44
  #
45
- # @param limit [Integer, nil] Maximum number of time buckets per page. Defaults and caps vary by `bucket_width
45
+ # @param limit [Integer, nil] Maximum number of time buckets per page. Defaults and caps vary by
46
46
  #
47
47
  # @param models [Array<String>, nil] Models to include. Defaults to all models. Use `group_by[]=model` to break out p
48
48
  #
@@ -52,7 +52,7 @@ module Anthropic
52
52
  #
53
53
  # @param rbac_group_ids [Array<String>, nil] Filter to usage attributed to specific RBAC groups. Accepts tagged RBAC group ID
54
54
  #
55
- # @param slack_channel_ids [Array<String>, nil] Filter to usage originating from specific Slack channels. Use `group*by[]=slack*
55
+ # @param slack_channel_ids [Array<String>, nil] Filter to usage originating from specific Slack channels. Use
56
56
  #
57
57
  # @param speeds [Array<Symbol, Anthropic::Models::Beta::Organization::Analytics::CostReportListParams::Speed>, nil] Filter to fast or standard inference mode. Use `group_by[]=speed` to break out p
58
58
  #