anthropic 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +11 -1
- data/lib/anthropic/errors.rb +11 -0
- data/lib/anthropic/helpers/aws/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
- data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/api_error_object.rb +9 -2
- data/lib/anthropic/models/authentication_error.rb +9 -2
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
- data/lib/anthropic/models/beta_api_error.rb +9 -2
- data/lib/anthropic/models/beta_authentication_error.rb +9 -2
- data/lib/anthropic/models/beta_billing_error.rb +9 -2
- data/lib/anthropic/models/beta_error.rb +4 -1
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
- data/lib/anthropic/models/beta_not_found_error.rb +9 -2
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
- data/lib/anthropic/models/beta_permission_error.rb +9 -2
- data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
- data/lib/anthropic/models/billing_error.rb +9 -2
- data/lib/anthropic/models/error_details.rb +74 -7
- data/lib/anthropic/models/error_object.rb +4 -1
- data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/invalid_request_error.rb +9 -2
- data/lib/anthropic/models/model.rb +10 -0
- data/lib/anthropic/models/not_found_error.rb +9 -2
- data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
- data/lib/anthropic/models/overloaded_error.rb +9 -2
- data/lib/anthropic/models/permission_error.rb +9 -2
- data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
- data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
- data/lib/anthropic/models/rate_limit_error.rb +9 -2
- data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
- data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
- data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
- data/lib/anthropic/models.rb +13 -0
- data/lib/anthropic/resources/beta/environments/work.rb +10 -24
- data/lib/anthropic/resources/beta/environments.rb +16 -37
- data/lib/anthropic/resources/beta/files.rb +23 -50
- data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
- data/lib/anthropic/resources/beta/messages.rb +74 -139
- data/lib/anthropic/resources/beta/models.rb +4 -10
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
- data/lib/anthropic/resources/beta/organization/api_keys.rb +3 -2
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +8 -7
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/beta/organization/invites.rb +10 -17
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
- data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -14
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +7 -7
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
- data/lib/anthropic/resources/beta/organization/users.rb +69 -4
- data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +6 -2
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/workspaces.rb +16 -22
- data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
- data/lib/anthropic/resources/beta/skills.rb +11 -26
- data/lib/anthropic/resources/files.rb +23 -50
- data/lib/anthropic/resources/messages/batches.rb +15 -35
- data/lib/anthropic/resources/messages.rb +74 -139
- data/lib/anthropic/resources/models.rb +4 -10
- data/lib/anthropic/resources/organization/api_keys.rb +3 -2
- data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/organization/external_keys.rb +8 -7
- data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/organization/invites.rb +10 -17
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +6 -14
- data/lib/anthropic/resources/organization/rbac_groups.rb +7 -7
- data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/organization/users.rb +5 -4
- data/lib/anthropic/resources/organization/workspaces/members.rb +6 -2
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/workspaces.rb +16 -22
- data/lib/anthropic/resources/skills/versions.rb +11 -26
- data/lib/anthropic/resources/skills.rb +11 -26
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +25 -2
- data/manifest.yaml +1 -0
- data/rbi/anthropic/errors.rbi +14 -0
- data/rbi/anthropic/helpers/aws/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
- data/rbi/anthropic/internal/tracing.rbi +1 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/api_error_object.rbi +10 -1
- data/rbi/anthropic/models/authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
- data/rbi/anthropic/models/beta_api_error.rbi +10 -1
- data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
- data/rbi/anthropic/models/beta_error.rbi +6 -1
- data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
- data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
- data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models/billing_error.rbi +10 -1
- data/rbi/anthropic/models/error_details.rbi +63 -3
- data/rbi/anthropic/models/error_object.rbi +6 -1
- data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/model.rbi +8 -0
- data/rbi/anthropic/models/not_found_error.rbi +10 -1
- data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
- data/rbi/anthropic/models/{beta/beta_billing_frozen_error_details.rbi → organization/external_key_validation_failed_error_details.rbi} +6 -8
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
- data/rbi/anthropic/models/overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/permission_error.rbi +10 -1
- data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
- data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
- data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
- data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
- data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
- data/sig/anthropic/errors.rbs +3 -0
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +72 -5
- data/sig/anthropic/models/model.rbs +9 -1
- data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
- data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
- metadata +74 -8
- data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
- data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
- data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
- data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
- data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaGatewayTimeoutError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :timeout_error]
|
|
14
17
|
required :type, const: :timeout_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :timeout_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaGatewayTimeoutError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :timeout_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaInvalidRequestError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :invalid_request_error]
|
|
14
17
|
required :type, const: :invalid_request_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :invalid_request_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaInvalidRequestError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :invalid_request_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaNotFoundError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :not_found_error]
|
|
14
17
|
required :type, const: :not_found_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :not_found_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaNotFoundError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :not_found_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
6
|
+
# message names the beta value.
|
|
7
|
+
class BetaOrganizationNotEnrolledInBetaError < Anthropic::Errors::BadRequestError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :organization_not_enrolled_in_beta]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails,
|
|
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 BetaOrganizationNotEnrolledInBetaErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :organization_not_enrolled_in_beta]
|
|
9
|
+
required :error_code, const: :organization_not_enrolled_in_beta
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :organization_not_enrolled_in_beta)
|
|
12
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
13
|
+
# message names the beta value.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :organization_not_enrolled_in_beta]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaOverloadedError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :overloaded_error]
|
|
14
17
|
required :type, const: :overloaded_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :overloaded_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaOverloadedError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :overloaded_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaPermissionError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :permission_error]
|
|
14
17
|
required :type, const: :permission_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :permission_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaPermissionError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :permission_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaRateLimitError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :rate_limit_error]
|
|
14
17
|
required :type, const: :rate_limit_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :rate_limit_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaRateLimitError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :rate_limit_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BillingError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :billing_error]
|
|
14
17
|
required :type, const: :billing_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :billing_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BillingError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -87,6 +87,9 @@ module Anthropic
|
|
|
87
87
|
# The organization has crossed the monthly API usage threshold of its API tier.
|
|
88
88
|
variant :enforced_spend_limit_reached, -> { Anthropic::EnforcedSpendLimitReachedErrorDetails }
|
|
89
89
|
|
|
90
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the `retry-after` header.
|
|
91
|
+
variant :ramp_limit_exceeded, -> { Anthropic::RampLimitExceededErrorDetails }
|
|
92
|
+
|
|
90
93
|
# The workspace's customer-managed encryption key could not be reached. Retry the request; if this continues, check that the key is available in your key management service, or contact Anthropic support.
|
|
91
94
|
variant :cmek_key_unreachable, -> { Anthropic::CMEKKeyUnreachableErrorDetails }
|
|
92
95
|
|
|
@@ -112,6 +115,9 @@ module Anthropic
|
|
|
112
115
|
variant :workspace_api_key_limit_exceeded,
|
|
113
116
|
-> { Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails }
|
|
114
117
|
|
|
118
|
+
# The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
|
|
119
|
+
variant :sandbox_egress_restricted, -> { Anthropic::SandboxEgressRestrictedErrorDetails }
|
|
120
|
+
|
|
115
121
|
# The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
|
|
116
122
|
variant :user_profile_not_found, -> { Anthropic::UserProfileNotFoundErrorDetails }
|
|
117
123
|
|
|
@@ -149,6 +155,14 @@ module Anthropic
|
|
|
149
155
|
# Another change to the organization's members is in progress. Retry the request once it completes.
|
|
150
156
|
variant :concurrent_membership_change, -> { Anthropic::ConcurrentMembershipChangeErrorDetails }
|
|
151
157
|
|
|
158
|
+
# The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
|
|
159
|
+
variant :external_key_validation_failed,
|
|
160
|
+
-> { Anthropic::Organization::ExternalKeyValidationFailedErrorDetails }
|
|
161
|
+
|
|
162
|
+
# Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
|
|
163
|
+
variant :external_key_validation_timed_out,
|
|
164
|
+
-> { Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails }
|
|
165
|
+
|
|
152
166
|
# The External Key is bound to a user profile, and the Workspace does not have that user profile. A Workspace can use only a key bound to its own user profile or a key that isn't bound to one.
|
|
153
167
|
variant :key_profile_mismatch, -> { Anthropic::Organization::KeyProfileMismatchErrorDetails }
|
|
154
168
|
|
|
@@ -184,8 +198,31 @@ module Anthropic
|
|
|
184
198
|
# `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
|
|
185
199
|
variant :invalid_metadata, -> { Anthropic::Beta::BetaInvalidMetadataErrorDetails }
|
|
186
200
|
|
|
187
|
-
#
|
|
188
|
-
variant :
|
|
201
|
+
# The member is the organization's primary owner, whom no API key or token can sign out.
|
|
202
|
+
variant :cannot_sign_out_primary_owner,
|
|
203
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails }
|
|
204
|
+
|
|
205
|
+
# The member is the user the API key or token belongs to.
|
|
206
|
+
variant :cannot_sign_out_self, -> { Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails }
|
|
207
|
+
|
|
208
|
+
# The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
|
|
209
|
+
variant :organization_not_enrolled_in_beta,
|
|
210
|
+
-> { Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails }
|
|
211
|
+
|
|
212
|
+
# The member has the `managed` role, and this API key or token cannot sign them out. The error message says which keys and tokens can.
|
|
213
|
+
variant :cannot_sign_out_managed_member,
|
|
214
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails }
|
|
215
|
+
|
|
216
|
+
# The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.
|
|
217
|
+
variant :cannot_sign_out_membership_admin,
|
|
218
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails }
|
|
219
|
+
|
|
220
|
+
# The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the `write:members` scope can.
|
|
221
|
+
variant :cannot_sign_out_owner, -> { Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails }
|
|
222
|
+
|
|
223
|
+
# This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.
|
|
224
|
+
variant :cannot_sign_out_privileged_member,
|
|
225
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails }
|
|
189
226
|
|
|
190
227
|
# The organization cannot retrieve, set or delete spend limits with an Admin API credential.
|
|
191
228
|
variant :spend_limits_admin_api_writes_not_enabled,
|
|
@@ -268,6 +305,7 @@ module Anthropic
|
|
|
268
305
|
SKILL_READ_BLOCKED_UNDECRYPTABLE = :skill_read_blocked_undecryptable
|
|
269
306
|
REQUEST_BODY_TOO_LARGE_AFTER_DECODING = :request_body_too_large_after_decoding
|
|
270
307
|
ENFORCED_SPEND_LIMIT_REACHED = :enforced_spend_limit_reached
|
|
308
|
+
RAMP_LIMIT_EXCEEDED = :ramp_limit_exceeded
|
|
271
309
|
CMEK_KEY_UNREACHABLE = :cmek_key_unreachable
|
|
272
310
|
COMPACTION_UNAVAILABLE = :compaction_unavailable
|
|
273
311
|
STORAGE_QUOTA_EXCEEDED = :storage_quota_exceeded
|
|
@@ -276,6 +314,7 @@ module Anthropic
|
|
|
276
314
|
CMEK_CONTEXT_UNAVAILABLE = :cmek_context_unavailable
|
|
277
315
|
ORG_API_KEY_LIMIT_EXCEEDED = :org_api_key_limit_exceeded
|
|
278
316
|
WORKSPACE_API_KEY_LIMIT_EXCEEDED = :workspace_api_key_limit_exceeded
|
|
317
|
+
SANDBOX_EGRESS_RESTRICTED = :sandbox_egress_restricted
|
|
279
318
|
USER_PROFILE_NOT_FOUND = :user_profile_not_found
|
|
280
319
|
EXTERNAL_KEY_IN_WORKSPACE_POLICY = :external_key_in_workspace_policy
|
|
281
320
|
ALREADY_MEMBER = :already_member
|
|
@@ -287,6 +326,8 @@ module Anthropic
|
|
|
287
326
|
RBAC_GROUP_OWNER_ACCESS_UNCONFIRMED = :rbac_group_owner_access_unconfirmed
|
|
288
327
|
CANNOT_REMOVE_LAST_MEMBER = :cannot_remove_last_member
|
|
289
328
|
CONCURRENT_MEMBERSHIP_CHANGE = :concurrent_membership_change
|
|
329
|
+
EXTERNAL_KEY_VALIDATION_FAILED = :external_key_validation_failed
|
|
330
|
+
EXTERNAL_KEY_VALIDATION_TIMED_OUT = :external_key_validation_timed_out
|
|
290
331
|
KEY_PROFILE_MISMATCH = :key_profile_mismatch
|
|
291
332
|
WORKSPACE_POLICY_VIOLATION = :workspace_policy_violation
|
|
292
333
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
@@ -298,7 +339,13 @@ module Anthropic
|
|
|
298
339
|
ENVIRONMENT_UPDATE_DISABLED = :environment_update_disabled
|
|
299
340
|
HEARTBEAT_PRECONDITION_FAILED = :heartbeat_precondition_failed
|
|
300
341
|
INVALID_METADATA = :invalid_metadata
|
|
301
|
-
|
|
342
|
+
CANNOT_SIGN_OUT_PRIMARY_OWNER = :cannot_sign_out_primary_owner
|
|
343
|
+
CANNOT_SIGN_OUT_SELF = :cannot_sign_out_self
|
|
344
|
+
ORGANIZATION_NOT_ENROLLED_IN_BETA = :organization_not_enrolled_in_beta
|
|
345
|
+
CANNOT_SIGN_OUT_MANAGED_MEMBER = :cannot_sign_out_managed_member
|
|
346
|
+
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN = :cannot_sign_out_membership_admin
|
|
347
|
+
CANNOT_SIGN_OUT_OWNER = :cannot_sign_out_owner
|
|
348
|
+
CANNOT_SIGN_OUT_PRIVILEGED_MEMBER = :cannot_sign_out_privileged_member
|
|
302
349
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED = :spend_limits_admin_api_writes_not_enabled
|
|
303
350
|
UNSUPPORTED_CHARSET = :unsupported_charset
|
|
304
351
|
PLUGIN_NAME_TAKEN = :plugin_name_taken
|
|
@@ -320,7 +367,7 @@ module Anthropic
|
|
|
320
367
|
end
|
|
321
368
|
|
|
322
369
|
# @!method self.variants
|
|
323
|
-
# @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::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::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::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::
|
|
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)]
|
|
324
371
|
|
|
325
372
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
326
373
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -349,7 +396,7 @@ module Anthropic
|
|
|
349
396
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
350
397
|
#
|
|
351
398
|
# @raise [ArgumentError]
|
|
352
|
-
# @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::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::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::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::
|
|
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]
|
|
353
400
|
def self.new(error_code:, **args)
|
|
354
401
|
case error_code.to_sym
|
|
355
402
|
when :available_tools_limit_exceeded
|
|
@@ -404,6 +451,8 @@ module Anthropic
|
|
|
404
451
|
Anthropic::RequestBodyTooLargeAfterDecodingErrorDetails.new(**args)
|
|
405
452
|
when :enforced_spend_limit_reached
|
|
406
453
|
Anthropic::EnforcedSpendLimitReachedErrorDetails.new(**args)
|
|
454
|
+
when :ramp_limit_exceeded
|
|
455
|
+
Anthropic::RampLimitExceededErrorDetails.new(**args)
|
|
407
456
|
when :cmek_key_unreachable
|
|
408
457
|
Anthropic::CMEKKeyUnreachableErrorDetails.new(**args)
|
|
409
458
|
when :compaction_unavailable
|
|
@@ -420,6 +469,8 @@ module Anthropic
|
|
|
420
469
|
Anthropic::Organization::OrgAPIKeyLimitExceededErrorDetails.new(**args)
|
|
421
470
|
when :workspace_api_key_limit_exceeded
|
|
422
471
|
Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails.new(**args)
|
|
472
|
+
when :sandbox_egress_restricted
|
|
473
|
+
Anthropic::SandboxEgressRestrictedErrorDetails.new(**args)
|
|
423
474
|
when :user_profile_not_found
|
|
424
475
|
Anthropic::UserProfileNotFoundErrorDetails.new(**args)
|
|
425
476
|
when :external_key_in_workspace_policy
|
|
@@ -442,6 +493,10 @@ module Anthropic
|
|
|
442
493
|
Anthropic::Organization::CannotRemoveLastMemberErrorDetails.new(**args)
|
|
443
494
|
when :concurrent_membership_change
|
|
444
495
|
Anthropic::ConcurrentMembershipChangeErrorDetails.new(**args)
|
|
496
|
+
when :external_key_validation_failed
|
|
497
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails.new(**args)
|
|
498
|
+
when :external_key_validation_timed_out
|
|
499
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails.new(**args)
|
|
445
500
|
when :key_profile_mismatch
|
|
446
501
|
Anthropic::Organization::KeyProfileMismatchErrorDetails.new(**args)
|
|
447
502
|
when :workspace_policy_violation
|
|
@@ -464,8 +519,20 @@ module Anthropic
|
|
|
464
519
|
Anthropic::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails.new(**args)
|
|
465
520
|
when :invalid_metadata
|
|
466
521
|
Anthropic::Beta::BetaInvalidMetadataErrorDetails.new(**args)
|
|
467
|
-
when :
|
|
468
|
-
Anthropic::Beta::
|
|
522
|
+
when :cannot_sign_out_primary_owner
|
|
523
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails.new(**args)
|
|
524
|
+
when :cannot_sign_out_self
|
|
525
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails.new(**args)
|
|
526
|
+
when :organization_not_enrolled_in_beta
|
|
527
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails.new(**args)
|
|
528
|
+
when :cannot_sign_out_managed_member
|
|
529
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails.new(**args)
|
|
530
|
+
when :cannot_sign_out_membership_admin
|
|
531
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails.new(**args)
|
|
532
|
+
when :cannot_sign_out_owner
|
|
533
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails.new(**args)
|
|
534
|
+
when :cannot_sign_out_privileged_member
|
|
535
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails.new(**args)
|
|
469
536
|
when :spend_limits_admin_api_writes_not_enabled
|
|
470
537
|
Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails.new(**args)
|
|
471
538
|
when :unsupported_charset
|
|
@@ -48,11 +48,14 @@ module Anthropic
|
|
|
48
48
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
49
|
# value, passing the remaining arguments to its constructor.
|
|
50
50
|
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Anthropic::Models::ErrorObject} for more details.
|
|
53
|
+
#
|
|
51
54
|
# @param type [Symbol, Anthropic::Models::ErrorObject::Type, String]
|
|
52
55
|
#
|
|
53
56
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
54
57
|
#
|
|
55
|
-
# @option args [String] :message
|
|
58
|
+
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
56
59
|
#
|
|
57
60
|
# @raise [ArgumentError]
|
|
58
61
|
# @return [Anthropic::Models::InvalidRequestError, Anthropic::Models::AuthenticationError, Anthropic::Models::BillingError, Anthropic::Models::PermissionError, Anthropic::Models::NotFoundError, Anthropic::Models::RateLimitError, Anthropic::Models::GatewayTimeoutError, Anthropic::Models::APIErrorObject, Anthropic::Models::OverloadedError]
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class GatewayTimeoutError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :timeout_error]
|
|
14
17
|
required :type, const: :timeout_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :timeout_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::GatewayTimeoutError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :timeout_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class InvalidRequestError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :invalid_request_error]
|
|
14
17
|
required :type, const: :invalid_request_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :invalid_request_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::InvalidRequestError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :invalid_request_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -9,6 +9,10 @@ module Anthropic
|
|
|
9
9
|
module Model
|
|
10
10
|
extend Anthropic::Internal::Type::Union
|
|
11
11
|
|
|
12
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_FABLE_5_2 }
|
|
13
|
+
|
|
14
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_MYTHOS_5_2 }
|
|
15
|
+
|
|
12
16
|
variant const: -> { Anthropic::Models::Model::CLAUDE_HAIKU_5_5 }
|
|
13
17
|
|
|
14
18
|
variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_5_5 }
|
|
@@ -60,6 +64,12 @@ module Anthropic
|
|
|
60
64
|
|
|
61
65
|
# @!group
|
|
62
66
|
|
|
67
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
68
|
+
CLAUDE_FABLE_5_2 = :"claude-fable-5-2"
|
|
69
|
+
|
|
70
|
+
# Frontier intelligence for cybersecurity and life sciences research, available through verification programs
|
|
71
|
+
CLAUDE_MYTHOS_5_2 = :"claude-mythos-5-2"
|
|
72
|
+
|
|
63
73
|
# Fastest model for high-volume, real-time tasks
|
|
64
74
|
CLAUDE_HAIKU_5_5 = :"claude-haiku-5-5"
|
|
65
75
|
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class NotFoundError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :not_found_error]
|
|
14
17
|
required :type, const: :not_found_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :not_found_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::NotFoundError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :not_found_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The External Key failed Anthropic's validation, so the request was refused. The
|
|
7
|
+
# message gives the reason, if there is one.
|
|
8
|
+
class ExternalKeyValidationFailedError < Anthropic::Errors::BadRequestError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :external_key_validation_failed]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class ExternalKeyValidationFailedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :external_key_validation_failed]
|
|
10
|
+
required :error_code, const: :external_key_validation_failed
|
|
11
|
+
|
|
12
|
+
# @!method initialize(error_code: :external_key_validation_failed)
|
|
13
|
+
# The External Key failed Anthropic's validation, so the request was refused. The
|
|
14
|
+
# message gives the reason, if there is one.
|
|
15
|
+
#
|
|
16
|
+
# @param error_code [Symbol, :external_key_validation_failed]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|