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
|
@@ -50,7 +50,8 @@ module Anthropic
|
|
|
50
50
|
#
|
|
51
51
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
52
52
|
#
|
|
53
|
-
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
53
|
+
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
54
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
54
55
|
#
|
|
55
56
|
# @return [Anthropic::Models::Organization::WorkspaceMember]
|
|
56
57
|
#
|
|
@@ -126,7 +127,8 @@ module Anthropic
|
|
|
126
127
|
#
|
|
127
128
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
128
129
|
#
|
|
129
|
-
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
130
|
+
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
131
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
130
132
|
#
|
|
131
133
|
# @return [Anthropic::Models::Organization::WorkspaceMember]
|
|
132
134
|
#
|
|
@@ -156,6 +158,8 @@ module Anthropic
|
|
|
156
158
|
#
|
|
157
159
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
158
160
|
#
|
|
161
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
162
|
+
#
|
|
159
163
|
# @return [Anthropic::Models::Organization::Workspaces::MemberRemoveResponse]
|
|
160
164
|
#
|
|
161
165
|
# @see Anthropic::Models::Organization::Workspaces::MemberRemoveParams
|
|
@@ -30,6 +30,8 @@ module Anthropic
|
|
|
30
30
|
#
|
|
31
31
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
32
|
#
|
|
33
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
34
|
+
#
|
|
33
35
|
# @return [Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit]
|
|
34
36
|
#
|
|
35
37
|
# @see Anthropic::Models::Organization::Workspaces::RateLimitUpdateParams
|
|
@@ -76,6 +76,8 @@ module Anthropic
|
|
|
76
76
|
#
|
|
77
77
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
78
78
|
#
|
|
79
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
80
|
+
#
|
|
79
81
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
80
82
|
#
|
|
81
83
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountUpdateParams
|
|
@@ -172,6 +174,8 @@ module Anthropic
|
|
|
172
174
|
#
|
|
173
175
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
176
|
#
|
|
177
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
178
|
+
#
|
|
175
179
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
176
180
|
#
|
|
177
181
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountAddParams
|
|
@@ -211,6 +215,8 @@ module Anthropic
|
|
|
211
215
|
#
|
|
212
216
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
213
217
|
#
|
|
218
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
219
|
+
#
|
|
214
220
|
# @return [Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveResponse]
|
|
215
221
|
#
|
|
216
222
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveParams
|
|
@@ -34,17 +34,13 @@ module Anthropic
|
|
|
34
34
|
#
|
|
35
35
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
36
36
|
#
|
|
37
|
-
# @raise [Anthropic::Models::Organization::
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
# @raise [Anthropic::Models::Organization::
|
|
44
|
-
# rule it broke; an organization admin can see and change the policy in the
|
|
45
|
-
# Console.
|
|
46
|
-
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
|
|
47
|
-
# again.
|
|
37
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
|
|
38
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
|
|
39
|
+
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
40
|
+
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
41
|
+
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
42
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
43
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
48
44
|
#
|
|
49
45
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
50
46
|
#
|
|
@@ -109,17 +105,13 @@ module Anthropic
|
|
|
109
105
|
#
|
|
110
106
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
107
|
#
|
|
112
|
-
# @raise [Anthropic::Models::Organization::
|
|
113
|
-
#
|
|
114
|
-
#
|
|
115
|
-
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
116
|
-
#
|
|
117
|
-
#
|
|
118
|
-
# @raise [Anthropic::Models::Organization::
|
|
119
|
-
# rule it broke; an organization admin can see and change the policy in the
|
|
120
|
-
# Console.
|
|
121
|
-
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
|
|
122
|
-
# again.
|
|
108
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
|
|
109
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
|
|
110
|
+
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
111
|
+
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
112
|
+
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
113
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
114
|
+
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
123
115
|
#
|
|
124
116
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
125
117
|
#
|
|
@@ -185,6 +177,8 @@ module Anthropic
|
|
|
185
177
|
# @param workspace_id [String]
|
|
186
178
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
187
179
|
#
|
|
180
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
181
|
+
#
|
|
188
182
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
189
183
|
#
|
|
190
184
|
# @see Anthropic::Models::Organization::WorkspaceArchiveParams
|
|
@@ -19,17 +19,11 @@ module Anthropic
|
|
|
19
19
|
#
|
|
20
20
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
21
21
|
#
|
|
22
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
23
|
-
#
|
|
24
|
-
# @raise [Anthropic::Models::
|
|
25
|
-
#
|
|
26
|
-
# @raise [Anthropic::Models::
|
|
27
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
28
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
29
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
30
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
31
|
-
# @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
|
|
32
|
-
# refused. Retry in a few minutes.
|
|
22
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
23
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
24
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
25
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
26
|
+
# @raise [Anthropic::Models::CMEKContextUnavailableError]
|
|
33
27
|
#
|
|
34
28
|
# @return [Anthropic::Models::Skills::SkillVersion]
|
|
35
29
|
#
|
|
@@ -71,11 +65,8 @@ module Anthropic
|
|
|
71
65
|
#
|
|
72
66
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
73
67
|
#
|
|
74
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
75
|
-
#
|
|
76
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
77
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
78
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
68
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
69
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
79
70
|
#
|
|
80
71
|
# @return [Anthropic::Models::Skills::SkillVersion]
|
|
81
72
|
#
|
|
@@ -115,11 +106,8 @@ module Anthropic
|
|
|
115
106
|
#
|
|
116
107
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
117
108
|
#
|
|
118
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
119
|
-
#
|
|
120
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
121
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
122
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
109
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
110
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
123
111
|
#
|
|
124
112
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skills::SkillVersion>]
|
|
125
113
|
#
|
|
@@ -158,11 +146,8 @@ module Anthropic
|
|
|
158
146
|
#
|
|
159
147
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
160
148
|
#
|
|
161
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
162
|
-
#
|
|
163
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
164
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
165
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
149
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
150
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
166
151
|
#
|
|
167
152
|
# @return [Anthropic::Models::Skills::DeletedSkillVersion]
|
|
168
153
|
#
|
|
@@ -21,17 +21,11 @@ module Anthropic
|
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
23
|
#
|
|
24
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
25
|
-
#
|
|
26
|
-
# @raise [Anthropic::Models::
|
|
27
|
-
#
|
|
28
|
-
# @raise [Anthropic::Models::
|
|
29
|
-
# workspace's customer-managed encryption key. The key itself may be healthy.
|
|
30
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
31
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
32
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
33
|
-
# @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
|
|
34
|
-
# refused. Retry in a few minutes.
|
|
24
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
25
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
26
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
27
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
28
|
+
# @raise [Anthropic::Models::CMEKContextUnavailableError]
|
|
35
29
|
#
|
|
36
30
|
# @return [Anthropic::Models::Skill]
|
|
37
31
|
#
|
|
@@ -70,11 +64,8 @@ module Anthropic
|
|
|
70
64
|
#
|
|
71
65
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
66
|
#
|
|
73
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
74
|
-
#
|
|
75
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
76
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
77
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
67
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
68
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
78
69
|
#
|
|
79
70
|
# @return [Anthropic::Models::Skill]
|
|
80
71
|
#
|
|
@@ -110,11 +101,8 @@ module Anthropic
|
|
|
110
101
|
#
|
|
111
102
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
112
103
|
#
|
|
113
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
114
|
-
#
|
|
115
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
116
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
117
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
104
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
105
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
118
106
|
#
|
|
119
107
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skill>]
|
|
120
108
|
#
|
|
@@ -150,11 +138,8 @@ module Anthropic
|
|
|
150
138
|
#
|
|
151
139
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
152
140
|
#
|
|
153
|
-
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
154
|
-
#
|
|
155
|
-
# @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
|
|
156
|
-
# organization disabled for any other reason, such as billing, does not get this
|
|
157
|
-
# code. `appeal_url`, when present, is where the organization can appeal.
|
|
141
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
142
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
158
143
|
#
|
|
159
144
|
# @return [Anthropic::Models::DeletedSkill]
|
|
160
145
|
#
|
data/lib/anthropic/version.rb
CHANGED
data/lib/anthropic.rb
CHANGED
|
@@ -18,6 +18,7 @@ require "set"
|
|
|
18
18
|
require "stringio"
|
|
19
19
|
require "time"
|
|
20
20
|
require "uri"
|
|
21
|
+
require "yaml"
|
|
21
22
|
# rubocop:enable Lint/RedundantRequireStatement
|
|
22
23
|
|
|
23
24
|
# We already ship the preferred sorbet manifests in the package itself.
|
|
@@ -110,7 +111,6 @@ require_relative "anthropic/internal/page_cursor"
|
|
|
110
111
|
require_relative "anthropic/internal/report_page_cursor"
|
|
111
112
|
require_relative "anthropic/internal/token_page"
|
|
112
113
|
require_relative "anthropic/models/available_tools_limit_exceeded_error"
|
|
113
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error"
|
|
114
114
|
require_relative "anthropic/models/beta/beta_environment_archived_error"
|
|
115
115
|
require_relative "anthropic/models/beta/beta_environment_create_disabled_error"
|
|
116
116
|
require_relative "anthropic/models/beta/beta_environment_not_found_error"
|
|
@@ -119,6 +119,12 @@ require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
|
|
|
119
119
|
require_relative "anthropic/models/beta/beta_invalid_metadata_error"
|
|
120
120
|
require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
|
|
121
121
|
require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
|
|
122
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error"
|
|
123
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error"
|
|
124
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error"
|
|
125
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error"
|
|
126
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error"
|
|
127
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error"
|
|
122
128
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error"
|
|
123
129
|
require_relative "anthropic/models/beta/organization/beta_compliance_configuration_restricted_error"
|
|
124
130
|
require_relative "anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error"
|
|
@@ -131,6 +137,7 @@ require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_e
|
|
|
131
137
|
require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error"
|
|
132
138
|
require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error"
|
|
133
139
|
require_relative "anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error"
|
|
140
|
+
require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error"
|
|
134
141
|
require_relative "anthropic/models/beta_unsupported_charset_error"
|
|
135
142
|
require_relative "anthropic/models/claude_code_key_creator_not_member_error"
|
|
136
143
|
require_relative "anthropic/models/claude_code_version_too_old_error"
|
|
@@ -157,6 +164,8 @@ require_relative "anthropic/models/organization/cannot_remove_last_member_error"
|
|
|
157
164
|
require_relative "anthropic/models/organization/email_domain_not_allowed_error"
|
|
158
165
|
require_relative "anthropic/models/organization/external_key_changed_error"
|
|
159
166
|
require_relative "anthropic/models/organization/external_key_in_workspace_policy_error"
|
|
167
|
+
require_relative "anthropic/models/organization/external_key_validation_failed_error"
|
|
168
|
+
require_relative "anthropic/models/organization/external_key_validation_timed_out_error"
|
|
160
169
|
require_relative "anthropic/models/organization/invite_already_exists_error"
|
|
161
170
|
require_relative "anthropic/models/organization/key_profile_mismatch_error"
|
|
162
171
|
require_relative "anthropic/models/organization/org_api_key_limit_exceeded_error"
|
|
@@ -168,9 +177,11 @@ require_relative "anthropic/models/organization/workspace_policy_violation_error
|
|
|
168
177
|
require_relative "anthropic/models/organization_on_hold_error"
|
|
169
178
|
require_relative "anthropic/models/organization_type_not_supported_error"
|
|
170
179
|
require_relative "anthropic/models/org_member_limit_exceeded_error"
|
|
180
|
+
require_relative "anthropic/models/ramp_limit_exceeded_error"
|
|
171
181
|
require_relative "anthropic/models/request_body_encoding_invalid_error"
|
|
172
182
|
require_relative "anthropic/models/request_body_encoding_unsupported_error"
|
|
173
183
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error"
|
|
184
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error"
|
|
174
185
|
require_relative "anthropic/models/skill_read_blocked_undecryptable_error"
|
|
175
186
|
require_relative "anthropic/models/storage_quota_exceeded_error"
|
|
176
187
|
require_relative "anthropic/models/thread_already_continued_error"
|
|
@@ -232,7 +243,6 @@ require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_blo
|
|
|
232
243
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_block_param"
|
|
233
244
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error"
|
|
234
245
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_param"
|
|
235
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error_details"
|
|
236
246
|
require_relative "anthropic/models/beta/beta_browser_click_target"
|
|
237
247
|
require_relative "anthropic/models/beta/beta_browser_close_tab_config"
|
|
238
248
|
require_relative "anthropic/models/beta/beta_browser_close_tab_input"
|
|
@@ -944,6 +954,7 @@ require_relative "anthropic/models/beta/beta_webhook_session_thread_terminated_e
|
|
|
944
954
|
require_relative "anthropic/models/beta/beta_webhook_session_updated_event_data"
|
|
945
955
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data"
|
|
946
956
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data"
|
|
957
|
+
require_relative "anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data"
|
|
947
958
|
require_relative "anthropic/models/beta/beta_webhook_vault_archived_event_data"
|
|
948
959
|
require_relative "anthropic/models/beta/beta_webhook_vault_created_event_data"
|
|
949
960
|
require_relative "anthropic/models/beta/beta_webhook_vault_credential_archived_event_data"
|
|
@@ -1172,6 +1183,12 @@ require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scop
|
|
|
1172
1183
|
require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
|
|
1173
1184
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
|
|
1174
1185
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
|
|
1186
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details"
|
|
1187
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details"
|
|
1188
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details"
|
|
1189
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details"
|
|
1190
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details"
|
|
1191
|
+
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details"
|
|
1175
1192
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_default_setting_source"
|
|
1176
1193
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy"
|
|
1177
1194
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
|
|
@@ -1439,6 +1456,7 @@ require_relative "anthropic/models/beta/organization/user_list_params"
|
|
|
1439
1456
|
require_relative "anthropic/models/beta/organization/user_remove_params"
|
|
1440
1457
|
require_relative "anthropic/models/beta/organization/user_remove_response"
|
|
1441
1458
|
require_relative "anthropic/models/beta/organization/user_retrieve_params"
|
|
1459
|
+
require_relative "anthropic/models/beta/organization/user_sign_out_params"
|
|
1442
1460
|
require_relative "anthropic/models/beta/organization/user_update_params"
|
|
1443
1461
|
require_relative "anthropic/models/beta/organization/webhook_create_params"
|
|
1444
1462
|
require_relative "anthropic/models/beta/organization/webhook_delete_params"
|
|
@@ -1710,6 +1728,7 @@ require_relative "anthropic/models/beta_gateway_timeout_error"
|
|
|
1710
1728
|
require_relative "anthropic/models/beta_invalid_request_error"
|
|
1711
1729
|
require_relative "anthropic/models/beta_monetary_amount"
|
|
1712
1730
|
require_relative "anthropic/models/beta_not_found_error"
|
|
1731
|
+
require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error_details"
|
|
1713
1732
|
require_relative "anthropic/models/beta_overloaded_error"
|
|
1714
1733
|
require_relative "anthropic/models/beta_permission_error"
|
|
1715
1734
|
require_relative "anthropic/models/beta_rate_limit_error"
|
|
@@ -2105,6 +2124,8 @@ require_relative "anthropic/models/organization/external_key_unattached_attachme
|
|
|
2105
2124
|
require_relative "anthropic/models/organization/external_key_update_params"
|
|
2106
2125
|
require_relative "anthropic/models/organization/external_key_validate_params"
|
|
2107
2126
|
require_relative "anthropic/models/organization/external_key_validate_response"
|
|
2127
|
+
require_relative "anthropic/models/organization/external_key_validation_failed_error_details"
|
|
2128
|
+
require_relative "anthropic/models/organization/external_key_validation_timed_out_error_details"
|
|
2108
2129
|
require_relative "anthropic/models/organization/federation/federation_issuer"
|
|
2109
2130
|
require_relative "anthropic/models/organization/federation/federation_issuer_poll_status"
|
|
2110
2131
|
require_relative "anthropic/models/organization/federation/federation_rule"
|
|
@@ -2254,6 +2275,7 @@ require_relative "anthropic/models/output_tokens_details"
|
|
|
2254
2275
|
require_relative "anthropic/models/overloaded_error"
|
|
2255
2276
|
require_relative "anthropic/models/permission_error"
|
|
2256
2277
|
require_relative "anthropic/models/plain_text_source"
|
|
2278
|
+
require_relative "anthropic/models/ramp_limit_exceeded_error_details"
|
|
2257
2279
|
require_relative "anthropic/models/rate_limit_error"
|
|
2258
2280
|
require_relative "anthropic/models/raw_content_block_delta"
|
|
2259
2281
|
require_relative "anthropic/models/raw_content_block_delta_event"
|
|
@@ -2269,6 +2291,7 @@ require_relative "anthropic/models/refusal_stop_details"
|
|
|
2269
2291
|
require_relative "anthropic/models/request_body_encoding_invalid_error_details"
|
|
2270
2292
|
require_relative "anthropic/models/request_body_encoding_unsupported_error_details"
|
|
2271
2293
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error_details"
|
|
2294
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error_details"
|
|
2272
2295
|
require_relative "anthropic/models/search_result_block_param"
|
|
2273
2296
|
require_relative "anthropic/models/server_tool_caller"
|
|
2274
2297
|
require_relative "anthropic/models/server_tool_caller_20260120"
|
data/manifest.yaml
CHANGED
data/rbi/anthropic/errors.rbi
CHANGED
|
@@ -133,21 +133,32 @@ module Anthropic
|
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
class APIStatusError < Anthropic::Errors::APIError
|
|
136
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
137
|
+
# match on it.
|
|
138
|
+
#
|
|
136
139
|
# `error.message` from the response body, if present.
|
|
137
140
|
sig { returns(T.nilable(String)) }
|
|
138
141
|
def api_message
|
|
139
142
|
end
|
|
140
143
|
|
|
144
|
+
# The broad category of the error.
|
|
145
|
+
#
|
|
141
146
|
# `error.type` from the response body, if present.
|
|
142
147
|
sig { returns(T.nilable(Anthropic::ErrorType::TaggedSymbol)) }
|
|
143
148
|
def type
|
|
144
149
|
end
|
|
145
150
|
|
|
151
|
+
# A stable code that names the cause.
|
|
152
|
+
#
|
|
146
153
|
# `error.details.error_code` from the response body, if present and a string.
|
|
147
154
|
sig { returns(T.nilable(Symbol)) }
|
|
148
155
|
def error_code
|
|
149
156
|
end
|
|
150
157
|
|
|
158
|
+
# Machine-readable detail about the cause of the error. `error_code` names the
|
|
159
|
+
# cause; branch on it rather than on `message`. Absent when the error has no code.
|
|
160
|
+
# Treat an unrecognized `error_code` as the bare `type`.
|
|
161
|
+
#
|
|
151
162
|
# `error.details` from the response body, if present.
|
|
152
163
|
sig { returns(T.nilable(Anthropic::ErrorDetails::Variants)) }
|
|
153
164
|
def details
|
|
@@ -270,5 +281,8 @@ module Anthropic
|
|
|
270
281
|
class OverloadedError < Anthropic::Errors::InternalServerError
|
|
271
282
|
HTTP_STATUS = 529
|
|
272
283
|
end
|
|
284
|
+
|
|
285
|
+
class ConfigurationError < Anthropic::Errors::Error
|
|
286
|
+
end
|
|
273
287
|
end
|
|
274
288
|
end
|
|
@@ -25,6 +25,7 @@ module Anthropic
|
|
|
25
25
|
timeout: T.nilable(Float),
|
|
26
26
|
initial_retry_delay: Float,
|
|
27
27
|
max_retry_delay: Float,
|
|
28
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
28
29
|
open_telemetry:
|
|
29
30
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
30
31
|
).returns(T.attached_class)
|
|
@@ -45,6 +46,10 @@ module Anthropic
|
|
|
45
46
|
timeout: nil,
|
|
46
47
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
47
48
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
49
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The
|
|
50
|
+
# workspace ID header and SigV4 signing are applied per attempt, after
|
|
51
|
+
# user middleware.
|
|
52
|
+
middleware: nil,
|
|
48
53
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
49
54
|
open_telemetry: nil
|
|
50
55
|
)
|
|
@@ -27,6 +27,7 @@ module Anthropic
|
|
|
27
27
|
timeout: T.nilable(Float),
|
|
28
28
|
initial_retry_delay: Float,
|
|
29
29
|
max_retry_delay: Float,
|
|
30
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
30
31
|
open_telemetry:
|
|
31
32
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
32
33
|
).returns(T.attached_class)
|
|
@@ -46,6 +47,10 @@ module Anthropic
|
|
|
46
47
|
timeout: nil,
|
|
47
48
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
48
49
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
50
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The user
|
|
51
|
+
# profile ID moves into the body and the request is SigV4-signed per
|
|
52
|
+
# attempt, after user middleware.
|
|
53
|
+
middleware: nil,
|
|
49
54
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
50
55
|
open_telemetry: nil
|
|
51
56
|
)
|
|
@@ -380,6 +380,7 @@ module Anthropic
|
|
|
380
380
|
"anthropic.tunnels.certificates.retrieve"
|
|
381
381
|
TUNNELS_CERTIFICATES_LIST = "anthropic.tunnels.certificates.list"
|
|
382
382
|
TUNNELS_CERTIFICATES_ARCHIVE = "anthropic.tunnels.certificates.archive"
|
|
383
|
+
ORGANIZATION_USERS_SIGN_OUT = "anthropic.organization.users.sign_out"
|
|
383
384
|
ORGANIZATION_ANALYTICS_USAGE_LIST =
|
|
384
385
|
"anthropic.organization.analytics.usage.list"
|
|
385
386
|
ORGANIZATION_ANALYTICS_COST_LIST =
|
|
@@ -231,6 +231,11 @@ module Anthropic
|
|
|
231
231
|
)
|
|
232
232
|
WEBHOOKS_2026_10_07 =
|
|
233
233
|
T.let(:"webhooks-2026-10-07", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
234
|
+
ADMIN_USER_SIGN_OUT_2026_10_08 =
|
|
235
|
+
T.let(
|
|
236
|
+
:"admin-user-sign-out-2026-10-08",
|
|
237
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
238
|
+
)
|
|
234
239
|
MESSAGE_THREADS_2026_08_12 =
|
|
235
240
|
T.let(
|
|
236
241
|
:"message-threads-2026-08-12",
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::APIErrorObject, 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 }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::AuthenticationError, 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: :authentication_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -111,8 +111,8 @@ module Anthropic
|
|
|
111
111
|
end
|
|
112
112
|
def self.new(
|
|
113
113
|
type:,
|
|
114
|
-
# A human-readable explanation of
|
|
115
|
-
#
|
|
114
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
115
|
+
# match on it.
|
|
116
116
|
message: nil
|
|
117
117
|
)
|
|
118
118
|
end
|
|
@@ -31,6 +31,13 @@ module Anthropic
|
|
|
31
31
|
end
|
|
32
32
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
33
|
|
|
34
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
35
|
+
CLAUDE_FABLE_5_2 =
|
|
36
|
+
T.let(
|
|
37
|
+
:"claude-fable-5-2",
|
|
38
|
+
Anthropic::Beta::BetaManagedAgentsModel::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
|
|
34
41
|
# Fastest model for high-volume, real-time tasks
|
|
35
42
|
CLAUDE_HAIKU_5_5 =
|
|
36
43
|
T.let(
|
|
@@ -17,8 +17,6 @@ module Anthropic
|
|
|
17
17
|
sig { returns(Symbol) }
|
|
18
18
|
attr_accessor :type
|
|
19
19
|
|
|
20
|
-
# A human-readable explanation of why the memory store can't be used yet, with the
|
|
21
|
-
# ID of the dream that is using it when the server can identify it.
|
|
22
20
|
sig { returns(T.nilable(String)) }
|
|
23
21
|
attr_reader :message
|
|
24
22
|
|
|
@@ -36,12 +34,7 @@ module Anthropic
|
|
|
36
34
|
# end or cancel it, then retry. The response sets the `x-should-retry` header to
|
|
37
35
|
# `false`.
|
|
38
36
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
39
|
-
def self.new(
|
|
40
|
-
# A human-readable explanation of why the memory store can't be used yet, with the
|
|
41
|
-
# ID of the dream that is using it when the server can identify it.
|
|
42
|
-
message: nil,
|
|
43
|
-
type: :conflict_error
|
|
44
|
-
)
|
|
37
|
+
def self.new(message: nil, type: :conflict_error)
|
|
45
38
|
end
|
|
46
39
|
|
|
47
40
|
sig { override.returns({ type: Symbol, message: String }) }
|
|
@@ -80,7 +80,8 @@ module Anthropic
|
|
|
80
80
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData::OrHash,
|
|
81
81
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData::OrHash,
|
|
82
82
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData::OrHash,
|
|
83
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash
|
|
83
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash,
|
|
84
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData::OrHash
|
|
84
85
|
),
|
|
85
86
|
type: Symbol
|
|
86
87
|
).returns(T.attached_class)
|
|
@@ -56,7 +56,8 @@ module Anthropic
|
|
|
56
56
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData,
|
|
57
57
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData,
|
|
58
58
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData,
|
|
59
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
59
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData,
|
|
60
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
60
61
|
)
|
|
61
62
|
end
|
|
62
63
|
|
|
@@ -299,6 +300,11 @@ module Anthropic
|
|
|
299
300
|
:"user_profile.enforcement_action_resolved",
|
|
300
301
|
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
301
302
|
)
|
|
303
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
304
|
+
T.let(
|
|
305
|
+
:"user_profile.program_status_updated",
|
|
306
|
+
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
307
|
+
)
|
|
302
308
|
|
|
303
309
|
sig do
|
|
304
310
|
override.returns(
|