anthropic 2.8.0 → 2.10.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 (931) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +11 -0
  5. data/lib/anthropic/errors.rb +4 -0
  6. data/lib/anthropic/helpers/bedrock/client.rb +6 -6
  7. data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
  8. data/lib/anthropic/helpers/tools/runner.rb +21 -4
  9. data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
  10. data/lib/anthropic/internal/tracing.rb +1 -0
  11. data/lib/anthropic/internal/type/file_input.rb +11 -0
  12. data/lib/anthropic/internal/type/union.rb +26 -0
  13. data/lib/anthropic/internal/util.rb +46 -12
  14. data/lib/anthropic/models/anthropic_beta.rb +47 -30
  15. data/lib/anthropic/models/authentication_error.rb +2 -22
  16. data/lib/anthropic/models/authentication_error_object.rb +28 -0
  17. data/lib/anthropic/models/bash_code_execution_tool_result_block.rb +4 -4
  18. data/lib/anthropic/models/bash_code_execution_tool_result_error.rb +3 -15
  19. data/lib/anthropic/models/bash_code_execution_tool_result_error_object.rb +21 -0
  20. data/lib/anthropic/models/beta/beta_advisor_tool_result_block.rb +4 -4
  21. data/lib/anthropic/models/beta/beta_advisor_tool_result_error.rb +2 -31
  22. data/lib/anthropic/models/beta/beta_advisor_tool_result_error_object.rb +41 -0
  23. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb +4 -4
  24. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb +4 -29
  25. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rb +39 -0
  26. data/lib/anthropic/models/beta/beta_bill_to.rb +20 -0
  27. data/lib/anthropic/models/beta/beta_billing_policy.rb +36 -0
  28. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +2 -2
  29. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +2 -2
  30. data/lib/anthropic/models/beta/beta_code_execution_tool_result_error.rb +3 -15
  31. data/lib/anthropic/models/beta/beta_code_execution_tool_result_error_object.rb +25 -0
  32. data/lib/anthropic/models/beta/beta_content_block.rb +1 -1
  33. data/lib/anthropic/models/beta/beta_content_block_param.rb +1 -1
  34. data/lib/anthropic/models/beta/beta_dream.rb +3 -3
  35. data/lib/anthropic/models/beta/beta_dream_error.rb +2 -27
  36. data/lib/anthropic/models/beta/beta_dream_error_object.rb +37 -0
  37. data/lib/anthropic/models/beta/beta_dreaming_error.rb +2 -90
  38. data/lib/anthropic/models/beta/beta_dreaming_error_object.rb +100 -0
  39. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -11
  40. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rb +22 -0
  41. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -19
  42. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rb +29 -0
  43. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
  44. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
  45. data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
  46. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
  47. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
  48. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
  49. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +4 -130
  50. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rb +143 -0
  51. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +41 -36
  52. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
  53. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
  54. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -11
  55. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rb +22 -0
  56. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -19
  57. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rb +30 -0
  58. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -11
  59. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rb +22 -0
  60. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -19
  61. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rb +30 -0
  62. data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +3 -3
  63. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -11
  64. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rb +22 -0
  65. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -19
  66. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rb +29 -0
  67. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
  68. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
  69. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
  70. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
  71. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -12
  72. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rb +23 -0
  73. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -20
  74. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rb +30 -0
  75. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
  76. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
  77. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
  78. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
  79. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -11
  80. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rb +22 -0
  81. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -19
  82. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rb +30 -0
  83. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
  84. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
  85. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +5 -11
  86. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rb +22 -0
  87. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -19
  88. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rb +30 -0
  89. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
  90. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
  91. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +5 -12
  92. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rb +23 -0
  93. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -20
  94. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rb +31 -0
  95. data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -19
  96. data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rb +30 -0
  97. data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -20
  98. data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rb +31 -0
  99. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +5 -11
  100. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rb +22 -0
  101. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -19
  102. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rb +30 -0
  103. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -11
  104. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rb +22 -0
  105. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -19
  106. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rb +29 -0
  107. data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -12
  108. data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rb +23 -0
  109. data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +3 -20
  110. data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rb +30 -0
  111. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -11
  112. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rb +22 -0
  113. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -19
  114. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rb +29 -0
  115. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -11
  116. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rb +22 -0
  117. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -19
  118. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rb +29 -0
  119. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
  120. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
  121. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
  122. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
  123. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -11
  124. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rb +22 -0
  125. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -19
  126. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rb +29 -0
  127. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
  128. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
  129. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +1 -1
  130. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +2 -26
  131. data/lib/anthropic/models/beta/beta_target_store_held_error_object.rb +36 -0
  132. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb +4 -4
  133. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb +4 -35
  134. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb +46 -0
  135. data/lib/anthropic/models/beta/beta_tool_search_tool_result_block.rb +4 -4
  136. data/lib/anthropic/models/beta/beta_tool_search_tool_result_error.rb +3 -34
  137. data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_object.rb +44 -0
  138. data/lib/anthropic/models/beta/beta_web_search_tool_request_error.rb +3 -15
  139. data/lib/anthropic/models/beta/beta_web_search_tool_request_error_object.rb +25 -0
  140. data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +2 -2
  141. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_content.rb +2 -2
  142. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +2 -2
  143. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +2 -2
  144. data/lib/anthropic/models/beta/beta_web_search_tool_result_error.rb +3 -15
  145. data/lib/anthropic/models/beta/beta_web_search_tool_result_error_object.rb +25 -0
  146. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  147. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +12 -2
  148. data/lib/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rb +34 -0
  149. data/lib/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rb +34 -0
  150. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -15
  151. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rb +25 -0
  152. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +2 -114
  153. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rb +124 -0
  154. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -52
  155. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rb +62 -0
  156. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +4 -26
  157. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rb +36 -0
  158. data/lib/anthropic/models/beta/message_count_tokens_params.rb +12 -1
  159. data/lib/anthropic/models/beta/message_create_params.rb +15 -1
  160. data/lib/anthropic/models/beta/messages/batch_create_params.rb +15 -1
  161. data/lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb +1 -2
  162. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
  163. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
  164. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
  165. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
  166. data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
  167. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
  168. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
  169. data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +11 -2
  170. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rb +4 -26
  171. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb +36 -0
  172. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb +3 -3
  173. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +14 -5
  174. data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
  175. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
  176. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
  177. data/lib/anthropic/models/beta/organization/beta_workspace.rb +7 -6
  178. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
  179. data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
  180. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +3 -2
  181. data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
  182. data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
  183. data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
  184. data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
  185. data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
  186. data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
  187. data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
  188. data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
  189. data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
  190. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
  191. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
  192. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +7 -6
  193. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +9 -7
  194. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
  195. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
  196. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -84
  197. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rb +94 -0
  198. data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rb +4 -85
  199. data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb +95 -0
  200. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +4 -99
  201. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rb +109 -0
  202. data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +4 -25
  203. data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb +35 -0
  204. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +4 -90
  205. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rb +100 -0
  206. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +4 -90
  207. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rb +100 -0
  208. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +4 -83
  209. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rb +93 -0
  210. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +4 -82
  211. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rb +92 -0
  212. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +4 -82
  213. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rb +92 -0
  214. data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +4 -24
  215. data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rb +34 -0
  216. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +4 -98
  217. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rb +108 -0
  218. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +4 -97
  219. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rb +107 -0
  220. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +4 -97
  221. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rb +107 -0
  222. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +4 -97
  223. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rb +107 -0
  224. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +4 -97
  225. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rb +107 -0
  226. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +36 -34
  227. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +2 -2
  228. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +2 -2
  229. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +2 -2
  230. data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +4 -24
  231. data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rb +34 -0
  232. data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +4 -24
  233. data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rb +34 -0
  234. data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rb +4 -86
  235. data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rb +96 -0
  236. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -84
  237. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rb +94 -0
  238. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +4 -24
  239. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rb +34 -0
  240. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +4 -73
  241. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +3 -3
  242. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rb +83 -0
  243. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +5 -5
  244. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +4 -19
  245. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rb +29 -0
  246. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +2 -2
  247. data/lib/anthropic/models/beta_api_error.rb +2 -22
  248. data/lib/anthropic/models/beta_api_error_object.rb +28 -0
  249. data/lib/anthropic/models/beta_authentication_error.rb +2 -22
  250. data/lib/anthropic/models/beta_authentication_error_object.rb +28 -0
  251. data/lib/anthropic/models/beta_billing_error.rb +2 -22
  252. data/lib/anthropic/models/beta_billing_error_object.rb +28 -0
  253. data/lib/anthropic/models/beta_error.rb +2 -82
  254. data/lib/anthropic/models/beta_error_object.rb +88 -0
  255. data/lib/anthropic/models/beta_error_response.rb +3 -3
  256. data/lib/anthropic/models/beta_gateway_timeout_error.rb +2 -22
  257. data/lib/anthropic/models/beta_gateway_timeout_error_object.rb +28 -0
  258. data/lib/anthropic/models/beta_invalid_request_error.rb +2 -22
  259. data/lib/anthropic/models/beta_invalid_request_error_object.rb +28 -0
  260. data/lib/anthropic/models/beta_not_found_error.rb +2 -22
  261. data/lib/anthropic/models/beta_not_found_error_object.rb +28 -0
  262. data/lib/anthropic/models/beta_overloaded_error.rb +2 -22
  263. data/lib/anthropic/models/beta_overloaded_error_object.rb +28 -0
  264. data/lib/anthropic/models/beta_permission_error.rb +2 -22
  265. data/lib/anthropic/models/beta_permission_error_object.rb +28 -0
  266. data/lib/anthropic/models/beta_rate_limit_error.rb +2 -22
  267. data/lib/anthropic/models/beta_rate_limit_error_object.rb +28 -0
  268. data/lib/anthropic/models/billing_error.rb +2 -22
  269. data/lib/anthropic/models/billing_error_object.rb +28 -0
  270. data/lib/anthropic/models/code_execution_tool_result_block.rb +2 -2
  271. data/lib/anthropic/models/code_execution_tool_result_block_content.rb +2 -2
  272. data/lib/anthropic/models/code_execution_tool_result_error.rb +3 -15
  273. data/lib/anthropic/models/code_execution_tool_result_error_object.rb +21 -0
  274. data/lib/anthropic/models/content_block.rb +1 -1
  275. data/lib/anthropic/models/content_block_param.rb +1 -1
  276. data/lib/anthropic/models/contract_spend_limit_reached_error.rb +19 -0
  277. data/lib/anthropic/models/contract_spend_limit_reached_error_details.rb +17 -0
  278. data/lib/anthropic/models/error_details.rb +67 -3
  279. data/lib/anthropic/models/error_object.rb +18 -18
  280. data/lib/anthropic/models/error_response.rb +2 -2
  281. data/lib/anthropic/models/gateway_timeout_error.rb +2 -22
  282. data/lib/anthropic/models/gateway_timeout_error_object.rb +28 -0
  283. data/lib/anthropic/models/invalid_request_error.rb +2 -22
  284. data/lib/anthropic/models/invalid_request_error_object.rb +28 -0
  285. data/lib/anthropic/models/linked_organization_billing_unavailable_error.rb +21 -0
  286. data/lib/anthropic/models/linked_organization_billing_unavailable_error_details.rb +19 -0
  287. data/lib/anthropic/models/linked_organization_spend_limit_reached_error.rb +21 -0
  288. data/lib/anthropic/models/linked_organization_spend_limit_reached_error_details.rb +19 -0
  289. data/lib/anthropic/models/not_found_error.rb +2 -22
  290. data/lib/anthropic/models/not_found_error_object.rb +28 -0
  291. data/lib/anthropic/models/organization/aws_external_key_config.rb +1 -2
  292. data/lib/anthropic/models/organization/external_key.rb +2 -2
  293. data/lib/anthropic/models/organization/external_key_create_params.rb +3 -2
  294. data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
  295. data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
  296. data/lib/anthropic/models/organization/rbac_role.rb +14 -5
  297. data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
  298. data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
  299. data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
  300. data/lib/anthropic/models/organization/workspace.rb +7 -6
  301. data/lib/anthropic/models/organization/workspace_create_params.rb +7 -6
  302. data/lib/anthropic/models/organization/workspace_update_params.rb +9 -7
  303. data/lib/anthropic/models/overloaded_error.rb +2 -22
  304. data/lib/anthropic/models/overloaded_error_object.rb +28 -0
  305. data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
  306. data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
  307. data/lib/anthropic/models/permission_error.rb +2 -22
  308. data/lib/anthropic/models/permission_error_object.rb +28 -0
  309. data/lib/anthropic/models/rate_limit_error.rb +2 -22
  310. data/lib/anthropic/models/rate_limit_error_object.rb +28 -0
  311. data/lib/anthropic/models/raw_content_block_start_event.rb +1 -1
  312. data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
  313. data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
  314. data/lib/anthropic/models/text_editor_code_execution_tool_result_block.rb +4 -4
  315. data/lib/anthropic/models/text_editor_code_execution_tool_result_error.rb +3 -21
  316. data/lib/anthropic/models/text_editor_code_execution_tool_result_error_object.rb +27 -0
  317. data/lib/anthropic/models/tool_search_tool_result_block.rb +4 -4
  318. data/lib/anthropic/models/tool_search_tool_result_error.rb +2 -21
  319. data/lib/anthropic/models/tool_search_tool_result_error_object.rb +27 -0
  320. data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +21 -0
  321. data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +19 -0
  322. data/lib/anthropic/models/user_profile_not_billable_error.rb +20 -0
  323. data/lib/anthropic/models/user_profile_not_billable_error_details.rb +18 -0
  324. data/lib/anthropic/models/user_profile_required_error.rb +20 -0
  325. data/lib/anthropic/models/user_profile_required_error_details.rb +18 -0
  326. data/lib/anthropic/models/web_search_tool_request_error.rb +2 -15
  327. data/lib/anthropic/models/web_search_tool_request_error_object.rb +21 -0
  328. data/lib/anthropic/models/web_search_tool_result_block.rb +2 -2
  329. data/lib/anthropic/models/web_search_tool_result_block_content.rb +2 -2
  330. data/lib/anthropic/models/web_search_tool_result_block_param.rb +2 -2
  331. data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +2 -2
  332. data/lib/anthropic/models/web_search_tool_result_error.rb +2 -15
  333. data/lib/anthropic/models/web_search_tool_result_error_object.rb +21 -0
  334. data/lib/anthropic/models.rb +84 -0
  335. data/lib/anthropic/resources/beta/environments/work.rb +21 -20
  336. data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
  337. data/lib/anthropic/resources/beta/messages.rb +65 -5
  338. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
  339. data/lib/anthropic/resources/beta/organization/plugins.rb +6 -2
  340. data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
  341. data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
  342. data/lib/anthropic/resources/messages.rb +48 -0
  343. data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
  344. data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
  345. data/lib/anthropic/version.rb +1 -1
  346. data/lib/anthropic.rb +123 -0
  347. data/rbi/anthropic/errors.rbi +4 -0
  348. data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
  349. data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
  350. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
  351. data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
  352. data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
  353. data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
  354. data/rbi/anthropic/internal/tracing.rbi +2 -0
  355. data/rbi/anthropic/internal/type/union.rbi +5 -0
  356. data/rbi/anthropic/internal/util.rbi +2 -2
  357. data/rbi/anthropic/models/anthropic_beta.rbi +46 -41
  358. data/rbi/anthropic/models/authentication_error.rbi +1 -29
  359. data/rbi/anthropic/models/authentication_error_object.rbi +38 -0
  360. data/rbi/anthropic/models/bash_code_execution_tool_result_block.rbi +2 -2
  361. data/rbi/anthropic/models/bash_code_execution_tool_result_error.rbi +2 -38
  362. data/rbi/anthropic/models/bash_code_execution_tool_result_error_object.rbi +44 -0
  363. data/rbi/anthropic/models/beta/beta_advisor_tool_result_block.rbi +2 -2
  364. data/rbi/anthropic/models/beta/beta_advisor_tool_result_error.rbi +2 -100
  365. data/rbi/anthropic/models/beta/beta_advisor_tool_result_error_object.rbi +110 -0
  366. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi +2 -2
  367. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi +2 -90
  368. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbi +101 -0
  369. data/rbi/anthropic/models/beta/beta_bill_to.rbi +28 -0
  370. data/rbi/anthropic/models/beta/beta_billing_policy.rbi +59 -0
  371. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -1
  372. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +1 -1
  373. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error.rbi +2 -41
  374. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbi +52 -0
  375. data/rbi/anthropic/models/beta/beta_content_block.rbi +6 -6
  376. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +1 -1
  377. data/rbi/anthropic/models/beta/beta_dream.rbi +6 -4
  378. data/rbi/anthropic/models/beta/beta_dream_error.rbi +1 -36
  379. data/rbi/anthropic/models/beta/beta_dream_error_object.rbi +49 -0
  380. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +1 -112
  381. data/rbi/anthropic/models/beta/beta_dreaming_error_object.rbi +124 -0
  382. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +2 -21
  383. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbi +32 -0
  384. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +2 -29
  385. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbi +40 -0
  386. data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
  387. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +14 -14
  388. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +2 -141
  389. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbi +152 -0
  390. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +32 -32
  391. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +2 -21
  392. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbi +32 -0
  393. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +2 -29
  394. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbi +40 -0
  395. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +2 -21
  396. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbi +32 -0
  397. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +2 -29
  398. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbi +40 -0
  399. data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +16 -16
  400. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +2 -21
  401. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbi +32 -0
  402. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +2 -29
  403. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbi +40 -0
  404. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +2 -22
  405. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbi +33 -0
  406. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +2 -30
  407. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbi +41 -0
  408. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +2 -21
  409. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbi +32 -0
  410. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +2 -29
  411. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbi +40 -0
  412. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
  413. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +2 -21
  414. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbi +32 -0
  415. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +2 -29
  416. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbi +40 -0
  417. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +2 -22
  418. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbi +33 -0
  419. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +2 -30
  420. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbi +41 -0
  421. data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +2 -29
  422. data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbi +40 -0
  423. data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +2 -30
  424. data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbi +41 -0
  425. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +2 -21
  426. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbi +32 -0
  427. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +2 -29
  428. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbi +40 -0
  429. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +2 -21
  430. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbi +32 -0
  431. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +2 -29
  432. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbi +40 -0
  433. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +2 -22
  434. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbi +33 -0
  435. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +2 -30
  436. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbi +41 -0
  437. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +2 -21
  438. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbi +32 -0
  439. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +2 -29
  440. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbi +40 -0
  441. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +2 -21
  442. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbi +32 -0
  443. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +2 -29
  444. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbi +40 -0
  445. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +2 -21
  446. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbi +32 -0
  447. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +2 -29
  448. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbi +40 -0
  449. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +6 -6
  450. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +2 -36
  451. data/rbi/anthropic/models/beta/beta_target_store_held_error_object.rbi +46 -0
  452. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi +2 -2
  453. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi +2 -99
  454. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbi +110 -0
  455. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block.rbi +2 -2
  456. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error.rbi +2 -94
  457. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbi +105 -0
  458. data/rbi/anthropic/models/beta/beta_web_search_tool_request_error.rbi +2 -39
  459. data/rbi/anthropic/models/beta/beta_web_search_tool_request_error_object.rbi +50 -0
  460. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +1 -1
  461. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_content.rbi +1 -1
  462. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +3 -3
  463. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +1 -1
  464. data/rbi/anthropic/models/beta/beta_web_search_tool_result_error.rbi +2 -41
  465. data/rbi/anthropic/models/beta/beta_web_search_tool_result_error_object.rbi +52 -0
  466. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
  467. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
  468. data/rbi/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbi +51 -0
  469. data/rbi/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbi +51 -0
  470. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +2 -28
  471. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbi +38 -0
  472. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -144
  473. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbi +154 -0
  474. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +2 -82
  475. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbi +92 -0
  476. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +2 -38
  477. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbi +48 -0
  478. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +23 -0
  479. data/rbi/anthropic/models/beta/message_create_params.rbi +29 -0
  480. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +30 -0
  481. data/rbi/anthropic/models/beta/organization/beta_aws_external_key_config.rbi +2 -4
  482. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
  483. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
  484. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
  485. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
  486. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +5 -6
  487. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
  488. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
  489. data/rbi/anthropic/models/beta/organization/beta_plugin_content_scan.rbi +22 -4
  490. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbi +2 -44
  491. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbi +54 -0
  492. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbi +3 -3
  493. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +23 -6
  494. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
  495. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
  496. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
  497. data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +14 -12
  498. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
  499. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
  500. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +7 -6
  501. data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +1 -2
  502. data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
  503. data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
  504. data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
  505. data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
  506. data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
  507. data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
  508. data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
  509. data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
  510. data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
  511. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
  512. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
  513. data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +14 -12
  514. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +18 -14
  515. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
  516. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +2 -137
  517. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbi +147 -0
  518. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbi +2 -138
  519. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbi +148 -0
  520. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +2 -152
  521. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbi +162 -0
  522. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +2 -34
  523. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbi +44 -0
  524. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +2 -143
  525. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbi +153 -0
  526. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +2 -143
  527. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbi +153 -0
  528. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +2 -136
  529. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbi +146 -0
  530. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +2 -135
  531. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbi +145 -0
  532. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +2 -135
  533. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbi +145 -0
  534. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +2 -33
  535. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbi +43 -0
  536. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbi +2 -149
  537. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbi +159 -0
  538. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbi +2 -148
  539. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbi +158 -0
  540. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbi +2 -148
  541. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbi +158 -0
  542. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbi +2 -148
  543. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbi +158 -0
  544. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbi +2 -148
  545. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbi +158 -0
  546. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +30 -30
  547. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +21 -21
  548. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +21 -21
  549. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +21 -21
  550. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +2 -33
  551. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbi +43 -0
  552. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +2 -33
  553. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbi +43 -0
  554. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbi +2 -139
  555. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbi +149 -0
  556. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +2 -137
  557. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbi +147 -0
  558. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +2 -33
  559. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbi +43 -0
  560. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +2 -95
  561. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +7 -7
  562. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbi +105 -0
  563. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +6 -6
  564. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +2 -53
  565. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbi +63 -0
  566. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +1 -1
  567. data/rbi/anthropic/models/beta_api_error.rbi +1 -29
  568. data/rbi/anthropic/models/beta_api_error_object.rbi +35 -0
  569. data/rbi/anthropic/models/beta_authentication_error.rbi +1 -32
  570. data/rbi/anthropic/models/beta_authentication_error_object.rbi +38 -0
  571. data/rbi/anthropic/models/beta_billing_error.rbi +1 -29
  572. data/rbi/anthropic/models/beta_billing_error_object.rbi +35 -0
  573. data/rbi/anthropic/models/beta_error.rbi +1 -73
  574. data/rbi/anthropic/models/beta_error_object.rbi +97 -0
  575. data/rbi/anthropic/models/beta_error_response.rbi +11 -11
  576. data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +1 -32
  577. data/rbi/anthropic/models/beta_gateway_timeout_error_object.rbi +38 -0
  578. data/rbi/anthropic/models/beta_invalid_request_error.rbi +1 -32
  579. data/rbi/anthropic/models/beta_invalid_request_error_object.rbi +38 -0
  580. data/rbi/anthropic/models/beta_not_found_error.rbi +1 -29
  581. data/rbi/anthropic/models/beta_not_found_error_object.rbi +38 -0
  582. data/rbi/anthropic/models/beta_overloaded_error.rbi +1 -29
  583. data/rbi/anthropic/models/beta_overloaded_error_object.rbi +38 -0
  584. data/rbi/anthropic/models/beta_permission_error.rbi +1 -29
  585. data/rbi/anthropic/models/beta_permission_error_object.rbi +38 -0
  586. data/rbi/anthropic/models/beta_rate_limit_error.rbi +1 -29
  587. data/rbi/anthropic/models/beta_rate_limit_error_object.rbi +38 -0
  588. data/rbi/anthropic/models/billing_error.rbi +1 -29
  589. data/rbi/anthropic/models/billing_error_object.rbi +35 -0
  590. data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -1
  591. data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +1 -1
  592. data/rbi/anthropic/models/code_execution_tool_result_error.rbi +2 -36
  593. data/rbi/anthropic/models/code_execution_tool_result_error_object.rbi +42 -0
  594. data/rbi/anthropic/models/content_block.rbi +5 -5
  595. data/rbi/anthropic/models/content_block_param.rbi +1 -1
  596. data/rbi/anthropic/models/contract_spend_limit_reached_error.rbi +16 -0
  597. data/rbi/anthropic/models/contract_spend_limit_reached_error_details.rbi +27 -0
  598. data/rbi/anthropic/models/error_details.rbi +61 -1
  599. data/rbi/anthropic/models/error_object.rbi +8 -8
  600. data/rbi/anthropic/models/error_response.rbi +8 -8
  601. data/rbi/anthropic/models/gateway_timeout_error.rbi +1 -29
  602. data/rbi/anthropic/models/gateway_timeout_error_object.rbi +38 -0
  603. data/rbi/anthropic/models/invalid_request_error.rbi +1 -29
  604. data/rbi/anthropic/models/invalid_request_error_object.rbi +38 -0
  605. data/rbi/anthropic/models/linked_organization_billing_unavailable_error.rbi +20 -0
  606. data/rbi/anthropic/models/linked_organization_billing_unavailable_error_details.rbi +29 -0
  607. data/rbi/anthropic/models/linked_organization_spend_limit_reached_error.rbi +20 -0
  608. data/rbi/anthropic/models/linked_organization_spend_limit_reached_error_details.rbi +29 -0
  609. data/rbi/anthropic/models/not_found_error.rbi +1 -29
  610. data/rbi/anthropic/models/not_found_error_object.rbi +35 -0
  611. data/rbi/anthropic/models/organization/aws_external_key_config.rbi +2 -4
  612. data/rbi/anthropic/models/organization/external_key.rbi +5 -6
  613. data/rbi/anthropic/models/organization/external_key_create_params.rbi +7 -6
  614. data/rbi/anthropic/models/organization/external_key_update_params.rbi +1 -2
  615. data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
  616. data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
  617. data/rbi/anthropic/models/organization/rbac_role.rbi +20 -6
  618. data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
  619. data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
  620. data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
  621. data/rbi/anthropic/models/organization/workspace.rbi +14 -12
  622. data/rbi/anthropic/models/organization/workspace_create_params.rbi +14 -12
  623. data/rbi/anthropic/models/organization/workspace_update_params.rbi +18 -14
  624. data/rbi/anthropic/models/overloaded_error.rbi +1 -29
  625. data/rbi/anthropic/models/overloaded_error_object.rbi +35 -0
  626. data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
  627. data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
  628. data/rbi/anthropic/models/permission_error.rbi +1 -29
  629. data/rbi/anthropic/models/permission_error_object.rbi +35 -0
  630. data/rbi/anthropic/models/rate_limit_error.rbi +1 -29
  631. data/rbi/anthropic/models/rate_limit_error_object.rbi +35 -0
  632. data/rbi/anthropic/models/raw_content_block_start_event.rbi +5 -5
  633. data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
  634. data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
  635. data/rbi/anthropic/models/text_editor_code_execution_tool_result_block.rbi +2 -2
  636. data/rbi/anthropic/models/text_editor_code_execution_tool_result_error.rbi +2 -50
  637. data/rbi/anthropic/models/text_editor_code_execution_tool_result_error_object.rbi +56 -0
  638. data/rbi/anthropic/models/tool_search_tool_result_block.rbi +2 -2
  639. data/rbi/anthropic/models/tool_search_tool_result_error.rbi +2 -44
  640. data/rbi/anthropic/models/tool_search_tool_result_error_object.rbi +50 -0
  641. data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +18 -0
  642. data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +29 -0
  643. data/rbi/anthropic/models/user_profile_not_billable_error.rbi +17 -0
  644. data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +28 -0
  645. data/rbi/anthropic/models/user_profile_required_error.rbi +17 -0
  646. data/rbi/anthropic/models/user_profile_required_error_details.rbi +28 -0
  647. data/rbi/anthropic/models/web_search_tool_request_error.rbi +2 -35
  648. data/rbi/anthropic/models/web_search_tool_request_error_object.rbi +41 -0
  649. data/rbi/anthropic/models/web_search_tool_result_block.rbi +1 -1
  650. data/rbi/anthropic/models/web_search_tool_result_block_content.rbi +1 -1
  651. data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +3 -3
  652. data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +1 -1
  653. data/rbi/anthropic/models/web_search_tool_result_error.rbi +1 -35
  654. data/rbi/anthropic/models/web_search_tool_result_error_object.rbi +41 -0
  655. data/rbi/anthropic/models.rbi +101 -0
  656. data/rbi/anthropic/resources/beta/environments/work.rbi +21 -20
  657. data/rbi/anthropic/resources/beta/messages.rbi +50 -0
  658. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
  659. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +3 -2
  660. data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
  661. data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
  662. data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
  663. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +6 -3
  664. data/rbi/anthropic/resources/beta/organization/plugins.rbi +10 -4
  665. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +17 -13
  666. data/rbi/anthropic/resources/organization/external_keys.rbi +3 -2
  667. data/rbi/anthropic/resources/organization/workspaces.rbi +16 -13
  668. data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
  669. data/sig/anthropic/errors.rbs +4 -0
  670. data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
  671. data/sig/anthropic/internal/tracing.rbs +1 -0
  672. data/sig/anthropic/internal/type/union.rbs +4 -0
  673. data/sig/anthropic/internal/util.rbs +1 -1
  674. data/sig/anthropic/models/anthropic_beta.rbs +23 -21
  675. data/sig/anthropic/models/authentication_error.rbs +1 -11
  676. data/sig/anthropic/models/authentication_error_object.rbs +16 -0
  677. data/sig/anthropic/models/bash_code_execution_tool_result_block.rbs +1 -1
  678. data/sig/anthropic/models/bash_code_execution_tool_result_error.rbs +1 -21
  679. data/sig/anthropic/models/bash_code_execution_tool_result_error_object.rbs +25 -0
  680. data/sig/anthropic/models/beta/beta_advisor_tool_result_block.rbs +1 -1
  681. data/sig/anthropic/models/beta/beta_advisor_tool_result_error.rbs +1 -44
  682. data/sig/anthropic/models/beta/beta_advisor_tool_result_error_object.rbs +52 -0
  683. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs +1 -1
  684. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs +1 -40
  685. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbs +48 -0
  686. data/sig/anthropic/models/beta/beta_bill_to.rbs +18 -0
  687. data/sig/anthropic/models/beta/beta_billing_policy.rbs +33 -0
  688. data/sig/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbs +1 -1
  689. data/sig/anthropic/models/beta/beta_code_execution_tool_result_error.rbs +1 -21
  690. data/sig/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbs +29 -0
  691. data/sig/anthropic/models/beta/beta_dream.rbs +4 -4
  692. data/sig/anthropic/models/beta/beta_dream_error.rbs +1 -11
  693. data/sig/anthropic/models/beta/beta_dream_error_object.rbs +19 -0
  694. data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -92
  695. data/sig/anthropic/models/beta/beta_dreaming_error_object.rbs +101 -0
  696. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +1 -10
  697. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbs +18 -0
  698. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +1 -12
  699. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbs +20 -0
  700. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -2
  701. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +1 -108
  702. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbs +116 -0
  703. data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +32 -32
  704. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +1 -10
  705. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbs +18 -0
  706. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +1 -15
  707. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbs +23 -0
  708. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +1 -10
  709. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbs +18 -0
  710. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +1 -15
  711. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbs +23 -0
  712. data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -4
  713. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +1 -10
  714. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbs +18 -0
  715. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +1 -12
  716. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbs +20 -0
  717. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +1 -10
  718. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbs +18 -0
  719. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +1 -15
  720. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbs +23 -0
  721. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +1 -10
  722. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbs +18 -0
  723. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +1 -15
  724. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbs +23 -0
  725. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +1 -10
  726. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbs +18 -0
  727. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +1 -15
  728. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbs +23 -0
  729. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +1 -12
  730. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbs +20 -0
  731. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +1 -18
  732. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbs +26 -0
  733. data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +1 -18
  734. data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbs +26 -0
  735. data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +1 -15
  736. data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbs +23 -0
  737. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +1 -10
  738. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbs +18 -0
  739. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +1 -18
  740. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbs +26 -0
  741. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +1 -10
  742. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbs +18 -0
  743. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +1 -12
  744. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbs +20 -0
  745. data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +1 -10
  746. data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbs +18 -0
  747. data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +1 -12
  748. data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbs +20 -0
  749. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +1 -10
  750. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbs +18 -0
  751. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +1 -12
  752. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbs +20 -0
  753. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +1 -10
  754. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbs +18 -0
  755. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +1 -12
  756. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbs +20 -0
  757. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +1 -10
  758. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbs +18 -0
  759. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +1 -15
  760. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbs +23 -0
  761. data/sig/anthropic/models/beta/beta_target_store_held_error.rbs +1 -14
  762. data/sig/anthropic/models/beta/beta_target_store_held_error_object.rbs +22 -0
  763. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs +1 -1
  764. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs +1 -45
  765. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs +53 -0
  766. data/sig/anthropic/models/beta/beta_tool_search_tool_result_block.rbs +1 -1
  767. data/sig/anthropic/models/beta/beta_tool_search_tool_result_error.rbs +1 -43
  768. data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbs +51 -0
  769. data/sig/anthropic/models/beta/beta_web_search_tool_request_error.rbs +1 -21
  770. data/sig/anthropic/models/beta/beta_web_search_tool_request_error_object.rbs +29 -0
  771. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_content.rbs +1 -1
  772. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +1 -1
  773. data/sig/anthropic/models/beta/beta_web_search_tool_result_error.rbs +1 -21
  774. data/sig/anthropic/models/beta/beta_web_search_tool_result_error_object.rbs +29 -0
  775. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
  776. data/sig/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbs +30 -0
  777. data/sig/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbs +30 -0
  778. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +1 -14
  779. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbs +22 -0
  780. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +1 -112
  781. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbs +120 -0
  782. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +1 -37
  783. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbs +45 -0
  784. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +1 -20
  785. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbs +28 -0
  786. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
  787. data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
  788. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +5 -0
  789. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
  790. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
  791. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
  792. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
  793. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +5 -1
  794. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +5 -1
  795. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbs +1 -18
  796. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbs +26 -0
  797. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbs +4 -4
  798. data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
  799. data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
  800. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
  801. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
  802. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
  803. data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
  804. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +5 -1
  805. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +5 -1
  806. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +1 -64
  807. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbs +72 -0
  808. data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbs +1 -64
  809. data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs +72 -0
  810. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +1 -74
  811. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbs +82 -0
  812. data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +1 -15
  813. data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbs +23 -0
  814. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +1 -69
  815. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbs +77 -0
  816. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +1 -69
  817. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbs +77 -0
  818. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +1 -64
  819. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbs +72 -0
  820. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +1 -64
  821. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbs +72 -0
  822. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +1 -64
  823. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbs +72 -0
  824. data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +1 -12
  825. data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbs +20 -0
  826. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbs +1 -69
  827. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbs +77 -0
  828. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbs +1 -69
  829. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbs +77 -0
  830. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbs +1 -69
  831. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbs +77 -0
  832. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbs +1 -69
  833. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbs +77 -0
  834. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbs +1 -69
  835. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbs +77 -0
  836. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +60 -60
  837. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -2
  838. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -2
  839. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -2
  840. data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +1 -12
  841. data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbs +20 -0
  842. data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +1 -12
  843. data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbs +20 -0
  844. data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbs +1 -64
  845. data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbs +72 -0
  846. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +1 -64
  847. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbs +72 -0
  848. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +1 -12
  849. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbs +20 -0
  850. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +1 -58
  851. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +4 -4
  852. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbs +66 -0
  853. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +4 -4
  854. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +1 -21
  855. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbs +29 -0
  856. data/sig/anthropic/models/beta_api_error.rbs +1 -11
  857. data/sig/anthropic/models/beta_api_error_object.rbs +15 -0
  858. data/sig/anthropic/models/beta_authentication_error.rbs +1 -12
  859. data/sig/anthropic/models/beta_authentication_error_object.rbs +16 -0
  860. data/sig/anthropic/models/beta_billing_error.rbs +1 -11
  861. data/sig/anthropic/models/beta_billing_error_object.rbs +15 -0
  862. data/sig/anthropic/models/beta_error.rbs +1 -85
  863. data/sig/anthropic/models/beta_error_object.rbs +89 -0
  864. data/sig/anthropic/models/beta_error_response.rbs +4 -4
  865. data/sig/anthropic/models/beta_gateway_timeout_error.rbs +1 -11
  866. data/sig/anthropic/models/beta_gateway_timeout_error_object.rbs +16 -0
  867. data/sig/anthropic/models/beta_invalid_request_error.rbs +1 -12
  868. data/sig/anthropic/models/beta_invalid_request_error_object.rbs +16 -0
  869. data/sig/anthropic/models/beta_not_found_error.rbs +1 -11
  870. data/sig/anthropic/models/beta_not_found_error_object.rbs +16 -0
  871. data/sig/anthropic/models/beta_overloaded_error.rbs +1 -11
  872. data/sig/anthropic/models/beta_overloaded_error_object.rbs +16 -0
  873. data/sig/anthropic/models/beta_permission_error.rbs +1 -11
  874. data/sig/anthropic/models/beta_permission_error_object.rbs +16 -0
  875. data/sig/anthropic/models/beta_rate_limit_error.rbs +1 -11
  876. data/sig/anthropic/models/beta_rate_limit_error_object.rbs +16 -0
  877. data/sig/anthropic/models/billing_error.rbs +1 -11
  878. data/sig/anthropic/models/billing_error_object.rbs +15 -0
  879. data/sig/anthropic/models/code_execution_tool_result_block_content.rbs +1 -1
  880. data/sig/anthropic/models/code_execution_tool_result_error.rbs +1 -21
  881. data/sig/anthropic/models/code_execution_tool_result_error_object.rbs +25 -0
  882. data/sig/anthropic/models/contract_spend_limit_reached_error.rbs +9 -0
  883. data/sig/anthropic/models/contract_spend_limit_reached_error_details.rbs +14 -0
  884. data/sig/anthropic/models/error_details.rbs +66 -0
  885. data/sig/anthropic/models/error_object.rbs +16 -16
  886. data/sig/anthropic/models/gateway_timeout_error.rbs +1 -11
  887. data/sig/anthropic/models/gateway_timeout_error_object.rbs +16 -0
  888. data/sig/anthropic/models/invalid_request_error.rbs +1 -12
  889. data/sig/anthropic/models/invalid_request_error_object.rbs +16 -0
  890. data/sig/anthropic/models/linked_organization_billing_unavailable_error.rbs +9 -0
  891. data/sig/anthropic/models/linked_organization_billing_unavailable_error_details.rbs +16 -0
  892. data/sig/anthropic/models/linked_organization_spend_limit_reached_error.rbs +9 -0
  893. data/sig/anthropic/models/linked_organization_spend_limit_reached_error_details.rbs +16 -0
  894. data/sig/anthropic/models/not_found_error.rbs +1 -11
  895. data/sig/anthropic/models/not_found_error_object.rbs +15 -0
  896. data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
  897. data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
  898. data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
  899. data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
  900. data/sig/anthropic/models/overloaded_error.rbs +1 -11
  901. data/sig/anthropic/models/overloaded_error_object.rbs +15 -0
  902. data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
  903. data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
  904. data/sig/anthropic/models/permission_error.rbs +1 -11
  905. data/sig/anthropic/models/permission_error_object.rbs +15 -0
  906. data/sig/anthropic/models/rate_limit_error.rbs +1 -11
  907. data/sig/anthropic/models/rate_limit_error_object.rbs +15 -0
  908. data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
  909. data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
  910. data/sig/anthropic/models/text_editor_code_execution_tool_result_block.rbs +1 -1
  911. data/sig/anthropic/models/text_editor_code_execution_tool_result_error.rbs +1 -26
  912. data/sig/anthropic/models/text_editor_code_execution_tool_result_error_object.rbs +30 -0
  913. data/sig/anthropic/models/tool_search_tool_result_block.rbs +1 -1
  914. data/sig/anthropic/models/tool_search_tool_result_error.rbs +1 -26
  915. data/sig/anthropic/models/tool_search_tool_result_error_object.rbs +30 -0
  916. data/sig/anthropic/models/user_profile_billing_not_authorized_error.rbs +9 -0
  917. data/sig/anthropic/models/user_profile_billing_not_authorized_error_details.rbs +16 -0
  918. data/sig/anthropic/models/user_profile_not_billable_error.rbs +9 -0
  919. data/sig/anthropic/models/user_profile_not_billable_error_details.rbs +14 -0
  920. data/sig/anthropic/models/user_profile_required_error.rbs +9 -0
  921. data/sig/anthropic/models/user_profile_required_error_details.rbs +14 -0
  922. data/sig/anthropic/models/web_search_tool_request_error.rbs +1 -21
  923. data/sig/anthropic/models/web_search_tool_request_error_object.rbs +25 -0
  924. data/sig/anthropic/models/web_search_tool_result_block_content.rbs +1 -1
  925. data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +1 -1
  926. data/sig/anthropic/models/web_search_tool_result_error.rbs +1 -21
  927. data/sig/anthropic/models/web_search_tool_result_error_object.rbs +25 -0
  928. data/sig/anthropic/models.rbs +80 -0
  929. data/sig/anthropic/resources/beta/messages.rbs +5 -0
  930. data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
  931. metadata +371 -2
@@ -0,0 +1,124 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module MemoryStores
7
+ module BetaManagedAgentsErrorObject
8
+ extend Anthropic::Internal::Type::Union
9
+
10
+ discriminator :type
11
+
12
+ variant :invalid_request_error, -> { Anthropic::BetaInvalidRequestErrorObject }
13
+
14
+ variant :authentication_error, -> { Anthropic::BetaAuthenticationErrorObject }
15
+
16
+ variant :billing_error, -> { Anthropic::BetaBillingErrorObject }
17
+
18
+ variant :permission_error, -> { Anthropic::BetaPermissionErrorObject }
19
+
20
+ variant :not_found_error, -> { Anthropic::BetaNotFoundErrorObject }
21
+
22
+ variant :rate_limit_error, -> { Anthropic::BetaRateLimitErrorObject }
23
+
24
+ variant :timeout_error, -> { Anthropic::BetaGatewayTimeoutErrorObject }
25
+
26
+ variant :api_error, -> { Anthropic::BetaAPIErrorObject }
27
+
28
+ variant :overloaded_error, -> { Anthropic::BetaOverloadedErrorObject }
29
+
30
+ # The error returned with HTTP status 409 when a request's precondition doesn't hold for the memory's current state, such as `precondition` on an update or `expected_content_sha256` on a delete.
31
+ #
32
+ # The error doesn't include the memory's current state. Retrieve the memory to see its current content and `content_sha256` before you retry.
33
+ #
34
+ # See the [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency) to learn more about safe content edits with content hash preconditions.
35
+ variant :memory_precondition_failed_error,
36
+ -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedErrorObject }
37
+
38
+ # The error returned with HTTP status 409 when you create or rename a memory and the path you give is already used by another memory or overlaps another memory's path.
39
+ #
40
+ # Two paths overlap when one is an ancestor of the other, such as `/notes` and `/notes/todo.md`. To free the path, rename or delete the memory that `conflicting_memory_id` references, then retry. To change that memory instead of creating a new one, update it.
41
+ #
42
+ # To handle the error in code, use `conflicting_path` and `conflicting_memory_id` instead of `message`.
43
+ variant :memory_path_conflict_error,
44
+ -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject }
45
+
46
+ variant :conflict_error, -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsConflictErrorObject }
47
+
48
+ module Type
49
+ extend Anthropic::Internal::Type::Enum
50
+
51
+ INVALID_REQUEST_ERROR = :invalid_request_error
52
+ AUTHENTICATION_ERROR = :authentication_error
53
+ BILLING_ERROR = :billing_error
54
+ PERMISSION_ERROR = :permission_error
55
+ NOT_FOUND_ERROR = :not_found_error
56
+ RATE_LIMIT_ERROR = :rate_limit_error
57
+ TIMEOUT_ERROR = :timeout_error
58
+ API_ERROR = :api_error
59
+ OVERLOADED_ERROR = :overloaded_error
60
+ MEMORY_PRECONDITION_FAILED_ERROR = :memory_precondition_failed_error
61
+ MEMORY_PATH_CONFLICT_ERROR = :memory_path_conflict_error
62
+ CONFLICT_ERROR = :conflict_error
63
+
64
+ # @!method self.values
65
+ # @return [Array<Symbol>]
66
+ end
67
+
68
+ # @!method self.variants
69
+ # @return [Array(Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsConflictErrorObject)]
70
+
71
+ # Creates a new instance of the variant class whose `type` matches the given
72
+ # value, passing the remaining arguments to its constructor.
73
+ #
74
+ # Some parameter documentations has been truncated, see
75
+ # {Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsErrorObject} for more
76
+ # details.
77
+ #
78
+ # @param type [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsErrorObject::Type, String]
79
+ #
80
+ # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
81
+ #
82
+ # @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
83
+ #
84
+ # @option args [String] :conflicting_memory_id The ID of the memory that blocked the write (`mem_...`), or an empty string if t
85
+ #
86
+ # @option args [String] :conflicting_path The path that blocked the write: the requested path, or the path of a memory tha
87
+ #
88
+ # @raise [ArgumentError]
89
+ # @return [Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsConflictErrorObject]
90
+ def self.new(type:, **args)
91
+ case type.to_sym
92
+ when :invalid_request_error
93
+ Anthropic::BetaInvalidRequestErrorObject.new(**args)
94
+ when :authentication_error
95
+ Anthropic::BetaAuthenticationErrorObject.new(**args)
96
+ when :billing_error
97
+ Anthropic::BetaBillingErrorObject.new(**args)
98
+ when :permission_error
99
+ Anthropic::BetaPermissionErrorObject.new(**args)
100
+ when :not_found_error
101
+ Anthropic::BetaNotFoundErrorObject.new(**args)
102
+ when :rate_limit_error
103
+ Anthropic::BetaRateLimitErrorObject.new(**args)
104
+ when :timeout_error
105
+ Anthropic::BetaGatewayTimeoutErrorObject.new(**args)
106
+ when :api_error
107
+ Anthropic::BetaAPIErrorObject.new(**args)
108
+ when :overloaded_error
109
+ Anthropic::BetaOverloadedErrorObject.new(**args)
110
+ when :memory_precondition_failed_error
111
+ Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedErrorObject.new(**args)
112
+ when :memory_path_conflict_error
113
+ Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject.new(**args)
114
+ when :conflict_error
115
+ Anthropic::Beta::MemoryStores::BetaManagedAgentsConflictErrorObject.new(**args)
116
+ else
117
+ raise ArgumentError, "unknown type: #{type}"
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
123
+ end
124
+ end
@@ -4,58 +4,10 @@ module Anthropic
4
4
  module Models
5
5
  module Beta
6
6
  module MemoryStores
7
- class BetaManagedAgentsMemoryPathConflictError < Anthropic::Internal::Type::BaseModel
8
- # @!attribute type
9
- #
10
- # @return [Symbol, :memory_path_conflict_error]
11
- required :type, const: :memory_path_conflict_error
12
-
13
- # @!attribute conflicting_memory_id
14
- # The ID of the memory that blocked the write (`mem_...`), or an empty string if
15
- # that memory can't be identified.
16
- #
17
- # Retry the request when it is empty.
18
- #
19
- # @return [String, nil]
20
- optional :conflicting_memory_id, String
21
-
22
- # @!attribute conflicting_path
23
- # The path that blocked the write: the requested path, or the path of a memory
24
- # that is an ancestor or descendant of it.
25
- #
26
- # @return [String, nil]
27
- optional :conflicting_path, String
28
-
29
- # @!attribute message
30
- #
31
- # @return [String, nil]
32
- optional :message, String
33
-
34
- # @!method initialize(conflicting_memory_id: nil, conflicting_path: nil, message: nil, type: :memory_path_conflict_error)
35
- # The error returned with HTTP status 409 when you create or rename a memory and
36
- # the path you give is already used by another memory or overlaps another memory's
37
- # path.
38
- #
39
- # Two paths overlap when one is an ancestor of the other, such as `/notes` and
40
- # `/notes/todo.md`. To free the path, rename or delete the memory that
41
- # `conflicting_memory_id` references, then retry. To change that memory instead of
42
- # creating a new one, update it.
43
- #
44
- # To handle the error in code, use `conflicting_path` and `conflicting_memory_id`
45
- # instead of `message`.
46
- #
47
- # Some parameter documentations has been truncated, see
48
- # {Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictError}
49
- # for more details.
50
- #
51
- # @param conflicting_memory_id [String] The ID of the memory that blocked the write (`mem_...`), or an empty string if t
52
- #
53
- # @param conflicting_path [String] The path that blocked the write: the requested path, or the path of a memory tha
54
- #
55
- # @param message [String]
56
- #
57
- # @param type [Symbol, :memory_path_conflict_error]
58
- end
7
+ # @deprecated BetaManagedAgentsMemoryPathConflictError has been renamed to
8
+ # BetaManagedAgentsMemoryPathConflictErrorObject
9
+ BetaManagedAgentsMemoryPathConflictError =
10
+ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject
59
11
  end
60
12
  end
61
13
  end
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module MemoryStores
7
+ class BetaManagedAgentsMemoryPathConflictErrorObject < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :memory_path_conflict_error]
11
+ required :type, const: :memory_path_conflict_error
12
+
13
+ # @!attribute conflicting_memory_id
14
+ # The ID of the memory that blocked the write (`mem_...`), or an empty string if
15
+ # that memory can't be identified.
16
+ #
17
+ # Retry the request when it is empty.
18
+ #
19
+ # @return [String, nil]
20
+ optional :conflicting_memory_id, String
21
+
22
+ # @!attribute conflicting_path
23
+ # The path that blocked the write: the requested path, or the path of a memory
24
+ # that is an ancestor or descendant of it.
25
+ #
26
+ # @return [String, nil]
27
+ optional :conflicting_path, String
28
+
29
+ # @!attribute message
30
+ #
31
+ # @return [String, nil]
32
+ optional :message, String
33
+
34
+ # @!method initialize(conflicting_memory_id: nil, conflicting_path: nil, message: nil, type: :memory_path_conflict_error)
35
+ # The error returned with HTTP status 409 when you create or rename a memory and
36
+ # the path you give is already used by another memory or overlaps another memory's
37
+ # path.
38
+ #
39
+ # Two paths overlap when one is an ancestor of the other, such as `/notes` and
40
+ # `/notes/todo.md`. To free the path, rename or delete the memory that
41
+ # `conflicting_memory_id` references, then retry. To change that memory instead of
42
+ # creating a new one, update it.
43
+ #
44
+ # To handle the error in code, use `conflicting_path` and `conflicting_memory_id`
45
+ # instead of `message`.
46
+ #
47
+ # Some parameter documentations has been truncated, see
48
+ # {Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictErrorObject}
49
+ # for more details.
50
+ #
51
+ # @param conflicting_memory_id [String] The ID of the memory that blocked the write (`mem_...`), or an empty string if t
52
+ #
53
+ # @param conflicting_path [String] The path that blocked the write: the requested path, or the path of a memory tha
54
+ #
55
+ # @param message [String]
56
+ #
57
+ # @param type [Symbol, :memory_path_conflict_error]
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -4,32 +4,10 @@ module Anthropic
4
4
  module Models
5
5
  module Beta
6
6
  module MemoryStores
7
- class BetaManagedAgentsMemoryPreconditionFailedError < Anthropic::Internal::Type::BaseModel
8
- # @!attribute type
9
- #
10
- # @return [Symbol, :memory_precondition_failed_error]
11
- required :type, const: :memory_precondition_failed_error
12
-
13
- # @!attribute message
14
- #
15
- # @return [String, nil]
16
- optional :message, String
17
-
18
- # @!method initialize(message: nil, type: :memory_precondition_failed_error)
19
- # The error returned with HTTP status 409 when a request's precondition doesn't
20
- # hold for the memory's current state, such as `precondition` on an update or
21
- # `expected_content_sha256` on a delete.
22
- #
23
- # The error doesn't include the memory's current state. Retrieve the memory to see
24
- # its current content and `content_sha256` before you retry.
25
- #
26
- # See the
27
- # [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency)
28
- # to learn more about safe content edits with content hash preconditions.
29
- #
30
- # @param message [String]
31
- # @param type [Symbol, :memory_precondition_failed_error]
32
- end
7
+ # @deprecated BetaManagedAgentsMemoryPreconditionFailedError has been renamed to
8
+ # BetaManagedAgentsMemoryPreconditionFailedErrorObject
9
+ BetaManagedAgentsMemoryPreconditionFailedError =
10
+ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedErrorObject
33
11
  end
34
12
  end
35
13
  end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module MemoryStores
7
+ class BetaManagedAgentsMemoryPreconditionFailedErrorObject < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :memory_precondition_failed_error]
11
+ required :type, const: :memory_precondition_failed_error
12
+
13
+ # @!attribute message
14
+ #
15
+ # @return [String, nil]
16
+ optional :message, String
17
+
18
+ # @!method initialize(message: nil, type: :memory_precondition_failed_error)
19
+ # The error returned with HTTP status 409 when a request's precondition doesn't
20
+ # hold for the memory's current state, such as `precondition` on an update or
21
+ # `expected_content_sha256` on a delete.
22
+ #
23
+ # The error doesn't include the memory's current state. Retrieve the memory to see
24
+ # its current content and `content_sha256` before you retry.
25
+ #
26
+ # See the
27
+ # [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency)
28
+ # to learn more about safe content edits with content hash preconditions.
29
+ #
30
+ # @param message [String]
31
+ # @param type [Symbol, :memory_precondition_failed_error]
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -91,6 +91,15 @@ module Anthropic
91
91
  # @return [Symbol, String, Anthropic::Models::Model]
92
92
  required :model, union: -> { Anthropic::Model }
93
93
 
94
+ # @!attribute billing_policy
95
+ # Declares which organization is billed when this body is sent to `/v1/messages`.
96
+ # Accepted here so that you can count the tokens of the exact body you will send,
97
+ # and otherwise ignored: counting tokens bills nobody, so no user profile is
98
+ # required.
99
+ #
100
+ # @return [Anthropic::Models::Beta::BetaBillingPolicy, nil]
101
+ optional :billing_policy, -> { Anthropic::Beta::BetaBillingPolicy }, nil?: true
102
+
94
103
  # @!attribute cache_control
95
104
  # Top-level cache control automatically applies a cache_control marker to the last
96
105
  # cacheable block in the request.
@@ -297,7 +306,7 @@ module Anthropic
297
306
  # @return [String, nil]
298
307
  optional :workspace_id, String
299
308
 
300
- # @!method initialize(messages:, model:, cache_control: nil, compaction: nil, context_management: nil, mcp_servers: nil, output_config: nil, output_format: nil, speed: nil, system_: nil, thinking: nil, tool_choice: nil, tools: nil, betas: nil, user_profile_id: nil, workspace_id: nil, request_options: {})
309
+ # @!method initialize(messages:, model:, billing_policy: nil, cache_control: nil, compaction: nil, context_management: nil, mcp_servers: nil, output_config: nil, output_format: nil, speed: nil, system_: nil, thinking: nil, tool_choice: nil, tools: nil, betas: nil, user_profile_id: nil, workspace_id: nil, request_options: {})
301
310
  # Some parameter documentations has been truncated, see
302
311
  # {Anthropic::Models::Beta::MessageCountTokensParams} for more details.
303
312
  #
@@ -305,6 +314,8 @@ module Anthropic
305
314
  #
306
315
  # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
307
316
  #
317
+ # @param billing_policy [Anthropic::Models::Beta::BetaBillingPolicy, nil] Declares which organization is billed when this body is sent to `/v1/messages`.
318
+ #
308
319
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
309
320
  #
310
321
  # @param compaction [Anthropic::Models::Beta::BetaCompactionConfig, nil] Compaction configuration.
@@ -110,6 +110,18 @@ module Anthropic
110
110
  # @return [Symbol, String, Anthropic::Models::Model]
111
111
  required :model, union: -> { Anthropic::Model }
112
112
 
113
+ # @!attribute billing_policy
114
+ # Declares which organization is billed for this request.
115
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
116
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
117
+ # of your organization. If that customer has not linked an Anthropic organization
118
+ # to the profile, or has not allowed your organization to bill it, the request is
119
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
120
+ # (the default), to be billed as usual.
121
+ #
122
+ # @return [Anthropic::Models::Beta::BetaBillingPolicy, nil]
123
+ optional :billing_policy, -> { Anthropic::Beta::BetaBillingPolicy }, nil?: true
124
+
113
125
  # @!attribute cache_control
114
126
  # Top-level cache control automatically applies a cache_control marker to the last
115
127
  # cacheable block in the request.
@@ -416,7 +428,7 @@ module Anthropic
416
428
  # @return [String, nil]
417
429
  optional :workspace_id, String
418
430
 
419
- # @!method initialize(max_tokens:, messages:, model:, cache_control: nil, compaction: nil, container: nil, context_management: nil, diagnostics: nil, fallback_credit_token: nil, fallbacks: nil, inference_geo: nil, mcp_servers: nil, metadata: nil, output_config: nil, output_format: nil, service_tier: nil, speed: nil, stop_sequences: nil, system_: nil, thinking: nil, thread: nil, tool_choice: nil, tools: nil, betas: nil, user_profile_id: nil, workspace_id: nil, request_options: {})
431
+ # @!method initialize(max_tokens:, messages:, model:, billing_policy: nil, cache_control: nil, compaction: nil, container: nil, context_management: nil, diagnostics: nil, fallback_credit_token: nil, fallbacks: nil, inference_geo: nil, mcp_servers: nil, metadata: nil, output_config: nil, output_format: nil, service_tier: nil, speed: nil, stop_sequences: nil, system_: nil, thinking: nil, thread: nil, tool_choice: nil, tools: nil, betas: nil, user_profile_id: nil, workspace_id: nil, request_options: {})
420
432
  # Some parameter documentations has been truncated, see
421
433
  # {Anthropic::Models::Beta::MessageCreateParams} for more details.
422
434
  #
@@ -426,6 +438,8 @@ module Anthropic
426
438
  #
427
439
  # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
428
440
  #
441
+ # @param billing_policy [Anthropic::Models::Beta::BetaBillingPolicy, nil] Declares which organization is billed for this request.
442
+ #
429
443
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
430
444
  #
431
445
  # @param compaction [Anthropic::Models::Beta::BetaCompactionConfig, nil] Compaction configuration.
@@ -188,6 +188,18 @@ module Anthropic
188
188
  # @return [Symbol, String, Anthropic::Models::Model]
189
189
  required :model, union: -> { Anthropic::Model }
190
190
 
191
+ # @!attribute billing_policy
192
+ # Declares which organization is billed for this request.
193
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
194
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
195
+ # of your organization. If that customer has not linked an Anthropic organization
196
+ # to the profile, or has not allowed your organization to bill it, the request is
197
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
198
+ # (the default), to be billed as usual.
199
+ #
200
+ # @return [Anthropic::Models::Beta::BetaBillingPolicy, nil]
201
+ optional :billing_policy, -> { Anthropic::Beta::BetaBillingPolicy }, nil?: true
202
+
191
203
  # @!attribute cache_control
192
204
  # Top-level cache control automatically applies a cache_control marker to the last
193
205
  # cacheable block in the request.
@@ -492,7 +504,7 @@ module Anthropic
492
504
  # @return [Array<Anthropic::Models::Beta::BetaTool, Anthropic::Models::Beta::BetaToolBash20241022, Anthropic::Models::Beta::BetaToolBash20250124, Anthropic::Models::Beta::BetaCodeExecutionTool20250522, Anthropic::Models::Beta::BetaCodeExecutionTool20250825, Anthropic::Models::Beta::BetaCodeExecutionTool20260120, Anthropic::Models::Beta::BetaCodeExecutionTool20260521, Anthropic::Models::Beta::BetaBrowserToolset20260801, Anthropic::Models::Beta::BetaToolComputerUse20241022, Anthropic::Models::Beta::BetaMemoryTool20250818, Anthropic::Models::Beta::BetaToolComputerUse20250124, Anthropic::Models::Beta::BetaToolTextEditor20241022, Anthropic::Models::Beta::BetaToolComputerUse20251124, Anthropic::Models::Beta::BetaComputerToolset20260801, Anthropic::Models::Beta::BetaToolTextEditor20250124, Anthropic::Models::Beta::BetaToolTextEditor20250429, Anthropic::Models::Beta::BetaToolTextEditor20250728, Anthropic::Models::Beta::BetaWebSearchTool20250305, Anthropic::Models::Beta::BetaWebFetchTool20250910, Anthropic::Models::Beta::BetaWebSearchTool20260209, Anthropic::Models::Beta::BetaWebFetchTool20260209, Anthropic::Models::Beta::BetaWebFetchTool20260309, Anthropic::Models::Beta::BetaWebSearchTool20260318, Anthropic::Models::Beta::BetaWebFetchTool20260318, Anthropic::Models::Beta::BetaAdvisorTool20260301, Anthropic::Models::Beta::BetaToolSearchToolBm25_20251119, Anthropic::Models::Beta::BetaToolSearchToolRegex20251119, Anthropic::Models::Beta::BetaMCPToolset>, nil]
493
505
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaToolUnion] }
494
506
 
495
- # @!method initialize(max_tokens:, messages:, model:, cache_control: nil, compaction: nil, container: nil, context_management: nil, diagnostics: nil, fallback_credit_token: nil, fallbacks: nil, inference_geo: nil, mcp_servers: nil, metadata: nil, output_config: nil, output_format: nil, service_tier: nil, speed: nil, stop_sequences: nil, stream: nil, system_: nil, thinking: nil, thread: nil, tool_choice: nil, tools: nil)
507
+ # @!method initialize(max_tokens:, messages:, model:, billing_policy: nil, cache_control: nil, compaction: nil, container: nil, context_management: nil, diagnostics: nil, fallback_credit_token: nil, fallbacks: nil, inference_geo: nil, mcp_servers: nil, metadata: nil, output_config: nil, output_format: nil, service_tier: nil, speed: nil, stop_sequences: nil, stream: nil, system_: nil, thinking: nil, thread: nil, tool_choice: nil, tools: nil)
496
508
  # Messages API creation parameters for the individual request.
497
509
  #
498
510
  # See the
@@ -509,6 +521,8 @@ module Anthropic
509
521
  #
510
522
  # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
511
523
  #
524
+ # @param billing_policy [Anthropic::Models::Beta::BetaBillingPolicy, nil] Declares which organization is billed for this request.
525
+ #
512
526
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
513
527
  #
514
528
  # @param compaction [Anthropic::Models::Beta::BetaCompactionConfig, nil] Compaction configuration.
@@ -7,8 +7,7 @@ module Anthropic
7
7
  class BetaAWSExternalKeyConfig < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute kms_arn
9
9
  # Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected,
10
- # and your organization's own key must be a single-Region key in your
11
- # organization's AWS account.
10
+ # and your organization's own key must be a single-Region key.
12
11
  #
13
12
  # @return [String]
14
13
  required :kms_arn, String
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # The Bundle has an attachment this API does not support editing, so its
8
+ # instructions can be changed only in claude.ai.
9
+ class BetaBundleAttachmentNotSupportedError < Anthropic::Errors::BadRequestError
10
+ # @!method error_code
11
+ # @return [Symbol, :bundle_attachment_not_supported]
12
+
13
+ # @return [Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails]
14
+ def details
15
+ Anthropic::Internal::Type::Converter.coerce(
16
+ Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails,
17
+ Anthropic::Internal::Util.dig(body, [:error, :details])
18
+ )
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaBundleAttachmentNotSupportedErrorDetails < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute error_code
9
+ #
10
+ # @return [Symbol, :bundle_attachment_not_supported]
11
+ required :error_code, const: :bundle_attachment_not_supported
12
+
13
+ # @!method initialize(error_code: :bundle_attachment_not_supported)
14
+ # The Bundle has an attachment this API does not support editing, so its
15
+ # instructions can be changed only in claude.ai.
16
+ #
17
+ # @param error_code [Symbol, :bundle_attachment_not_supported]
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # This Bundle's instructions are managed in claude.ai and can't be changed through
8
+ # the API.
9
+ class BetaBundleOnCallError < Anthropic::Errors::BadRequestError
10
+ # @!method error_code
11
+ # @return [Symbol, :bundle_on_call]
12
+
13
+ # @return [Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
14
+ def details
15
+ Anthropic::Internal::Type::Converter.coerce(
16
+ Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails,
17
+ Anthropic::Internal::Util.dig(body, [:error, :details])
18
+ )
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaBundleOnCallErrorDetails < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute error_code
9
+ #
10
+ # @return [Symbol, :bundle_on_call]
11
+ required :error_code, const: :bundle_on_call
12
+
13
+ # @!method initialize(error_code: :bundle_on_call)
14
+ # This Bundle's instructions are managed in claude.ai and can't be changed through
15
+ # the API.
16
+ #
17
+ # @param error_code [Symbol, :bundle_on_call]
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -58,8 +58,8 @@ module Anthropic
58
58
  # @!attribute user_profile_id
59
59
  # ID of the user profile the key is bound to, or null if the key is not bound to
60
60
  # one. A key bound to a user profile can only be attached to a Workspace that has
61
- # the same user profile. A key that isn't bound can be attached to a Workspace
62
- # whatever its user profile.
61
+ # the same user profile. A key that isn't bound can only be attached to a
62
+ # Workspace that has no user profile.
63
63
  #
64
64
  # @return [String, nil]
65
65
  required :user_profile_id, String, nil?: true
@@ -100,6 +100,8 @@ module Anthropic
100
100
  module EnabledEvent
101
101
  extend Anthropic::Internal::Type::Enum
102
102
 
103
+ EXTERNAL_KEY_FAILED = :"external_key.failed"
104
+ EXTERNAL_KEY_RECOVERED = :"external_key.recovered"
103
105
  USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
104
106
  USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
105
107
  USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
@@ -91,6 +91,8 @@ module Anthropic
91
91
  module EnabledEvent
92
92
  extend Anthropic::Internal::Type::Enum
93
93
 
94
+ EXTERNAL_KEY_FAILED = :"external_key.failed"
95
+ EXTERNAL_KEY_RECOVERED = :"external_key.recovered"
94
96
  USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
95
97
  USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
96
98
  USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
@@ -17,8 +17,17 @@ module Anthropic
17
17
  # @!attribute reason
18
18
  # The primary mechanism behind a `warn` or `fail`, such as `credential-exposure`
19
19
  # or `guardrail-tampering`; a mechanism this API does not yet name reads as
20
- # `other`. Null on a `pass`, whenever `assessment` is null, and when no mechanism
21
- # is reported for the verdict.
20
+ # `other`. Read `status` first: on an `errored` scan it is not a finding but why
21
+ # there is no verdict: `scan-invalid-archive`, the scan refused the version's
22
+ # archive, or could not process it, before checking what its files say, and
23
+ # running it again will not help, so change the files and store a new version;
24
+ # `scan-did-not-finish`, the scan did not finish or its result is no longer
25
+ # available, so retry the scan in claude.ai if it offers a retry;
26
+ # `scan-unavailable`, the scan could not run or its result cannot be read right
27
+ # now, so read the version again later, then retry the scan in claude.ai if it
28
+ # offers a retry. If these steps do not help, contact support. Null on a `pass`,
29
+ # while a scan runs, and when no mechanism is reported for the verdict. On an
30
+ # errored scan, null means that a compliance configuration ruled out the scan.
22
31
  #
23
32
  # @return [String, nil]
24
33
  required :reason, String, nil?: true
@@ -4,32 +4,10 @@ module Anthropic
4
4
  module Models
5
5
  module Beta
6
6
  module Organization
7
- class BetaPluginMarketplaceValidationPluginError < Anthropic::Internal::Type::BaseModel
8
- # @!attribute error
9
- # Why the plugin would be skipped by a synchronization.
10
- #
11
- # @return [String]
12
- required :error, String
13
-
14
- # @!attribute error_code
15
- # A stable identifier for the reason — the value to branch on.
16
- #
17
- # @return [String]
18
- required :error_code, String
19
-
20
- # @!attribute name
21
- # The plugin's name, as its entry in marketplace.json declares it.
22
- #
23
- # @return [String]
24
- required :name, String
25
-
26
- # @!method initialize(error:, error_code:, name:)
27
- # @param error [String] Why the plugin would be skipped by a synchronization.
28
- #
29
- # @param error_code [String] A stable identifier for the reason — the value to branch on.
30
- #
31
- # @param name [String] The plugin's name, as its entry in marketplace.json declares it.
32
- end
7
+ # @deprecated BetaPluginMarketplaceValidationPluginError has been renamed to
8
+ # BetaPluginMarketplaceValidationPluginErrorObject
9
+ BetaPluginMarketplaceValidationPluginError =
10
+ Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject
33
11
  end
34
12
  end
35
13
  end