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
@@ -50,7 +50,8 @@ module Anthropic
50
50
  #
51
51
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
52
52
  #
53
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
53
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
54
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
54
55
  #
55
56
  # @return [Anthropic::Models::Organization::WorkspaceMember]
56
57
  #
@@ -126,7 +127,8 @@ module Anthropic
126
127
  #
127
128
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
128
129
  #
129
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
130
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
131
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
130
132
  #
131
133
  # @return [Anthropic::Models::Organization::WorkspaceMember]
132
134
  #
@@ -156,6 +158,8 @@ module Anthropic
156
158
  #
157
159
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
158
160
  #
161
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
162
+ #
159
163
  # @return [Anthropic::Models::Organization::Workspaces::MemberRemoveResponse]
160
164
  #
161
165
  # @see Anthropic::Models::Organization::Workspaces::MemberRemoveParams
@@ -30,6 +30,8 @@ module Anthropic
30
30
  #
31
31
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
32
32
  #
33
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
34
+ #
33
35
  # @return [Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit]
34
36
  #
35
37
  # @see Anthropic::Models::Organization::Workspaces::RateLimitUpdateParams
@@ -76,6 +76,8 @@ module Anthropic
76
76
  #
77
77
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
78
78
  #
79
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
80
+ #
79
81
  # @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
80
82
  #
81
83
  # @see Anthropic::Models::Organization::Workspaces::ServiceAccountUpdateParams
@@ -172,6 +174,8 @@ module Anthropic
172
174
  #
173
175
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
174
176
  #
177
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
178
+ #
175
179
  # @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
176
180
  #
177
181
  # @see Anthropic::Models::Organization::Workspaces::ServiceAccountAddParams
@@ -211,6 +215,8 @@ module Anthropic
211
215
  #
212
216
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
213
217
  #
218
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
219
+ #
214
220
  # @return [Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveResponse]
215
221
  #
216
222
  # @see Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveParams
@@ -34,17 +34,13 @@ module Anthropic
34
34
  #
35
35
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
36
36
  #
37
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
38
- # that user profile. A Workspace can use only a key bound to its own user profile
39
- # or a key that isn't bound to one.
40
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
41
- # is no longer active. The request either names this user profile by ID, or names
42
- # a resource, such as an External Key, that is bound to it.
43
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
44
- # rule it broke; an organization admin can see and change the policy in the
45
- # Console.
46
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
47
- # again.
37
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
38
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
39
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
40
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
41
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
42
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
43
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
48
44
  #
49
45
  # @return [Anthropic::Models::Organization::Workspace]
50
46
  #
@@ -109,17 +105,13 @@ module Anthropic
109
105
  #
110
106
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
111
107
  #
112
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
113
- # that user profile. A Workspace can use only a key bound to its own user profile
114
- # or a key that isn't bound to one.
115
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
116
- # is no longer active. The request either names this user profile by ID, or names
117
- # a resource, such as an External Key, that is bound to it.
118
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
119
- # rule it broke; an organization admin can see and change the policy in the
120
- # Console.
121
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
122
- # again.
108
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
109
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
110
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
111
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
112
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
113
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
114
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
123
115
  #
124
116
  # @return [Anthropic::Models::Organization::Workspace]
125
117
  #
@@ -185,6 +177,8 @@ module Anthropic
185
177
  # @param workspace_id [String]
186
178
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
187
179
  #
180
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
181
+ #
188
182
  # @return [Anthropic::Models::Organization::Workspace]
189
183
  #
190
184
  # @see Anthropic::Models::Organization::WorkspaceArchiveParams
@@ -19,17 +19,11 @@ module Anthropic
19
19
  #
20
20
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
21
21
  #
22
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
23
- # no longer a member of the organization or of that workspace.
24
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
25
- # Re-enable the key, then retry.
26
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
27
- # workspace's customer-managed encryption key. The key itself may be healthy.
28
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
29
- # organization disabled for any other reason, such as billing, does not get this
30
- # code. `appeal_url`, when present, is where the organization can appeal.
31
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
32
- # refused. Retry in a few minutes.
22
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
23
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
24
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
25
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
26
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
33
27
  #
34
28
  # @return [Anthropic::Models::Skills::SkillVersion]
35
29
  #
@@ -71,11 +65,8 @@ module Anthropic
71
65
  #
72
66
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
73
67
  #
74
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
75
- # no longer a member of the organization or of that workspace.
76
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
77
- # organization disabled for any other reason, such as billing, does not get this
78
- # code. `appeal_url`, when present, is where the organization can appeal.
68
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
69
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
79
70
  #
80
71
  # @return [Anthropic::Models::Skills::SkillVersion]
81
72
  #
@@ -115,11 +106,8 @@ module Anthropic
115
106
  #
116
107
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
117
108
  #
118
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
119
- # no longer a member of the organization or of that workspace.
120
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
121
- # organization disabled for any other reason, such as billing, does not get this
122
- # code. `appeal_url`, when present, is where the organization can appeal.
109
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
110
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
123
111
  #
124
112
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skills::SkillVersion>]
125
113
  #
@@ -158,11 +146,8 @@ module Anthropic
158
146
  #
159
147
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
160
148
  #
161
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
162
- # no longer a member of the organization or of that workspace.
163
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
164
- # organization disabled for any other reason, such as billing, does not get this
165
- # code. `appeal_url`, when present, is where the organization can appeal.
149
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
150
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
166
151
  #
167
152
  # @return [Anthropic::Models::Skills::DeletedSkillVersion]
168
153
  #
@@ -21,17 +21,11 @@ module Anthropic
21
21
  #
22
22
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
23
23
  #
24
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
25
- # no longer a member of the organization or of that workspace.
26
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
27
- # Re-enable the key, then retry.
28
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
29
- # workspace's customer-managed encryption key. The key itself may be healthy.
30
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
31
- # organization disabled for any other reason, such as billing, does not get this
32
- # code. `appeal_url`, when present, is where the organization can appeal.
33
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
34
- # refused. Retry in a few minutes.
24
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
25
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
26
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
27
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
28
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
35
29
  #
36
30
  # @return [Anthropic::Models::Skill]
37
31
  #
@@ -70,11 +64,8 @@ module Anthropic
70
64
  #
71
65
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
72
66
  #
73
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
74
- # no longer a member of the organization or of that workspace.
75
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
76
- # organization disabled for any other reason, such as billing, does not get this
77
- # code. `appeal_url`, when present, is where the organization can appeal.
67
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
68
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
78
69
  #
79
70
  # @return [Anthropic::Models::Skill]
80
71
  #
@@ -110,11 +101,8 @@ module Anthropic
110
101
  #
111
102
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
112
103
  #
113
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
114
- # no longer a member of the organization or of that workspace.
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.
104
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
105
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
118
106
  #
119
107
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skill>]
120
108
  #
@@ -150,11 +138,8 @@ module Anthropic
150
138
  #
151
139
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
152
140
  #
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::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
156
- # organization disabled for any other reason, such as billing, does not get this
157
- # code. `appeal_url`, when present, is where the organization can appeal.
141
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
142
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
158
143
  #
159
144
  # @return [Anthropic::Models::DeletedSkill]
160
145
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "2.5.0"
4
+ VERSION = "2.7.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -18,6 +18,7 @@ require "set"
18
18
  require "stringio"
19
19
  require "time"
20
20
  require "uri"
21
+ require "yaml"
21
22
  # rubocop:enable Lint/RedundantRequireStatement
22
23
 
23
24
  # We already ship the preferred sorbet manifests in the package itself.
@@ -110,7 +111,6 @@ require_relative "anthropic/internal/page_cursor"
110
111
  require_relative "anthropic/internal/report_page_cursor"
111
112
  require_relative "anthropic/internal/token_page"
112
113
  require_relative "anthropic/models/available_tools_limit_exceeded_error"
113
- require_relative "anthropic/models/beta/beta_billing_frozen_error"
114
114
  require_relative "anthropic/models/beta/beta_environment_archived_error"
115
115
  require_relative "anthropic/models/beta/beta_environment_create_disabled_error"
116
116
  require_relative "anthropic/models/beta/beta_environment_not_found_error"
@@ -119,6 +119,12 @@ require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
119
119
  require_relative "anthropic/models/beta/beta_invalid_metadata_error"
120
120
  require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
121
121
  require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
122
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error"
123
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error"
124
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error"
125
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error"
126
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error"
127
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error"
122
128
  require_relative "anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error"
123
129
  require_relative "anthropic/models/beta/organization/beta_compliance_configuration_restricted_error"
124
130
  require_relative "anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error"
@@ -131,6 +137,7 @@ require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_e
131
137
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error"
132
138
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error"
133
139
  require_relative "anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error"
140
+ require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error"
134
141
  require_relative "anthropic/models/beta_unsupported_charset_error"
135
142
  require_relative "anthropic/models/claude_code_key_creator_not_member_error"
136
143
  require_relative "anthropic/models/claude_code_version_too_old_error"
@@ -157,6 +164,8 @@ require_relative "anthropic/models/organization/cannot_remove_last_member_error"
157
164
  require_relative "anthropic/models/organization/email_domain_not_allowed_error"
158
165
  require_relative "anthropic/models/organization/external_key_changed_error"
159
166
  require_relative "anthropic/models/organization/external_key_in_workspace_policy_error"
167
+ require_relative "anthropic/models/organization/external_key_validation_failed_error"
168
+ require_relative "anthropic/models/organization/external_key_validation_timed_out_error"
160
169
  require_relative "anthropic/models/organization/invite_already_exists_error"
161
170
  require_relative "anthropic/models/organization/key_profile_mismatch_error"
162
171
  require_relative "anthropic/models/organization/org_api_key_limit_exceeded_error"
@@ -168,9 +177,11 @@ require_relative "anthropic/models/organization/workspace_policy_violation_error
168
177
  require_relative "anthropic/models/organization_on_hold_error"
169
178
  require_relative "anthropic/models/organization_type_not_supported_error"
170
179
  require_relative "anthropic/models/org_member_limit_exceeded_error"
180
+ require_relative "anthropic/models/ramp_limit_exceeded_error"
171
181
  require_relative "anthropic/models/request_body_encoding_invalid_error"
172
182
  require_relative "anthropic/models/request_body_encoding_unsupported_error"
173
183
  require_relative "anthropic/models/request_body_too_large_after_decoding_error"
184
+ require_relative "anthropic/models/sandbox_egress_restricted_error"
174
185
  require_relative "anthropic/models/skill_read_blocked_undecryptable_error"
175
186
  require_relative "anthropic/models/storage_quota_exceeded_error"
176
187
  require_relative "anthropic/models/thread_already_continued_error"
@@ -232,7 +243,6 @@ require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_blo
232
243
  require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_block_param"
233
244
  require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error"
234
245
  require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_param"
235
- require_relative "anthropic/models/beta/beta_billing_frozen_error_details"
236
246
  require_relative "anthropic/models/beta/beta_browser_click_target"
237
247
  require_relative "anthropic/models/beta/beta_browser_close_tab_config"
238
248
  require_relative "anthropic/models/beta/beta_browser_close_tab_input"
@@ -944,6 +954,7 @@ require_relative "anthropic/models/beta/beta_webhook_session_thread_terminated_e
944
954
  require_relative "anthropic/models/beta/beta_webhook_session_updated_event_data"
945
955
  require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data"
946
956
  require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data"
957
+ require_relative "anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data"
947
958
  require_relative "anthropic/models/beta/beta_webhook_vault_archived_event_data"
948
959
  require_relative "anthropic/models/beta/beta_webhook_vault_created_event_data"
949
960
  require_relative "anthropic/models/beta/beta_webhook_vault_credential_archived_event_data"
@@ -1172,6 +1183,12 @@ require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scop
1172
1183
  require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
1173
1184
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
1174
1185
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
1186
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details"
1187
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details"
1188
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details"
1189
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details"
1190
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details"
1191
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details"
1175
1192
  require_relative "anthropic/models/beta/organization/beta_claude_tag_default_setting_source"
1176
1193
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy"
1177
1194
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
@@ -1439,6 +1456,7 @@ require_relative "anthropic/models/beta/organization/user_list_params"
1439
1456
  require_relative "anthropic/models/beta/organization/user_remove_params"
1440
1457
  require_relative "anthropic/models/beta/organization/user_remove_response"
1441
1458
  require_relative "anthropic/models/beta/organization/user_retrieve_params"
1459
+ require_relative "anthropic/models/beta/organization/user_sign_out_params"
1442
1460
  require_relative "anthropic/models/beta/organization/user_update_params"
1443
1461
  require_relative "anthropic/models/beta/organization/webhook_create_params"
1444
1462
  require_relative "anthropic/models/beta/organization/webhook_delete_params"
@@ -1710,6 +1728,7 @@ require_relative "anthropic/models/beta_gateway_timeout_error"
1710
1728
  require_relative "anthropic/models/beta_invalid_request_error"
1711
1729
  require_relative "anthropic/models/beta_monetary_amount"
1712
1730
  require_relative "anthropic/models/beta_not_found_error"
1731
+ require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error_details"
1713
1732
  require_relative "anthropic/models/beta_overloaded_error"
1714
1733
  require_relative "anthropic/models/beta_permission_error"
1715
1734
  require_relative "anthropic/models/beta_rate_limit_error"
@@ -2105,6 +2124,8 @@ require_relative "anthropic/models/organization/external_key_unattached_attachme
2105
2124
  require_relative "anthropic/models/organization/external_key_update_params"
2106
2125
  require_relative "anthropic/models/organization/external_key_validate_params"
2107
2126
  require_relative "anthropic/models/organization/external_key_validate_response"
2127
+ require_relative "anthropic/models/organization/external_key_validation_failed_error_details"
2128
+ require_relative "anthropic/models/organization/external_key_validation_timed_out_error_details"
2108
2129
  require_relative "anthropic/models/organization/federation/federation_issuer"
2109
2130
  require_relative "anthropic/models/organization/federation/federation_issuer_poll_status"
2110
2131
  require_relative "anthropic/models/organization/federation/federation_rule"
@@ -2254,6 +2275,7 @@ require_relative "anthropic/models/output_tokens_details"
2254
2275
  require_relative "anthropic/models/overloaded_error"
2255
2276
  require_relative "anthropic/models/permission_error"
2256
2277
  require_relative "anthropic/models/plain_text_source"
2278
+ require_relative "anthropic/models/ramp_limit_exceeded_error_details"
2257
2279
  require_relative "anthropic/models/rate_limit_error"
2258
2280
  require_relative "anthropic/models/raw_content_block_delta"
2259
2281
  require_relative "anthropic/models/raw_content_block_delta_event"
@@ -2269,6 +2291,7 @@ require_relative "anthropic/models/refusal_stop_details"
2269
2291
  require_relative "anthropic/models/request_body_encoding_invalid_error_details"
2270
2292
  require_relative "anthropic/models/request_body_encoding_unsupported_error_details"
2271
2293
  require_relative "anthropic/models/request_body_too_large_after_decoding_error_details"
2294
+ require_relative "anthropic/models/sandbox_egress_restricted_error_details"
2272
2295
  require_relative "anthropic/models/search_result_block_param"
2273
2296
  require_relative "anthropic/models/server_tool_caller"
2274
2297
  require_relative "anthropic/models/server_tool_caller_20260120"
data/manifest.yaml CHANGED
@@ -14,3 +14,4 @@ dependencies:
14
14
  - stringio
15
15
  - time
16
16
  - uri
17
+ - yaml
@@ -133,21 +133,32 @@ module Anthropic
133
133
  end
134
134
 
135
135
  class APIStatusError < Anthropic::Errors::APIError
136
+ # A human-readable explanation of the error. Its wording can change, so don't
137
+ # match on it.
138
+ #
136
139
  # `error.message` from the response body, if present.
137
140
  sig { returns(T.nilable(String)) }
138
141
  def api_message
139
142
  end
140
143
 
144
+ # The broad category of the error.
145
+ #
141
146
  # `error.type` from the response body, if present.
142
147
  sig { returns(T.nilable(Anthropic::ErrorType::TaggedSymbol)) }
143
148
  def type
144
149
  end
145
150
 
151
+ # A stable code that names the cause.
152
+ #
146
153
  # `error.details.error_code` from the response body, if present and a string.
147
154
  sig { returns(T.nilable(Symbol)) }
148
155
  def error_code
149
156
  end
150
157
 
158
+ # Machine-readable detail about the cause of the error. `error_code` names the
159
+ # cause; branch on it rather than on `message`. Absent when the error has no code.
160
+ # Treat an unrecognized `error_code` as the bare `type`.
161
+ #
151
162
  # `error.details` from the response body, if present.
152
163
  sig { returns(T.nilable(Anthropic::ErrorDetails::Variants)) }
153
164
  def details
@@ -270,5 +281,8 @@ module Anthropic
270
281
  class OverloadedError < Anthropic::Errors::InternalServerError
271
282
  HTTP_STATUS = 529
272
283
  end
284
+
285
+ class ConfigurationError < Anthropic::Errors::Error
286
+ end
273
287
  end
274
288
  end
@@ -25,6 +25,7 @@ module Anthropic
25
25
  timeout: T.nilable(Float),
26
26
  initial_retry_delay: Float,
27
27
  max_retry_delay: Float,
28
+ middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
28
29
  open_telemetry:
29
30
  T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
30
31
  ).returns(T.attached_class)
@@ -45,6 +46,10 @@ module Anthropic
45
46
  timeout: nil,
46
47
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
47
48
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
49
+ # Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The
50
+ # workspace ID header and SigV4 signing are applied per attempt, after
51
+ # user middleware.
52
+ middleware: nil,
48
53
  # OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
49
54
  open_telemetry: nil
50
55
  )
@@ -27,6 +27,7 @@ module Anthropic
27
27
  timeout: T.nilable(Float),
28
28
  initial_retry_delay: Float,
29
29
  max_retry_delay: Float,
30
+ middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
30
31
  open_telemetry:
31
32
  T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
32
33
  ).returns(T.attached_class)
@@ -46,6 +47,10 @@ module Anthropic
46
47
  timeout: nil,
47
48
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
48
49
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
50
+ # Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The user
51
+ # profile ID moves into the body and the request is SigV4-signed per
52
+ # attempt, after user middleware.
53
+ middleware: nil,
49
54
  # OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
50
55
  open_telemetry: nil
51
56
  )
@@ -380,6 +380,7 @@ module Anthropic
380
380
  "anthropic.tunnels.certificates.retrieve"
381
381
  TUNNELS_CERTIFICATES_LIST = "anthropic.tunnels.certificates.list"
382
382
  TUNNELS_CERTIFICATES_ARCHIVE = "anthropic.tunnels.certificates.archive"
383
+ ORGANIZATION_USERS_SIGN_OUT = "anthropic.organization.users.sign_out"
383
384
  ORGANIZATION_ANALYTICS_USAGE_LIST =
384
385
  "anthropic.organization.analytics.usage.list"
385
386
  ORGANIZATION_ANALYTICS_COST_LIST =
@@ -231,6 +231,11 @@ module Anthropic
231
231
  )
232
232
  WEBHOOKS_2026_10_07 =
233
233
  T.let(:"webhooks-2026-10-07", Anthropic::AnthropicBeta::TaggedSymbol)
234
+ ADMIN_USER_SIGN_OUT_2026_10_08 =
235
+ T.let(
236
+ :"admin-user-sign-out-2026-10-08",
237
+ Anthropic::AnthropicBeta::TaggedSymbol
238
+ )
234
239
  MESSAGE_THREADS_2026_08_12 =
235
240
  T.let(
236
241
  :"message-threads-2026-08-12",
@@ -8,14 +8,23 @@ module Anthropic
8
8
  T.any(Anthropic::APIErrorObject, Anthropic::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # A human-readable explanation of the error. Its wording can change, so don't
12
+ # match on it.
11
13
  sig { returns(String) }
12
14
  attr_accessor :message
13
15
 
16
+ # The broad category of the error.
14
17
  sig { returns(Symbol) }
15
18
  attr_accessor :type
16
19
 
17
20
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
18
- def self.new(message:, type: :api_error)
21
+ def self.new(
22
+ # A human-readable explanation of the error. Its wording can change, so don't
23
+ # match on it.
24
+ message:,
25
+ # The broad category of the error.
26
+ type: :api_error
27
+ )
19
28
  end
20
29
 
21
30
  sig { override.returns({ message: String, type: Symbol }) }
@@ -8,14 +8,23 @@ module Anthropic
8
8
  T.any(Anthropic::AuthenticationError, Anthropic::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # A human-readable explanation of the error. Its wording can change, so don't
12
+ # match on it.
11
13
  sig { returns(String) }
12
14
  attr_accessor :message
13
15
 
16
+ # The broad category of the error.
14
17
  sig { returns(Symbol) }
15
18
  attr_accessor :type
16
19
 
17
20
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
18
- def self.new(message:, type: :authentication_error)
21
+ def self.new(
22
+ # A human-readable explanation of the error. Its wording can change, so don't
23
+ # match on it.
24
+ message:,
25
+ # The broad category of the error.
26
+ type: :authentication_error
27
+ )
19
28
  end
20
29
 
21
30
  sig { override.returns({ message: String, type: Symbol }) }
@@ -111,8 +111,8 @@ module Anthropic
111
111
  end
112
112
  def self.new(
113
113
  type:,
114
- # A human-readable explanation of why the memory store can't be used yet, with the
115
- # ID of the dream that is using it when the server can identify it.
114
+ # A human-readable explanation of the error. Its wording can change, so don't
115
+ # match on it.
116
116
  message: nil
117
117
  )
118
118
  end
@@ -31,6 +31,13 @@ module Anthropic
31
31
  end
32
32
  OrSymbol = T.type_alias { T.any(Symbol, String) }
33
33
 
34
+ # Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
35
+ CLAUDE_FABLE_5_2 =
36
+ T.let(
37
+ :"claude-fable-5-2",
38
+ Anthropic::Beta::BetaManagedAgentsModel::TaggedSymbol
39
+ )
40
+
34
41
  # Fastest model for high-volume, real-time tasks
35
42
  CLAUDE_HAIKU_5_5 =
36
43
  T.let(
@@ -17,8 +17,6 @@ module Anthropic
17
17
  sig { returns(Symbol) }
18
18
  attr_accessor :type
19
19
 
20
- # A human-readable explanation of why the memory store can't be used yet, with the
21
- # ID of the dream that is using it when the server can identify it.
22
20
  sig { returns(T.nilable(String)) }
23
21
  attr_reader :message
24
22
 
@@ -36,12 +34,7 @@ module Anthropic
36
34
  # end or cancel it, then retry. The response sets the `x-should-retry` header to
37
35
  # `false`.
38
36
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
39
- def self.new(
40
- # A human-readable explanation of why the memory store can't be used yet, with the
41
- # ID of the dream that is using it when the server can identify it.
42
- message: nil,
43
- type: :conflict_error
44
- )
37
+ def self.new(message: nil, type: :conflict_error)
45
38
  end
46
39
 
47
40
  sig { override.returns({ type: Symbol, message: String }) }
@@ -80,7 +80,8 @@ module Anthropic
80
80
  Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData::OrHash,
81
81
  Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData::OrHash,
82
82
  Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData::OrHash,
83
- Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash
83
+ Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash,
84
+ Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData::OrHash
84
85
  ),
85
86
  type: Symbol
86
87
  ).returns(T.attached_class)
@@ -56,7 +56,8 @@ module Anthropic
56
56
  Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData,
57
57
  Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData,
58
58
  Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData,
59
- Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
59
+ Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData,
60
+ Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
60
61
  )
61
62
  end
62
63
 
@@ -299,6 +300,11 @@ module Anthropic
299
300
  :"user_profile.enforcement_action_resolved",
300
301
  Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
301
302
  )
303
+ USER_PROFILE_PROGRAM_STATUS_UPDATED =
304
+ T.let(
305
+ :"user_profile.program_status_updated",
306
+ Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
307
+ )
302
308
 
303
309
  sig do
304
310
  override.returns(