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
@@ -218,6 +218,8 @@ module Anthropic
218
218
  #
219
219
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
220
220
  #
221
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
222
+ #
221
223
  # @return [Anthropic::Models::Beta::Organization::BetaDeletedOrganizationWebhookEndpoint]
222
224
  #
223
225
  # @see Anthropic::Models::Beta::Organization::WebhookDeleteParams
@@ -258,6 +260,8 @@ module Anthropic
258
260
  #
259
261
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
260
262
  #
263
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
264
+ #
261
265
  # @return [Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointSigningSecret]
262
266
  #
263
267
  # @see Anthropic::Models::Beta::Organization::WebhookRegenerateSigningSecretParams
@@ -52,7 +52,8 @@ module Anthropic
52
52
  #
53
53
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
54
54
  #
55
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
55
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
56
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
56
57
  #
57
58
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspaceMember]
58
59
  #
@@ -130,7 +131,8 @@ module Anthropic
130
131
  #
131
132
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
133
  #
133
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
134
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
135
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
134
136
  #
135
137
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspaceMember]
136
138
  #
@@ -161,6 +163,8 @@ module Anthropic
161
163
  #
162
164
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
163
165
  #
166
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
167
+ #
164
168
  # @return [Anthropic::Models::Beta::Organization::Workspaces::MemberRemoveResponse]
165
169
  #
166
170
  # @see Anthropic::Models::Beta::Organization::Workspaces::MemberRemoveParams
@@ -31,6 +31,8 @@ module Anthropic
31
31
  #
32
32
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
33
33
  #
34
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
35
+ #
34
36
  # @return [Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit]
35
37
  #
36
38
  # @see Anthropic::Models::Beta::Organization::Workspaces::RateLimitUpdateParams
@@ -84,6 +84,8 @@ module Anthropic
84
84
  #
85
85
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
86
86
  #
87
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
88
+ #
87
89
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember]
88
90
  #
89
91
  # @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountUpdateParams
@@ -192,6 +194,8 @@ module Anthropic
192
194
  #
193
195
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
194
196
  #
197
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
198
+ #
195
199
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember]
196
200
  #
197
201
  # @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountAddParams
@@ -236,6 +240,8 @@ module Anthropic
236
240
  #
237
241
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
238
242
  #
243
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
244
+ #
239
245
  # @return [Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountRemoveResponse]
240
246
  #
241
247
  # @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountRemoveParams
@@ -37,17 +37,13 @@ module Anthropic
37
37
  #
38
38
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
39
39
  #
40
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
41
- # that user profile. A Workspace can use only a key bound to its own user profile
42
- # or a key that isn't bound to one.
43
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
44
- # is no longer active. The request either names this user profile by ID, or names
45
- # a resource, such as an External Key, that is bound to it.
46
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
47
- # rule it broke; an organization admin can see and change the policy in the
48
- # Console.
49
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
50
- # again.
40
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
41
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
42
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
43
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
44
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
45
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
46
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
51
47
  #
52
48
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
53
49
  #
@@ -116,17 +112,13 @@ module Anthropic
116
112
  #
117
113
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
118
114
  #
119
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
120
- # that user profile. A Workspace can use only a key bound to its own user profile
121
- # or a key that isn't bound to one.
122
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
123
- # is no longer active. The request either names this user profile by ID, or names
124
- # a resource, such as an External Key, that is bound to it.
125
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
126
- # rule it broke; an organization admin can see and change the policy in the
127
- # Console.
128
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
129
- # again.
115
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
116
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
117
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
118
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
119
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
120
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
121
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
130
122
  #
131
123
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
132
124
  #
@@ -194,6 +186,8 @@ module Anthropic
194
186
  # @param workspace_id [String]
195
187
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
196
188
  #
189
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
190
+ #
197
191
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
198
192
  #
199
193
  # @see Anthropic::Models::Beta::Organization::WorkspaceArchiveParams
@@ -22,17 +22,11 @@ module Anthropic
22
22
  #
23
23
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
24
24
  #
25
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
26
- # no longer a member of the organization or of that workspace.
27
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
28
- # Re-enable the key, then retry.
29
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
30
- # workspace's customer-managed encryption key. The key itself may be healthy.
31
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
32
- # organization disabled for any other reason, such as billing, does not get this
33
- # code. `appeal_url`, when present, is where the organization can appeal.
34
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
35
- # refused. Retry in a few minutes.
25
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
26
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
27
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
28
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
29
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
36
30
  #
37
31
  # @return [Anthropic::Models::Beta::Skills::BetaSkillVersion]
38
32
  #
@@ -77,11 +71,8 @@ module Anthropic
77
71
  #
78
72
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
79
73
  #
80
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
81
- # no longer a member of the organization or of that workspace.
82
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
83
- # organization disabled for any other reason, such as billing, does not get this
84
- # code. `appeal_url`, when present, is where the organization can appeal.
74
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
75
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
85
76
  #
86
77
  # @return [Anthropic::Models::Beta::Skills::BetaSkillVersion]
87
78
  #
@@ -124,11 +115,8 @@ module Anthropic
124
115
  #
125
116
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
126
117
  #
127
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
128
- # no longer a member of the organization or of that workspace.
129
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
130
- # organization disabled for any other reason, such as billing, does not get this
131
- # code. `appeal_url`, when present, is where the organization can appeal.
118
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
119
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
132
120
  #
133
121
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Skills::BetaSkillVersion>]
134
122
  #
@@ -173,11 +161,8 @@ module Anthropic
173
161
  #
174
162
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
175
163
  #
176
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
177
- # no longer a member of the organization or of that workspace.
178
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
179
- # organization disabled for any other reason, such as billing, does not get this
180
- # code. `appeal_url`, when present, is where the organization can appeal.
164
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
165
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
181
166
  #
182
167
  # @return [Anthropic::Models::Beta::Skills::BetaDeletedSkillVersion]
183
168
  #
@@ -24,17 +24,11 @@ module Anthropic
24
24
  #
25
25
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
26
26
  #
27
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
28
- # no longer a member of the organization or of that workspace.
29
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
30
- # Re-enable the key, then retry.
31
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
32
- # workspace's customer-managed encryption key. The key itself may be healthy.
33
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
34
- # organization disabled for any other reason, such as billing, does not get this
35
- # code. `appeal_url`, when present, is where the organization can appeal.
36
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
37
- # refused. Retry in a few minutes.
27
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
28
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
29
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
30
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
31
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
38
32
  #
39
33
  # @return [Anthropic::Models::Beta::BetaSkill]
40
34
  #
@@ -76,11 +70,8 @@ module Anthropic
76
70
  #
77
71
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
78
72
  #
79
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
80
- # no longer a member of the organization or of that workspace.
81
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
82
- # organization disabled for any other reason, such as billing, does not get this
83
- # code. `appeal_url`, when present, is where the organization can appeal.
73
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
74
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
84
75
  #
85
76
  # @return [Anthropic::Models::Beta::BetaSkill]
86
77
  #
@@ -119,11 +110,8 @@ module Anthropic
119
110
  #
120
111
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
121
112
  #
122
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
123
- # no longer a member of the organization or of that workspace.
124
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
125
- # organization disabled for any other reason, such as billing, does not get this
126
- # code. `appeal_url`, when present, is where the organization can appeal.
113
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
114
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
127
115
  #
128
116
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaSkill>]
129
117
  #
@@ -165,11 +153,8 @@ module Anthropic
165
153
  #
166
154
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
167
155
  #
168
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
169
- # no longer a member of the organization or of that workspace.
170
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
171
- # organization disabled for any other reason, such as billing, does not get this
172
- # code. `appeal_url`, when present, is where the organization can appeal.
156
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
157
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
173
158
  #
174
159
  # @return [Anthropic::Models::Beta::BetaDeletedSkill]
175
160
  #
@@ -20,15 +20,10 @@ module Anthropic
20
20
  #
21
21
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
22
22
  #
23
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
24
- # no longer a member of the organization or of that workspace.
25
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
26
- # Re-enable the key, then retry.
27
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
28
- # workspace's customer-managed encryption key. The key itself may be healthy.
29
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
30
- # organization disabled for any other reason, such as billing, does not get this
31
- # code. `appeal_url`, when present, is where the organization can appeal.
23
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
24
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
25
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
26
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
32
27
  #
33
28
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::FileMetadata>]
34
29
  #
@@ -64,15 +59,10 @@ module Anthropic
64
59
  #
65
60
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
66
61
  #
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::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
70
- # Re-enable the key, then retry.
71
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
72
- # workspace's customer-managed encryption key. The key itself may be healthy.
73
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
74
- # organization disabled for any other reason, such as billing, does not get this
75
- # code. `appeal_url`, when present, is where the organization can appeal.
62
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
63
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
64
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
65
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
76
66
  #
77
67
  # @return [Anthropic::Models::DeletedFile]
78
68
  #
@@ -104,18 +94,12 @@ module Anthropic
104
94
  #
105
95
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
106
96
  #
107
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
108
- # no longer a member of the organization or of that workspace.
109
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
110
- # Re-enable the key, then retry.
111
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
112
- # workspace's customer-managed encryption key. The key itself may be healthy.
113
- # @raise [Anthropic::Models::FileNotDownloadableError] The file has `downloadable: false`. Only files generated by a tool, such as the
114
- # code execution tool, can be downloaded.
115
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
116
- # organization disabled for any other reason, such as billing, does not get this
117
- # code. `appeal_url`, when present, is where the organization can appeal.
118
- # @raise [Anthropic::Models::FileExpiredError] The file's `expires_at` has passed, so its content is no longer available.
97
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
98
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
99
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
100
+ # @raise [Anthropic::Models::FileNotDownloadableError]
101
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
102
+ # @raise [Anthropic::Models::FileExpiredError]
119
103
  #
120
104
  # @return [StringIO]
121
105
  #
@@ -150,15 +134,10 @@ module Anthropic
150
134
  #
151
135
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
152
136
  #
153
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
154
- # no longer a member of the organization or of that workspace.
155
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
156
- # Re-enable the key, then retry.
157
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
158
- # workspace's customer-managed encryption key. The key itself may be healthy.
159
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
160
- # organization disabled for any other reason, such as billing, does not get this
161
- # code. `appeal_url`, when present, is where the organization can appeal.
137
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
138
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
139
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
140
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
162
141
  #
163
142
  # @return [Anthropic::Models::FileMetadata]
164
143
  #
@@ -192,17 +171,11 @@ module Anthropic
192
171
  #
193
172
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
194
173
  #
195
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
196
- # no longer a member of the organization or of that workspace.
197
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
198
- # Re-enable the key, then retry.
199
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
200
- # workspace's customer-managed encryption key. The key itself may be healthy.
201
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
202
- # organization disabled for any other reason, such as billing, does not get this
203
- # code. `appeal_url`, when present, is where the organization can appeal.
204
- # @raise [Anthropic::Models::StorageQuotaExceededError] The organization's file storage quota is exhausted. Delete files to free up
205
- # space, then retry the upload.
174
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
175
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
176
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
177
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
178
+ # @raise [Anthropic::Models::StorageQuotaExceededError]
206
179
  #
207
180
  # @return [Anthropic::Models::FileMetadata]
208
181
  #
@@ -26,14 +26,10 @@ module Anthropic
26
26
  #
27
27
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
28
28
  #
29
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
30
- # no longer a member of the organization or of that workspace.
31
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
32
- # Re-enable the key, then retry.
33
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
34
- # organization disabled for any other reason, such as billing, does not get this
35
- # code. `appeal_url`, when present, is where the organization can appeal.
36
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
29
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
30
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
31
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
32
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
37
33
  #
38
34
  # @return [Anthropic::Models::Messages::MessageBatch]
39
35
  #
@@ -75,11 +71,8 @@ module Anthropic
75
71
  #
76
72
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
77
73
  #
78
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
79
- # no longer a member of the organization or of that workspace.
80
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
81
- # organization disabled for any other reason, such as billing, does not get this
82
- # code. `appeal_url`, when present, is where the organization can appeal.
74
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
75
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
83
76
  #
84
77
  # @return [Anthropic::Models::Messages::MessageBatch]
85
78
  #
@@ -119,11 +112,8 @@ module Anthropic
119
112
  #
120
113
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
121
114
  #
122
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
123
- # no longer a member of the organization or of that workspace.
124
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
125
- # organization disabled for any other reason, such as billing, does not get this
126
- # code. `appeal_url`, when present, is where the organization can appeal.
115
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
116
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
127
117
  #
128
118
  # @return [Anthropic::Internal::Page<Anthropic::Models::Messages::MessageBatch>]
129
119
  #
@@ -165,11 +155,8 @@ module Anthropic
165
155
  #
166
156
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
167
157
  #
168
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
169
- # no longer a member of the organization or of that workspace.
170
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
171
- # organization disabled for any other reason, such as billing, does not get this
172
- # code. `appeal_url`, when present, is where the organization can appeal.
158
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
159
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
173
160
  #
174
161
  # @return [Anthropic::Models::Messages::DeletedMessageBatch]
175
162
  #
@@ -212,11 +199,8 @@ module Anthropic
212
199
  #
213
200
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
214
201
  #
215
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
216
- # no longer a member of the organization or of that workspace.
217
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
218
- # organization disabled for any other reason, such as billing, does not get this
219
- # code. `appeal_url`, when present, is where the organization can appeal.
202
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
203
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
220
204
  #
221
205
  # @return [Anthropic::Models::Messages::MessageBatch]
222
206
  #
@@ -255,13 +239,9 @@ module Anthropic
255
239
  #
256
240
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
257
241
  #
258
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
259
- # no longer a member of the organization or of that workspace.
260
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
261
- # Re-enable the key, then retry.
262
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
263
- # organization disabled for any other reason, such as billing, does not get this
264
- # code. `appeal_url`, when present, is where the organization can appeal.
242
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
243
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
244
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
265
245
  #
266
246
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Messages::MessageBatchIndividualResponse>]
267
247
  #