anthropic 2.9.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 (790) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +7 -0
  5. data/lib/anthropic/errors.rb +4 -0
  6. data/lib/anthropic/helpers/bedrock/client.rb +6 -6
  7. data/lib/anthropic/internal/type/union.rb +26 -0
  8. data/lib/anthropic/internal/util.rb +3 -1
  9. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  10. data/lib/anthropic/models/authentication_error.rb +2 -22
  11. data/lib/anthropic/models/authentication_error_object.rb +28 -0
  12. data/lib/anthropic/models/bash_code_execution_tool_result_block.rb +4 -4
  13. data/lib/anthropic/models/bash_code_execution_tool_result_error.rb +3 -15
  14. data/lib/anthropic/models/bash_code_execution_tool_result_error_object.rb +21 -0
  15. data/lib/anthropic/models/beta/beta_advisor_tool_result_block.rb +4 -4
  16. data/lib/anthropic/models/beta/beta_advisor_tool_result_error.rb +2 -31
  17. data/lib/anthropic/models/beta/beta_advisor_tool_result_error_object.rb +41 -0
  18. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb +4 -4
  19. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb +4 -29
  20. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rb +39 -0
  21. data/lib/anthropic/models/beta/beta_bill_to.rb +20 -0
  22. data/lib/anthropic/models/beta/beta_billing_policy.rb +36 -0
  23. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +2 -2
  24. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +2 -2
  25. data/lib/anthropic/models/beta/beta_code_execution_tool_result_error.rb +3 -15
  26. data/lib/anthropic/models/beta/beta_code_execution_tool_result_error_object.rb +25 -0
  27. data/lib/anthropic/models/beta/beta_content_block.rb +1 -1
  28. data/lib/anthropic/models/beta/beta_content_block_param.rb +1 -1
  29. data/lib/anthropic/models/beta/beta_dream.rb +3 -3
  30. data/lib/anthropic/models/beta/beta_dream_error.rb +2 -27
  31. data/lib/anthropic/models/beta/beta_dream_error_object.rb +37 -0
  32. data/lib/anthropic/models/beta/beta_dreaming_error.rb +2 -90
  33. data/lib/anthropic/models/beta/beta_dreaming_error_object.rb +100 -0
  34. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -11
  35. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rb +22 -0
  36. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -19
  37. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rb +29 -0
  38. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
  39. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +4 -130
  40. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rb +143 -0
  41. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +41 -36
  42. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -11
  43. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rb +22 -0
  44. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -19
  45. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rb +30 -0
  46. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -11
  47. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rb +22 -0
  48. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -19
  49. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rb +30 -0
  50. data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +3 -3
  51. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -11
  52. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rb +22 -0
  53. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -19
  54. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rb +29 -0
  55. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -12
  56. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rb +23 -0
  57. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -20
  58. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rb +30 -0
  59. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -11
  60. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rb +22 -0
  61. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -19
  62. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rb +30 -0
  63. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +5 -11
  64. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rb +22 -0
  65. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -19
  66. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rb +30 -0
  67. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +5 -12
  68. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rb +23 -0
  69. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -20
  70. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rb +31 -0
  71. data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -19
  72. data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rb +30 -0
  73. data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -20
  74. data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rb +31 -0
  75. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +5 -11
  76. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rb +22 -0
  77. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -19
  78. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rb +30 -0
  79. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -11
  80. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rb +22 -0
  81. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -19
  82. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rb +29 -0
  83. data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -12
  84. data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rb +23 -0
  85. data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +3 -20
  86. data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rb +30 -0
  87. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -11
  88. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rb +22 -0
  89. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -19
  90. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rb +29 -0
  91. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -11
  92. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rb +22 -0
  93. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -19
  94. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rb +29 -0
  95. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -11
  96. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rb +22 -0
  97. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -19
  98. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rb +29 -0
  99. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +1 -1
  100. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +2 -26
  101. data/lib/anthropic/models/beta/beta_target_store_held_error_object.rb +36 -0
  102. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb +4 -4
  103. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb +4 -35
  104. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb +46 -0
  105. data/lib/anthropic/models/beta/beta_tool_search_tool_result_block.rb +4 -4
  106. data/lib/anthropic/models/beta/beta_tool_search_tool_result_error.rb +3 -34
  107. data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_object.rb +44 -0
  108. data/lib/anthropic/models/beta/beta_web_search_tool_request_error.rb +3 -15
  109. data/lib/anthropic/models/beta/beta_web_search_tool_request_error_object.rb +25 -0
  110. data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +2 -2
  111. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_content.rb +2 -2
  112. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +2 -2
  113. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +2 -2
  114. data/lib/anthropic/models/beta/beta_web_search_tool_result_error.rb +3 -15
  115. data/lib/anthropic/models/beta/beta_web_search_tool_result_error_object.rb +25 -0
  116. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  117. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +12 -2
  118. data/lib/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rb +34 -0
  119. data/lib/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rb +34 -0
  120. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -15
  121. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rb +25 -0
  122. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +2 -114
  123. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rb +124 -0
  124. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -52
  125. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rb +62 -0
  126. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +4 -26
  127. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rb +36 -0
  128. data/lib/anthropic/models/beta/message_count_tokens_params.rb +12 -1
  129. data/lib/anthropic/models/beta/message_create_params.rb +15 -1
  130. data/lib/anthropic/models/beta/messages/batch_create_params.rb +15 -1
  131. data/lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb +1 -2
  132. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
  133. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
  134. data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +11 -2
  135. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rb +4 -26
  136. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb +36 -0
  137. data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb +3 -3
  138. data/lib/anthropic/models/beta/organization/beta_workspace.rb +7 -6
  139. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
  140. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
  141. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +7 -6
  142. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +7 -6
  143. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -84
  144. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rb +94 -0
  145. data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rb +4 -85
  146. data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb +95 -0
  147. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +4 -99
  148. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rb +109 -0
  149. data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +4 -25
  150. data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb +35 -0
  151. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +4 -90
  152. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rb +100 -0
  153. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +4 -90
  154. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rb +100 -0
  155. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +4 -83
  156. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rb +93 -0
  157. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +4 -82
  158. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rb +92 -0
  159. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +4 -82
  160. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rb +92 -0
  161. data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +4 -24
  162. data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rb +34 -0
  163. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +4 -98
  164. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rb +108 -0
  165. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +4 -97
  166. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rb +107 -0
  167. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +4 -97
  168. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rb +107 -0
  169. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +4 -97
  170. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rb +107 -0
  171. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +4 -97
  172. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rb +107 -0
  173. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +36 -34
  174. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +2 -2
  175. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +2 -2
  176. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +2 -2
  177. data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +4 -24
  178. data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rb +34 -0
  179. data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +4 -24
  180. data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rb +34 -0
  181. data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rb +4 -86
  182. data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rb +96 -0
  183. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -84
  184. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rb +94 -0
  185. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +4 -24
  186. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rb +34 -0
  187. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +4 -73
  188. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +3 -3
  189. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rb +83 -0
  190. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +5 -5
  191. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +4 -19
  192. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rb +29 -0
  193. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +2 -2
  194. data/lib/anthropic/models/beta_api_error.rb +2 -22
  195. data/lib/anthropic/models/beta_api_error_object.rb +28 -0
  196. data/lib/anthropic/models/beta_authentication_error.rb +2 -22
  197. data/lib/anthropic/models/beta_authentication_error_object.rb +28 -0
  198. data/lib/anthropic/models/beta_billing_error.rb +2 -22
  199. data/lib/anthropic/models/beta_billing_error_object.rb +28 -0
  200. data/lib/anthropic/models/beta_error.rb +2 -82
  201. data/lib/anthropic/models/beta_error_object.rb +88 -0
  202. data/lib/anthropic/models/beta_error_response.rb +3 -3
  203. data/lib/anthropic/models/beta_gateway_timeout_error.rb +2 -22
  204. data/lib/anthropic/models/beta_gateway_timeout_error_object.rb +28 -0
  205. data/lib/anthropic/models/beta_invalid_request_error.rb +2 -22
  206. data/lib/anthropic/models/beta_invalid_request_error_object.rb +28 -0
  207. data/lib/anthropic/models/beta_not_found_error.rb +2 -22
  208. data/lib/anthropic/models/beta_not_found_error_object.rb +28 -0
  209. data/lib/anthropic/models/beta_overloaded_error.rb +2 -22
  210. data/lib/anthropic/models/beta_overloaded_error_object.rb +28 -0
  211. data/lib/anthropic/models/beta_permission_error.rb +2 -22
  212. data/lib/anthropic/models/beta_permission_error_object.rb +28 -0
  213. data/lib/anthropic/models/beta_rate_limit_error.rb +2 -22
  214. data/lib/anthropic/models/beta_rate_limit_error_object.rb +28 -0
  215. data/lib/anthropic/models/billing_error.rb +2 -22
  216. data/lib/anthropic/models/billing_error_object.rb +28 -0
  217. data/lib/anthropic/models/code_execution_tool_result_block.rb +2 -2
  218. data/lib/anthropic/models/code_execution_tool_result_block_content.rb +2 -2
  219. data/lib/anthropic/models/code_execution_tool_result_error.rb +3 -15
  220. data/lib/anthropic/models/code_execution_tool_result_error_object.rb +21 -0
  221. data/lib/anthropic/models/content_block.rb +1 -1
  222. data/lib/anthropic/models/content_block_param.rb +1 -1
  223. data/lib/anthropic/models/contract_spend_limit_reached_error.rb +19 -0
  224. data/lib/anthropic/models/contract_spend_limit_reached_error_details.rb +17 -0
  225. data/lib/anthropic/models/error_details.rb +41 -2
  226. data/lib/anthropic/models/error_object.rb +18 -18
  227. data/lib/anthropic/models/error_response.rb +2 -2
  228. data/lib/anthropic/models/gateway_timeout_error.rb +2 -22
  229. data/lib/anthropic/models/gateway_timeout_error_object.rb +28 -0
  230. data/lib/anthropic/models/invalid_request_error.rb +2 -22
  231. data/lib/anthropic/models/invalid_request_error_object.rb +28 -0
  232. data/lib/anthropic/models/linked_organization_billing_unavailable_error.rb +21 -0
  233. data/lib/anthropic/models/linked_organization_billing_unavailable_error_details.rb +19 -0
  234. data/lib/anthropic/models/linked_organization_spend_limit_reached_error.rb +21 -0
  235. data/lib/anthropic/models/linked_organization_spend_limit_reached_error_details.rb +19 -0
  236. data/lib/anthropic/models/not_found_error.rb +2 -22
  237. data/lib/anthropic/models/not_found_error_object.rb +28 -0
  238. data/lib/anthropic/models/organization/aws_external_key_config.rb +1 -2
  239. data/lib/anthropic/models/organization/workspace.rb +7 -6
  240. data/lib/anthropic/models/organization/workspace_create_params.rb +7 -6
  241. data/lib/anthropic/models/organization/workspace_update_params.rb +7 -6
  242. data/lib/anthropic/models/overloaded_error.rb +2 -22
  243. data/lib/anthropic/models/overloaded_error_object.rb +28 -0
  244. data/lib/anthropic/models/permission_error.rb +2 -22
  245. data/lib/anthropic/models/permission_error_object.rb +28 -0
  246. data/lib/anthropic/models/rate_limit_error.rb +2 -22
  247. data/lib/anthropic/models/rate_limit_error_object.rb +28 -0
  248. data/lib/anthropic/models/raw_content_block_start_event.rb +1 -1
  249. data/lib/anthropic/models/text_editor_code_execution_tool_result_block.rb +4 -4
  250. data/lib/anthropic/models/text_editor_code_execution_tool_result_error.rb +3 -21
  251. data/lib/anthropic/models/text_editor_code_execution_tool_result_error_object.rb +27 -0
  252. data/lib/anthropic/models/tool_search_tool_result_block.rb +4 -4
  253. data/lib/anthropic/models/tool_search_tool_result_error.rb +2 -21
  254. data/lib/anthropic/models/tool_search_tool_result_error_object.rb +27 -0
  255. data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +21 -0
  256. data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +19 -0
  257. data/lib/anthropic/models/user_profile_not_billable_error.rb +20 -0
  258. data/lib/anthropic/models/user_profile_not_billable_error_details.rb +18 -0
  259. data/lib/anthropic/models/user_profile_required_error.rb +20 -0
  260. data/lib/anthropic/models/user_profile_required_error_details.rb +18 -0
  261. data/lib/anthropic/models/web_search_tool_request_error.rb +2 -15
  262. data/lib/anthropic/models/web_search_tool_request_error_object.rb +21 -0
  263. data/lib/anthropic/models/web_search_tool_result_block.rb +2 -2
  264. data/lib/anthropic/models/web_search_tool_result_block_content.rb +2 -2
  265. data/lib/anthropic/models/web_search_tool_result_block_param.rb +2 -2
  266. data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +2 -2
  267. data/lib/anthropic/models/web_search_tool_result_error.rb +2 -15
  268. data/lib/anthropic/models/web_search_tool_result_error_object.rb +21 -0
  269. data/lib/anthropic/models.rb +76 -0
  270. data/lib/anthropic/resources/beta/environments/work.rb +21 -20
  271. data/lib/anthropic/resources/beta/messages.rb +60 -4
  272. data/lib/anthropic/resources/beta/organization/plugins.rb +6 -2
  273. data/lib/anthropic/resources/messages.rb +48 -0
  274. data/lib/anthropic/version.rb +1 -1
  275. data/lib/anthropic.rb +108 -0
  276. data/rbi/anthropic/errors.rbi +4 -0
  277. data/rbi/anthropic/internal/type/union.rbi +5 -0
  278. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  279. data/rbi/anthropic/models/authentication_error.rbi +1 -29
  280. data/rbi/anthropic/models/authentication_error_object.rbi +38 -0
  281. data/rbi/anthropic/models/bash_code_execution_tool_result_block.rbi +2 -2
  282. data/rbi/anthropic/models/bash_code_execution_tool_result_error.rbi +2 -38
  283. data/rbi/anthropic/models/bash_code_execution_tool_result_error_object.rbi +44 -0
  284. data/rbi/anthropic/models/beta/beta_advisor_tool_result_block.rbi +2 -2
  285. data/rbi/anthropic/models/beta/beta_advisor_tool_result_error.rbi +2 -100
  286. data/rbi/anthropic/models/beta/beta_advisor_tool_result_error_object.rbi +110 -0
  287. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi +2 -2
  288. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi +2 -90
  289. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbi +101 -0
  290. data/rbi/anthropic/models/beta/beta_bill_to.rbi +28 -0
  291. data/rbi/anthropic/models/beta/beta_billing_policy.rbi +59 -0
  292. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -1
  293. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +1 -1
  294. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error.rbi +2 -41
  295. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbi +52 -0
  296. data/rbi/anthropic/models/beta/beta_content_block.rbi +6 -6
  297. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +1 -1
  298. data/rbi/anthropic/models/beta/beta_dream.rbi +6 -4
  299. data/rbi/anthropic/models/beta/beta_dream_error.rbi +1 -36
  300. data/rbi/anthropic/models/beta/beta_dream_error_object.rbi +49 -0
  301. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +1 -112
  302. data/rbi/anthropic/models/beta/beta_dreaming_error_object.rbi +124 -0
  303. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +2 -21
  304. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbi +32 -0
  305. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +2 -29
  306. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbi +40 -0
  307. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +14 -14
  308. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +2 -141
  309. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbi +152 -0
  310. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +32 -32
  311. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +2 -21
  312. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbi +32 -0
  313. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +2 -29
  314. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbi +40 -0
  315. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +2 -21
  316. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbi +32 -0
  317. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +2 -29
  318. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbi +40 -0
  319. data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +16 -16
  320. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +2 -21
  321. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbi +32 -0
  322. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +2 -29
  323. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbi +40 -0
  324. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +2 -22
  325. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbi +33 -0
  326. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +2 -30
  327. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbi +41 -0
  328. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +2 -21
  329. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbi +32 -0
  330. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +2 -29
  331. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbi +40 -0
  332. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +2 -21
  333. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbi +32 -0
  334. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +2 -29
  335. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbi +40 -0
  336. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +2 -22
  337. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbi +33 -0
  338. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +2 -30
  339. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbi +41 -0
  340. data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +2 -29
  341. data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbi +40 -0
  342. data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +2 -30
  343. data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbi +41 -0
  344. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +2 -21
  345. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbi +32 -0
  346. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +2 -29
  347. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbi +40 -0
  348. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +2 -21
  349. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbi +32 -0
  350. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +2 -29
  351. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbi +40 -0
  352. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +2 -22
  353. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbi +33 -0
  354. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +2 -30
  355. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbi +41 -0
  356. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +2 -21
  357. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbi +32 -0
  358. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +2 -29
  359. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbi +40 -0
  360. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +2 -21
  361. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbi +32 -0
  362. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +2 -29
  363. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbi +40 -0
  364. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +2 -21
  365. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbi +32 -0
  366. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +2 -29
  367. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbi +40 -0
  368. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +6 -6
  369. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +2 -36
  370. data/rbi/anthropic/models/beta/beta_target_store_held_error_object.rbi +46 -0
  371. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi +2 -2
  372. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi +2 -99
  373. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbi +110 -0
  374. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block.rbi +2 -2
  375. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error.rbi +2 -94
  376. data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbi +105 -0
  377. data/rbi/anthropic/models/beta/beta_web_search_tool_request_error.rbi +2 -39
  378. data/rbi/anthropic/models/beta/beta_web_search_tool_request_error_object.rbi +50 -0
  379. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +1 -1
  380. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_content.rbi +1 -1
  381. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +3 -3
  382. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +1 -1
  383. data/rbi/anthropic/models/beta/beta_web_search_tool_result_error.rbi +2 -41
  384. data/rbi/anthropic/models/beta/beta_web_search_tool_result_error_object.rbi +52 -0
  385. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
  386. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
  387. data/rbi/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbi +51 -0
  388. data/rbi/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbi +51 -0
  389. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +2 -28
  390. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbi +38 -0
  391. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -144
  392. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbi +154 -0
  393. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +2 -82
  394. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbi +92 -0
  395. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +2 -38
  396. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbi +48 -0
  397. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +23 -0
  398. data/rbi/anthropic/models/beta/message_create_params.rbi +29 -0
  399. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +30 -0
  400. data/rbi/anthropic/models/beta/organization/beta_aws_external_key_config.rbi +2 -4
  401. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +1 -2
  402. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
  403. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
  404. data/rbi/anthropic/models/beta/organization/beta_plugin_content_scan.rbi +22 -4
  405. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbi +2 -44
  406. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbi +54 -0
  407. data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbi +3 -3
  408. data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +14 -12
  409. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +1 -2
  410. data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +1 -2
  411. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
  412. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
  413. data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +14 -12
  414. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +14 -12
  415. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +2 -137
  416. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbi +147 -0
  417. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbi +2 -138
  418. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbi +148 -0
  419. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +2 -152
  420. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbi +162 -0
  421. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +2 -34
  422. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbi +44 -0
  423. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +2 -143
  424. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbi +153 -0
  425. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +2 -143
  426. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbi +153 -0
  427. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +2 -136
  428. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbi +146 -0
  429. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +2 -135
  430. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbi +145 -0
  431. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +2 -135
  432. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbi +145 -0
  433. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +2 -33
  434. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbi +43 -0
  435. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbi +2 -149
  436. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbi +159 -0
  437. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbi +2 -148
  438. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbi +158 -0
  439. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbi +2 -148
  440. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbi +158 -0
  441. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbi +2 -148
  442. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbi +158 -0
  443. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbi +2 -148
  444. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbi +158 -0
  445. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +30 -30
  446. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +21 -21
  447. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +21 -21
  448. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +21 -21
  449. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +2 -33
  450. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbi +43 -0
  451. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +2 -33
  452. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbi +43 -0
  453. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbi +2 -139
  454. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbi +149 -0
  455. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +2 -137
  456. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbi +147 -0
  457. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +2 -33
  458. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbi +43 -0
  459. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +2 -95
  460. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +7 -7
  461. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbi +105 -0
  462. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +6 -6
  463. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +2 -53
  464. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbi +63 -0
  465. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +1 -1
  466. data/rbi/anthropic/models/beta_api_error.rbi +1 -29
  467. data/rbi/anthropic/models/beta_api_error_object.rbi +35 -0
  468. data/rbi/anthropic/models/beta_authentication_error.rbi +1 -32
  469. data/rbi/anthropic/models/beta_authentication_error_object.rbi +38 -0
  470. data/rbi/anthropic/models/beta_billing_error.rbi +1 -29
  471. data/rbi/anthropic/models/beta_billing_error_object.rbi +35 -0
  472. data/rbi/anthropic/models/beta_error.rbi +1 -73
  473. data/rbi/anthropic/models/beta_error_object.rbi +97 -0
  474. data/rbi/anthropic/models/beta_error_response.rbi +11 -11
  475. data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +1 -32
  476. data/rbi/anthropic/models/beta_gateway_timeout_error_object.rbi +38 -0
  477. data/rbi/anthropic/models/beta_invalid_request_error.rbi +1 -32
  478. data/rbi/anthropic/models/beta_invalid_request_error_object.rbi +38 -0
  479. data/rbi/anthropic/models/beta_not_found_error.rbi +1 -29
  480. data/rbi/anthropic/models/beta_not_found_error_object.rbi +38 -0
  481. data/rbi/anthropic/models/beta_overloaded_error.rbi +1 -29
  482. data/rbi/anthropic/models/beta_overloaded_error_object.rbi +38 -0
  483. data/rbi/anthropic/models/beta_permission_error.rbi +1 -29
  484. data/rbi/anthropic/models/beta_permission_error_object.rbi +38 -0
  485. data/rbi/anthropic/models/beta_rate_limit_error.rbi +1 -29
  486. data/rbi/anthropic/models/beta_rate_limit_error_object.rbi +38 -0
  487. data/rbi/anthropic/models/billing_error.rbi +1 -29
  488. data/rbi/anthropic/models/billing_error_object.rbi +35 -0
  489. data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -1
  490. data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +1 -1
  491. data/rbi/anthropic/models/code_execution_tool_result_error.rbi +2 -36
  492. data/rbi/anthropic/models/code_execution_tool_result_error_object.rbi +42 -0
  493. data/rbi/anthropic/models/content_block.rbi +5 -5
  494. data/rbi/anthropic/models/content_block_param.rbi +1 -1
  495. data/rbi/anthropic/models/contract_spend_limit_reached_error.rbi +16 -0
  496. data/rbi/anthropic/models/contract_spend_limit_reached_error_details.rbi +27 -0
  497. data/rbi/anthropic/models/error_details.rbi +36 -0
  498. data/rbi/anthropic/models/error_object.rbi +8 -8
  499. data/rbi/anthropic/models/error_response.rbi +8 -8
  500. data/rbi/anthropic/models/gateway_timeout_error.rbi +1 -29
  501. data/rbi/anthropic/models/gateway_timeout_error_object.rbi +38 -0
  502. data/rbi/anthropic/models/invalid_request_error.rbi +1 -29
  503. data/rbi/anthropic/models/invalid_request_error_object.rbi +38 -0
  504. data/rbi/anthropic/models/linked_organization_billing_unavailable_error.rbi +20 -0
  505. data/rbi/anthropic/models/linked_organization_billing_unavailable_error_details.rbi +29 -0
  506. data/rbi/anthropic/models/linked_organization_spend_limit_reached_error.rbi +20 -0
  507. data/rbi/anthropic/models/linked_organization_spend_limit_reached_error_details.rbi +29 -0
  508. data/rbi/anthropic/models/not_found_error.rbi +1 -29
  509. data/rbi/anthropic/models/not_found_error_object.rbi +35 -0
  510. data/rbi/anthropic/models/organization/aws_external_key_config.rbi +2 -4
  511. data/rbi/anthropic/models/organization/external_key.rbi +1 -2
  512. data/rbi/anthropic/models/organization/external_key_create_params.rbi +1 -2
  513. data/rbi/anthropic/models/organization/external_key_update_params.rbi +1 -2
  514. data/rbi/anthropic/models/organization/workspace.rbi +14 -12
  515. data/rbi/anthropic/models/organization/workspace_create_params.rbi +14 -12
  516. data/rbi/anthropic/models/organization/workspace_update_params.rbi +14 -12
  517. data/rbi/anthropic/models/overloaded_error.rbi +1 -29
  518. data/rbi/anthropic/models/overloaded_error_object.rbi +35 -0
  519. data/rbi/anthropic/models/permission_error.rbi +1 -29
  520. data/rbi/anthropic/models/permission_error_object.rbi +35 -0
  521. data/rbi/anthropic/models/rate_limit_error.rbi +1 -29
  522. data/rbi/anthropic/models/rate_limit_error_object.rbi +35 -0
  523. data/rbi/anthropic/models/raw_content_block_start_event.rbi +5 -5
  524. data/rbi/anthropic/models/text_editor_code_execution_tool_result_block.rbi +2 -2
  525. data/rbi/anthropic/models/text_editor_code_execution_tool_result_error.rbi +2 -50
  526. data/rbi/anthropic/models/text_editor_code_execution_tool_result_error_object.rbi +56 -0
  527. data/rbi/anthropic/models/tool_search_tool_result_block.rbi +2 -2
  528. data/rbi/anthropic/models/tool_search_tool_result_error.rbi +2 -44
  529. data/rbi/anthropic/models/tool_search_tool_result_error_object.rbi +50 -0
  530. data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +18 -0
  531. data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +29 -0
  532. data/rbi/anthropic/models/user_profile_not_billable_error.rbi +17 -0
  533. data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +28 -0
  534. data/rbi/anthropic/models/user_profile_required_error.rbi +17 -0
  535. data/rbi/anthropic/models/user_profile_required_error_details.rbi +28 -0
  536. data/rbi/anthropic/models/web_search_tool_request_error.rbi +2 -35
  537. data/rbi/anthropic/models/web_search_tool_request_error_object.rbi +41 -0
  538. data/rbi/anthropic/models/web_search_tool_result_block.rbi +1 -1
  539. data/rbi/anthropic/models/web_search_tool_result_block_content.rbi +1 -1
  540. data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +3 -3
  541. data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +1 -1
  542. data/rbi/anthropic/models/web_search_tool_result_error.rbi +1 -35
  543. data/rbi/anthropic/models/web_search_tool_result_error_object.rbi +41 -0
  544. data/rbi/anthropic/models.rbi +91 -0
  545. data/rbi/anthropic/resources/beta/environments/work.rbi +21 -20
  546. data/rbi/anthropic/resources/beta/messages.rbi +50 -0
  547. data/rbi/anthropic/resources/beta/organization/plugins.rbi +6 -2
  548. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +15 -12
  549. data/rbi/anthropic/resources/organization/workspaces.rbi +14 -12
  550. data/sig/anthropic/errors.rbs +4 -0
  551. data/sig/anthropic/internal/type/union.rbs +4 -0
  552. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  553. data/sig/anthropic/models/authentication_error.rbs +1 -11
  554. data/sig/anthropic/models/authentication_error_object.rbs +16 -0
  555. data/sig/anthropic/models/bash_code_execution_tool_result_block.rbs +1 -1
  556. data/sig/anthropic/models/bash_code_execution_tool_result_error.rbs +1 -21
  557. data/sig/anthropic/models/bash_code_execution_tool_result_error_object.rbs +25 -0
  558. data/sig/anthropic/models/beta/beta_advisor_tool_result_block.rbs +1 -1
  559. data/sig/anthropic/models/beta/beta_advisor_tool_result_error.rbs +1 -44
  560. data/sig/anthropic/models/beta/beta_advisor_tool_result_error_object.rbs +52 -0
  561. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs +1 -1
  562. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs +1 -40
  563. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbs +48 -0
  564. data/sig/anthropic/models/beta/beta_bill_to.rbs +18 -0
  565. data/sig/anthropic/models/beta/beta_billing_policy.rbs +33 -0
  566. data/sig/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbs +1 -1
  567. data/sig/anthropic/models/beta/beta_code_execution_tool_result_error.rbs +1 -21
  568. data/sig/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbs +29 -0
  569. data/sig/anthropic/models/beta/beta_dream.rbs +4 -4
  570. data/sig/anthropic/models/beta/beta_dream_error.rbs +1 -11
  571. data/sig/anthropic/models/beta/beta_dream_error_object.rbs +19 -0
  572. data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -92
  573. data/sig/anthropic/models/beta/beta_dreaming_error_object.rbs +101 -0
  574. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +1 -10
  575. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbs +18 -0
  576. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +1 -12
  577. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbs +20 -0
  578. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -2
  579. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +1 -108
  580. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbs +116 -0
  581. data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +32 -32
  582. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +1 -10
  583. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbs +18 -0
  584. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +1 -15
  585. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbs +23 -0
  586. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +1 -10
  587. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbs +18 -0
  588. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +1 -15
  589. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbs +23 -0
  590. data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -4
  591. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +1 -10
  592. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbs +18 -0
  593. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +1 -12
  594. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbs +20 -0
  595. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +1 -10
  596. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbs +18 -0
  597. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +1 -15
  598. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbs +23 -0
  599. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +1 -10
  600. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbs +18 -0
  601. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +1 -15
  602. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbs +23 -0
  603. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +1 -10
  604. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbs +18 -0
  605. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +1 -15
  606. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbs +23 -0
  607. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +1 -12
  608. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbs +20 -0
  609. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +1 -18
  610. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbs +26 -0
  611. data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +1 -18
  612. data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbs +26 -0
  613. data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +1 -15
  614. data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbs +23 -0
  615. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +1 -10
  616. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbs +18 -0
  617. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +1 -18
  618. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbs +26 -0
  619. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +1 -10
  620. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbs +18 -0
  621. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +1 -12
  622. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbs +20 -0
  623. data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +1 -10
  624. data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbs +18 -0
  625. data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +1 -12
  626. data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbs +20 -0
  627. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +1 -10
  628. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbs +18 -0
  629. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +1 -12
  630. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbs +20 -0
  631. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +1 -10
  632. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbs +18 -0
  633. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +1 -12
  634. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbs +20 -0
  635. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +1 -10
  636. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbs +18 -0
  637. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +1 -15
  638. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbs +23 -0
  639. data/sig/anthropic/models/beta/beta_target_store_held_error.rbs +1 -14
  640. data/sig/anthropic/models/beta/beta_target_store_held_error_object.rbs +22 -0
  641. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs +1 -1
  642. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs +1 -45
  643. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs +53 -0
  644. data/sig/anthropic/models/beta/beta_tool_search_tool_result_block.rbs +1 -1
  645. data/sig/anthropic/models/beta/beta_tool_search_tool_result_error.rbs +1 -43
  646. data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbs +51 -0
  647. data/sig/anthropic/models/beta/beta_web_search_tool_request_error.rbs +1 -21
  648. data/sig/anthropic/models/beta/beta_web_search_tool_request_error_object.rbs +29 -0
  649. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_content.rbs +1 -1
  650. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +1 -1
  651. data/sig/anthropic/models/beta/beta_web_search_tool_result_error.rbs +1 -21
  652. data/sig/anthropic/models/beta/beta_web_search_tool_result_error_object.rbs +29 -0
  653. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
  654. data/sig/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbs +30 -0
  655. data/sig/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbs +30 -0
  656. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +1 -14
  657. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbs +22 -0
  658. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +1 -112
  659. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbs +120 -0
  660. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +1 -37
  661. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbs +45 -0
  662. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +1 -20
  663. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbs +28 -0
  664. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
  665. data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
  666. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +5 -0
  667. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +5 -1
  668. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +5 -1
  669. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbs +1 -18
  670. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbs +26 -0
  671. data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbs +4 -4
  672. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +5 -1
  673. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +5 -1
  674. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +1 -64
  675. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbs +72 -0
  676. data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbs +1 -64
  677. data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs +72 -0
  678. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +1 -74
  679. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbs +82 -0
  680. data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +1 -15
  681. data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbs +23 -0
  682. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +1 -69
  683. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbs +77 -0
  684. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +1 -69
  685. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbs +77 -0
  686. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +1 -64
  687. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbs +72 -0
  688. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +1 -64
  689. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbs +72 -0
  690. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +1 -64
  691. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbs +72 -0
  692. data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +1 -12
  693. data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbs +20 -0
  694. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbs +1 -69
  695. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbs +77 -0
  696. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbs +1 -69
  697. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbs +77 -0
  698. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbs +1 -69
  699. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbs +77 -0
  700. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbs +1 -69
  701. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbs +77 -0
  702. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbs +1 -69
  703. data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbs +77 -0
  704. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +60 -60
  705. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -2
  706. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -2
  707. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -2
  708. data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +1 -12
  709. data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbs +20 -0
  710. data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +1 -12
  711. data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbs +20 -0
  712. data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbs +1 -64
  713. data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbs +72 -0
  714. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +1 -64
  715. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbs +72 -0
  716. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +1 -12
  717. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbs +20 -0
  718. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +1 -58
  719. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +4 -4
  720. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbs +66 -0
  721. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +4 -4
  722. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +1 -21
  723. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbs +29 -0
  724. data/sig/anthropic/models/beta_api_error.rbs +1 -11
  725. data/sig/anthropic/models/beta_api_error_object.rbs +15 -0
  726. data/sig/anthropic/models/beta_authentication_error.rbs +1 -12
  727. data/sig/anthropic/models/beta_authentication_error_object.rbs +16 -0
  728. data/sig/anthropic/models/beta_billing_error.rbs +1 -11
  729. data/sig/anthropic/models/beta_billing_error_object.rbs +15 -0
  730. data/sig/anthropic/models/beta_error.rbs +1 -85
  731. data/sig/anthropic/models/beta_error_object.rbs +89 -0
  732. data/sig/anthropic/models/beta_error_response.rbs +4 -4
  733. data/sig/anthropic/models/beta_gateway_timeout_error.rbs +1 -11
  734. data/sig/anthropic/models/beta_gateway_timeout_error_object.rbs +16 -0
  735. data/sig/anthropic/models/beta_invalid_request_error.rbs +1 -12
  736. data/sig/anthropic/models/beta_invalid_request_error_object.rbs +16 -0
  737. data/sig/anthropic/models/beta_not_found_error.rbs +1 -11
  738. data/sig/anthropic/models/beta_not_found_error_object.rbs +16 -0
  739. data/sig/anthropic/models/beta_overloaded_error.rbs +1 -11
  740. data/sig/anthropic/models/beta_overloaded_error_object.rbs +16 -0
  741. data/sig/anthropic/models/beta_permission_error.rbs +1 -11
  742. data/sig/anthropic/models/beta_permission_error_object.rbs +16 -0
  743. data/sig/anthropic/models/beta_rate_limit_error.rbs +1 -11
  744. data/sig/anthropic/models/beta_rate_limit_error_object.rbs +16 -0
  745. data/sig/anthropic/models/billing_error.rbs +1 -11
  746. data/sig/anthropic/models/billing_error_object.rbs +15 -0
  747. data/sig/anthropic/models/code_execution_tool_result_block_content.rbs +1 -1
  748. data/sig/anthropic/models/code_execution_tool_result_error.rbs +1 -21
  749. data/sig/anthropic/models/code_execution_tool_result_error_object.rbs +25 -0
  750. data/sig/anthropic/models/contract_spend_limit_reached_error.rbs +9 -0
  751. data/sig/anthropic/models/contract_spend_limit_reached_error_details.rbs +14 -0
  752. data/sig/anthropic/models/error_details.rbs +40 -0
  753. data/sig/anthropic/models/error_object.rbs +16 -16
  754. data/sig/anthropic/models/gateway_timeout_error.rbs +1 -11
  755. data/sig/anthropic/models/gateway_timeout_error_object.rbs +16 -0
  756. data/sig/anthropic/models/invalid_request_error.rbs +1 -12
  757. data/sig/anthropic/models/invalid_request_error_object.rbs +16 -0
  758. data/sig/anthropic/models/linked_organization_billing_unavailable_error.rbs +9 -0
  759. data/sig/anthropic/models/linked_organization_billing_unavailable_error_details.rbs +16 -0
  760. data/sig/anthropic/models/linked_organization_spend_limit_reached_error.rbs +9 -0
  761. data/sig/anthropic/models/linked_organization_spend_limit_reached_error_details.rbs +16 -0
  762. data/sig/anthropic/models/not_found_error.rbs +1 -11
  763. data/sig/anthropic/models/not_found_error_object.rbs +15 -0
  764. data/sig/anthropic/models/overloaded_error.rbs +1 -11
  765. data/sig/anthropic/models/overloaded_error_object.rbs +15 -0
  766. data/sig/anthropic/models/permission_error.rbs +1 -11
  767. data/sig/anthropic/models/permission_error_object.rbs +15 -0
  768. data/sig/anthropic/models/rate_limit_error.rbs +1 -11
  769. data/sig/anthropic/models/rate_limit_error_object.rbs +15 -0
  770. data/sig/anthropic/models/text_editor_code_execution_tool_result_block.rbs +1 -1
  771. data/sig/anthropic/models/text_editor_code_execution_tool_result_error.rbs +1 -26
  772. data/sig/anthropic/models/text_editor_code_execution_tool_result_error_object.rbs +30 -0
  773. data/sig/anthropic/models/tool_search_tool_result_block.rbs +1 -1
  774. data/sig/anthropic/models/tool_search_tool_result_error.rbs +1 -26
  775. data/sig/anthropic/models/tool_search_tool_result_error_object.rbs +30 -0
  776. data/sig/anthropic/models/user_profile_billing_not_authorized_error.rbs +9 -0
  777. data/sig/anthropic/models/user_profile_billing_not_authorized_error_details.rbs +16 -0
  778. data/sig/anthropic/models/user_profile_not_billable_error.rbs +9 -0
  779. data/sig/anthropic/models/user_profile_not_billable_error_details.rbs +14 -0
  780. data/sig/anthropic/models/user_profile_required_error.rbs +9 -0
  781. data/sig/anthropic/models/user_profile_required_error_details.rbs +14 -0
  782. data/sig/anthropic/models/web_search_tool_request_error.rbs +1 -21
  783. data/sig/anthropic/models/web_search_tool_request_error_object.rbs +25 -0
  784. data/sig/anthropic/models/web_search_tool_result_block_content.rbs +1 -1
  785. data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +1 -1
  786. data/sig/anthropic/models/web_search_tool_result_error.rbs +1 -21
  787. data/sig/anthropic/models/web_search_tool_result_error_object.rbs +25 -0
  788. data/sig/anthropic/models.rbs +72 -0
  789. data/sig/anthropic/resources/beta/messages.rbs +5 -0
  790. metadata +326 -2
@@ -18,6 +18,8 @@ module Anthropic
18
18
  )
19
19
  ],
20
20
  model: T.any(Anthropic::Model::OrSymbol, String),
21
+ billing_policy:
22
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
21
23
  container:
22
24
  T.nilable(
23
25
  T.any(Anthropic::Beta::BetaContainerParams::OrHash, String)
@@ -149,6 +151,14 @@ module Anthropic
149
151
  # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
150
152
  # details and options.
151
153
  model:,
154
+ # Body param: Declares which organization is billed for this request.
155
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
156
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
157
+ # of your organization. If that customer has not linked an Anthropic organization
158
+ # to the profile, or has not allowed your organization to bill it, the request is
159
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
160
+ # (the default), to be billed as usual.
161
+ billing_policy: nil,
152
162
  # Body param: Container identifier for reuse across requests.
153
163
  container: nil,
154
164
  # Body param: Context management configuration.
@@ -303,6 +313,8 @@ module Anthropic
303
313
  Anthropic::Beta::BetaSystemMessageParam::OrHash
304
314
  )
305
315
  ],
316
+ billing_policy:
317
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
306
318
  cache_control:
307
319
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
308
320
  compaction:
@@ -403,6 +415,7 @@ module Anthropic
403
415
  model:,
404
416
  # The messages that seed the history. The first turn sends them.
405
417
  messages: nil,
418
+ billing_policy: nil,
406
419
  cache_control: nil,
407
420
  compaction: nil,
408
421
  container: nil,
@@ -455,6 +468,8 @@ module Anthropic
455
468
  )
456
469
  ],
457
470
  model: T.any(Anthropic::Model::OrSymbol, String),
471
+ billing_policy:
472
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
458
473
  cache_control:
459
474
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
460
475
  compaction:
@@ -646,6 +661,14 @@ module Anthropic
646
661
  # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
647
662
  # details and options.
648
663
  model:,
664
+ # Body param: Declares which organization is billed for this request.
665
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
666
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
667
+ # of your organization. If that customer has not linked an Anthropic organization
668
+ # to the profile, or has not allowed your organization to bill it, the request is
669
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
670
+ # (the default), to be billed as usual.
671
+ billing_policy: nil,
649
672
  # Body param: Top-level cache control automatically applies a cache_control marker
650
673
  # to the last cacheable block in the request.
651
674
  cache_control: nil,
@@ -885,6 +908,8 @@ module Anthropic
885
908
  )
886
909
  ],
887
910
  model: T.any(Anthropic::Model::OrSymbol, String),
911
+ billing_policy:
912
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
888
913
  cache_control:
889
914
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
890
915
  compaction:
@@ -1081,6 +1106,14 @@ module Anthropic
1081
1106
  # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1082
1107
  # details and options.
1083
1108
  model:,
1109
+ # Body param: Declares which organization is billed for this request.
1110
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
1111
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
1112
+ # of your organization. If that customer has not linked an Anthropic organization
1113
+ # to the profile, or has not allowed your organization to bill it, the request is
1114
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1115
+ # (the default), to be billed as usual.
1116
+ billing_policy: nil,
1084
1117
  # Body param: Top-level cache control automatically applies a cache_control marker
1085
1118
  # to the last cacheable block in the request.
1086
1119
  cache_control: nil,
@@ -1316,6 +1349,8 @@ module Anthropic
1316
1349
  )
1317
1350
  ],
1318
1351
  model: T.any(Anthropic::Model::OrSymbol, String),
1352
+ billing_policy:
1353
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
1319
1354
  cache_control:
1320
1355
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
1321
1356
  compaction:
@@ -1464,6 +1499,11 @@ module Anthropic
1464
1499
  # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1465
1500
  # details and options.
1466
1501
  model:,
1502
+ # Body param: Declares which organization is billed when this body is sent to
1503
+ # `/v1/messages`. Accepted here so that you can count the tokens of the exact body
1504
+ # you will send, and otherwise ignored: counting tokens bills nobody, so no user
1505
+ # profile is required.
1506
+ billing_policy: nil,
1467
1507
  # Body param: Top-level cache control automatically applies a cache_control marker
1468
1508
  # to the last cacheable block in the request.
1469
1509
  cache_control: nil,
@@ -1629,6 +1669,8 @@ module Anthropic
1629
1669
  )
1630
1670
  ],
1631
1671
  model: T.any(Anthropic::Model::OrSymbol, String),
1672
+ billing_policy:
1673
+ T.nilable(Anthropic::Beta::BetaBillingPolicy::OrHash),
1632
1674
  cache_control:
1633
1675
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
1634
1676
  compaction:
@@ -1819,6 +1861,14 @@ module Anthropic
1819
1861
  # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1820
1862
  # details and options.
1821
1863
  model:,
1864
+ # Body param: Declares which organization is billed for this request.
1865
+ # `{"type": "billing_policy", "bill_to": "user_profile"}` bills the customer
1866
+ # behind the user profile named in the `anthropic-user-profile-id` header, instead
1867
+ # of your organization. If that customer has not linked an Anthropic organization
1868
+ # to the profile, or has not allowed your organization to bill it, the request is
1869
+ # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1870
+ # (the default), to be billed as usual.
1871
+ billing_policy: nil,
1822
1872
  # Body param: Top-level cache control automatically applies a cache_control marker
1823
1873
  # to the last cacheable block in the request.
1824
1874
  cache_control: nil,
@@ -134,8 +134,12 @@ module Anthropic
134
134
 
135
135
  # Change which stored version of an organization-owned Plugin is served to
136
136
  # members, for example to roll back to an earlier one. This pins the served
137
- # version: later uploads are stored but no longer change what is served, and
138
- # pinning cannot currently be undone, here or in claude.ai.
137
+ # version: later uploads through this API are stored but no longer change what is
138
+ # served, and pinning cannot currently be undone, here or in claude.ai.
139
+ #
140
+ # A version from claude.ai might still change what is served: see
141
+ # [Versions and the served version](/docs/en/manage-claude/plugins-api#versions-and-the-served-version)
142
+ # in the Plugins API guide.
139
143
  #
140
144
  # Pass the version as `served_version_id`: an earlier one to roll back, a later
141
145
  # one to start serving a version that was stored without being served, or the one
@@ -57,12 +57,14 @@ module Anthropic
57
57
  # organization. When set, data stored for this Workspace is encrypted with the
58
58
  # referenced key. Create key configurations with the External Keys API. On Claude
59
59
  # Platform on AWS the value for an AWS KMS key is the key's ARN, and your
60
- # organization's own key must be a single-Region key in the same AWS account and
61
- # Region as the Workspace. On that platform the key is validated against this
62
- # Workspace when it is attached, so a key-policy problem is reported as an error
63
- # on this request. This field is write-once: once a key is attached to a Workspace
64
- # it cannot be detached or replaced. To rotate key material, rotate the underlying
65
- # key on your cloud KMS; the `external_key_id` stays the same.
60
+ # organization's own key must be a single-Region key in the same Region as the
61
+ # Workspace. If that key is outside the Workspace's AWS account, it can be
62
+ # attached only by updating an active Workspace. On that platform the key is
63
+ # validated against this Workspace when it is attached, so a key-policy problem is
64
+ # reported as an error on this request. This field is write-once: once a key is
65
+ # attached to a Workspace it cannot be detached or replaced. To rotate key
66
+ # material, rotate the underlying key on your cloud KMS; the `external_key_id`
67
+ # stays the same.
66
68
  external_key_id: nil,
67
69
  # Body param: User-defined tags as string key-value pairs. Keys may not begin with
68
70
  # `anthropic`.
@@ -119,12 +121,13 @@ module Anthropic
119
121
  # When set, data stored for this Workspace is encrypted with the referenced key.
120
122
  # Create key configurations with the External Keys API. On Claude Platform on AWS
121
123
  # the value for an AWS KMS key is the key's ARN, and your organization's own key
122
- # must be a single-Region key in the same AWS account and Region as the Workspace.
123
- # On that platform the key is validated against this Workspace when it is
124
- # attached, so a key-policy problem is reported as an error on this request. This
125
- # field is write-once: once a key is attached to a Workspace it cannot be detached
126
- # or replaced. To rotate key material, rotate the underlying key on your cloud
127
- # KMS; the `external_key_id` stays the same.
124
+ # must be a single-Region key in the same Region as the Workspace. If that key is
125
+ # outside the Workspace's AWS account, it can be attached only by updating an
126
+ # active Workspace. On that platform the key is validated against this Workspace
127
+ # when it is attached, so a key-policy problem is reported as an error on this
128
+ # request. This field is write-once: once a key is attached to a Workspace it
129
+ # cannot be detached or replaced. To rotate key material, rotate the underlying
130
+ # key on your cloud KMS; the `external_key_id` stays the same.
128
131
  external_key_id: nil,
129
132
  # Name of the Workspace.
130
133
  name: nil,
@@ -48,12 +48,13 @@ module Anthropic
48
48
  # When set, data stored for this Workspace is encrypted with the referenced key.
49
49
  # Create key configurations with the External Keys API. On Claude Platform on AWS
50
50
  # the value for an AWS KMS key is the key's ARN, and your organization's own key
51
- # must be a single-Region key in the same AWS account and Region as the Workspace.
52
- # On that platform the key is validated against this Workspace when it is
53
- # attached, so a key-policy problem is reported as an error on this request. This
54
- # field is write-once: once a key is attached to a Workspace it cannot be detached
55
- # or replaced. To rotate key material, rotate the underlying key on your cloud
56
- # KMS; the `external_key_id` stays the same.
51
+ # must be a single-Region key in the same Region as the Workspace. If that key is
52
+ # outside the Workspace's AWS account, it can be attached only by updating an
53
+ # active Workspace. On that platform the key is validated against this Workspace
54
+ # when it is attached, so a key-policy problem is reported as an error on this
55
+ # request. This field is write-once: once a key is attached to a Workspace it
56
+ # cannot be detached or replaced. To rotate key material, rotate the underlying
57
+ # key on your cloud KMS; the `external_key_id` stays the same.
57
58
  external_key_id: nil,
58
59
  # User-defined tags as string key-value pairs. Keys may not begin with
59
60
  # `anthropic`.
@@ -108,12 +109,13 @@ module Anthropic
108
109
  # When set, data stored for this Workspace is encrypted with the referenced key.
109
110
  # Create key configurations with the External Keys API. On Claude Platform on AWS
110
111
  # the value for an AWS KMS key is the key's ARN, and your organization's own key
111
- # must be a single-Region key in the same AWS account and Region as the Workspace.
112
- # On that platform the key is validated against this Workspace when it is
113
- # attached, so a key-policy problem is reported as an error on this request. This
114
- # field is write-once: once a key is attached to a Workspace it cannot be detached
115
- # or replaced. To rotate key material, rotate the underlying key on your cloud
116
- # KMS; the `external_key_id` stays the same.
112
+ # must be a single-Region key in the same Region as the Workspace. If that key is
113
+ # outside the Workspace's AWS account, it can be attached only by updating an
114
+ # active Workspace. On that platform the key is validated against this Workspace
115
+ # when it is attached, so a key-policy problem is reported as an error on this
116
+ # request. This field is write-once: once a key is attached to a Workspace it
117
+ # cannot be detached or replaced. To rotate key material, rotate the underlying
118
+ # key on your cloud KMS; the `external_key_id` stays the same.
117
119
  external_key_id: nil,
118
120
  # Name of the Workspace.
119
121
  name: nil,
@@ -105,6 +105,10 @@ module Anthropic
105
105
  HTTP_STATUS: 401
106
106
  end
107
107
 
108
+ class PaymentRequiredError < Anthropic::Errors::APIStatusError
109
+ HTTP_STATUS: 402
110
+ end
111
+
108
112
  class PermissionDeniedError < Anthropic::Errors::APIStatusError
109
113
  HTTP_STATUS: 403
110
114
  end
@@ -27,6 +27,10 @@ module Anthropic
27
27
  top value
28
28
  ) -> Anthropic::Internal::Type::Converter::input?
29
29
 
30
+ private def self.resolve_untagged_variant: (
31
+ top value
32
+ ) -> Anthropic::Internal::Type::Converter::input?
33
+
30
34
  def ===: (top other) -> bool
31
35
 
32
36
  def ==: (top other) -> bool
@@ -57,6 +57,7 @@ module Anthropic
57
57
  | :"skills-2025-10-02"
58
58
  | :"cache-diagnosis-2026-04-07"
59
59
  | :"ce-user-management-2026-07-13"
60
+ | :"user-profiles-billing-2026-10-01"
60
61
  | String
61
62
 
62
63
  module AnthropicBeta
@@ -120,6 +121,7 @@ module Anthropic
120
121
  SKILLS_2025_10_02: :"skills-2025-10-02"
121
122
  CACHE_DIAGNOSIS_2026_04_07: :"cache-diagnosis-2026-04-07"
122
123
  CE_USER_MANAGEMENT_2026_07_13: :"ce-user-management-2026-07-13"
124
+ USER_PROFILES_BILLING_2026_10_01: :"user-profiles-billing-2026-10-01"
123
125
  end
124
126
  end
125
127
  end
@@ -1,15 +1,5 @@
1
1
  module Anthropic
2
2
  module Models
3
- type authentication_error = { message: String, type: :authentication_error }
4
-
5
- class AuthenticationError < Anthropic::Internal::Type::BaseModel
6
- attr_accessor message: String
7
-
8
- attr_accessor type: :authentication_error
9
-
10
- def initialize: (message: String, ?type: :authentication_error) -> void
11
-
12
- def to_hash: -> { message: String, type: :authentication_error }
13
- end
3
+ class AuthenticationError = Anthropic::Models::AuthenticationErrorObject
14
4
  end
15
5
  end
@@ -0,0 +1,16 @@
1
+ module Anthropic
2
+ module Models
3
+ type authentication_error_object =
4
+ { message: String, type: :authentication_error }
5
+
6
+ class AuthenticationErrorObject < Anthropic::Internal::Type::BaseModel
7
+ attr_accessor message: String
8
+
9
+ attr_accessor type: :authentication_error
10
+
11
+ def initialize: (message: String, ?type: :authentication_error) -> void
12
+
13
+ def to_hash: -> { message: String, type: :authentication_error }
14
+ end
15
+ end
16
+ end
@@ -27,7 +27,7 @@ module Anthropic
27
27
  }
28
28
 
29
29
  type content =
30
- Anthropic::BashCodeExecutionToolResultError
30
+ Anthropic::BashCodeExecutionToolResultErrorObject
31
31
  | Anthropic::BashCodeExecutionResultBlock
32
32
 
33
33
  module Content
@@ -1,25 +1,5 @@
1
1
  module Anthropic
2
2
  module Models
3
- type bash_code_execution_tool_result_error =
4
- {
5
- error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
6
- type: :bash_code_execution_tool_result_error
7
- }
8
-
9
- class BashCodeExecutionToolResultError < Anthropic::Internal::Type::BaseModel
10
- attr_accessor error_code: Anthropic::Models::bash_code_execution_tool_result_error_code
11
-
12
- attr_accessor type: :bash_code_execution_tool_result_error
13
-
14
- def initialize: (
15
- error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
16
- ?type: :bash_code_execution_tool_result_error
17
- ) -> void
18
-
19
- def to_hash: -> {
20
- error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
21
- type: :bash_code_execution_tool_result_error
22
- }
23
- end
3
+ class BashCodeExecutionToolResultError = Anthropic::Models::BashCodeExecutionToolResultErrorObject
24
4
  end
25
5
  end
@@ -0,0 +1,25 @@
1
+ module Anthropic
2
+ module Models
3
+ type bash_code_execution_tool_result_error_object =
4
+ {
5
+ error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
6
+ type: :bash_code_execution_tool_result_error
7
+ }
8
+
9
+ class BashCodeExecutionToolResultErrorObject < Anthropic::Internal::Type::BaseModel
10
+ attr_accessor error_code: Anthropic::Models::bash_code_execution_tool_result_error_code
11
+
12
+ attr_accessor type: :bash_code_execution_tool_result_error
13
+
14
+ def initialize: (
15
+ error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
16
+ ?type: :bash_code_execution_tool_result_error
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ error_code: Anthropic::Models::bash_code_execution_tool_result_error_code,
21
+ type: :bash_code_execution_tool_result_error
22
+ }
23
+ end
24
+ end
25
+ end
@@ -30,7 +30,7 @@ module Anthropic
30
30
  }
31
31
 
32
32
  type content =
33
- Anthropic::Beta::BetaAdvisorToolResultError
33
+ Anthropic::Beta::BetaAdvisorToolResultErrorObject
34
34
  | Anthropic::Beta::BetaAdvisorResultBlock
35
35
  | Anthropic::Beta::BetaAdvisorRedactedResultBlock
36
36
 
@@ -3,50 +3,7 @@ module Anthropic
3
3
  class BetaAdvisorToolResultError = Beta::BetaAdvisorToolResultError
4
4
 
5
5
  module Beta
6
- type beta_advisor_tool_result_error =
7
- {
8
- error_code: Anthropic::Models::Beta::BetaAdvisorToolResultError::error_code,
9
- type: :advisor_tool_result_error
10
- }
11
-
12
- class BetaAdvisorToolResultError < Anthropic::Internal::Type::BaseModel
13
- attr_accessor error_code: Anthropic::Models::Beta::BetaAdvisorToolResultError::error_code
14
-
15
- attr_accessor type: :advisor_tool_result_error
16
-
17
- def initialize: (
18
- error_code: Anthropic::Models::Beta::BetaAdvisorToolResultError::error_code,
19
- ?type: :advisor_tool_result_error
20
- ) -> void
21
-
22
- def to_hash: -> {
23
- error_code: Anthropic::Models::Beta::BetaAdvisorToolResultError::error_code,
24
- type: :advisor_tool_result_error
25
- }
26
-
27
- type error_code =
28
- :max_uses_exceeded
29
- | :prompt_too_long
30
- | :too_many_requests
31
- | :overloaded
32
- | :unavailable
33
- | :execution_time_exceeded
34
- | :model_not_found
35
-
36
- module ErrorCode
37
- extend Anthropic::Internal::Type::Enum
38
-
39
- MAX_USES_EXCEEDED: :max_uses_exceeded
40
- PROMPT_TOO_LONG: :prompt_too_long
41
- TOO_MANY_REQUESTS: :too_many_requests
42
- OVERLOADED: :overloaded
43
- UNAVAILABLE: :unavailable
44
- EXECUTION_TIME_EXCEEDED: :execution_time_exceeded
45
- MODEL_NOT_FOUND: :model_not_found
46
-
47
- def self?.values: -> ::Array[Anthropic::Models::Beta::BetaAdvisorToolResultError::error_code]
48
- end
49
- end
6
+ class BetaAdvisorToolResultError = Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject
50
7
  end
51
8
  end
52
9
  end
@@ -0,0 +1,52 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaAdvisorToolResultErrorObject = Beta::BetaAdvisorToolResultErrorObject
4
+
5
+ module Beta
6
+ type beta_advisor_tool_result_error_object =
7
+ {
8
+ error_code: Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::error_code,
9
+ type: :advisor_tool_result_error
10
+ }
11
+
12
+ class BetaAdvisorToolResultErrorObject < Anthropic::Internal::Type::BaseModel
13
+ attr_accessor error_code: Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::error_code
14
+
15
+ attr_accessor type: :advisor_tool_result_error
16
+
17
+ def initialize: (
18
+ error_code: Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::error_code,
19
+ ?type: :advisor_tool_result_error
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ error_code: Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::error_code,
24
+ type: :advisor_tool_result_error
25
+ }
26
+
27
+ type error_code =
28
+ :max_uses_exceeded
29
+ | :prompt_too_long
30
+ | :too_many_requests
31
+ | :overloaded
32
+ | :unavailable
33
+ | :execution_time_exceeded
34
+ | :model_not_found
35
+
36
+ module ErrorCode
37
+ extend Anthropic::Internal::Type::Enum
38
+
39
+ MAX_USES_EXCEEDED: :max_uses_exceeded
40
+ PROMPT_TOO_LONG: :prompt_too_long
41
+ TOO_MANY_REQUESTS: :too_many_requests
42
+ OVERLOADED: :overloaded
43
+ UNAVAILABLE: :unavailable
44
+ EXECUTION_TIME_EXCEEDED: :execution_time_exceeded
45
+ MODEL_NOT_FOUND: :model_not_found
46
+
47
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::error_code]
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -30,7 +30,7 @@ module Anthropic
30
30
  }
31
31
 
32
32
  type content =
33
- Anthropic::Beta::BetaBashCodeExecutionToolResultError
33
+ Anthropic::Beta::BetaBashCodeExecutionToolResultErrorObject
34
34
  | Anthropic::Beta::BetaBashCodeExecutionResultBlock
35
35
 
36
36
  module Content
@@ -3,46 +3,7 @@ module Anthropic
3
3
  class BetaBashCodeExecutionToolResultError = Beta::BetaBashCodeExecutionToolResultError
4
4
 
5
5
  module Beta
6
- type beta_bash_code_execution_tool_result_error =
7
- {
8
- error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::error_code,
9
- type: :bash_code_execution_tool_result_error
10
- }
11
-
12
- class BetaBashCodeExecutionToolResultError < Anthropic::Internal::Type::BaseModel
13
- attr_accessor error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::error_code
14
-
15
- attr_accessor type: :bash_code_execution_tool_result_error
16
-
17
- def initialize: (
18
- error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::error_code,
19
- ?type: :bash_code_execution_tool_result_error
20
- ) -> void
21
-
22
- def to_hash: -> {
23
- error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::error_code,
24
- type: :bash_code_execution_tool_result_error
25
- }
26
-
27
- type error_code =
28
- :invalid_tool_input
29
- | :unavailable
30
- | :too_many_requests
31
- | :execution_time_exceeded
32
- | :output_file_too_large
33
-
34
- module ErrorCode
35
- extend Anthropic::Internal::Type::Enum
36
-
37
- INVALID_TOOL_INPUT: :invalid_tool_input
38
- UNAVAILABLE: :unavailable
39
- TOO_MANY_REQUESTS: :too_many_requests
40
- EXECUTION_TIME_EXCEEDED: :execution_time_exceeded
41
- OUTPUT_FILE_TOO_LARGE: :output_file_too_large
42
-
43
- def self?.values: -> ::Array[Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::error_code]
44
- end
45
- end
6
+ class BetaBashCodeExecutionToolResultError = Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject
46
7
  end
47
8
  end
48
9
  end
@@ -0,0 +1,48 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaBashCodeExecutionToolResultErrorObject = Beta::BetaBashCodeExecutionToolResultErrorObject
4
+
5
+ module Beta
6
+ type beta_bash_code_execution_tool_result_error_object =
7
+ {
8
+ error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::error_code,
9
+ type: :bash_code_execution_tool_result_error
10
+ }
11
+
12
+ class BetaBashCodeExecutionToolResultErrorObject < Anthropic::Internal::Type::BaseModel
13
+ attr_accessor error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::error_code
14
+
15
+ attr_accessor type: :bash_code_execution_tool_result_error
16
+
17
+ def initialize: (
18
+ error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::error_code,
19
+ ?type: :bash_code_execution_tool_result_error
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::error_code,
24
+ type: :bash_code_execution_tool_result_error
25
+ }
26
+
27
+ type error_code =
28
+ :invalid_tool_input
29
+ | :unavailable
30
+ | :too_many_requests
31
+ | :execution_time_exceeded
32
+ | :output_file_too_large
33
+
34
+ module ErrorCode
35
+ extend Anthropic::Internal::Type::Enum
36
+
37
+ INVALID_TOOL_INPUT: :invalid_tool_input
38
+ UNAVAILABLE: :unavailable
39
+ TOO_MANY_REQUESTS: :too_many_requests
40
+ EXECUTION_TIME_EXCEEDED: :execution_time_exceeded
41
+ OUTPUT_FILE_TOO_LARGE: :output_file_too_large
42
+
43
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::error_code]
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,18 @@
1
+ module Anthropic
2
+ module Models
3
+ module BetaBillTo = Beta::BetaBillTo
4
+
5
+ module Beta
6
+ type beta_bill_to = :self | :user_profile
7
+
8
+ module BetaBillTo
9
+ extend Anthropic::Internal::Type::Enum
10
+
11
+ SELF: :self
12
+ USER_PROFILE: :user_profile
13
+
14
+ def self?.values: -> ::Array[Anthropic::Models::Beta::beta_bill_to]
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,33 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaBillingPolicy = Beta::BetaBillingPolicy
4
+
5
+ module Beta
6
+ type beta_billing_policy =
7
+ {
8
+ type: :billing_policy,
9
+ bill_to: Anthropic::Models::Beta::beta_bill_to
10
+ }
11
+
12
+ class BetaBillingPolicy < Anthropic::Internal::Type::BaseModel
13
+ attr_accessor type: :billing_policy
14
+
15
+ attr_reader bill_to: Anthropic::Models::Beta::beta_bill_to?
16
+
17
+ def bill_to=: (
18
+ Anthropic::Models::Beta::beta_bill_to
19
+ ) -> Anthropic::Models::Beta::beta_bill_to
20
+
21
+ def initialize: (
22
+ ?bill_to: Anthropic::Models::Beta::beta_bill_to,
23
+ ?type: :billing_policy
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ type: :billing_policy,
28
+ bill_to: Anthropic::Models::Beta::beta_bill_to
29
+ }
30
+ end
31
+ end
32
+ end
33
+ end