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