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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# Anthropic's validation of the External Key did not finish in time, so the
|
|
7
|
+
# request was refused. Wait a moment, then send the request again.
|
|
8
|
+
class ExternalKeyValidationTimedOutError < Anthropic::Errors::BadRequestError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :external_key_validation_timed_out]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails,
|
|
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 ExternalKeyValidationTimedOutErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :external_key_validation_timed_out]
|
|
10
|
+
required :error_code, const: :external_key_validation_timed_out
|
|
11
|
+
|
|
12
|
+
# @!method initialize(error_code: :external_key_validation_timed_out)
|
|
13
|
+
# Anthropic's validation of the External Key did not finish in time, so the
|
|
14
|
+
# request was refused. Wait a moment, then send the request again.
|
|
15
|
+
#
|
|
16
|
+
# @param error_code [Symbol, :external_key_validation_timed_out]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class OverloadedError < 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::OverloadedError} 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 PermissionError < 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::PermissionError} 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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry
|
|
6
|
+
# after the time in the `retry-after` header.
|
|
7
|
+
class RampLimitExceededError < Anthropic::Errors::RateLimitError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :ramp_limit_exceeded]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::RampLimitExceededErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::RampLimitExceededErrorDetails,
|
|
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 RampLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :ramp_limit_exceeded]
|
|
9
|
+
required :error_code, const: :ramp_limit_exceeded
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :ramp_limit_exceeded)
|
|
12
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry
|
|
13
|
+
# after the time in the `retry-after` header.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :ramp_limit_exceeded]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class RateLimitError < 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::RateLimitError} 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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request came from a Claude sandbox with restricted network access, which is
|
|
6
|
+
# not allowed to make this change. Send it from outside the sandbox, or from a
|
|
7
|
+
# sandbox with unrestricted network access.
|
|
8
|
+
class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :sandbox_egress_restricted]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::SandboxEgressRestrictedErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::SandboxEgressRestrictedErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :sandbox_egress_restricted]
|
|
9
|
+
required :error_code, const: :sandbox_egress_restricted
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :sandbox_egress_restricted)
|
|
12
|
+
# The request came from a Claude sandbox with restricted network access, which is
|
|
13
|
+
# not allowed to make this change. Send it from outside the sandbox, or from a
|
|
14
|
+
# sandbox with unrestricted network access.
|
|
15
|
+
#
|
|
16
|
+
# @param error_code [Symbol, :sandbox_egress_restricted]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/anthropic/models.rb
CHANGED
|
@@ -95,6 +95,11 @@ module Anthropic
|
|
|
95
95
|
|
|
96
96
|
BetaNotFoundError = Anthropic::Models::BetaNotFoundError
|
|
97
97
|
|
|
98
|
+
BetaOrganizationNotEnrolledInBetaError = Anthropic::Models::BetaOrganizationNotEnrolledInBetaError
|
|
99
|
+
|
|
100
|
+
BetaOrganizationNotEnrolledInBetaErrorDetails =
|
|
101
|
+
Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails
|
|
102
|
+
|
|
98
103
|
BetaOverloadedError = Anthropic::Models::BetaOverloadedError
|
|
99
104
|
|
|
100
105
|
BetaPermissionError = Anthropic::Models::BetaPermissionError
|
|
@@ -734,6 +739,10 @@ module Anthropic
|
|
|
734
739
|
|
|
735
740
|
PlainTextSource = Anthropic::Models::PlainTextSource
|
|
736
741
|
|
|
742
|
+
RampLimitExceededError = Anthropic::Models::RampLimitExceededError
|
|
743
|
+
|
|
744
|
+
RampLimitExceededErrorDetails = Anthropic::Models::RampLimitExceededErrorDetails
|
|
745
|
+
|
|
737
746
|
RateLimitError = Anthropic::Models::RateLimitError
|
|
738
747
|
|
|
739
748
|
RawContentBlockDelta = Anthropic::Models::RawContentBlockDelta
|
|
@@ -772,6 +781,10 @@ module Anthropic
|
|
|
772
781
|
RequestBodyTooLargeAfterDecodingErrorDetails =
|
|
773
782
|
Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
|
|
774
783
|
|
|
784
|
+
SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
|
|
785
|
+
|
|
786
|
+
SandboxEgressRestrictedErrorDetails = Anthropic::Models::SandboxEgressRestrictedErrorDetails
|
|
787
|
+
|
|
775
788
|
SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
|
|
776
789
|
|
|
777
790
|
ServerToolCaller = Anthropic::Models::ServerToolCaller
|
|
@@ -27,11 +27,8 @@ module Anthropic
|
|
|
27
27
|
#
|
|
28
28
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
29
29
|
#
|
|
30
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
31
|
-
#
|
|
32
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
33
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
34
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
30
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
31
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
35
32
|
#
|
|
36
33
|
# @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
|
|
37
34
|
#
|
|
@@ -82,13 +79,9 @@ module Anthropic
|
|
|
82
79
|
#
|
|
83
80
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
84
81
|
#
|
|
85
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
86
|
-
#
|
|
87
|
-
# @raise [Anthropic::Models::
|
|
88
|
-
# key. The message names each problem.
|
|
89
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
90
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
91
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
82
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
83
|
+
# @raise [Anthropic::Models::Beta::BetaInvalidMetadataError]
|
|
84
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
92
85
|
#
|
|
93
86
|
# @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
|
|
94
87
|
#
|
|
@@ -226,8 +219,7 @@ module Anthropic
|
|
|
226
219
|
#
|
|
227
220
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
228
221
|
#
|
|
229
|
-
# @raise [Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedError]
|
|
230
|
-
# may hold the lease.
|
|
222
|
+
# @raise [Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedError]
|
|
231
223
|
#
|
|
232
224
|
# @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWorkHeartbeatResponse]
|
|
233
225
|
#
|
|
@@ -322,11 +314,8 @@ module Anthropic
|
|
|
322
314
|
#
|
|
323
315
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
324
316
|
#
|
|
325
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
326
|
-
#
|
|
327
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
328
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
329
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
317
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
318
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
330
319
|
#
|
|
331
320
|
# @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWorkQueueStats]
|
|
332
321
|
#
|
|
@@ -370,11 +359,8 @@ module Anthropic
|
|
|
370
359
|
#
|
|
371
360
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
372
361
|
#
|
|
373
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
374
|
-
#
|
|
375
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
376
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
377
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
362
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
363
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
378
364
|
#
|
|
379
365
|
# @return [Anthropic::Models::Beta::Environments::BetaSelfHostedWork]
|
|
380
366
|
#
|
|
@@ -30,13 +30,9 @@ module Anthropic
|
|
|
30
30
|
#
|
|
31
31
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
32
|
#
|
|
33
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
34
|
-
#
|
|
35
|
-
# @raise [Anthropic::Models::
|
|
36
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
37
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
38
|
-
# @raise [Anthropic::Models::Beta::BetaEnvironmentCreateDisabledError] Anthropic has turned off creating environments for this organization. Existing
|
|
39
|
-
# environments still work.
|
|
33
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
34
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
35
|
+
# @raise [Anthropic::Models::Beta::BetaEnvironmentCreateDisabledError]
|
|
40
36
|
#
|
|
41
37
|
# @return [Anthropic::Models::Beta::BetaEnvironment]
|
|
42
38
|
#
|
|
@@ -73,11 +69,8 @@ module Anthropic
|
|
|
73
69
|
#
|
|
74
70
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
75
71
|
#
|
|
76
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
77
|
-
#
|
|
78
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
79
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
80
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
72
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
73
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
81
74
|
#
|
|
82
75
|
# @return [Anthropic::Models::Beta::BetaEnvironment]
|
|
83
76
|
#
|
|
@@ -122,16 +115,11 @@ module Anthropic
|
|
|
122
115
|
#
|
|
123
116
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
124
117
|
#
|
|
125
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
126
|
-
#
|
|
127
|
-
# @raise [Anthropic::Models::Beta::
|
|
128
|
-
# @raise [Anthropic::Models::
|
|
129
|
-
#
|
|
130
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
131
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
132
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
133
|
-
# @raise [Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledError] Anthropic has turned off updating environments for this organization. Existing
|
|
134
|
-
# environments still work as they are.
|
|
118
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
119
|
+
# @raise [Anthropic::Models::Beta::BetaEnvironmentArchivedError]
|
|
120
|
+
# @raise [Anthropic::Models::Beta::BetaInvalidConfigTypeChangeError]
|
|
121
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
122
|
+
# @raise [Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledError]
|
|
135
123
|
#
|
|
136
124
|
# @return [Anthropic::Models::Beta::BetaEnvironment]
|
|
137
125
|
#
|
|
@@ -172,11 +160,8 @@ module Anthropic
|
|
|
172
160
|
#
|
|
173
161
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
162
|
#
|
|
175
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
176
|
-
#
|
|
177
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
178
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
179
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
163
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
164
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
180
165
|
#
|
|
181
166
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaEnvironment>]
|
|
182
167
|
#
|
|
@@ -218,11 +203,8 @@ module Anthropic
|
|
|
218
203
|
#
|
|
219
204
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
220
205
|
#
|
|
221
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
222
|
-
#
|
|
223
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
224
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
225
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
206
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
207
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
226
208
|
#
|
|
227
209
|
# @return [Anthropic::Models::Beta::BetaEnvironmentDeleteResponse]
|
|
228
210
|
#
|
|
@@ -258,11 +240,8 @@ module Anthropic
|
|
|
258
240
|
#
|
|
259
241
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
260
242
|
#
|
|
261
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
262
|
-
#
|
|
263
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
264
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
265
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
243
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
244
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
266
245
|
#
|
|
267
246
|
# @return [Anthropic::Models::Beta::BetaEnvironment]
|
|
268
247
|
#
|
|
@@ -25,15 +25,10 @@ module Anthropic
|
|
|
25
25
|
#
|
|
26
26
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
27
27
|
#
|
|
28
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
29
|
-
#
|
|
30
|
-
# @raise [Anthropic::Models::
|
|
31
|
-
#
|
|
32
|
-
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
|
|
33
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
34
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
35
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
36
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
28
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
29
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
30
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
31
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
37
32
|
#
|
|
38
33
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::BetaFileMetadata>]
|
|
39
34
|
#
|
|
@@ -75,15 +70,10 @@ module Anthropic
|
|
|
75
70
|
#
|
|
76
71
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
77
72
|
#
|
|
78
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
79
|
-
#
|
|
80
|
-
# @raise [Anthropic::Models::
|
|
81
|
-
#
|
|
82
|
-
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
|
|
83
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
84
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
85
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
86
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
73
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
74
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
75
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
76
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
87
77
|
#
|
|
88
78
|
# @return [Anthropic::Models::Beta::BetaDeletedFile]
|
|
89
79
|
#
|
|
@@ -118,18 +108,12 @@ module Anthropic
|
|
|
118
108
|
#
|
|
119
109
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
120
110
|
#
|
|
121
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
122
|
-
#
|
|
123
|
-
# @raise [Anthropic::Models::
|
|
124
|
-
#
|
|
125
|
-
# @raise [Anthropic::Models::
|
|
126
|
-
#
|
|
127
|
-
# @raise [Anthropic::Models::FileNotDownloadableError] The file has `downloadable: false`. Only files generated by a tool, such as the
|
|
128
|
-
# code execution tool, can be downloaded.
|
|
129
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
130
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
131
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
132
|
-
# @raise [Anthropic::Models::FileExpiredError] The file's `expires_at` has passed, so its content is no longer available.
|
|
111
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
112
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
113
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
114
|
+
# @raise [Anthropic::Models::FileNotDownloadableError]
|
|
115
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
116
|
+
# @raise [Anthropic::Models::FileExpiredError]
|
|
133
117
|
#
|
|
134
118
|
# @return [StringIO]
|
|
135
119
|
#
|
|
@@ -167,15 +151,10 @@ module Anthropic
|
|
|
167
151
|
#
|
|
168
152
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
169
153
|
#
|
|
170
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
171
|
-
#
|
|
172
|
-
# @raise [Anthropic::Models::
|
|
173
|
-
#
|
|
174
|
-
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
|
|
175
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
176
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
177
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
178
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
154
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
155
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
156
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
157
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
179
158
|
#
|
|
180
159
|
# @return [Anthropic::Models::Beta::BetaFileMetadata]
|
|
181
160
|
#
|
|
@@ -212,17 +191,11 @@ module Anthropic
|
|
|
212
191
|
#
|
|
213
192
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
214
193
|
#
|
|
215
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
216
|
-
#
|
|
217
|
-
# @raise [Anthropic::Models::
|
|
218
|
-
#
|
|
219
|
-
# @raise [Anthropic::Models::
|
|
220
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
221
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
222
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
223
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
224
|
-
# @raise [Anthropic::Models::StorageQuotaExceededError] The organization's file storage quota is exhausted. Delete files to free up
|
|
225
|
-
# space, then retry the upload.
|
|
194
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
195
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
196
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
197
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
198
|
+
# @raise [Anthropic::Models::StorageQuotaExceededError]
|
|
226
199
|
#
|
|
227
200
|
# @return [Anthropic::Models::Beta::BetaFileMetadata]
|
|
228
201
|
#
|
|
@@ -29,14 +29,10 @@ module Anthropic
|
|
|
29
29
|
#
|
|
30
30
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
31
31
|
#
|
|
32
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
33
|
-
#
|
|
34
|
-
# @raise [Anthropic::Models::
|
|
35
|
-
#
|
|
36
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
37
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
38
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
39
|
-
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
|
|
32
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
33
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
34
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
35
|
+
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
|
|
40
36
|
#
|
|
41
37
|
# @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
|
|
42
38
|
#
|
|
@@ -83,11 +79,8 @@ module Anthropic
|
|
|
83
79
|
#
|
|
84
80
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
85
81
|
#
|
|
86
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
87
|
-
#
|
|
88
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
89
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
90
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
82
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
83
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
91
84
|
#
|
|
92
85
|
# @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
|
|
93
86
|
#
|
|
@@ -130,11 +123,8 @@ module Anthropic
|
|
|
130
123
|
#
|
|
131
124
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
132
125
|
#
|
|
133
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
134
|
-
#
|
|
135
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
136
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
137
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
126
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
127
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
138
128
|
#
|
|
139
129
|
# @return [Anthropic::Internal::Page<Anthropic::Models::Beta::Messages::BetaMessageBatch>]
|
|
140
130
|
#
|
|
@@ -182,11 +172,8 @@ module Anthropic
|
|
|
182
172
|
#
|
|
183
173
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
184
174
|
#
|
|
185
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
186
|
-
#
|
|
187
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
188
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
189
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
175
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
176
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
190
177
|
#
|
|
191
178
|
# @return [Anthropic::Models::Beta::Messages::BetaDeletedMessageBatch]
|
|
192
179
|
#
|
|
@@ -232,11 +219,8 @@ module Anthropic
|
|
|
232
219
|
#
|
|
233
220
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
234
221
|
#
|
|
235
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
236
|
-
#
|
|
237
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
238
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
239
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
222
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
223
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
240
224
|
#
|
|
241
225
|
# @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
|
|
242
226
|
#
|
|
@@ -278,13 +262,9 @@ module Anthropic
|
|
|
278
262
|
#
|
|
279
263
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
280
264
|
#
|
|
281
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
282
|
-
#
|
|
283
|
-
# @raise [Anthropic::Models::
|
|
284
|
-
# Re-enable the key, then retry.
|
|
285
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
286
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
287
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
265
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
266
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
267
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
288
268
|
#
|
|
289
269
|
# @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::Messages::BetaMessageBatchIndividualResponse>]
|
|
290
270
|
#
|