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
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ # Anthropic's validation of the External Key did not finish in time, so the
7
+ # request was refused. Wait a moment, then send the request again.
8
+ class ExternalKeyValidationTimedOutError < Anthropic::Errors::BadRequestError
9
+ # @!method error_code
10
+ # @return [Symbol, :external_key_validation_timed_out]
11
+
12
+ # @return [Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails]
13
+ def details
14
+ Anthropic::Internal::Type::Converter.coerce(
15
+ Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails,
16
+ Anthropic::Internal::Util.dig(body, [:error, :details])
17
+ )
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ class ExternalKeyValidationTimedOutErrorDetails < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute error_code
8
+ #
9
+ # @return [Symbol, :external_key_validation_timed_out]
10
+ required :error_code, const: :external_key_validation_timed_out
11
+
12
+ # @!method initialize(error_code: :external_key_validation_timed_out)
13
+ # Anthropic's validation of the External Key did not finish in time, so the
14
+ # request was refused. Wait a moment, then send the request again.
15
+ #
16
+ # @param error_code [Symbol, :external_key_validation_timed_out]
17
+ end
18
+ end
19
+ end
20
+ end
@@ -4,18 +4,25 @@ module Anthropic
4
4
  module Models
5
5
  class OverloadedError < Anthropic::Internal::Type::BaseModel
6
6
  # @!attribute message
7
+ # A human-readable explanation of the error. Its wording can change, so don't
8
+ # match on it.
7
9
  #
8
10
  # @return [String]
9
11
  required :message, String
10
12
 
11
13
  # @!attribute type
14
+ # The broad category of the error.
12
15
  #
13
16
  # @return [Symbol, :overloaded_error]
14
17
  required :type, const: :overloaded_error
15
18
 
16
19
  # @!method initialize(message:, type: :overloaded_error)
17
- # @param message [String]
18
- # @param type [Symbol, :overloaded_error]
20
+ # Some parameter documentations has been truncated, see
21
+ # {Anthropic::Models::OverloadedError} for more details.
22
+ #
23
+ # @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
24
+ #
25
+ # @param type [Symbol, :overloaded_error] The broad category of the error.
19
26
  end
20
27
  end
21
28
  end
@@ -4,18 +4,25 @@ module Anthropic
4
4
  module Models
5
5
  class PermissionError < Anthropic::Internal::Type::BaseModel
6
6
  # @!attribute message
7
+ # A human-readable explanation of the error. Its wording can change, so don't
8
+ # match on it.
7
9
  #
8
10
  # @return [String]
9
11
  required :message, String
10
12
 
11
13
  # @!attribute type
14
+ # The broad category of the error.
12
15
  #
13
16
  # @return [Symbol, :permission_error]
14
17
  required :type, const: :permission_error
15
18
 
16
19
  # @!method initialize(message:, type: :permission_error)
17
- # @param message [String]
18
- # @param type [Symbol, :permission_error]
20
+ # Some parameter documentations has been truncated, see
21
+ # {Anthropic::Models::PermissionError} for more details.
22
+ #
23
+ # @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
24
+ #
25
+ # @param type [Symbol, :permission_error] The broad category of the error.
19
26
  end
20
27
  end
21
28
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The request would exceed a ramp limit, which caps how fast usage can grow. Retry
6
+ # after the time in the `retry-after` header.
7
+ class RampLimitExceededError < Anthropic::Errors::RateLimitError
8
+ # @!method error_code
9
+ # @return [Symbol, :ramp_limit_exceeded]
10
+
11
+ # @return [Anthropic::Models::RampLimitExceededErrorDetails]
12
+ def details
13
+ Anthropic::Internal::Type::Converter.coerce(
14
+ Anthropic::RampLimitExceededErrorDetails,
15
+ Anthropic::Internal::Util.dig(body, [:error, :details])
16
+ )
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class RampLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute error_code
7
+ #
8
+ # @return [Symbol, :ramp_limit_exceeded]
9
+ required :error_code, const: :ramp_limit_exceeded
10
+
11
+ # @!method initialize(error_code: :ramp_limit_exceeded)
12
+ # The request would exceed a ramp limit, which caps how fast usage can grow. Retry
13
+ # after the time in the `retry-after` header.
14
+ #
15
+ # @param error_code [Symbol, :ramp_limit_exceeded]
16
+ end
17
+ end
18
+ end
@@ -4,18 +4,25 @@ module Anthropic
4
4
  module Models
5
5
  class RateLimitError < Anthropic::Internal::Type::BaseModel
6
6
  # @!attribute message
7
+ # A human-readable explanation of the error. Its wording can change, so don't
8
+ # match on it.
7
9
  #
8
10
  # @return [String]
9
11
  required :message, String
10
12
 
11
13
  # @!attribute type
14
+ # The broad category of the error.
12
15
  #
13
16
  # @return [Symbol, :rate_limit_error]
14
17
  required :type, const: :rate_limit_error
15
18
 
16
19
  # @!method initialize(message:, type: :rate_limit_error)
17
- # @param message [String]
18
- # @param type [Symbol, :rate_limit_error]
20
+ # Some parameter documentations has been truncated, see
21
+ # {Anthropic::Models::RateLimitError} for more details.
22
+ #
23
+ # @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
24
+ #
25
+ # @param type [Symbol, :rate_limit_error] The broad category of the error.
19
26
  end
20
27
  end
21
28
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The request came from a Claude sandbox with restricted network access, which is
6
+ # not allowed to make this change. Send it from outside the sandbox, or from a
7
+ # sandbox with unrestricted network access.
8
+ class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
9
+ # @!method error_code
10
+ # @return [Symbol, :sandbox_egress_restricted]
11
+
12
+ # @return [Anthropic::Models::SandboxEgressRestrictedErrorDetails]
13
+ def details
14
+ Anthropic::Internal::Type::Converter.coerce(
15
+ Anthropic::SandboxEgressRestrictedErrorDetails,
16
+ Anthropic::Internal::Util.dig(body, [:error, :details])
17
+ )
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute error_code
7
+ #
8
+ # @return [Symbol, :sandbox_egress_restricted]
9
+ required :error_code, const: :sandbox_egress_restricted
10
+
11
+ # @!method initialize(error_code: :sandbox_egress_restricted)
12
+ # The request came from a Claude sandbox with restricted network access, which is
13
+ # not allowed to make this change. Send it from outside the sandbox, or from a
14
+ # sandbox with unrestricted network access.
15
+ #
16
+ # @param error_code [Symbol, :sandbox_egress_restricted]
17
+ end
18
+ end
19
+ end
@@ -11,7 +11,6 @@ module Anthropic
11
11
  HIPAA = :hipaa
12
12
  INFERENCE_HOOKS = :inference_hooks
13
13
  THINKING = :thinking
14
- ZDR = :zdr
15
14
 
16
15
  # @!method self.values
17
16
  # @return [Array<Symbol>]
@@ -95,6 +95,11 @@ module Anthropic
95
95
 
96
96
  BetaNotFoundError = Anthropic::Models::BetaNotFoundError
97
97
 
98
+ BetaOrganizationNotEnrolledInBetaError = Anthropic::Models::BetaOrganizationNotEnrolledInBetaError
99
+
100
+ BetaOrganizationNotEnrolledInBetaErrorDetails =
101
+ Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails
102
+
98
103
  BetaOverloadedError = Anthropic::Models::BetaOverloadedError
99
104
 
100
105
  BetaPermissionError = Anthropic::Models::BetaPermissionError
@@ -734,6 +739,10 @@ module Anthropic
734
739
 
735
740
  PlainTextSource = Anthropic::Models::PlainTextSource
736
741
 
742
+ RampLimitExceededError = Anthropic::Models::RampLimitExceededError
743
+
744
+ RampLimitExceededErrorDetails = Anthropic::Models::RampLimitExceededErrorDetails
745
+
737
746
  RateLimitError = Anthropic::Models::RateLimitError
738
747
 
739
748
  RawContentBlockDelta = Anthropic::Models::RawContentBlockDelta
@@ -772,6 +781,10 @@ module Anthropic
772
781
  RequestBodyTooLargeAfterDecodingErrorDetails =
773
782
  Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
774
783
 
784
+ SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
785
+
786
+ SandboxEgressRestrictedErrorDetails = Anthropic::Models::SandboxEgressRestrictedErrorDetails
787
+
775
788
  SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
776
789
 
777
790
  ServerToolCaller = Anthropic::Models::ServerToolCaller
@@ -27,11 +27,8 @@ module Anthropic
27
27
  #
28
28
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
29
29
  #
30
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
31
- # no longer a member of the organization or of that workspace.
32
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
33
- # organization disabled for any other reason, such as billing, does not get this
34
- # code. `appeal_url`, when present, is where the organization can appeal.
30
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
31
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
35
32
  #
36
33
  # @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
37
34
  #
@@ -82,13 +79,9 @@ module Anthropic
82
79
  #
83
80
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
84
81
  #
85
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
86
- # no longer a member of the organization or of that workspace.
87
- # @raise [Anthropic::Models::Beta::BetaInvalidMetadataError] `metadata` has too many keys, a key or value that is too long, or a reserved
88
- # key. The message names each problem.
89
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
90
- # organization disabled for any other reason, such as billing, does not get this
91
- # code. `appeal_url`, when present, is where the organization can appeal.
82
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
83
+ # @raise [Anthropic::Models::Beta::BetaInvalidMetadataError]
84
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
92
85
  #
93
86
  # @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
94
87
  #
@@ -226,8 +219,7 @@ module Anthropic
226
219
  #
227
220
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
228
221
  #
229
- # @raise [Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedError] `expected_last_heartbeat` does not match the stored heartbeat, so another worker
230
- # may hold the lease.
222
+ # @raise [Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedError]
231
223
  #
232
224
  # @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWorkHeartbeatResponse]
233
225
  #
@@ -322,11 +314,8 @@ module Anthropic
322
314
  #
323
315
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
324
316
  #
325
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
326
- # no longer a member of the organization or of that workspace.
327
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
328
- # organization disabled for any other reason, such as billing, does not get this
329
- # code. `appeal_url`, when present, is where the organization can appeal.
317
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
318
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
330
319
  #
331
320
  # @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWorkQueueStats]
332
321
  #
@@ -370,11 +359,8 @@ module Anthropic
370
359
  #
371
360
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
372
361
  #
373
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
374
- # no longer a member of the organization or of that workspace.
375
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
376
- # organization disabled for any other reason, such as billing, does not get this
377
- # code. `appeal_url`, when present, is where the organization can appeal.
362
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
363
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
378
364
  #
379
365
  # @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
380
366
  #
@@ -30,13 +30,9 @@ module Anthropic
30
30
  #
31
31
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
32
32
  #
33
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
34
- # no longer a member of the organization or of that workspace.
35
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
36
- # organization disabled for any other reason, such as billing, does not get this
37
- # code. `appeal_url`, when present, is where the organization can appeal.
38
- # @raise [Anthropic::Models::Beta::BetaEnvironmentCreateDisabledError] Anthropic has turned off creating environments for this organization. Existing
39
- # environments still work.
33
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
34
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
35
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentCreateDisabledError]
40
36
  #
41
37
  # @return [Anthropic::Models::Beta::BetaEnvironment]
42
38
  #
@@ -73,11 +69,8 @@ module Anthropic
73
69
  #
74
70
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
75
71
  #
76
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
77
- # no longer a member of the organization or of that workspace.
78
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
79
- # organization disabled for any other reason, such as billing, does not get this
80
- # code. `appeal_url`, when present, is where the organization can appeal.
72
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
73
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
81
74
  #
82
75
  # @return [Anthropic::Models::Beta::BetaEnvironment]
83
76
  #
@@ -122,16 +115,11 @@ module Anthropic
122
115
  #
123
116
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
124
117
  #
125
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
126
- # no longer a member of the organization or of that workspace.
127
- # @raise [Anthropic::Models::Beta::BetaEnvironmentArchivedError] The environment is archived, so it cannot be updated.
128
- # @raise [Anthropic::Models::Beta::BetaInvalidConfigTypeChangeError] `config.type` differs from the environment's stored type, which cannot change
129
- # after creation.
130
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
131
- # organization disabled for any other reason, such as billing, does not get this
132
- # code. `appeal_url`, when present, is where the organization can appeal.
133
- # @raise [Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledError] Anthropic has turned off updating environments for this organization. Existing
134
- # environments still work as they are.
118
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
119
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentArchivedError]
120
+ # @raise [Anthropic::Models::Beta::BetaInvalidConfigTypeChangeError]
121
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
122
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledError]
135
123
  #
136
124
  # @return [Anthropic::Models::Beta::BetaEnvironment]
137
125
  #
@@ -172,11 +160,8 @@ module Anthropic
172
160
  #
173
161
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
174
162
  #
175
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
176
- # no longer a member of the organization or of that workspace.
177
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
178
- # organization disabled for any other reason, such as billing, does not get this
179
- # code. `appeal_url`, when present, is where the organization can appeal.
163
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
164
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
180
165
  #
181
166
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaEnvironment>]
182
167
  #
@@ -218,11 +203,8 @@ module Anthropic
218
203
  #
219
204
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
220
205
  #
221
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
222
- # no longer a member of the organization or of that workspace.
223
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
224
- # organization disabled for any other reason, such as billing, does not get this
225
- # code. `appeal_url`, when present, is where the organization can appeal.
206
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
207
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
226
208
  #
227
209
  # @return [Anthropic::Models::Beta::BetaEnvironmentDeleteResponse]
228
210
  #
@@ -258,11 +240,8 @@ module Anthropic
258
240
  #
259
241
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
260
242
  #
261
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
262
- # no longer a member of the organization or of that workspace.
263
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
264
- # organization disabled for any other reason, such as billing, does not get this
265
- # code. `appeal_url`, when present, is where the organization can appeal.
243
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
244
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
266
245
  #
267
246
  # @return [Anthropic::Models::Beta::BetaEnvironment]
268
247
  #
@@ -25,15 +25,10 @@ module Anthropic
25
25
  #
26
26
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
27
27
  #
28
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
29
- # no longer a member of the organization or of that workspace.
30
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
31
- # Re-enable the key, then retry.
32
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
33
- # workspace's customer-managed encryption key. The key itself may be healthy.
34
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
35
- # organization disabled for any other reason, such as billing, does not get this
36
- # code. `appeal_url`, when present, is where the organization can appeal.
28
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
29
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
30
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
31
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
37
32
  #
38
33
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaFileMetadata>]
39
34
  #
@@ -75,15 +70,10 @@ module Anthropic
75
70
  #
76
71
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
77
72
  #
78
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
79
- # no longer a member of the organization or of that workspace.
80
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
81
- # Re-enable the key, then retry.
82
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
83
- # workspace's customer-managed encryption key. The key itself may be healthy.
84
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
85
- # organization disabled for any other reason, such as billing, does not get this
86
- # code. `appeal_url`, when present, is where the organization can appeal.
73
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
74
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
75
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
76
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
87
77
  #
88
78
  # @return [Anthropic::Models::Beta::BetaDeletedFile]
89
79
  #
@@ -118,18 +108,12 @@ module Anthropic
118
108
  #
119
109
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
120
110
  #
121
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
122
- # no longer a member of the organization or of that workspace.
123
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
124
- # Re-enable the key, then retry.
125
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
126
- # workspace's customer-managed encryption key. The key itself may be healthy.
127
- # @raise [Anthropic::Models::FileNotDownloadableError] The file has `downloadable: false`. Only files generated by a tool, such as the
128
- # code execution tool, can be downloaded.
129
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
130
- # organization disabled for any other reason, such as billing, does not get this
131
- # code. `appeal_url`, when present, is where the organization can appeal.
132
- # @raise [Anthropic::Models::FileExpiredError] The file's `expires_at` has passed, so its content is no longer available.
111
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
112
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
113
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
114
+ # @raise [Anthropic::Models::FileNotDownloadableError]
115
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
116
+ # @raise [Anthropic::Models::FileExpiredError]
133
117
  #
134
118
  # @return [StringIO]
135
119
  #
@@ -167,15 +151,10 @@ module Anthropic
167
151
  #
168
152
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
169
153
  #
170
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
171
- # no longer a member of the organization or of that workspace.
172
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
173
- # Re-enable the key, then retry.
174
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
175
- # workspace's customer-managed encryption key. The key itself may be healthy.
176
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
177
- # organization disabled for any other reason, such as billing, does not get this
178
- # code. `appeal_url`, when present, is where the organization can appeal.
154
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
155
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
156
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
157
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
179
158
  #
180
159
  # @return [Anthropic::Models::Beta::BetaFileMetadata]
181
160
  #
@@ -212,17 +191,11 @@ module Anthropic
212
191
  #
213
192
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
214
193
  #
215
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
216
- # no longer a member of the organization or of that workspace.
217
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
218
- # Re-enable the key, then retry.
219
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
220
- # workspace's customer-managed encryption key. The key itself may be healthy.
221
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
222
- # organization disabled for any other reason, such as billing, does not get this
223
- # code. `appeal_url`, when present, is where the organization can appeal.
224
- # @raise [Anthropic::Models::StorageQuotaExceededError] The organization's file storage quota is exhausted. Delete files to free up
225
- # space, then retry the upload.
194
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
195
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
196
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
197
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
198
+ # @raise [Anthropic::Models::StorageQuotaExceededError]
226
199
  #
227
200
  # @return [Anthropic::Models::Beta::BetaFileMetadata]
228
201
  #
@@ -29,14 +29,10 @@ module Anthropic
29
29
  #
30
30
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
31
31
  #
32
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
33
- # no longer a member of the organization or of that workspace.
34
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
35
- # Re-enable the key, then retry.
36
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
37
- # organization disabled for any other reason, such as billing, does not get this
38
- # code. `appeal_url`, when present, is where the organization can appeal.
39
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
32
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
33
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
34
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
35
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
40
36
  #
41
37
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
42
38
  #
@@ -83,11 +79,8 @@ module Anthropic
83
79
  #
84
80
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
85
81
  #
86
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
87
- # no longer a member of the organization or of that workspace.
88
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
89
- # organization disabled for any other reason, such as billing, does not get this
90
- # code. `appeal_url`, when present, is where the organization can appeal.
82
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
83
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
91
84
  #
92
85
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
93
86
  #
@@ -130,11 +123,8 @@ module Anthropic
130
123
  #
131
124
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
125
  #
133
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
134
- # no longer a member of the organization or of that workspace.
135
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
136
- # organization disabled for any other reason, such as billing, does not get this
137
- # code. `appeal_url`, when present, is where the organization can appeal.
126
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
127
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
138
128
  #
139
129
  # @return [Anthropic::Internal::Page<Anthropic::Models::Beta::Messages::BetaMessageBatch>]
140
130
  #
@@ -182,11 +172,8 @@ module Anthropic
182
172
  #
183
173
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
184
174
  #
185
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
186
- # no longer a member of the organization or of that workspace.
187
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
188
- # organization disabled for any other reason, such as billing, does not get this
189
- # code. `appeal_url`, when present, is where the organization can appeal.
175
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
176
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
190
177
  #
191
178
  # @return [Anthropic::Models::Beta::Messages::BetaDeletedMessageBatch]
192
179
  #
@@ -232,11 +219,8 @@ module Anthropic
232
219
  #
233
220
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
234
221
  #
235
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
236
- # no longer a member of the organization or of that workspace.
237
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
238
- # organization disabled for any other reason, such as billing, does not get this
239
- # code. `appeal_url`, when present, is where the organization can appeal.
222
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
223
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
240
224
  #
241
225
  # @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
242
226
  #
@@ -278,13 +262,9 @@ module Anthropic
278
262
  #
279
263
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
280
264
  #
281
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
282
- # no longer a member of the organization or of that workspace.
283
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
284
- # Re-enable the key, then retry.
285
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
286
- # organization disabled for any other reason, such as billing, does not get this
287
- # code. `appeal_url`, when present, is where the organization can appeal.
265
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
266
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
267
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
288
268
  #
289
269
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::Messages::BetaMessageBatchIndividualResponse>]
290
270
  #