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
@@ -132,62 +132,35 @@ module Anthropic
132
132
  #
133
133
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
134
134
  #
135
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
136
- # size.
137
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
138
- # no longer a member of the organization or of that workspace.
139
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
140
- # requested model or the organization requires. Update Claude Code, then retry.
141
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
142
- # Re-enable the key, then retry.
143
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
144
- # workspace's customer-managed encryption key. The key itself may be healthy.
145
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
146
- # block the conversation returned last.
147
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
148
- # `system` message.
149
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
150
- # recorded.
151
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
152
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
153
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
154
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
155
- # record.
156
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
157
- # block.
158
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
159
- # organization disabled for any other reason, such as billing, does not get this
160
- # code. `appeal_url`, when present, is where the organization can appeal.
161
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
162
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
163
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
164
- # each response can be continued only once. Continue from the Thread's most recent
165
- # response `id`.
166
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
167
- # for it to complete and continue from its response `id`, or replay the full
168
- # conversation with `thread: {"type": "create"}`.
169
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
170
- # stored with the Thread; the message names each such field. Send the stored
171
- # values, or replay the full conversation with `thread: {"type": "create"}` to
172
- # change them.
173
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
174
- # that Threads do not support; `unsupported`, when present, names it. Send the
175
- # full conversation without `thread`, or change that field.
176
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
177
- # another kind, or of another MCP server, already holds.
178
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
179
- # defined at that position in the conversation.
180
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
181
- # conversation with `thread: {"type": "create"}` to start a new Thread.
182
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
183
- # workspace cannot currently decrypt.
184
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
185
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
186
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
187
- # request; if this continues, check that the key is available in your key
188
- # management service, or contact Anthropic support.
189
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
190
- # request.
135
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
136
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
137
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
138
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
139
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
140
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
141
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
142
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
143
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
144
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
145
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
146
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
147
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
148
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
149
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
150
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
151
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
152
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
153
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
154
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
155
+ # @raise [Anthropic::Models::ToolNameConflictError]
156
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
157
+ # @raise [Anthropic::Models::ThreadNotFoundError]
158
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
159
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
160
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
161
+ # @raise [Anthropic::Models::RampLimitExceededError]
162
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
163
+ # @raise [Anthropic::Models::CompactionUnavailableError]
191
164
  #
192
165
  # @return [Anthropic::Models::Beta::BetaMessage]
193
166
  #
@@ -309,62 +282,35 @@ module Anthropic
309
282
  #
310
283
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
311
284
  #
312
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
313
- # size.
314
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
315
- # no longer a member of the organization or of that workspace.
316
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
317
- # requested model or the organization requires. Update Claude Code, then retry.
318
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
319
- # Re-enable the key, then retry.
320
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
321
- # workspace's customer-managed encryption key. The key itself may be healthy.
322
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
323
- # block the conversation returned last.
324
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
325
- # `system` message.
326
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
327
- # recorded.
328
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
329
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
330
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
331
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
332
- # record.
333
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
334
- # block.
335
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
336
- # organization disabled for any other reason, such as billing, does not get this
337
- # code. `appeal_url`, when present, is where the organization can appeal.
338
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
339
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
340
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
341
- # each response can be continued only once. Continue from the Thread's most recent
342
- # response `id`.
343
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
344
- # for it to complete and continue from its response `id`, or replay the full
345
- # conversation with `thread: {"type": "create"}`.
346
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
347
- # stored with the Thread; the message names each such field. Send the stored
348
- # values, or replay the full conversation with `thread: {"type": "create"}` to
349
- # change them.
350
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
351
- # that Threads do not support; `unsupported`, when present, names it. Send the
352
- # full conversation without `thread`, or change that field.
353
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
354
- # another kind, or of another MCP server, already holds.
355
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
356
- # defined at that position in the conversation.
357
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
358
- # conversation with `thread: {"type": "create"}` to start a new Thread.
359
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
360
- # workspace cannot currently decrypt.
361
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
362
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
363
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
364
- # request; if this continues, check that the key is available in your key
365
- # management service, or contact Anthropic support.
366
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
367
- # request.
285
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
286
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
287
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
288
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
289
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
290
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
291
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
292
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
293
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
294
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
295
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
296
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
297
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
298
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
299
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
300
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
301
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
302
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
303
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
304
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
305
+ # @raise [Anthropic::Models::ToolNameConflictError]
306
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
307
+ # @raise [Anthropic::Models::ThreadNotFoundError]
308
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
309
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
310
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
311
+ # @raise [Anthropic::Models::RampLimitExceededError]
312
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
313
+ # @raise [Anthropic::Models::CompactionUnavailableError]
368
314
  #
369
315
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::BetaRawMessageStartEvent, Anthropic::Models::Beta::BetaRawMessageDeltaEvent, Anthropic::Models::Beta::BetaRawMessageStopEvent, Anthropic::Models::Beta::BetaRawContentBlockStartEvent, Anthropic::Models::Beta::BetaRawContentBlockDeltaEvent, Anthropic::Models::Beta::BetaRawContentBlockStopEvent>]
370
316
  #
@@ -452,33 +398,22 @@ module Anthropic
452
398
  #
453
399
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
454
400
  #
455
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
456
- # size.
457
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
458
- # no longer a member of the organization or of that workspace.
459
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
460
- # block the conversation returned last.
461
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
462
- # `system` message.
463
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
464
- # recorded.
465
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
466
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
467
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
468
- # block.
469
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
470
- # organization disabled for any other reason, such as billing, does not get this
471
- # code. `appeal_url`, when present, is where the organization can appeal.
472
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
473
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
474
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
475
- # another kind, or of another MCP server, already holds.
476
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
477
- # defined at that position in the conversation.
478
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
479
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
480
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
481
- # request.
401
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
402
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
403
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
404
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
405
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
406
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
407
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
408
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
409
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
410
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
411
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
412
+ # @raise [Anthropic::Models::ToolNameConflictError]
413
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
414
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
415
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
416
+ # @raise [Anthropic::Models::CompactionUnavailableError]
482
417
  #
483
418
  # @return [Anthropic::Models::Beta::BetaMessageTokensCount]
484
419
  #
@@ -22,11 +22,8 @@ module Anthropic
22
22
  #
23
23
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
24
24
  #
25
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
26
- # no longer a member of the organization or of that workspace.
27
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
28
- # organization disabled for any other reason, such as billing, does not get this
29
- # code. `appeal_url`, when present, is where the organization can appeal.
25
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
26
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
30
27
  #
31
28
  # @return [Anthropic::Models::Beta::BetaModelInfo]
32
29
  #
@@ -70,11 +67,8 @@ module Anthropic
70
67
  #
71
68
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
72
69
  #
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.
70
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
71
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
78
72
  #
79
73
  # @return [Anthropic::Internal::Page<Anthropic::Models::Beta::BetaModelInfo>]
80
74
  #
@@ -41,8 +41,8 @@ module Anthropic
41
41
  #
42
42
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
43
43
  #
44
- # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError] The organization has reached its limit of active API keys.
45
- # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError] The workspace has reached its limit of active API keys.
44
+ # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError]
45
+ # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError]
46
46
  #
47
47
  # @return [Anthropic::Models::Beta::Organization::BetaAPIKey]
48
48
  #
@@ -27,12 +27,10 @@ module Anthropic
27
27
  #
28
28
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
29
29
  #
30
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
31
- # `write:claude_tag` for a change.
32
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
33
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
34
- # anything new.
35
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
30
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
31
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
32
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
33
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
36
34
  #
37
35
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget]
38
36
  #
@@ -74,12 +72,10 @@ module Anthropic
74
72
  #
75
73
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
76
74
  #
77
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
78
- # `write:claude_tag` for a change.
79
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
80
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
81
- # anything new.
82
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
75
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
76
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
77
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
78
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
83
79
  #
84
80
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget]
85
81
  #
@@ -130,12 +126,10 @@ module Anthropic
130
126
  #
131
127
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
128
  #
133
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
134
- # `write:claude_tag` for a change.
135
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
136
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
137
- # anything new.
138
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
129
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
130
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
131
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
132
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
139
133
  #
140
134
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget>]
141
135
  #
@@ -181,12 +175,10 @@ module Anthropic
181
175
  #
182
176
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
183
177
  #
184
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
185
- # `write:claude_tag` for a change.
186
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
187
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
188
- # anything new.
189
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
178
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
179
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
180
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
181
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
190
182
  #
191
183
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagDeletedBundleTarget]
192
184
  #
@@ -24,12 +24,10 @@ module Anthropic
24
24
  #
25
25
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
26
26
  #
27
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
28
- # `write:claude_tag` for a change.
29
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
30
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
31
- # anything new.
32
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
27
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
28
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
29
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
30
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
33
31
  #
34
32
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle]
35
33
  #
@@ -69,12 +67,10 @@ module Anthropic
69
67
  #
70
68
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
71
69
  #
72
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
73
- # `write:claude_tag` for a change.
74
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
75
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
76
- # anything new.
77
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
70
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
71
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
72
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
73
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
78
74
  #
79
75
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle>]
80
76
  #
@@ -31,20 +31,14 @@ module Anthropic
31
31
  #
32
32
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
33
33
  #
34
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedError] The request set the channel up, and `settings` was then refused. The channel
35
- # stays set up with every setting unset.
36
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
37
- # `write:claude_tag` for a change.
38
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
39
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
40
- # anything new.
41
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
42
- # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach.
43
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach,
44
- # and the request had set the channel up by then. The channel stays set up with
45
- # every setting unset.
46
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
47
- # removed it. Nothing of `settings` was stored.
34
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedError]
35
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
36
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
37
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
38
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
39
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError]
40
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError]
41
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
48
42
  #
49
43
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
50
44
  #
@@ -92,12 +86,10 @@ module Anthropic
92
86
  #
93
87
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
94
88
  #
95
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
96
- # `write:claude_tag` for a change.
97
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
98
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
99
- # anything new.
100
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
89
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
90
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
91
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
92
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
101
93
  #
102
94
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
103
95
  #
@@ -144,18 +136,13 @@ module Anthropic
144
136
  #
145
137
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
146
138
  #
147
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
148
- # `write:claude_tag` for a change.
149
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
150
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
151
- # anything new.
152
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
153
- # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach.
154
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach,
155
- # and the request had set the channel up by then. The channel stays set up with
156
- # every setting unset.
157
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
158
- # removed it. Nothing of `settings` was stored.
139
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
140
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
141
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
142
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
143
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError]
144
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError]
145
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
159
146
  #
160
147
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
161
148
  #
@@ -211,12 +198,10 @@ module Anthropic
211
198
  #
212
199
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
213
200
  #
214
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
215
- # `write:claude_tag` for a change.
216
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
217
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
218
- # anything new.
219
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
201
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
202
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
203
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
204
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
220
205
  #
221
206
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel>]
222
207
  #
@@ -270,14 +255,11 @@ module Anthropic
270
255
  #
271
256
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
272
257
  #
273
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
274
- # `write:claude_tag` for a change.
275
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
276
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
277
- # anything new.
278
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
279
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
280
- # removed it. Nothing of `settings` was stored.
258
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
259
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
260
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
261
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
262
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
281
263
  #
282
264
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagDeletedSlackChannel]
283
265
  #
@@ -28,12 +28,10 @@ module Anthropic
28
28
  #
29
29
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
30
30
  #
31
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
32
- # `write:claude_tag` for a change.
33
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
34
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
35
- # anything new.
36
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
31
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
32
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
33
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
34
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
37
35
  #
38
36
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace]
39
37
  #
@@ -79,18 +77,13 @@ module Anthropic
79
77
  #
80
78
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
81
79
  #
82
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
83
- # `write:claude_tag` for a change.
84
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
85
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
86
- # anything new.
87
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
88
- # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach.
89
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach,
90
- # and the request had set the channel up by then. The channel stays set up with
91
- # every setting unset.
92
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
93
- # removed it. Nothing of `settings` was stored.
80
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
81
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
82
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
83
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
84
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError]
85
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError]
86
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
94
87
  #
95
88
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace]
96
89
  #
@@ -143,12 +136,10 @@ module Anthropic
143
136
  #
144
137
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
145
138
  #
146
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
147
- # `write:claude_tag` for a change.
148
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
149
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
150
- # anything new.
151
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
139
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
140
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
141
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
142
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
152
143
  #
153
144
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace>]
154
145
  #
@@ -23,9 +23,7 @@ module Anthropic
23
23
  #
24
24
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
25
25
  #
26
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
27
- # is no longer active. The request either names this user profile by ID, or names
28
- # a resource, such as an External Key, that is bound to it.
26
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
29
27
  #
30
28
  # @return [Anthropic::Models::Beta::Organization::BetaExternalKey]
31
29
  #
@@ -87,8 +85,7 @@ module Anthropic
87
85
  #
88
86
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
89
87
  #
90
- # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError] The External Key can't be deleted or reconfigured while the organization's
91
- # Workspace Policy lists it as an allowed key.
88
+ # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
92
89
  #
93
90
  # @return [Anthropic::Models::Beta::Organization::BetaExternalKey]
94
91
  #
@@ -151,8 +148,7 @@ module Anthropic
151
148
  #
152
149
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
153
150
  #
154
- # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError] The External Key can't be deleted or reconfigured while the organization's
155
- # Workspace Policy lists it as an allowed key.
151
+ # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
156
152
  #
157
153
  # @return [Anthropic::Models::Beta::Organization::ExternalKeyDeleteResponse]
158
154
  #