anthropic 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +11 -1
- data/lib/anthropic/errors.rb +11 -0
- data/lib/anthropic/helpers/aws/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
- data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/api_error_object.rb +9 -2
- data/lib/anthropic/models/authentication_error.rb +9 -2
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
- data/lib/anthropic/models/beta_api_error.rb +9 -2
- data/lib/anthropic/models/beta_authentication_error.rb +9 -2
- data/lib/anthropic/models/beta_billing_error.rb +9 -2
- data/lib/anthropic/models/beta_error.rb +4 -1
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
- data/lib/anthropic/models/beta_not_found_error.rb +9 -2
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
- data/lib/anthropic/models/beta_permission_error.rb +9 -2
- data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
- data/lib/anthropic/models/billing_error.rb +9 -2
- data/lib/anthropic/models/error_details.rb +74 -7
- data/lib/anthropic/models/error_object.rb +4 -1
- data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/invalid_request_error.rb +9 -2
- data/lib/anthropic/models/model.rb +10 -0
- data/lib/anthropic/models/not_found_error.rb +9 -2
- data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
- data/lib/anthropic/models/overloaded_error.rb +9 -2
- data/lib/anthropic/models/permission_error.rb +9 -2
- data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
- data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
- data/lib/anthropic/models/rate_limit_error.rb +9 -2
- data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
- data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
- data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
- data/lib/anthropic/models.rb +13 -0
- data/lib/anthropic/resources/beta/environments/work.rb +10 -24
- data/lib/anthropic/resources/beta/environments.rb +16 -37
- data/lib/anthropic/resources/beta/files.rb +23 -50
- data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
- data/lib/anthropic/resources/beta/messages.rb +74 -139
- data/lib/anthropic/resources/beta/models.rb +4 -10
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
- data/lib/anthropic/resources/beta/organization/api_keys.rb +3 -2
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +8 -7
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/beta/organization/invites.rb +10 -17
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
- data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -14
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +7 -7
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
- data/lib/anthropic/resources/beta/organization/users.rb +69 -4
- data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +6 -2
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/workspaces.rb +16 -22
- data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
- data/lib/anthropic/resources/beta/skills.rb +11 -26
- data/lib/anthropic/resources/files.rb +23 -50
- data/lib/anthropic/resources/messages/batches.rb +15 -35
- data/lib/anthropic/resources/messages.rb +74 -139
- data/lib/anthropic/resources/models.rb +4 -10
- data/lib/anthropic/resources/organization/api_keys.rb +3 -2
- data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/organization/external_keys.rb +8 -7
- data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/organization/invites.rb +10 -17
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +6 -14
- data/lib/anthropic/resources/organization/rbac_groups.rb +7 -7
- data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/organization/users.rb +5 -4
- data/lib/anthropic/resources/organization/workspaces/members.rb +6 -2
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/workspaces.rb +16 -22
- data/lib/anthropic/resources/skills/versions.rb +11 -26
- data/lib/anthropic/resources/skills.rb +11 -26
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +25 -2
- data/manifest.yaml +1 -0
- data/rbi/anthropic/errors.rbi +14 -0
- data/rbi/anthropic/helpers/aws/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
- data/rbi/anthropic/internal/tracing.rbi +1 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/api_error_object.rbi +10 -1
- data/rbi/anthropic/models/authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
- data/rbi/anthropic/models/beta_api_error.rbi +10 -1
- data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
- data/rbi/anthropic/models/beta_error.rbi +6 -1
- data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
- data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
- data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models/billing_error.rbi +10 -1
- data/rbi/anthropic/models/error_details.rbi +63 -3
- data/rbi/anthropic/models/error_object.rbi +6 -1
- data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/model.rbi +8 -0
- data/rbi/anthropic/models/not_found_error.rbi +10 -1
- data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
- data/rbi/anthropic/models/{beta/beta_billing_frozen_error_details.rbi → organization/external_key_validation_failed_error_details.rbi} +6 -8
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
- data/rbi/anthropic/models/overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/permission_error.rbi +10 -1
- data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
- data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
- data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
- data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
- data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
- data/sig/anthropic/errors.rbs +3 -0
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +72 -5
- data/sig/anthropic/models/model.rbs +9 -1
- data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
- data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
- metadata +74 -8
- data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
- data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
- data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
- data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
- data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The External Key failed Anthropic's validation, so the request was refused. The
|
|
7
|
+
# message gives the reason, if there is one.
|
|
8
|
+
class ExternalKeyValidationFailedError < Anthropic::Errors::BadRequestError
|
|
9
|
+
sig { returns(Symbol) }
|
|
10
|
+
def error_code
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
sig do
|
|
14
|
+
returns(
|
|
15
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
def details
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module Beta
|
|
8
|
-
class BetaBillingFrozenErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
5
|
+
module Organization
|
|
6
|
+
class ExternalKeyValidationFailedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
7
|
OrHash =
|
|
10
8
|
T.type_alias do
|
|
11
9
|
T.any(
|
|
12
|
-
Anthropic::
|
|
10
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails,
|
|
13
11
|
Anthropic::Internal::AnyHash
|
|
14
12
|
)
|
|
15
13
|
end
|
|
@@ -17,10 +15,10 @@ module Anthropic
|
|
|
17
15
|
sig { returns(Symbol) }
|
|
18
16
|
attr_accessor :error_code
|
|
19
17
|
|
|
20
|
-
#
|
|
21
|
-
#
|
|
18
|
+
# The External Key failed Anthropic's validation, so the request was refused. The
|
|
19
|
+
# message gives the reason, if there is one.
|
|
22
20
|
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
23
|
-
def self.new(error_code: :
|
|
21
|
+
def self.new(error_code: :external_key_validation_failed)
|
|
24
22
|
end
|
|
25
23
|
|
|
26
24
|
sig { override.returns({ error_code: Symbol }) }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# Anthropic's validation of the External Key did not finish in time, so the
|
|
7
|
+
# request was refused. Wait a moment, then send the request again.
|
|
8
|
+
class ExternalKeyValidationTimedOutError < Anthropic::Errors::BadRequestError
|
|
9
|
+
sig { returns(Symbol) }
|
|
10
|
+
def error_code
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
sig do
|
|
14
|
+
returns(
|
|
15
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
def details
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class ExternalKeyValidationTimedOutErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails,
|
|
11
|
+
Anthropic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :error_code
|
|
17
|
+
|
|
18
|
+
# Anthropic's validation of the External Key did not finish in time, so the
|
|
19
|
+
# request was refused. Wait a moment, then send the request again.
|
|
20
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
21
|
+
def self.new(error_code: :external_key_validation_timed_out)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
25
|
+
def to_hash
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::OverloadedError, 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::PermissionError, 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 }) }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry
|
|
6
|
+
# after the time in the `retry-after` header.
|
|
7
|
+
class RampLimitExceededError < Anthropic::Errors::RateLimitError
|
|
8
|
+
sig { returns(Symbol) }
|
|
9
|
+
def error_code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(Anthropic::RampLimitExceededErrorDetails) }
|
|
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 RampLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::RampLimitExceededErrorDetails,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Symbol) }
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
|
|
17
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry
|
|
18
|
+
# after the time in the `retry-after` header.
|
|
19
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(error_code: :ramp_limit_exceeded)
|
|
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::RateLimitError, 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 }) }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request came from a Claude sandbox with restricted network access, which is
|
|
6
|
+
# not allowed to make this change. Send it from outside the sandbox, or from a
|
|
7
|
+
# sandbox with unrestricted network access.
|
|
8
|
+
class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
|
|
9
|
+
sig { returns(Symbol) }
|
|
10
|
+
def error_code
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
sig { returns(Anthropic::SandboxEgressRestrictedErrorDetails) }
|
|
14
|
+
def details
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::SandboxEgressRestrictedErrorDetails,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Symbol) }
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
|
|
17
|
+
# The request came from a Claude sandbox with restricted network access, which is
|
|
18
|
+
# not allowed to make this change. Send it from outside the sandbox, or from a
|
|
19
|
+
# sandbox with unrestricted network access.
|
|
20
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
21
|
+
def self.new(error_code: :sandbox_egress_restricted)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
25
|
+
def to_hash
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/rbi/anthropic/models.rbi
CHANGED
|
@@ -66,6 +66,12 @@ module Anthropic
|
|
|
66
66
|
|
|
67
67
|
BetaNotFoundError = Anthropic::Models::BetaNotFoundError
|
|
68
68
|
|
|
69
|
+
BetaOrganizationNotEnrolledInBetaError =
|
|
70
|
+
Anthropic::Models::BetaOrganizationNotEnrolledInBetaError
|
|
71
|
+
|
|
72
|
+
BetaOrganizationNotEnrolledInBetaErrorDetails =
|
|
73
|
+
Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails
|
|
74
|
+
|
|
69
75
|
BetaOverloadedError = Anthropic::Models::BetaOverloadedError
|
|
70
76
|
|
|
71
77
|
BetaPermissionError = Anthropic::Models::BetaPermissionError
|
|
@@ -779,6 +785,11 @@ module Anthropic
|
|
|
779
785
|
|
|
780
786
|
PlainTextSource = Anthropic::Models::PlainTextSource
|
|
781
787
|
|
|
788
|
+
RampLimitExceededError = Anthropic::Models::RampLimitExceededError
|
|
789
|
+
|
|
790
|
+
RampLimitExceededErrorDetails =
|
|
791
|
+
Anthropic::Models::RampLimitExceededErrorDetails
|
|
792
|
+
|
|
782
793
|
RateLimitError = Anthropic::Models::RateLimitError
|
|
783
794
|
|
|
784
795
|
RawContentBlockDelta = Anthropic::Models::RawContentBlockDelta
|
|
@@ -821,6 +832,11 @@ module Anthropic
|
|
|
821
832
|
RequestBodyTooLargeAfterDecodingErrorDetails =
|
|
822
833
|
Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
|
|
823
834
|
|
|
835
|
+
SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
|
|
836
|
+
|
|
837
|
+
SandboxEgressRestrictedErrorDetails =
|
|
838
|
+
Anthropic::Models::SandboxEgressRestrictedErrorDetails
|
|
839
|
+
|
|
824
840
|
SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
|
|
825
841
|
|
|
826
842
|
ServerToolCaller = Anthropic::Models::ServerToolCaller
|
|
@@ -167,7 +167,8 @@ module Anthropic
|
|
|
167
167
|
# concurrency). Use literal 'NO_HEARTBEAT' to claim an unclaimed lease (first
|
|
168
168
|
# heartbeat). For subsequent heartbeats, echo the server's previous last_heartbeat
|
|
169
169
|
# value exactly. Returns 412 Precondition Failed if the actual value doesn't
|
|
170
|
-
# match.
|
|
170
|
+
# match. The server does not compare the value when the work item is 'stopping' or
|
|
171
|
+
# 'stopped'.
|
|
171
172
|
expected_last_heartbeat: nil,
|
|
172
173
|
# Header param: Optional header to specify the beta version(s) you want to use.
|
|
173
174
|
betas: nil,
|
|
@@ -61,6 +61,7 @@ module Anthropic
|
|
|
61
61
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
62
62
|
order_by:
|
|
63
63
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
|
|
64
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
64
65
|
page: T.nilable(String),
|
|
65
66
|
products:
|
|
66
67
|
T.nilable(
|
|
@@ -183,6 +184,12 @@ module Anthropic
|
|
|
183
184
|
# effect only with `time_bucket_width`; without it, `time` is the same as
|
|
184
185
|
# `amount`. Defaults to `amount`.
|
|
185
186
|
order_by: nil,
|
|
187
|
+
# Query param: Filter a parent organization's report to specific child
|
|
188
|
+
# organizations, by organization UUID or `org_` ID; an ID that is not one of its
|
|
189
|
+
# child organizations matches nothing. Requires an API key created at the parent
|
|
190
|
+
# organization level. Use `group_by[]=organization_id` to break out
|
|
191
|
+
# per-organization values.
|
|
192
|
+
organization_ids: nil,
|
|
186
193
|
# Query param: Opaque cursor from a previous response's `next_page` field.
|
|
187
194
|
page: nil,
|
|
188
195
|
# Query param: Product surfaces to include. Defaults to all products.
|
|
@@ -62,6 +62,7 @@ module Anthropic
|
|
|
62
62
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
63
63
|
order_by:
|
|
64
64
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
|
|
65
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
65
66
|
page: T.nilable(String),
|
|
66
67
|
products:
|
|
67
68
|
T.nilable(
|
|
@@ -178,6 +179,12 @@ module Anthropic
|
|
|
178
179
|
# takes effect only with `time_bucket_width`; without it, `time` is the same as
|
|
179
180
|
# `total_tokens`. Defaults to `total_tokens`.
|
|
180
181
|
order_by: nil,
|
|
182
|
+
# Query param: Filter a parent organization's report to specific child
|
|
183
|
+
# organizations, by organization UUID or `org_` ID; an ID that is not one of its
|
|
184
|
+
# child organizations matches nothing. Requires an API key created at the parent
|
|
185
|
+
# organization level. Use `group_by[]=organization_id` to break out
|
|
186
|
+
# per-organization values.
|
|
187
|
+
organization_ids: nil,
|
|
181
188
|
# Query param: Opaque cursor from a previous response's `next_page` field.
|
|
182
189
|
page: nil,
|
|
183
190
|
# Query param: Product surfaces to include. Defaults to all products.
|
|
@@ -97,6 +97,49 @@ module Anthropic
|
|
|
97
97
|
)
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
+
# Sign a member out of Claude everywhere, without removing them from the
|
|
101
|
+
# organization. This ends their sign-in sessions and removes their trusted devices
|
|
102
|
+
# wherever they use Claude, including other organizations and individual plans. It
|
|
103
|
+
# also ends the OAuth tokens issued to them for this organization, so apps such as
|
|
104
|
+
# Claude Code must sign in again.
|
|
105
|
+
#
|
|
106
|
+
# A token can take up to an hour to stop working, though it almost always stops at
|
|
107
|
+
# once. The member keeps their role and can sign in again right away. To keep them
|
|
108
|
+
# out, remove them from the organization or, if your organization uses single
|
|
109
|
+
# sign-on, block them in your identity provider. Signing out does not end API
|
|
110
|
+
# keys, OAuth tokens that were not issued for this organization, or the member's
|
|
111
|
+
# Claude Code cloud sessions and routines.
|
|
112
|
+
#
|
|
113
|
+
# You cannot sign out the organization's primary owner or the person your API key
|
|
114
|
+
# or token acts for, and a request to sign out another owner, a member with owner
|
|
115
|
+
# permissions, or a membership admin may be refused. A refused request returns a
|
|
116
|
+
# `400` or `403` error that says why. If the request returns `503`, send it again
|
|
117
|
+
# to finish; anything already ended stays ended.
|
|
118
|
+
#
|
|
119
|
+
# Every request must include the beta header
|
|
120
|
+
# `anthropic-beta: admin-user-sign-out-2026-10-08`. A request without it returns
|
|
121
|
+
# `400`. Sign-out is in beta for Claude Enterprise organizations. In an
|
|
122
|
+
# organization where it is not enabled, a request returns `400` with `error_code`
|
|
123
|
+
# `organization_not_enrolled_in_beta`. In a Claude Enterprise organization, an API
|
|
124
|
+
# key needs the `write:members` scope; a key without it gets `403`.
|
|
125
|
+
sig do
|
|
126
|
+
params(
|
|
127
|
+
user_id: String,
|
|
128
|
+
betas:
|
|
129
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
130
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
131
|
+
).returns(Anthropic::Beta::Organization::BetaOrganizationUser)
|
|
132
|
+
end
|
|
133
|
+
def sign_out(
|
|
134
|
+
# ID of the User.
|
|
135
|
+
user_id,
|
|
136
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
137
|
+
# this header.
|
|
138
|
+
betas: nil,
|
|
139
|
+
request_options: {}
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
|
|
100
143
|
# @api private
|
|
101
144
|
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
102
145
|
def self.new(client:)
|
data/sig/anthropic/errors.rbs
CHANGED
|
@@ -262,6 +262,7 @@ module Anthropic
|
|
|
262
262
|
TUNNELS_CERTIFICATES_RETRIEVE: "anthropic.tunnels.certificates.retrieve"
|
|
263
263
|
TUNNELS_CERTIFICATES_LIST: "anthropic.tunnels.certificates.list"
|
|
264
264
|
TUNNELS_CERTIFICATES_ARCHIVE: "anthropic.tunnels.certificates.archive"
|
|
265
|
+
ORGANIZATION_USERS_SIGN_OUT: "anthropic.organization.users.sign_out"
|
|
265
266
|
ORGANIZATION_ANALYTICS_USAGE_LIST: "anthropic.organization.analytics.usage.list"
|
|
266
267
|
ORGANIZATION_ANALYTICS_COST_LIST: "anthropic.organization.analytics.cost.list"
|
|
267
268
|
ORGANIZATION_ANALYTICS_USAGE_REPORT_LIST: "anthropic.organization.analytics.usage_report.list"
|
|
@@ -53,6 +53,7 @@ module Anthropic
|
|
|
53
53
|
| :"spend-limit-reads-2026-09-26"
|
|
54
54
|
| :"telemetry-destinations-2026-08-11"
|
|
55
55
|
| :"webhooks-2026-10-07"
|
|
56
|
+
| :"admin-user-sign-out-2026-10-08"
|
|
56
57
|
| :"message-threads-2026-08-12"
|
|
57
58
|
| :"analytics-usage-cost-2026-08-24"
|
|
58
59
|
| :"experimental-claude-tag-2026-10-21"
|
|
@@ -115,6 +116,7 @@ module Anthropic
|
|
|
115
116
|
SPEND_LIMIT_READS_2026_09_26: :"spend-limit-reads-2026-09-26"
|
|
116
117
|
TELEMETRY_DESTINATIONS_2026_08_11: :"telemetry-destinations-2026-08-11"
|
|
117
118
|
WEBHOOKS_2026_10_07: :"webhooks-2026-10-07"
|
|
119
|
+
ADMIN_USER_SIGN_OUT_2026_10_08: :"admin-user-sign-out-2026-10-08"
|
|
118
120
|
MESSAGE_THREADS_2026_08_12: :"message-threads-2026-08-12"
|
|
119
121
|
ANALYTICS_USAGE_COST_2026_08_24: :"analytics-usage-cost-2026-08-24"
|
|
120
122
|
EXPERIMENTAL_CLAUDE_TAG_2026_10_21: :"experimental-claude-tag-2026-10-21"
|
|
@@ -4,7 +4,8 @@ module Anthropic
|
|
|
4
4
|
|
|
5
5
|
module Beta
|
|
6
6
|
type beta_managed_agents_model =
|
|
7
|
-
:"claude-
|
|
7
|
+
:"claude-fable-5-2"
|
|
8
|
+
| :"claude-haiku-5-5"
|
|
8
9
|
| :"claude-sonnet-5-5"
|
|
9
10
|
| :"claude-opus-5-5"
|
|
10
11
|
| :"claude-fable-5-1"
|
|
@@ -28,6 +29,9 @@ module Anthropic
|
|
|
28
29
|
|
|
29
30
|
def self?.variants: -> ::Array[Anthropic::Models::Beta::beta_managed_agents_model]
|
|
30
31
|
|
|
32
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
33
|
+
CLAUDE_FABLE_5_2: :"claude-fable-5-2"
|
|
34
|
+
|
|
31
35
|
# Fastest model for high-volume, real-time tasks
|
|
32
36
|
CLAUDE_HAIKU_5_5: :"claude-haiku-5-5"
|
|
33
37
|
|
|
@@ -50,6 +50,7 @@ module Anthropic
|
|
|
50
50
|
| Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData
|
|
51
51
|
| Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData
|
|
52
52
|
| Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
53
|
+
| Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
53
54
|
|
|
54
55
|
module BetaWebhookEventData
|
|
55
56
|
extend Anthropic::Internal::Type::Union
|
|
@@ -101,6 +102,7 @@ module Anthropic
|
|
|
101
102
|
| :"session.budget_reached"
|
|
102
103
|
| :"user_profile.enforcement_action_opened"
|
|
103
104
|
| :"user_profile.enforcement_action_resolved"
|
|
105
|
+
| :"user_profile.program_status_updated"
|
|
104
106
|
|
|
105
107
|
module Type
|
|
106
108
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -151,6 +153,7 @@ module Anthropic
|
|
|
151
153
|
SESSION_BUDGET_REACHED: :"session.budget_reached"
|
|
152
154
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED: :"user_profile.enforcement_action_opened"
|
|
153
155
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED: :"user_profile.enforcement_action_resolved"
|
|
156
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
154
157
|
|
|
155
158
|
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaWebhookEventData::type_]
|
|
156
159
|
end
|
|
@@ -445,6 +448,12 @@ module Anthropic
|
|
|
445
448
|
enforcement_action_id: String,
|
|
446
449
|
organization_id: String
|
|
447
450
|
) -> Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
451
|
+
| (
|
|
452
|
+
type: :"user_profile.program_status_updated"
|
|
453
|
+
| "user_profile.program_status_updated",
|
|
454
|
+
id: String,
|
|
455
|
+
organization_id: String
|
|
456
|
+
) -> Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
448
457
|
| (
|
|
449
458
|
type: Anthropic::Models::Beta::BetaWebhookEventData::type_ | String,
|
|
450
459
|
id: String,
|
data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebhookUserProfileProgramStatusUpdatedEventData = Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_webhook_user_profile_program_status_updated_event_data =
|
|
7
|
+
{
|
|
8
|
+
id: String,
|
|
9
|
+
organization_id: String,
|
|
10
|
+
type: :"user_profile.program_status_updated"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BetaWebhookUserProfileProgramStatusUpdatedEventData < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor organization_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :"user_profile.program_status_updated"
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
organization_id: String,
|
|
23
|
+
?type: :"user_profile.program_status_updated"
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
organization_id: String,
|
|
29
|
+
type: :"user_profile.program_status_updated"
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -17,6 +17,7 @@ module Anthropic
|
|
|
17
17
|
environment_id: String?,
|
|
18
18
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
19
19
|
model: String?,
|
|
20
|
+
organization_id: String?,
|
|
20
21
|
product: String?,
|
|
21
22
|
rbac_group_id: String?,
|
|
22
23
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -53,6 +54,8 @@ module Anthropic
|
|
|
53
54
|
|
|
54
55
|
attr_accessor model: String?
|
|
55
56
|
|
|
57
|
+
attr_accessor organization_id: String?
|
|
58
|
+
|
|
56
59
|
attr_accessor product: String?
|
|
57
60
|
|
|
58
61
|
attr_accessor rbac_group_id: String?
|
|
@@ -84,6 +87,7 @@ module Anthropic
|
|
|
84
87
|
environment_id: String?,
|
|
85
88
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
86
89
|
model: String?,
|
|
90
|
+
organization_id: String?,
|
|
87
91
|
product: String?,
|
|
88
92
|
rbac_group_id: String?,
|
|
89
93
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -108,6 +112,7 @@ module Anthropic
|
|
|
108
112
|
environment_id: String?,
|
|
109
113
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
110
114
|
model: String?,
|
|
115
|
+
organization_id: String?,
|
|
111
116
|
product: String?,
|
|
112
117
|
rbac_group_id: String?,
|
|
113
118
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -16,6 +16,7 @@ module Anthropic
|
|
|
16
16
|
| :environment_id
|
|
17
17
|
| :inference_geo
|
|
18
18
|
| :model
|
|
19
|
+
| :organization_id
|
|
19
20
|
| :product
|
|
20
21
|
| :rbac_group_id
|
|
21
22
|
| :service_tier
|
|
@@ -41,6 +42,7 @@ module Anthropic
|
|
|
41
42
|
ENVIRONMENT_ID: :environment_id
|
|
42
43
|
INFERENCE_GEO: :inference_geo
|
|
43
44
|
MODEL: :model
|
|
45
|
+
ORGANIZATION_ID: :organization_id
|
|
44
46
|
PRODUCT: :product
|
|
45
47
|
RBAC_GROUP_ID: :rbac_group_id
|
|
46
48
|
SERVICE_TIER: :service_tier
|
|
@@ -16,6 +16,7 @@ module Anthropic
|
|
|
16
16
|
environment_id: String?,
|
|
17
17
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
18
18
|
model: String?,
|
|
19
|
+
organization_id: String?,
|
|
19
20
|
product: String?,
|
|
20
21
|
rbac_group_id: String?,
|
|
21
22
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -49,6 +50,8 @@ module Anthropic
|
|
|
49
50
|
|
|
50
51
|
attr_accessor model: String?
|
|
51
52
|
|
|
53
|
+
attr_accessor organization_id: String?
|
|
54
|
+
|
|
52
55
|
attr_accessor product: String?
|
|
53
56
|
|
|
54
57
|
attr_accessor rbac_group_id: String?
|
|
@@ -77,6 +80,7 @@ module Anthropic
|
|
|
77
80
|
environment_id: String?,
|
|
78
81
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
79
82
|
model: String?,
|
|
83
|
+
organization_id: String?,
|
|
80
84
|
product: String?,
|
|
81
85
|
rbac_group_id: String?,
|
|
82
86
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -99,6 +103,7 @@ module Anthropic
|
|
|
99
103
|
environment_id: String?,
|
|
100
104
|
inference_geo: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo?,
|
|
101
105
|
model: String?,
|
|
106
|
+
organization_id: String?,
|
|
102
107
|
product: String?,
|
|
103
108
|
rbac_group_id: String?,
|
|
104
109
|
service_tier: Anthropic::Models::Beta::Organization::beta_analytics_service_tier?,
|
|
@@ -15,6 +15,7 @@ module Anthropic
|
|
|
15
15
|
| :environment_id
|
|
16
16
|
| :inference_geo
|
|
17
17
|
| :model
|
|
18
|
+
| :organization_id
|
|
18
19
|
| :product
|
|
19
20
|
| :rbac_group_id
|
|
20
21
|
| :service_tier
|
|
@@ -38,6 +39,7 @@ module Anthropic
|
|
|
38
39
|
ENVIRONMENT_ID: :environment_id
|
|
39
40
|
INFERENCE_GEO: :inference_geo
|
|
40
41
|
MODEL: :model
|
|
42
|
+
ORGANIZATION_ID: :organization_id
|
|
41
43
|
PRODUCT: :product
|
|
42
44
|
RBAC_GROUP_ID: :rbac_group_id
|
|
43
45
|
SERVICE_TIER: :service_tier
|