anthropic 2.5.0 → 2.7.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 (269) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +11 -1
  5. data/lib/anthropic/errors.rb +11 -0
  6. data/lib/anthropic/helpers/aws/client.rb +6 -0
  7. data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
  8. data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
  9. data/lib/anthropic/internal/tracing.rb +1 -0
  10. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  11. data/lib/anthropic/models/api_error_object.rb +9 -2
  12. data/lib/anthropic/models/authentication_error.rb +9 -2
  13. data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
  14. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  15. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
  16. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  17. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
  18. data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
  19. data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
  20. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
  21. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
  22. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
  23. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
  24. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
  25. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
  26. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
  27. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
  28. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
  29. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
  30. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
  31. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
  32. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
  33. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
  34. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
  35. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
  36. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
  37. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
  38. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
  39. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
  40. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
  41. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
  42. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
  43. data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
  44. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
  45. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
  46. data/lib/anthropic/models/beta_api_error.rb +9 -2
  47. data/lib/anthropic/models/beta_authentication_error.rb +9 -2
  48. data/lib/anthropic/models/beta_billing_error.rb +9 -2
  49. data/lib/anthropic/models/beta_error.rb +4 -1
  50. data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
  51. data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
  52. data/lib/anthropic/models/beta_not_found_error.rb +9 -2
  53. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
  54. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
  55. data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
  56. data/lib/anthropic/models/beta_permission_error.rb +9 -2
  57. data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
  58. data/lib/anthropic/models/billing_error.rb +9 -2
  59. data/lib/anthropic/models/error_details.rb +74 -7
  60. data/lib/anthropic/models/error_object.rb +4 -1
  61. data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
  62. data/lib/anthropic/models/invalid_request_error.rb +9 -2
  63. data/lib/anthropic/models/model.rb +10 -0
  64. data/lib/anthropic/models/not_found_error.rb +9 -2
  65. data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
  66. data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
  67. data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
  68. data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
  69. data/lib/anthropic/models/overloaded_error.rb +9 -2
  70. data/lib/anthropic/models/permission_error.rb +9 -2
  71. data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
  72. data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
  73. data/lib/anthropic/models/rate_limit_error.rb +9 -2
  74. data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
  75. data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
  76. data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
  77. data/lib/anthropic/models.rb +13 -0
  78. data/lib/anthropic/resources/beta/environments/work.rb +10 -24
  79. data/lib/anthropic/resources/beta/environments.rb +16 -37
  80. data/lib/anthropic/resources/beta/files.rb +23 -50
  81. data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
  82. data/lib/anthropic/resources/beta/messages.rb +74 -139
  83. data/lib/anthropic/resources/beta/models.rb +4 -10
  84. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
  85. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
  86. data/lib/anthropic/resources/beta/organization/api_keys.rb +3 -2
  87. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
  88. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
  89. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
  90. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
  91. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
  92. data/lib/anthropic/resources/beta/organization/external_keys.rb +8 -7
  93. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
  94. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
  95. data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
  96. data/lib/anthropic/resources/beta/organization/invites.rb +10 -17
  97. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
  98. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
  99. data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
  100. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -14
  101. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +7 -7
  102. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
  103. data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
  104. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
  105. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
  106. data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
  107. data/lib/anthropic/resources/beta/organization/users.rb +69 -4
  108. data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
  109. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +6 -2
  110. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
  111. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
  112. data/lib/anthropic/resources/beta/organization/workspaces.rb +16 -22
  113. data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
  114. data/lib/anthropic/resources/beta/skills.rb +11 -26
  115. data/lib/anthropic/resources/files.rb +23 -50
  116. data/lib/anthropic/resources/messages/batches.rb +15 -35
  117. data/lib/anthropic/resources/messages.rb +74 -139
  118. data/lib/anthropic/resources/models.rb +4 -10
  119. data/lib/anthropic/resources/organization/api_keys.rb +3 -2
  120. data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
  121. data/lib/anthropic/resources/organization/external_keys.rb +8 -7
  122. data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
  123. data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
  124. data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
  125. data/lib/anthropic/resources/organization/invites.rb +10 -17
  126. data/lib/anthropic/resources/organization/rbac_groups/members.rb +6 -14
  127. data/lib/anthropic/resources/organization/rbac_groups.rb +7 -7
  128. data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
  129. data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
  130. data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
  131. data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
  132. data/lib/anthropic/resources/organization/users.rb +5 -4
  133. data/lib/anthropic/resources/organization/workspaces/members.rb +6 -2
  134. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
  135. data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
  136. data/lib/anthropic/resources/organization/workspaces.rb +16 -22
  137. data/lib/anthropic/resources/skills/versions.rb +11 -26
  138. data/lib/anthropic/resources/skills.rb +11 -26
  139. data/lib/anthropic/version.rb +1 -1
  140. data/lib/anthropic.rb +25 -2
  141. data/manifest.yaml +1 -0
  142. data/rbi/anthropic/errors.rbi +14 -0
  143. data/rbi/anthropic/helpers/aws/client.rbi +5 -0
  144. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
  145. data/rbi/anthropic/internal/tracing.rbi +1 -0
  146. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  147. data/rbi/anthropic/models/api_error_object.rbi +10 -1
  148. data/rbi/anthropic/models/authentication_error.rbi +10 -1
  149. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
  150. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  151. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
  152. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
  153. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
  154. data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
  155. data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
  156. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
  157. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
  158. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
  159. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
  160. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
  161. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
  162. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
  163. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
  164. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
  165. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
  166. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
  167. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
  168. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
  169. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
  170. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
  171. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
  172. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
  173. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
  174. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
  175. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
  176. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
  177. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
  178. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
  179. data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
  180. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
  181. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
  182. data/rbi/anthropic/models/beta_api_error.rbi +10 -1
  183. data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
  184. data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
  185. data/rbi/anthropic/models/beta_error.rbi +6 -1
  186. data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
  187. data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
  188. data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
  189. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
  190. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
  191. data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
  192. data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
  193. data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
  194. data/rbi/anthropic/models/billing_error.rbi +10 -1
  195. data/rbi/anthropic/models/error_details.rbi +63 -3
  196. data/rbi/anthropic/models/error_object.rbi +6 -1
  197. data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
  198. data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
  199. data/rbi/anthropic/models/model.rbi +8 -0
  200. data/rbi/anthropic/models/not_found_error.rbi +10 -1
  201. data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
  202. data/rbi/anthropic/models/{beta/beta_billing_frozen_error_details.rbi → organization/external_key_validation_failed_error_details.rbi} +6 -8
  203. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
  204. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
  205. data/rbi/anthropic/models/overloaded_error.rbi +10 -1
  206. data/rbi/anthropic/models/permission_error.rbi +10 -1
  207. data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
  208. data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
  209. data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
  210. data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
  211. data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
  212. data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
  213. data/rbi/anthropic/models.rbi +16 -0
  214. data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
  215. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
  216. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
  217. data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
  218. data/sig/anthropic/errors.rbs +3 -0
  219. data/sig/anthropic/internal/tracing.rbs +1 -0
  220. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  221. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  222. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
  223. data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
  224. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
  225. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
  226. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
  227. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
  228. data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
  229. data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
  230. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
  231. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
  232. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
  233. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
  234. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
  235. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
  236. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
  237. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
  238. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
  239. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
  240. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
  241. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
  242. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
  243. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
  244. data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
  245. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
  246. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
  247. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
  248. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
  249. data/sig/anthropic/models/error_details.rbs +72 -5
  250. data/sig/anthropic/models/model.rbs +9 -1
  251. data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
  252. data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
  253. data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
  254. data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
  255. data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
  256. data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
  257. data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
  258. data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
  259. data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
  260. data/sig/anthropic/models.rbs +12 -0
  261. data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
  262. data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
  263. data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
  264. metadata +74 -8
  265. data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
  266. data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
  267. data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
  268. data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
  269. data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
@@ -62,62 +62,35 @@ module Anthropic
62
62
  #
63
63
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
64
64
  #
65
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
66
- # size.
67
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
68
- # no longer a member of the organization or of that workspace.
69
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
70
- # requested model or the organization requires. Update Claude Code, then retry.
71
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
72
- # Re-enable the key, then retry.
73
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
74
- # workspace's customer-managed encryption key. The key itself may be healthy.
75
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
76
- # block the conversation returned last.
77
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
78
- # `system` message.
79
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
80
- # recorded.
81
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
82
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
83
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
84
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
85
- # record.
86
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
87
- # block.
88
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
89
- # organization disabled for any other reason, such as billing, does not get this
90
- # code. `appeal_url`, when present, is where the organization can appeal.
91
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
92
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
93
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
94
- # each response can be continued only once. Continue from the Thread's most recent
95
- # response `id`.
96
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
97
- # for it to complete and continue from its response `id`, or replay the full
98
- # conversation with `thread: {"type": "create"}`.
99
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
100
- # stored with the Thread; the message names each such field. Send the stored
101
- # values, or replay the full conversation with `thread: {"type": "create"}` to
102
- # change them.
103
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
104
- # that Threads do not support; `unsupported`, when present, names it. Send the
105
- # full conversation without `thread`, or change that field.
106
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
107
- # another kind, or of another MCP server, already holds.
108
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
109
- # defined at that position in the conversation.
110
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
111
- # conversation with `thread: {"type": "create"}` to start a new Thread.
112
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
113
- # workspace cannot currently decrypt.
114
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
115
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
116
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
117
- # request; if this continues, check that the key is available in your key
118
- # management service, or contact Anthropic support.
119
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
120
- # request.
65
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
66
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
67
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
68
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
69
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
70
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
71
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
72
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
73
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
74
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
75
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
76
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
77
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
78
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
79
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
80
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
81
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
82
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
83
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
84
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
85
+ # @raise [Anthropic::Models::ToolNameConflictError]
86
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
87
+ # @raise [Anthropic::Models::ThreadNotFoundError]
88
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
89
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
90
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
91
+ # @raise [Anthropic::Models::RampLimitExceededError]
92
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
93
+ # @raise [Anthropic::Models::CompactionUnavailableError]
121
94
  #
122
95
  # @return [Anthropic::Models::Message]
123
96
  #
@@ -215,62 +188,35 @@ module Anthropic
215
188
  #
216
189
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
217
190
  #
218
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
219
- # size.
220
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
221
- # no longer a member of the organization or of that workspace.
222
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
223
- # requested model or the organization requires. Update Claude Code, then retry.
224
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
225
- # Re-enable the key, then retry.
226
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
227
- # workspace's customer-managed encryption key. The key itself may be healthy.
228
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
229
- # block the conversation returned last.
230
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
231
- # `system` message.
232
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
233
- # recorded.
234
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
235
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
236
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
237
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
238
- # record.
239
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
240
- # block.
241
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
242
- # organization disabled for any other reason, such as billing, does not get this
243
- # code. `appeal_url`, when present, is where the organization can appeal.
244
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
245
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
246
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
247
- # each response can be continued only once. Continue from the Thread's most recent
248
- # response `id`.
249
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
250
- # for it to complete and continue from its response `id`, or replay the full
251
- # conversation with `thread: {"type": "create"}`.
252
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
253
- # stored with the Thread; the message names each such field. Send the stored
254
- # values, or replay the full conversation with `thread: {"type": "create"}` to
255
- # change them.
256
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
257
- # that Threads do not support; `unsupported`, when present, names it. Send the
258
- # full conversation without `thread`, or change that field.
259
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
260
- # another kind, or of another MCP server, already holds.
261
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
262
- # defined at that position in the conversation.
263
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
264
- # conversation with `thread: {"type": "create"}` to start a new Thread.
265
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
266
- # workspace cannot currently decrypt.
267
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
268
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
269
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
270
- # request; if this continues, check that the key is available in your key
271
- # management service, or contact Anthropic support.
272
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
273
- # request.
191
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
192
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
193
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
194
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
195
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
196
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
197
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
198
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
199
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
200
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
201
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
202
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
203
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
204
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
205
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
206
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
207
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
208
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
209
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
210
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
211
+ # @raise [Anthropic::Models::ToolNameConflictError]
212
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
213
+ # @raise [Anthropic::Models::ThreadNotFoundError]
214
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
215
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
216
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
217
+ # @raise [Anthropic::Models::RampLimitExceededError]
218
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
219
+ # @raise [Anthropic::Models::CompactionUnavailableError]
274
220
  #
275
221
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::RawMessageStartEvent, Anthropic::Models::RawMessageDeltaEvent, Anthropic::Models::RawMessageStopEvent, Anthropic::Models::RawContentBlockStartEvent, Anthropic::Models::RawContentBlockDeltaEvent, Anthropic::Models::RawContentBlockStopEvent>]
276
222
  #
@@ -339,33 +285,22 @@ module Anthropic
339
285
  #
340
286
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
341
287
  #
342
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
343
- # size.
344
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
345
- # no longer a member of the organization or of that workspace.
346
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
347
- # block the conversation returned last.
348
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
349
- # `system` message.
350
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
351
- # recorded.
352
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
353
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
354
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
355
- # block.
356
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
357
- # organization disabled for any other reason, such as billing, does not get this
358
- # code. `appeal_url`, when present, is where the organization can appeal.
359
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
360
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
361
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
362
- # another kind, or of another MCP server, already holds.
363
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
364
- # defined at that position in the conversation.
365
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
366
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
367
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
368
- # request.
288
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
289
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
290
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
291
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
292
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
293
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
294
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
295
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
296
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
297
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
298
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
299
+ # @raise [Anthropic::Models::ToolNameConflictError]
300
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
301
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
302
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
303
+ # @raise [Anthropic::Models::CompactionUnavailableError]
369
304
  #
370
305
  # @return [Anthropic::Models::MessageTokensCount]
371
306
  #
@@ -19,11 +19,8 @@ module Anthropic
19
19
  #
20
20
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
21
21
  #
22
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
23
- # no longer a member of the organization or of that workspace.
24
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
25
- # organization disabled for any other reason, such as billing, does not get this
26
- # code. `appeal_url`, when present, is where the organization can appeal.
22
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
23
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
27
24
  #
28
25
  # @return [Anthropic::Models::ModelInfo]
29
26
  #
@@ -64,11 +61,8 @@ module Anthropic
64
61
  #
65
62
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
66
63
  #
67
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
68
- # no longer a member of the organization or of that workspace.
69
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
70
- # organization disabled for any other reason, such as billing, does not get this
71
- # code. `appeal_url`, when present, is where the organization can appeal.
64
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
65
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
72
66
  #
73
67
  # @return [Anthropic::Internal::Page<Anthropic::Models::ModelInfo>]
74
68
  #
@@ -39,8 +39,9 @@ module Anthropic
39
39
  #
40
40
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
41
41
  #
42
- # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError] The organization has reached its limit of active API keys.
43
- # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError] The workspace has reached its limit of active API keys.
42
+ # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError]
43
+ # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError]
44
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
44
45
  #
45
46
  # @return [Anthropic::Models::Organization::APIKey]
46
47
  #
@@ -56,6 +56,8 @@ module Anthropic
56
56
  #
57
57
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
58
58
  #
59
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
60
+ #
59
61
  # @return [Anthropic::Models::Organization::OrganizationComplianceSettings]
60
62
  #
61
63
  # @see Anthropic::Models::Organization::ComplianceSettingUpdateParams
@@ -21,9 +21,8 @@ module Anthropic
21
21
  #
22
22
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
23
23
  #
24
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
25
- # is no longer active. The request either names this user profile by ID, or names
26
- # a resource, such as an External Key, that is bound to it.
24
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
25
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
27
26
  #
28
27
  # @return [Anthropic::Models::Organization::ExternalKey]
29
28
  #
@@ -83,8 +82,8 @@ module Anthropic
83
82
  #
84
83
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
85
84
  #
86
- # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError] The External Key can't be deleted or reconfigured while the organization's
87
- # Workspace Policy lists it as an allowed key.
85
+ # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
86
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
88
87
  #
89
88
  # @return [Anthropic::Models::Organization::ExternalKey]
90
89
  #
@@ -145,8 +144,8 @@ module Anthropic
145
144
  #
146
145
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
147
146
  #
148
- # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError] The External Key can't be deleted or reconfigured while the organization's
149
- # Workspace Policy lists it as an allowed key.
147
+ # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
148
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
150
149
  #
151
150
  # @return [Anthropic::Models::Organization::ExternalKeyDeleteResponse]
152
151
  #
@@ -176,6 +175,8 @@ module Anthropic
176
175
  #
177
176
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
178
177
  #
178
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
179
+ #
179
180
  # @return [Anthropic::Models::Organization::ExternalKeyValidateResponse]
180
181
  #
181
182
  # @see Anthropic::Models::Organization::ExternalKeyValidateParams
@@ -40,6 +40,8 @@ module Anthropic
40
40
  #
41
41
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
42
42
  #
43
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
44
+ #
43
45
  # @return [Anthropic::Models::Organization::Federation::FederationIssuer]
44
46
  #
45
47
  # @see Anthropic::Models::Organization::Federation::IssuerCreateParams
@@ -120,6 +122,8 @@ module Anthropic
120
122
  #
121
123
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
122
124
  #
125
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
126
+ #
123
127
  # @return [Anthropic::Models::Organization::Federation::FederationIssuer]
124
128
  #
125
129
  # @see Anthropic::Models::Organization::Federation::IssuerUpdateParams
@@ -193,6 +197,8 @@ module Anthropic
193
197
  #
194
198
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
195
199
  #
200
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
201
+ #
196
202
  # @return [Anthropic::Models::Organization::Federation::FederationIssuer]
197
203
  #
198
204
  # @see Anthropic::Models::Organization::Federation::IssuerArchiveParams
@@ -72,6 +72,8 @@ module Anthropic
72
72
  #
73
73
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
74
74
  #
75
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
76
+ #
75
77
  # @return [Anthropic::Models::Organization::Federation::FederationRuleWorkspace]
76
78
  #
77
79
  # @see Anthropic::Models::Organization::Federation::Rules::WorkspaceAddParams
@@ -109,6 +111,8 @@ module Anthropic
109
111
  #
110
112
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
111
113
  #
114
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
115
+ #
112
116
  # @return [Anthropic::Models::Organization::Federation::Rules::WorkspaceRemoveResponse]
113
117
  #
114
118
  # @see Anthropic::Models::Organization::Federation::Rules::WorkspaceRemoveParams
@@ -54,6 +54,8 @@ module Anthropic
54
54
  #
55
55
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
56
56
  #
57
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
58
+ #
57
59
  # @return [Anthropic::Models::Organization::Federation::FederationRule]
58
60
  #
59
61
  # @see Anthropic::Models::Organization::Federation::RuleCreateParams
@@ -147,6 +149,8 @@ module Anthropic
147
149
  #
148
150
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
149
151
  #
152
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
153
+ #
150
154
  # @return [Anthropic::Models::Organization::Federation::FederationRule]
151
155
  #
152
156
  # @see Anthropic::Models::Organization::Federation::RuleUpdateParams
@@ -225,6 +229,8 @@ module Anthropic
225
229
  #
226
230
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
227
231
  #
232
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
233
+ #
228
234
  # @return [Anthropic::Models::Organization::Federation::FederationRule]
229
235
  #
230
236
  # @see Anthropic::Models::Organization::Federation::RuleArchiveParams
@@ -24,23 +24,14 @@ module Anthropic
24
24
  #
25
25
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
26
26
  #
27
- # @raise [Anthropic::Models::Organization::AlreadyMemberError] The email address already belongs to a user in the organization. The message
28
- # names the user.
29
- # @raise [Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsError] The email address's domain is not one of the verified domains of the
30
- # organization's parent organization.
31
- # @raise [Anthropic::Models::Organization::EmailDomainNotAllowedError] The organization restricts invites to an allowed list of email domains, and the
32
- # list is empty or does not include the email address's domain.
33
- # @raise [Anthropic::Models::Organization::InviteAlreadyExistsError] A pending invite already exists for the email address. The message names the
34
- # invite.
35
- # @raise [Anthropic::Models::OrgMemberLimitExceededError] The organization has reached the member limit that Anthropic set for it. Pending
36
- # invites count toward the limit.
37
- # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError] A role attached to an RBAC Group in the request grants owner access, so this API
38
- # does not add members to that group (directly or through an invite), remove its
39
- # members, or delete it. Make the change in the organization's admin settings in
40
- # Claude.
41
- # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError] The API could not finish checking whether an RBAC Group in the request grants
42
- # owner access, so it made no change. Retrying the same request will not help.
43
- # Make the change in the organization's admin settings in Claude.
27
+ # @raise [Anthropic::Models::Organization::AlreadyMemberError]
28
+ # @raise [Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsError]
29
+ # @raise [Anthropic::Models::Organization::EmailDomainNotAllowedError]
30
+ # @raise [Anthropic::Models::Organization::InviteAlreadyExistsError]
31
+ # @raise [Anthropic::Models::OrgMemberLimitExceededError]
32
+ # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
33
+ # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
34
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
44
35
  #
45
36
  # @return [Anthropic::Models::Organization::OrganizationInvite]
46
37
  #
@@ -130,6 +121,8 @@ module Anthropic
130
121
  #
131
122
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
123
  #
124
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
125
+ #
133
126
  # @return [Anthropic::Models::Organization::InviteDeleteResponse]
134
127
  #
135
128
  # @see Anthropic::Models::Organization::InviteDeleteParams
@@ -57,13 +57,9 @@ module Anthropic
57
57
  #
58
58
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
59
59
  #
60
- # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError] A role attached to an RBAC Group in the request grants owner access, so this API
61
- # does not add members to that group (directly or through an invite), remove its
62
- # members, or delete it. Make the change in the organization's admin settings in
63
- # Claude.
64
- # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError] The API could not finish checking whether an RBAC Group in the request grants
65
- # owner access, so it made no change. Retrying the same request will not help.
66
- # Make the change in the organization's admin settings in Claude.
60
+ # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
61
+ # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
62
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
67
63
  #
68
64
  # @return [Anthropic::Models::Organization::RBACGroups::RBACGroupMember]
69
65
  #
@@ -97,13 +93,9 @@ module Anthropic
97
93
  #
98
94
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
99
95
  #
100
- # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError] A role attached to an RBAC Group in the request grants owner access, so this API
101
- # does not add members to that group (directly or through an invite), remove its
102
- # members, or delete it. Make the change in the organization's admin settings in
103
- # Claude.
104
- # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError] The API could not finish checking whether an RBAC Group in the request grants
105
- # owner access, so it made no change. Retrying the same request will not help.
106
- # Make the change in the organization's admin settings in Claude.
96
+ # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
97
+ # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
98
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
107
99
  #
108
100
  # @return [Anthropic::Models::Organization::RBACGroups::DeletedRBACGroupMember]
109
101
  #
@@ -18,6 +18,8 @@ module Anthropic
18
18
  #
19
19
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
20
20
  #
21
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
22
+ #
21
23
  # @return [Anthropic::Models::Organization::RBACGroup]
22
24
  #
23
25
  # @see Anthropic::Models::Organization::RBACGroupCreateParams
@@ -74,6 +76,8 @@ module Anthropic
74
76
  #
75
77
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
76
78
  #
79
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
80
+ #
77
81
  # @return [Anthropic::Models::Organization::RBACGroup]
78
82
  #
79
83
  # @see Anthropic::Models::Organization::RBACGroupUpdateParams
@@ -137,13 +141,9 @@ module Anthropic
137
141
  #
138
142
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
139
143
  #
140
- # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError] A role attached to an RBAC Group in the request grants owner access, so this API
141
- # does not add members to that group (directly or through an invite), remove its
142
- # members, or delete it. Make the change in the organization's admin settings in
143
- # Claude.
144
- # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError] The API could not finish checking whether an RBAC Group in the request grants
145
- # owner access, so it made no change. Retrying the same request will not help.
146
- # Make the change in the organization's admin settings in Claude.
144
+ # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
145
+ # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
146
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
147
147
  #
148
148
  # @return [Anthropic::Models::Organization::DeletedRBACGroup]
149
149
  #
@@ -77,6 +77,8 @@ module Anthropic
77
77
  #
78
78
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
79
79
  #
80
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
81
+ #
80
82
  # @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
81
83
  #
82
84
  # @see Anthropic::Models::Organization::ServiceAccounts::WorkspaceAddParams
@@ -118,6 +120,8 @@ module Anthropic
118
120
  #
119
121
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
120
122
  #
123
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
124
+ #
121
125
  # @return [Anthropic::Models::Organization::ServiceAccounts::WorkspaceRemoveResponse]
122
126
  #
123
127
  # @see Anthropic::Models::Organization::ServiceAccounts::WorkspaceRemoveParams
@@ -34,6 +34,8 @@ module Anthropic
34
34
  #
35
35
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
36
36
  #
37
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
38
+ #
37
39
  # @return [Anthropic::Models::Organization::ServiceAccount]
38
40
  #
39
41
  # @see Anthropic::Models::Organization::ServiceAccountCreateParams
@@ -104,6 +106,8 @@ module Anthropic
104
106
  #
105
107
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
106
108
  #
109
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
110
+ #
107
111
  # @return [Anthropic::Models::Organization::ServiceAccount]
108
112
  #
109
113
  # @see Anthropic::Models::Organization::ServiceAccountUpdateParams
@@ -179,6 +183,8 @@ module Anthropic
179
183
  #
180
184
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
181
185
  #
186
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
187
+ #
182
188
  # @return [Anthropic::Models::Organization::ServiceAccount]
183
189
  #
184
190
  # @see Anthropic::Models::Organization::ServiceAccountArchiveParams
@@ -28,8 +28,7 @@ module Anthropic
28
28
  #
29
29
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
30
30
  #
31
- # @raise [Anthropic::Models::OrganizationTypeNotSupportedError] The endpoint does not support the organization's type. Each endpoint's
32
- # description says which organization types it supports.
31
+ # @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
33
32
  #
34
33
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Organization::SpendSummary>]
35
34
  #
@@ -89,6 +89,8 @@ module Anthropic
89
89
  #
90
90
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
91
91
  #
92
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
93
+ #
92
94
  # @return [Anthropic::Models::Organization::SpendLimits::IncreaseRequestApproveResponse]
93
95
  #
94
96
  # @see Anthropic::Models::Organization::SpendLimits::IncreaseRequestApproveParams
@@ -122,6 +124,8 @@ module Anthropic
122
124
  #
123
125
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
124
126
  #
127
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
128
+ #
125
129
  # @return [Anthropic::Models::Organization::SpendLimits::SpendLimitIncreaseRequest]
126
130
  #
127
131
  # @see Anthropic::Models::Organization::SpendLimits::IncreaseRequestDenyParams
@@ -40,6 +40,8 @@ module Anthropic
40
40
  #
41
41
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
42
42
  #
43
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
44
+ #
43
45
  # @return [Anthropic::Models::Organization::OrganizationUser]
44
46
  #
45
47
  # @see Anthropic::Models::Organization::UserUpdateParams
@@ -103,10 +105,9 @@ module Anthropic
103
105
  #
104
106
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
105
107
  #
106
- # @raise [Anthropic::Models::Organization::CannotRemoveLastMemberError] The user is the organization's only member. Add another member before removing
107
- # this one.
108
- # @raise [Anthropic::Models::ConcurrentMembershipChangeError] Another change to the organization's members is in progress. Retry the request
109
- # once it completes.
108
+ # @raise [Anthropic::Models::Organization::CannotRemoveLastMemberError]
109
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
110
+ # @raise [Anthropic::Models::ConcurrentMembershipChangeError]
110
111
  #
111
112
  # @return [Anthropic::Models::Organization::UserRemoveResponse]
112
113
  #