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
|
@@ -157,6 +157,11 @@ module Anthropic
|
|
|
157
157
|
:"user_profile.enforcement_action_resolved",
|
|
158
158
|
Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
159
159
|
)
|
|
160
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
161
|
+
T.let(
|
|
162
|
+
:"user_profile.program_status_updated",
|
|
163
|
+
Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
164
|
+
)
|
|
160
165
|
|
|
161
166
|
sig do
|
|
162
167
|
override.returns(
|
|
@@ -146,6 +146,11 @@ module Anthropic
|
|
|
146
146
|
:"user_profile.enforcement_action_resolved",
|
|
147
147
|
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
148
148
|
)
|
|
149
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
150
|
+
T.let(
|
|
151
|
+
:"user_profile.program_status_updated",
|
|
152
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
153
|
+
)
|
|
149
154
|
|
|
150
155
|
sig do
|
|
151
156
|
override.returns(
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class UserSignOutParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Anthropic::Beta::Organization::UserSignOutParams,
|
|
15
|
+
Anthropic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# ID of the User.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :user_id
|
|
22
|
+
|
|
23
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
24
|
+
# this header.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
T.nilable(
|
|
28
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
attr_reader :betas
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :betas
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
user_id: String,
|
|
44
|
+
betas:
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
46
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
47
|
+
).returns(T.attached_class)
|
|
48
|
+
end
|
|
49
|
+
def self.new(
|
|
50
|
+
# ID of the User.
|
|
51
|
+
user_id:,
|
|
52
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
53
|
+
# this header.
|
|
54
|
+
betas: nil,
|
|
55
|
+
request_options: {}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
override.returns(
|
|
61
|
+
{
|
|
62
|
+
user_id: String,
|
|
63
|
+
betas:
|
|
64
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
65
|
+
request_options: Anthropic::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -133,6 +133,11 @@ module Anthropic
|
|
|
133
133
|
:"user_profile.enforcement_action_resolved",
|
|
134
134
|
Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent::TaggedSymbol
|
|
135
135
|
)
|
|
136
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
137
|
+
T.let(
|
|
138
|
+
:"user_profile.program_status_updated",
|
|
139
|
+
Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent::TaggedSymbol
|
|
140
|
+
)
|
|
136
141
|
|
|
137
142
|
sig do
|
|
138
143
|
override.returns(
|
|
@@ -186,6 +186,11 @@ module Anthropic
|
|
|
186
186
|
:"user_profile.enforcement_action_resolved",
|
|
187
187
|
Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent::TaggedSymbol
|
|
188
188
|
)
|
|
189
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
190
|
+
T.let(
|
|
191
|
+
:"user_profile.program_status_updated",
|
|
192
|
+
Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent::TaggedSymbol
|
|
193
|
+
)
|
|
189
194
|
|
|
190
195
|
sig do
|
|
191
196
|
override.returns(
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaAPIError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :api_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :authentication_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaBillingError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :billing_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -67,7 +67,12 @@ module Anthropic
|
|
|
67
67
|
message: String
|
|
68
68
|
).returns(Anthropic::BetaError::Variants)
|
|
69
69
|
end
|
|
70
|
-
def self.new(
|
|
70
|
+
def self.new(
|
|
71
|
+
type:,
|
|
72
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
73
|
+
# match on it.
|
|
74
|
+
message:
|
|
75
|
+
)
|
|
71
76
|
end
|
|
72
77
|
end
|
|
73
78
|
end
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :timeout_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :invalid_request_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaNotFoundError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :not_found_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
9
|
+
def error_code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails) }
|
|
13
|
+
def details
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaOrganizationNotEnrolledInBetaErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Symbol) }
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
|
|
17
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
18
|
+
# message names the beta value.
|
|
19
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(error_code: :organization_not_enrolled_in_beta)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
24
|
+
def to_hash
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaOverloadedError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :overloaded_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaPermissionError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :permission_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaRateLimitError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :rate_limit_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BillingError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :billing_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -34,6 +34,7 @@ module Anthropic
|
|
|
34
34
|
Anthropic::SkillReadBlockedUndecryptableErrorDetails,
|
|
35
35
|
Anthropic::RequestBodyTooLargeAfterDecodingErrorDetails,
|
|
36
36
|
Anthropic::EnforcedSpendLimitReachedErrorDetails,
|
|
37
|
+
Anthropic::RampLimitExceededErrorDetails,
|
|
37
38
|
Anthropic::CMEKKeyUnreachableErrorDetails,
|
|
38
39
|
Anthropic::CompactionUnavailableErrorDetails,
|
|
39
40
|
Anthropic::StorageQuotaExceededErrorDetails,
|
|
@@ -42,6 +43,7 @@ module Anthropic
|
|
|
42
43
|
Anthropic::CMEKContextUnavailableErrorDetails,
|
|
43
44
|
Anthropic::Organization::OrgAPIKeyLimitExceededErrorDetails,
|
|
44
45
|
Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails,
|
|
46
|
+
Anthropic::SandboxEgressRestrictedErrorDetails,
|
|
45
47
|
Anthropic::UserProfileNotFoundErrorDetails,
|
|
46
48
|
Anthropic::Organization::ExternalKeyInWorkspacePolicyErrorDetails,
|
|
47
49
|
Anthropic::Organization::AlreadyMemberErrorDetails,
|
|
@@ -53,6 +55,8 @@ module Anthropic
|
|
|
53
55
|
Anthropic::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails,
|
|
54
56
|
Anthropic::Organization::CannotRemoveLastMemberErrorDetails,
|
|
55
57
|
Anthropic::ConcurrentMembershipChangeErrorDetails,
|
|
58
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails,
|
|
59
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails,
|
|
56
60
|
Anthropic::Organization::KeyProfileMismatchErrorDetails,
|
|
57
61
|
Anthropic::Organization::WorkspacePolicyViolationErrorDetails,
|
|
58
62
|
Anthropic::Organization::ExternalKeyChangedErrorDetails,
|
|
@@ -64,7 +68,13 @@ module Anthropic
|
|
|
64
68
|
Anthropic::Beta::BetaEnvironmentUpdateDisabledErrorDetails,
|
|
65
69
|
Anthropic::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails,
|
|
66
70
|
Anthropic::Beta::BetaInvalidMetadataErrorDetails,
|
|
67
|
-
Anthropic::Beta::
|
|
71
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails,
|
|
72
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails,
|
|
73
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails,
|
|
74
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails,
|
|
75
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails,
|
|
76
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails,
|
|
77
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails,
|
|
68
78
|
Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails,
|
|
69
79
|
Anthropic::BetaUnsupportedCharsetErrorDetails,
|
|
70
80
|
Anthropic::Beta::Organization::BetaPluginNameTakenErrorDetails,
|
|
@@ -220,6 +230,11 @@ module Anthropic
|
|
|
220
230
|
:enforced_spend_limit_reached,
|
|
221
231
|
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
222
232
|
)
|
|
233
|
+
RAMP_LIMIT_EXCEEDED =
|
|
234
|
+
T.let(
|
|
235
|
+
:ramp_limit_exceeded,
|
|
236
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
237
|
+
)
|
|
223
238
|
CMEK_KEY_UNREACHABLE =
|
|
224
239
|
T.let(
|
|
225
240
|
:cmek_key_unreachable,
|
|
@@ -257,6 +272,11 @@ module Anthropic
|
|
|
257
272
|
:workspace_api_key_limit_exceeded,
|
|
258
273
|
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
259
274
|
)
|
|
275
|
+
SANDBOX_EGRESS_RESTRICTED =
|
|
276
|
+
T.let(
|
|
277
|
+
:sandbox_egress_restricted,
|
|
278
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
279
|
+
)
|
|
260
280
|
USER_PROFILE_NOT_FOUND =
|
|
261
281
|
T.let(
|
|
262
282
|
:user_profile_not_found,
|
|
@@ -312,6 +332,16 @@ module Anthropic
|
|
|
312
332
|
:concurrent_membership_change,
|
|
313
333
|
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
314
334
|
)
|
|
335
|
+
EXTERNAL_KEY_VALIDATION_FAILED =
|
|
336
|
+
T.let(
|
|
337
|
+
:external_key_validation_failed,
|
|
338
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
339
|
+
)
|
|
340
|
+
EXTERNAL_KEY_VALIDATION_TIMED_OUT =
|
|
341
|
+
T.let(
|
|
342
|
+
:external_key_validation_timed_out,
|
|
343
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
344
|
+
)
|
|
315
345
|
KEY_PROFILE_MISMATCH =
|
|
316
346
|
T.let(
|
|
317
347
|
:key_profile_mismatch,
|
|
@@ -367,9 +397,39 @@ module Anthropic
|
|
|
367
397
|
:invalid_metadata,
|
|
368
398
|
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
369
399
|
)
|
|
370
|
-
|
|
400
|
+
CANNOT_SIGN_OUT_PRIMARY_OWNER =
|
|
401
|
+
T.let(
|
|
402
|
+
:cannot_sign_out_primary_owner,
|
|
403
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
404
|
+
)
|
|
405
|
+
CANNOT_SIGN_OUT_SELF =
|
|
406
|
+
T.let(
|
|
407
|
+
:cannot_sign_out_self,
|
|
408
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
409
|
+
)
|
|
410
|
+
ORGANIZATION_NOT_ENROLLED_IN_BETA =
|
|
411
|
+
T.let(
|
|
412
|
+
:organization_not_enrolled_in_beta,
|
|
413
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
414
|
+
)
|
|
415
|
+
CANNOT_SIGN_OUT_MANAGED_MEMBER =
|
|
416
|
+
T.let(
|
|
417
|
+
:cannot_sign_out_managed_member,
|
|
418
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
419
|
+
)
|
|
420
|
+
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN =
|
|
421
|
+
T.let(
|
|
422
|
+
:cannot_sign_out_membership_admin,
|
|
423
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
424
|
+
)
|
|
425
|
+
CANNOT_SIGN_OUT_OWNER =
|
|
426
|
+
T.let(
|
|
427
|
+
:cannot_sign_out_owner,
|
|
428
|
+
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
429
|
+
)
|
|
430
|
+
CANNOT_SIGN_OUT_PRIVILEGED_MEMBER =
|
|
371
431
|
T.let(
|
|
372
|
-
:
|
|
432
|
+
:cannot_sign_out_privileged_member,
|
|
373
433
|
Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
|
|
374
434
|
)
|
|
375
435
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED =
|
|
@@ -71,7 +71,12 @@ module Anthropic
|
|
|
71
71
|
message: String
|
|
72
72
|
).returns(Anthropic::ErrorObject::Variants)
|
|
73
73
|
end
|
|
74
|
-
def self.new(
|
|
74
|
+
def self.new(
|
|
75
|
+
type:,
|
|
76
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
77
|
+
# match on it.
|
|
78
|
+
message:
|
|
79
|
+
)
|
|
75
80
|
end
|
|
76
81
|
end
|
|
77
82
|
end
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::GatewayTimeoutError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :timeout_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::InvalidRequestError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :invalid_request_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -18,6 +18,14 @@ module Anthropic
|
|
|
18
18
|
TaggedSymbol = T.type_alias { T.all(Symbol, Anthropic::Model) }
|
|
19
19
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
20
20
|
|
|
21
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
22
|
+
CLAUDE_FABLE_5_2 =
|
|
23
|
+
T.let(:"claude-fable-5-2", Anthropic::Model::TaggedSymbol)
|
|
24
|
+
|
|
25
|
+
# Frontier intelligence for cybersecurity and life sciences research, available through verification programs
|
|
26
|
+
CLAUDE_MYTHOS_5_2 =
|
|
27
|
+
T.let(:"claude-mythos-5-2", Anthropic::Model::TaggedSymbol)
|
|
28
|
+
|
|
21
29
|
# Fastest model for high-volume, real-time tasks
|
|
22
30
|
CLAUDE_HAIKU_5_5 =
|
|
23
31
|
T.let(:"claude-haiku-5-5", Anthropic::Model::TaggedSymbol)
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::NotFoundError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :not_found_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|