anthropic 2.8.0 → 2.9.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +4 -0
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
- data/lib/anthropic/helpers/tools/runner.rb +21 -4
- data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/internal/type/file_input.rb +11 -0
- data/lib/anthropic/internal/util.rb +43 -11
- data/lib/anthropic/models/anthropic_beta.rb +44 -30
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +14 -5
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
- data/lib/anthropic/models/error_details.rb +28 -3
- data/lib/anthropic/models/organization/external_key.rb +2 -2
- data/lib/anthropic/models/organization/external_key_create_params.rb +3 -2
- data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
- data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
- data/lib/anthropic/models/organization/rbac_role.rb +14 -5
- data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
- data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
- data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
- data/lib/anthropic/models/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
- data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
- data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
- data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
- data/lib/anthropic/models.rb +8 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +5 -1
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +15 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
- data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
- data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
- data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
- data/rbi/anthropic/internal/tracing.rbi +2 -0
- data/rbi/anthropic/internal/util.rbi +2 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +41 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +23 -6
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +6 -4
- data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
- data/rbi/anthropic/models/error_details.rbi +25 -1
- data/rbi/anthropic/models/organization/external_key.rbi +4 -4
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +6 -4
- data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
- data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
- data/rbi/anthropic/models/organization/rbac_role.rbi +20 -6
- data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
- data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
- data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
- data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
- data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
- data/rbi/anthropic/models.rbi +10 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +3 -2
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
- data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +6 -3
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +4 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +2 -1
- data/rbi/anthropic/resources/organization/external_keys.rbi +3 -2
- data/rbi/anthropic/resources/organization/workspaces.rbi +2 -1
- data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
- data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/internal/util.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +21 -21
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
- data/sig/anthropic/models/error_details.rbs +26 -0
- data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
- data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
- data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
- data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
- data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
- data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
- metadata +47 -2
|
@@ -30,7 +30,8 @@ module Anthropic
|
|
|
30
30
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
31
31
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
32
32
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
33
|
-
# organization's ID here; another organization returns a 404.
|
|
33
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
34
|
+
# organization of its own must always pass `organization_id`.
|
|
34
35
|
#
|
|
35
36
|
# @return [String, nil]
|
|
36
37
|
optional :organization_id, String, nil?: true
|
|
@@ -64,7 +64,8 @@ module Anthropic
|
|
|
64
64
|
# the Workspace must then name this user profile; the API rejects a request that
|
|
65
65
|
# names none or a different one. Once set, it can't be replaced or removed
|
|
66
66
|
# (sending the same ID again changes nothing); only deleting the user profile
|
|
67
|
-
# clears it.
|
|
67
|
+
# clears it. It can't be set on a Workspace whose External Key isn't bound to this
|
|
68
|
+
# user profile. The default Workspace can't have a user profile.
|
|
68
69
|
#
|
|
69
70
|
# @return [String, nil]
|
|
70
71
|
optional :user_profile_id, String
|
data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Anthropic
|
|
|
18
18
|
# The server reached no judgement; the invocation is held for client approval.
|
|
19
19
|
variant :ask, -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionAsk }
|
|
20
20
|
|
|
21
|
-
# The server judged the invocation high-risk; it does not execute and a synthetic error tool result is appended.
|
|
21
|
+
# The server judged the invocation high-risk, or reached no judgement and did not hold it for client approval (for example, because the organization is out of credits or has reached a spend limit); it does not execute and a synthetic error tool result is appended.
|
|
22
22
|
variant :deny, -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny }
|
|
23
23
|
|
|
24
24
|
module Type
|
data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb
CHANGED
|
@@ -7,8 +7,9 @@ module Anthropic
|
|
|
7
7
|
class BetaManagedAgentsAgentAutoEvaluatedPermissionDeny < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute reason_code
|
|
9
9
|
# The judgement's grounds in registry-bound terms. Open registry; currently
|
|
10
|
-
# "high_risk" (judged high-risk; the call does not run)
|
|
11
|
-
#
|
|
10
|
+
# "high_risk" (judged high-risk; the call does not run) and "indeterminate" (no
|
|
11
|
+
# judgement was reached; the call does not run). Clients must tolerate values
|
|
12
|
+
# outside this set.
|
|
12
13
|
#
|
|
13
14
|
# @return [String]
|
|
14
15
|
required :reason_code, String
|
|
@@ -19,8 +20,10 @@ module Anthropic
|
|
|
19
20
|
required :type, const: :deny
|
|
20
21
|
|
|
21
22
|
# @!method initialize(reason_code:, type: :deny)
|
|
22
|
-
# The server judged the invocation high-risk
|
|
23
|
-
#
|
|
23
|
+
# The server judged the invocation high-risk, or reached no judgement and did not
|
|
24
|
+
# hold it for client approval (for example, because the organization is out of
|
|
25
|
+
# credits or has reached a spend limit); it does not execute and a synthetic error
|
|
26
|
+
# tool result is appended.
|
|
24
27
|
#
|
|
25
28
|
# Some parameter documentations has been truncated, see
|
|
26
29
|
# {Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny}
|
|
@@ -163,7 +163,7 @@ module Anthropic
|
|
|
163
163
|
variant :external_key_validation_timed_out,
|
|
164
164
|
-> { Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails }
|
|
165
165
|
|
|
166
|
-
#
|
|
166
|
+
# After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
|
|
167
167
|
variant :key_profile_mismatch, -> { Anthropic::Organization::KeyProfileMismatchErrorDetails }
|
|
168
168
|
|
|
169
169
|
# The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
|
|
@@ -179,6 +179,12 @@ module Anthropic
|
|
|
179
179
|
# The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
|
|
180
180
|
variant :organization_type_not_supported, -> { Anthropic::OrganizationTypeNotSupportedErrorDetails }
|
|
181
181
|
|
|
182
|
+
# The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
|
|
183
|
+
variant :parent_organization_required, -> { Anthropic::ParentOrganizationRequiredErrorDetails }
|
|
184
|
+
|
|
185
|
+
# No RBAC Role with this ID was found.
|
|
186
|
+
variant :rbac_role_not_found, -> { Anthropic::RBACRoleNotFoundErrorDetails }
|
|
187
|
+
|
|
182
188
|
# Anthropic has turned off creating environments for this organization. Existing environments still work.
|
|
183
189
|
variant :environment_create_disabled, -> { Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails }
|
|
184
190
|
|
|
@@ -276,6 +282,13 @@ module Anthropic
|
|
|
276
282
|
variant :slack_channel_set_up_settings_conflict,
|
|
277
283
|
-> { Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails }
|
|
278
284
|
|
|
285
|
+
# The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
|
|
286
|
+
variant :bundle_attachment_not_supported,
|
|
287
|
+
-> { Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails }
|
|
288
|
+
|
|
289
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through the API.
|
|
290
|
+
variant :bundle_on_call, -> { Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails }
|
|
291
|
+
|
|
279
292
|
module ErrorCode
|
|
280
293
|
extend Anthropic::Internal::Type::Enum
|
|
281
294
|
|
|
@@ -333,6 +346,8 @@ module Anthropic
|
|
|
333
346
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
334
347
|
WORKSPACE_MEMBER_LIMIT_EXCEEDED = :workspace_member_limit_exceeded
|
|
335
348
|
ORGANIZATION_TYPE_NOT_SUPPORTED = :organization_type_not_supported
|
|
349
|
+
PARENT_ORGANIZATION_REQUIRED = :parent_organization_required
|
|
350
|
+
RBAC_ROLE_NOT_FOUND = :rbac_role_not_found
|
|
336
351
|
ENVIRONMENT_CREATE_DISABLED = :environment_create_disabled
|
|
337
352
|
ENVIRONMENT_ARCHIVED = :environment_archived
|
|
338
353
|
INVALID_CONFIG_TYPE_CHANGE = :invalid_config_type_change
|
|
@@ -361,13 +376,15 @@ module Anthropic
|
|
|
361
376
|
ENVIRONMENT_NOT_FOUND = :environment_not_found
|
|
362
377
|
SLACK_CHANNEL_SET_UP_ENVIRONMENT_NOT_FOUND = :slack_channel_set_up_environment_not_found
|
|
363
378
|
SLACK_CHANNEL_SET_UP_SETTINGS_CONFLICT = :slack_channel_set_up_settings_conflict
|
|
379
|
+
BUNDLE_ATTACHMENT_NOT_SUPPORTED = :bundle_attachment_not_supported
|
|
380
|
+
BUNDLE_ON_CALL = :bundle_on_call
|
|
364
381
|
|
|
365
382
|
# @!method self.values
|
|
366
383
|
# @return [Array<Symbol>]
|
|
367
384
|
end
|
|
368
385
|
|
|
369
386
|
# @!method self.variants
|
|
370
|
-
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
|
|
387
|
+
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails)]
|
|
371
388
|
|
|
372
389
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
373
390
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -396,7 +413,7 @@ module Anthropic
|
|
|
396
413
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
397
414
|
#
|
|
398
415
|
# @raise [ArgumentError]
|
|
399
|
-
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
|
|
416
|
+
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
400
417
|
def self.new(error_code:, **args)
|
|
401
418
|
case error_code.to_sym
|
|
402
419
|
when :available_tools_limit_exceeded
|
|
@@ -507,6 +524,10 @@ module Anthropic
|
|
|
507
524
|
Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails.new(**args)
|
|
508
525
|
when :organization_type_not_supported
|
|
509
526
|
Anthropic::OrganizationTypeNotSupportedErrorDetails.new(**args)
|
|
527
|
+
when :parent_organization_required
|
|
528
|
+
Anthropic::ParentOrganizationRequiredErrorDetails.new(**args)
|
|
529
|
+
when :rbac_role_not_found
|
|
530
|
+
Anthropic::RBACRoleNotFoundErrorDetails.new(**args)
|
|
510
531
|
when :environment_create_disabled
|
|
511
532
|
Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails.new(**args)
|
|
512
533
|
when :environment_archived
|
|
@@ -563,6 +584,10 @@ module Anthropic
|
|
|
563
584
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails.new(**args)
|
|
564
585
|
when :slack_channel_set_up_settings_conflict
|
|
565
586
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails.new(**args)
|
|
587
|
+
when :bundle_attachment_not_supported
|
|
588
|
+
Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails.new(**args)
|
|
589
|
+
when :bundle_on_call
|
|
590
|
+
Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails.new(**args)
|
|
566
591
|
else
|
|
567
592
|
raise ArgumentError, "unknown error_code: #{error_code}"
|
|
568
593
|
end
|
|
@@ -57,8 +57,8 @@ module Anthropic
|
|
|
57
57
|
# @!attribute user_profile_id
|
|
58
58
|
# ID of the user profile the key is bound to, or null if the key is not bound to
|
|
59
59
|
# one. A key bound to a user profile can only be attached to a Workspace that has
|
|
60
|
-
# the same user profile. A key that isn't bound can be attached to a
|
|
61
|
-
#
|
|
60
|
+
# the same user profile. A key that isn't bound can only be attached to a
|
|
61
|
+
# Workspace that has no user profile.
|
|
62
62
|
#
|
|
63
63
|
# @return [String, nil]
|
|
64
64
|
required :user_profile_id, String, nil?: true
|
|
@@ -31,8 +31,9 @@ module Anthropic
|
|
|
31
31
|
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
32
32
|
# a user profile can only be attached to a Workspace that has the same user
|
|
33
33
|
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
34
|
-
# organization's own key,
|
|
35
|
-
# attached to
|
|
34
|
+
# organization's own key, never a customer's. A key created without a user profile
|
|
35
|
+
# ID can't be attached to a Workspace that has a user profile, and you can't add
|
|
36
|
+
# one to the key later.
|
|
36
37
|
#
|
|
37
38
|
# @return [String, nil]
|
|
38
39
|
optional :user_profile_id, String, nil?: true
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Organization
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# After this request, the External Key and the Workspace would not have the same
|
|
7
|
+
# user profile. A key and its Workspace must have the same user profile, or both
|
|
8
|
+
# have none.
|
|
9
9
|
class KeyProfileMismatchError < Anthropic::Errors::BadRequestError
|
|
10
10
|
# @!method error_code
|
|
11
11
|
# @return [Symbol, :key_profile_mismatch]
|
|
@@ -10,9 +10,9 @@ module Anthropic
|
|
|
10
10
|
required :error_code, const: :key_profile_mismatch
|
|
11
11
|
|
|
12
12
|
# @!method initialize(error_code: :key_profile_mismatch)
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# After this request, the External Key and the Workspace would not have the same
|
|
14
|
+
# user profile. A key and its Workspace must have the same user profile, or both
|
|
15
|
+
# have none.
|
|
16
16
|
#
|
|
17
17
|
# @param error_code [Symbol, :key_profile_mismatch]
|
|
18
18
|
end
|
|
@@ -18,13 +18,20 @@ module Anthropic
|
|
|
18
18
|
required :created_at, Time
|
|
19
19
|
|
|
20
20
|
# @!attribute display_name
|
|
21
|
-
# Name of the RBAC Role. For a role
|
|
22
|
-
#
|
|
23
|
-
#
|
|
21
|
+
# Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
|
|
22
|
+
# access that the role grants. Anthropic may change this name, so to keep a
|
|
23
|
+
# lasting reference to a role, store its `id`.
|
|
24
24
|
#
|
|
25
25
|
# @return [String]
|
|
26
26
|
required :display_name, String
|
|
27
27
|
|
|
28
|
+
# @!attribute source
|
|
29
|
+
# Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
30
|
+
# so do not treat every role that is not `built_in` as `custom`.
|
|
31
|
+
#
|
|
32
|
+
# @return [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom]
|
|
33
|
+
required :source, union: -> { Anthropic::Organization::RBACRoleSource }
|
|
34
|
+
|
|
28
35
|
# @!attribute type
|
|
29
36
|
# Object type.
|
|
30
37
|
#
|
|
@@ -39,7 +46,7 @@ module Anthropic
|
|
|
39
46
|
# @return [Time]
|
|
40
47
|
required :updated_at, Time
|
|
41
48
|
|
|
42
|
-
# @!method initialize(id:, created_at:, display_name:, updated_at:, type: :rbac_role)
|
|
49
|
+
# @!method initialize(id:, created_at:, display_name:, source:, updated_at:, type: :rbac_role)
|
|
43
50
|
# Some parameter documentations has been truncated, see
|
|
44
51
|
# {Anthropic::Models::Organization::RBACRole} for more details.
|
|
45
52
|
#
|
|
@@ -47,7 +54,9 @@ module Anthropic
|
|
|
47
54
|
#
|
|
48
55
|
# @param created_at [Time] RFC 3339 datetime string indicating when the RBAC Role was created.
|
|
49
56
|
#
|
|
50
|
-
# @param display_name [String] Name of the RBAC Role. For a role
|
|
57
|
+
# @param display_name [String] Name of the RBAC Role. For a built-in role, this is Anthropic's name for the acc
|
|
58
|
+
#
|
|
59
|
+
# @param source [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom] Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
51
60
|
#
|
|
52
61
|
# @param updated_at [Time] RFC 3339 datetime string indicating when the RBAC Role was last updated.
|
|
53
62
|
#
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
module RBACRoleSource
|
|
7
|
+
extend Anthropic::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
discriminator :type
|
|
10
|
+
|
|
11
|
+
variant :built_in, -> { Anthropic::Organization::RBACRoleSourceBuiltIn }
|
|
12
|
+
|
|
13
|
+
variant :custom, -> { Anthropic::Organization::RBACRoleSourceCustom }
|
|
14
|
+
|
|
15
|
+
module Type
|
|
16
|
+
extend Anthropic::Internal::Type::Enum
|
|
17
|
+
|
|
18
|
+
BUILT_IN = :built_in
|
|
19
|
+
CUSTOM = :custom
|
|
20
|
+
|
|
21
|
+
# @!method self.values
|
|
22
|
+
# @return [Array<Symbol>]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @!method self.variants
|
|
26
|
+
# @return [Array(Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom)]
|
|
27
|
+
|
|
28
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
29
|
+
# value, passing the remaining arguments to its constructor.
|
|
30
|
+
#
|
|
31
|
+
# @param type [Symbol, Anthropic::Models::Organization::RBACRoleSource::Type, String]
|
|
32
|
+
#
|
|
33
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
34
|
+
#
|
|
35
|
+
# @raise [ArgumentError]
|
|
36
|
+
# @return [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom]
|
|
37
|
+
def self.new(type:, **args)
|
|
38
|
+
case type.to_sym
|
|
39
|
+
when :built_in
|
|
40
|
+
Anthropic::Organization::RBACRoleSourceBuiltIn.new(**args)
|
|
41
|
+
when :custom
|
|
42
|
+
Anthropic::Organization::RBACRoleSourceCustom.new(**args)
|
|
43
|
+
else
|
|
44
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class RBACRoleSourceBuiltIn < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
9
|
+
# change or delete it.
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :built_in]
|
|
12
|
+
required :type, const: :built_in
|
|
13
|
+
|
|
14
|
+
# @!method initialize(type: :built_in)
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {Anthropic::Models::Organization::RBACRoleSourceBuiltIn} for more details.
|
|
17
|
+
#
|
|
18
|
+
# @param type [Symbol, :built_in] Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class RBACRoleSourceCustom < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# The organization's administrators can change and delete the RBAC Role.
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :custom]
|
|
11
|
+
required :type, const: :custom
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :custom)
|
|
14
|
+
# @param type [Symbol, :custom] The organization's administrators can change and delete the RBAC Role.
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -59,7 +59,8 @@ module Anthropic
|
|
|
59
59
|
# the Workspace must then name this user profile; the API rejects a request that
|
|
60
60
|
# names none or a different one. Once set, it can't be replaced or removed
|
|
61
61
|
# (sending the same ID again changes nothing); only deleting the user profile
|
|
62
|
-
# clears it.
|
|
62
|
+
# clears it. It can't be set on a Workspace whose External Key isn't bound to this
|
|
63
|
+
# user profile. The default Workspace can't have a user profile.
|
|
63
64
|
#
|
|
64
65
|
# @return [String, nil]
|
|
65
66
|
optional :user_profile_id, String
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The endpoint serves only organizations that belong to a parent organization, and
|
|
6
|
+
# this organization belongs to none.
|
|
7
|
+
class ParentOrganizationRequiredError < Anthropic::Errors::BadRequestError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :parent_organization_required]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::ParentOrganizationRequiredErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::ParentOrganizationRequiredErrorDetails,
|
|
15
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ParentOrganizationRequiredErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :parent_organization_required]
|
|
9
|
+
required :error_code, const: :parent_organization_required
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :parent_organization_required)
|
|
12
|
+
# The endpoint serves only organizations that belong to a parent organization, and
|
|
13
|
+
# this organization belongs to none.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :parent_organization_required]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# No RBAC Role with this ID was found.
|
|
6
|
+
class RBACRoleNotFoundError < Anthropic::Errors::NotFoundError
|
|
7
|
+
# @!method error_code
|
|
8
|
+
# @return [Symbol, :rbac_role_not_found]
|
|
9
|
+
|
|
10
|
+
# @return [Anthropic::Models::RBACRoleNotFoundErrorDetails]
|
|
11
|
+
def details
|
|
12
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
13
|
+
Anthropic::RBACRoleNotFoundErrorDetails,
|
|
14
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class RBACRoleNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :rbac_role_not_found]
|
|
9
|
+
required :error_code, const: :rbac_role_not_found
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :rbac_role_not_found)
|
|
12
|
+
# No RBAC Role with this ID was found.
|
|
13
|
+
#
|
|
14
|
+
# @param error_code [Symbol, :rbac_role_not_found]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/anthropic/models.rb
CHANGED
|
@@ -735,6 +735,10 @@ module Anthropic
|
|
|
735
735
|
|
|
736
736
|
OverloadedError = Anthropic::Models::OverloadedError
|
|
737
737
|
|
|
738
|
+
ParentOrganizationRequiredError = Anthropic::Models::ParentOrganizationRequiredError
|
|
739
|
+
|
|
740
|
+
ParentOrganizationRequiredErrorDetails = Anthropic::Models::ParentOrganizationRequiredErrorDetails
|
|
741
|
+
|
|
738
742
|
PermissionError = Anthropic::Models::PermissionError
|
|
739
743
|
|
|
740
744
|
PlainTextSource = Anthropic::Models::PlainTextSource
|
|
@@ -761,6 +765,10 @@ module Anthropic
|
|
|
761
765
|
|
|
762
766
|
RawMessageStreamEvent = Anthropic::Models::RawMessageStreamEvent
|
|
763
767
|
|
|
768
|
+
RBACRoleNotFoundError = Anthropic::Models::RBACRoleNotFoundError
|
|
769
|
+
|
|
770
|
+
RBACRoleNotFoundErrorDetails = Anthropic::Models::RBACRoleNotFoundErrorDetails
|
|
771
|
+
|
|
764
772
|
RedactedThinkingBlock = Anthropic::Models::RedactedThinkingBlock
|
|
765
773
|
|
|
766
774
|
RedactedThinkingBlockParam = Anthropic::Models::RedactedThinkingBlockParam
|
|
@@ -55,7 +55,7 @@ module Anthropic
|
|
|
55
55
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
56
56
|
body: parsed.except(*header_params.keys),
|
|
57
57
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
58
|
-
options:
|
|
58
|
+
options: options
|
|
59
59
|
)
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -96,7 +96,7 @@ module Anthropic
|
|
|
96
96
|
path: ["v1/messages/batches/%1$s", message_batch_id],
|
|
97
97
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
98
98
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
99
|
-
options:
|
|
99
|
+
options: options
|
|
100
100
|
)
|
|
101
101
|
end
|
|
102
102
|
|
|
@@ -147,7 +147,7 @@ module Anthropic
|
|
|
147
147
|
),
|
|
148
148
|
page: Anthropic::Internal::Page,
|
|
149
149
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
150
|
-
options:
|
|
150
|
+
options: options
|
|
151
151
|
)
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -189,7 +189,7 @@ module Anthropic
|
|
|
189
189
|
path: ["v1/messages/batches/%1$s", message_batch_id],
|
|
190
190
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
191
191
|
model: Anthropic::Beta::Messages::BetaDeletedMessageBatch,
|
|
192
|
-
options:
|
|
192
|
+
options: options
|
|
193
193
|
)
|
|
194
194
|
end
|
|
195
195
|
|
|
@@ -236,7 +236,7 @@ module Anthropic
|
|
|
236
236
|
path: ["v1/messages/batches/%1$s/cancel", message_batch_id],
|
|
237
237
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
238
238
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
239
|
-
options:
|
|
239
|
+
options: options
|
|
240
240
|
)
|
|
241
241
|
end
|
|
242
242
|
|
|
@@ -284,7 +284,7 @@ module Anthropic
|
|
|
284
284
|
),
|
|
285
285
|
stream: Anthropic::Internal::JsonLStream,
|
|
286
286
|
model: Anthropic::Beta::Messages::BetaMessageBatchIndividualResponse,
|
|
287
|
-
options:
|
|
287
|
+
options: options
|
|
288
288
|
)
|
|
289
289
|
end
|
|
290
290
|
|
|
@@ -506,7 +506,11 @@ module Anthropic
|
|
|
506
506
|
# @return [Anthropic::Helpers::Streaming::MessageStream]
|
|
507
507
|
def stream(params)
|
|
508
508
|
parsed = Anthropic::Models::Beta::MessageCreateParams.dump_request(params).first
|
|
509
|
-
tools, models = Anthropic::Helpers::Messages.distill_input_schema_models!(
|
|
509
|
+
tools, models = Anthropic::Helpers::Messages.distill_input_schema_models!(
|
|
510
|
+
parsed,
|
|
511
|
+
strict: nil,
|
|
512
|
+
is_beta: true
|
|
513
|
+
)
|
|
510
514
|
Anthropic::Streaming::MessageStream.new(raw_stream: stream_raw(params), tools:, models:)
|
|
511
515
|
end
|
|
512
516
|
|
|
@@ -50,6 +50,57 @@ module Anthropic
|
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Change a Bundle's instructions. The update is partial: a field left out is
|
|
54
|
+
# unchanged, and `instructions` sent as null or as an empty string clears them.
|
|
55
|
+
# The later of two updates wins. Sessions that start after the change use the new
|
|
56
|
+
# instructions; sessions already running keep the ones they started with. Some
|
|
57
|
+
# Bundles are managed in claude.ai, and an update of one returns 400.
|
|
58
|
+
#
|
|
59
|
+
# Some parameter documentations has been truncated, see
|
|
60
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams} for more
|
|
61
|
+
# details.
|
|
62
|
+
#
|
|
63
|
+
# @overload update(bundle_id, instructions: nil, betas: nil, request_options: {})
|
|
64
|
+
#
|
|
65
|
+
# @param bundle_id [String] Path param: The Bundle's identifier, starting with `capp_`.
|
|
66
|
+
#
|
|
67
|
+
# @param instructions [String, nil] Body param: Instructions for Claude, up to 10,000 bytes (UTF-8), added to the in
|
|
68
|
+
#
|
|
69
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedError]
|
|
74
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleOnCallError]
|
|
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]
|
|
79
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
|
|
80
|
+
#
|
|
81
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle]
|
|
82
|
+
#
|
|
83
|
+
# @see Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams
|
|
84
|
+
def update(bundle_id, params = {})
|
|
85
|
+
parsed, options = Anthropic::Beta::Organization::ClaudeTag::BundleUpdateParams.dump_request(params)
|
|
86
|
+
header_params = {betas: "anthropic-beta"}
|
|
87
|
+
@client.request(
|
|
88
|
+
qualifiers: {beta: "true"},
|
|
89
|
+
span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE,
|
|
90
|
+
span_attributes: {"anthropic.organization.claude_tag.bundle.id" => bundle_id},
|
|
91
|
+
span_route: "/v1/organizations/claude_tag/bundles/{bundle_id}",
|
|
92
|
+
method: :post,
|
|
93
|
+
path: ["v1/organizations/claude_tag/bundles/%1$s", bundle_id],
|
|
94
|
+
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
95
|
+
body: parsed.except(*header_params.keys),
|
|
96
|
+
model: Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle,
|
|
97
|
+
options: {
|
|
98
|
+
extra_headers: {"anthropic-beta" => "experimental-claude-tag-2026-10-21"},
|
|
99
|
+
**options
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
53
104
|
# List the organization's Bundles, newest first by `created_at`. A Bundle that
|
|
54
105
|
# Claude Tag manages for itself is not listed.
|
|
55
106
|
#
|