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
|
@@ -122,6 +122,13 @@ module Anthropic
|
|
|
122
122
|
# @return [String, nil]
|
|
123
123
|
required :model, String, nil?: true
|
|
124
124
|
|
|
125
|
+
# @!attribute organization_id
|
|
126
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
127
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
128
|
+
#
|
|
129
|
+
# @return [String, nil]
|
|
130
|
+
required :organization_id, String, nil?: true
|
|
131
|
+
|
|
125
132
|
# @!attribute product
|
|
126
133
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
127
134
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
@@ -212,7 +219,7 @@ module Anthropic
|
|
|
212
219
|
# @return [String, nil]
|
|
213
220
|
required :workspace_id, String, nil?: true
|
|
214
221
|
|
|
215
|
-
# @!method initialize(actor:, actor_type:, agent_id:, api_key_id:, claude_tag_category:, claude_tag_user_id:, context_window:, cost_type:, deployment_id:, environment_id:, inference_geo:, model:, product:, rbac_group_id:, service_tier:, session_id:, slack_channel_id:, speed:, token_type:, user_profile_id:, workspace_id:)
|
|
222
|
+
# @!method initialize(actor:, actor_type:, agent_id:, api_key_id:, claude_tag_category:, claude_tag_user_id:, context_window:, cost_type:, deployment_id:, environment_id:, inference_geo:, model:, organization_id:, product:, rbac_group_id:, service_tier:, session_id:, slack_channel_id:, speed:, token_type:, user_profile_id:, workspace_id:)
|
|
216
223
|
# The dimension values one cost row is broken out by, including `cost_type` and
|
|
217
224
|
# `token_type`.
|
|
218
225
|
#
|
|
@@ -244,6 +251,8 @@ module Anthropic
|
|
|
244
251
|
#
|
|
245
252
|
# @param model [String, nil] Model that produced the usage or cost, as a model name in the form the
|
|
246
253
|
#
|
|
254
|
+
# @param organization_id [String, nil] UUID of the child organization the usage belongs to, on a parent organization's
|
|
255
|
+
#
|
|
247
256
|
# @param product [String, nil] Product surface that produced the usage or cost. Null unless product is in
|
|
248
257
|
#
|
|
249
258
|
# @param rbac_group_id [String, nil] RBAC group (team) the usage is attributed to, in the public tagged
|
|
@@ -112,6 +112,13 @@ module Anthropic
|
|
|
112
112
|
# @return [String, nil]
|
|
113
113
|
required :model, String, nil?: true
|
|
114
114
|
|
|
115
|
+
# @!attribute organization_id
|
|
116
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
117
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
required :organization_id, String, nil?: true
|
|
121
|
+
|
|
115
122
|
# @!attribute product
|
|
116
123
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
117
124
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
@@ -192,7 +199,7 @@ module Anthropic
|
|
|
192
199
|
# @return [String, nil]
|
|
193
200
|
required :workspace_id, String, nil?: true
|
|
194
201
|
|
|
195
|
-
# @!method initialize(actor:, actor_type:, agent_id:, api_key_id:, claude_tag_category:, claude_tag_user_id:, context_window:, deployment_id:, environment_id:, inference_geo:, model:, product:, rbac_group_id:, service_tier:, session_id:, slack_channel_id:, speed:, user_profile_id:, workspace_id:)
|
|
202
|
+
# @!method initialize(actor:, actor_type:, agent_id:, api_key_id:, claude_tag_category:, claude_tag_user_id:, context_window:, deployment_id:, environment_id:, inference_geo:, model:, organization_id:, product:, rbac_group_id:, service_tier:, session_id:, slack_channel_id:, speed:, user_profile_id:, workspace_id:)
|
|
196
203
|
# The dimension values one usage row is broken out by; each is null unless its
|
|
197
204
|
# dimension is in `group_by[]`.
|
|
198
205
|
#
|
|
@@ -222,6 +229,8 @@ module Anthropic
|
|
|
222
229
|
#
|
|
223
230
|
# @param model [String, nil] Model that produced the usage or cost, as a model name in the form the
|
|
224
231
|
#
|
|
232
|
+
# @param organization_id [String, nil] UUID of the child organization the usage belongs to, on a parent organization's
|
|
233
|
+
#
|
|
225
234
|
# @param product [String, nil] Product surface that produced the usage or cost. Null unless product is in
|
|
226
235
|
#
|
|
227
236
|
# @param rbac_group_id [String, nil] RBAC group (team) the usage is attributed to, in the public tagged
|
|
@@ -184,6 +184,15 @@ module Anthropic
|
|
|
184
184
|
# @return [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy, nil]
|
|
185
185
|
optional :order_by, enum: -> { Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy }
|
|
186
186
|
|
|
187
|
+
# @!attribute organization_ids
|
|
188
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
189
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
190
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
191
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
192
|
+
#
|
|
193
|
+
# @return [Array<String>, nil]
|
|
194
|
+
optional :organization_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
195
|
+
|
|
187
196
|
# @!attribute page
|
|
188
197
|
# Opaque cursor from a previous response's `next_page` field.
|
|
189
198
|
#
|
|
@@ -284,7 +293,7 @@ module Anthropic
|
|
|
284
293
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
285
294
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
286
295
|
|
|
287
|
-
# @!method initialize(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
|
|
296
|
+
# @!method initialize(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
|
|
288
297
|
# Some parameter documentations has been truncated, see
|
|
289
298
|
# {Anthropic::Models::Beta::Organization::Analytics::CostListParams} for more
|
|
290
299
|
# details.
|
|
@@ -325,6 +334,8 @@ module Anthropic
|
|
|
325
334
|
#
|
|
326
335
|
# @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy] Row order. A metric ranks rows by that metric in the `order` direction. `time` o
|
|
327
336
|
#
|
|
337
|
+
# @param organization_ids [Array<String>, nil] Filter a parent organization's report to specific child organizations, by organi
|
|
338
|
+
#
|
|
328
339
|
# @param page [String, nil] Opaque cursor from a previous response's `next_page` field.
|
|
329
340
|
#
|
|
330
341
|
# @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Product surfaces to include. Defaults to all products.
|
|
@@ -178,6 +178,15 @@ module Anthropic
|
|
|
178
178
|
# @return [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy, nil]
|
|
179
179
|
optional :order_by, enum: -> { Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy }
|
|
180
180
|
|
|
181
|
+
# @!attribute organization_ids
|
|
182
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
183
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
184
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
185
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
186
|
+
#
|
|
187
|
+
# @return [Array<String>, nil]
|
|
188
|
+
optional :organization_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
189
|
+
|
|
181
190
|
# @!attribute page
|
|
182
191
|
# Opaque cursor from a previous response's `next_page` field.
|
|
183
192
|
#
|
|
@@ -278,7 +287,7 @@ module Anthropic
|
|
|
278
287
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
279
288
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
280
289
|
|
|
281
|
-
# @!method initialize(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
|
|
290
|
+
# @!method initialize(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
|
|
282
291
|
# Some parameter documentations has been truncated, see
|
|
283
292
|
# {Anthropic::Models::Beta::Organization::Analytics::UsageListParams} for more
|
|
284
293
|
# details.
|
|
@@ -319,6 +328,8 @@ module Anthropic
|
|
|
319
328
|
#
|
|
320
329
|
# @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy] Row order. A metric ranks rows by that metric in the `order` direction. `time` o
|
|
321
330
|
#
|
|
331
|
+
# @param organization_ids [Array<String>, nil] Filter a parent organization's report to specific child organizations, by organi
|
|
332
|
+
#
|
|
322
333
|
# @param page [String, nil] Opaque cursor from a previous response's `next_page` field.
|
|
323
334
|
#
|
|
324
335
|
# @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Product surfaces to include. Defaults to all products.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
8
|
+
# out. The error message says which keys and tokens can.
|
|
9
|
+
class BetaCannotSignOutManagedMemberError < Anthropic::Errors::PermissionDeniedError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :cannot_sign_out_managed_member]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutManagedMemberErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_managed_member]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_managed_member
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_managed_member)
|
|
14
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
15
|
+
# out. The error message says which keys and tokens can.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :cannot_sign_out_managed_member]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The member is a membership admin, and the person the API key or token belongs to
|
|
8
|
+
# is not allowed to sign out membership admins.
|
|
9
|
+
class BetaCannotSignOutMembershipAdminError < Anthropic::Errors::PermissionDeniedError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :cannot_sign_out_membership_admin]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutMembershipAdminErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_membership_admin]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_membership_admin
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_membership_admin)
|
|
14
|
+
# The member is a membership admin, and the person the API key or token belongs to
|
|
15
|
+
# is not allowed to sign out membership admins.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :cannot_sign_out_membership_admin]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The member is an owner or has owner permissions, and this API key or token
|
|
8
|
+
# cannot sign them out. In a Claude Enterprise organization, an API key with the
|
|
9
|
+
# `write:members` scope can.
|
|
10
|
+
class BetaCannotSignOutOwnerError < Anthropic::Errors::PermissionDeniedError
|
|
11
|
+
# @!method error_code
|
|
12
|
+
# @return [Symbol, :cannot_sign_out_owner]
|
|
13
|
+
|
|
14
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails]
|
|
15
|
+
def details
|
|
16
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
17
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails,
|
|
18
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutOwnerErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_owner]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_owner
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_owner)
|
|
14
|
+
# The member is an owner or has owner permissions, and this API key or token
|
|
15
|
+
# cannot sign them out. In a Claude Enterprise organization, an API key with the
|
|
16
|
+
# `write:members` scope can.
|
|
17
|
+
#
|
|
18
|
+
# @param error_code [Symbol, :cannot_sign_out_owner]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The member is the organization's primary owner, whom no API key or token can
|
|
8
|
+
# sign out.
|
|
9
|
+
class BetaCannotSignOutPrimaryOwnerError < Anthropic::Errors::BadRequestError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :cannot_sign_out_primary_owner]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutPrimaryOwnerErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_primary_owner]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_primary_owner
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_primary_owner)
|
|
14
|
+
# The member is the organization's primary owner, whom no API key or token can
|
|
15
|
+
# sign out.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :cannot_sign_out_primary_owner]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# This OAuth token cannot sign out a membership admin or a member whose roles
|
|
8
|
+
# grant owner, user management, or identity and access management.
|
|
9
|
+
class BetaCannotSignOutPrivilegedMemberError < Anthropic::Errors::PermissionDeniedError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :cannot_sign_out_privileged_member]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutPrivilegedMemberErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_privileged_member]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_privileged_member
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_privileged_member)
|
|
14
|
+
# This OAuth token cannot sign out a membership admin or a member whose roles
|
|
15
|
+
# grant owner, user management, or identity and access management.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :cannot_sign_out_privileged_member]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The member is the user the API key or token belongs to.
|
|
8
|
+
class BetaCannotSignOutSelfError < Anthropic::Errors::BadRequestError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_self]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutSelfErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :cannot_sign_out_self]
|
|
11
|
+
required :error_code, const: :cannot_sign_out_self
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :cannot_sign_out_self)
|
|
14
|
+
# The member is the user the API key or token belongs to.
|
|
15
|
+
#
|
|
16
|
+
# @param error_code [Symbol, :cannot_sign_out_self]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -102,6 +102,7 @@ module Anthropic
|
|
|
102
102
|
|
|
103
103
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
104
104
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
105
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
105
106
|
|
|
106
107
|
# @!method self.values
|
|
107
108
|
# @return [Array<Symbol>]
|
|
@@ -93,6 +93,7 @@ module Anthropic
|
|
|
93
93
|
|
|
94
94
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
95
95
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
96
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
96
97
|
|
|
97
98
|
# @!method self.values
|
|
98
99
|
# @return [Array<Symbol>]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Users#sign_out
|
|
8
|
+
class UserSignOutParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute user_id
|
|
13
|
+
# ID of the User.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :user_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute betas
|
|
19
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
20
|
+
# this header.
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
23
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
24
|
+
|
|
25
|
+
# @!method initialize(user_id:, betas: nil, request_options: {})
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Organization::UserSignOutParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param user_id [String] ID of the User.
|
|
30
|
+
#
|
|
31
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
32
|
+
#
|
|
33
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -62,6 +62,7 @@ module Anthropic
|
|
|
62
62
|
|
|
63
63
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
64
64
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
65
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
65
66
|
|
|
66
67
|
# @!method self.values
|
|
67
68
|
# @return [Array<Symbol>]
|
|
@@ -81,6 +81,7 @@ module Anthropic
|
|
|
81
81
|
|
|
82
82
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
83
83
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
84
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
84
85
|
|
|
85
86
|
# @!method self.values
|
|
86
87
|
# @return [Array<Symbol>]
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaAPIError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :api_error]
|
|
14
17
|
required :type, const: :api_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :api_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaAPIError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :api_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaAuthenticationError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :authentication_error]
|
|
14
17
|
required :type, const: :authentication_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :authentication_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaAuthenticationError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :authentication_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaBillingError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :billing_error]
|
|
14
17
|
required :type, const: :billing_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :billing_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaBillingError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -48,11 +48,14 @@ module Anthropic
|
|
|
48
48
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
49
|
# value, passing the remaining arguments to its constructor.
|
|
50
50
|
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Anthropic::Models::BetaError} for more details.
|
|
53
|
+
#
|
|
51
54
|
# @param type [Symbol, Anthropic::Models::BetaError::Type, String]
|
|
52
55
|
#
|
|
53
56
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
54
57
|
#
|
|
55
|
-
# @option args [String] :message
|
|
58
|
+
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
56
59
|
#
|
|
57
60
|
# @raise [ArgumentError]
|
|
58
61
|
# @return [Anthropic::Models::BetaInvalidRequestError, Anthropic::Models::BetaAuthenticationError, Anthropic::Models::BetaBillingError, Anthropic::Models::BetaPermissionError, Anthropic::Models::BetaNotFoundError, Anthropic::Models::BetaRateLimitError, Anthropic::Models::BetaGatewayTimeoutError, Anthropic::Models::BetaAPIError, Anthropic::Models::BetaOverloadedError]
|