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
data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
BetaWebhookUserProfileProgramStatusUpdatedEventData =
|
|
6
|
+
Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
7
|
+
|
|
8
|
+
module Beta
|
|
9
|
+
class BetaWebhookUserProfileProgramStatusUpdatedEventData < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData,
|
|
14
|
+
Anthropic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# ID of the user profile that triggered the event.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :organization_id
|
|
24
|
+
|
|
25
|
+
sig { returns(Symbol) }
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(id: String, organization_id: String, type: Symbol).returns(
|
|
30
|
+
T.attached_class
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
def self.new(
|
|
34
|
+
# ID of the user profile that triggered the event.
|
|
35
|
+
id:,
|
|
36
|
+
organization_id:,
|
|
37
|
+
type: :"user_profile.program_status_updated"
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{ id: String, organization_id: String, type: Symbol }
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -29,7 +29,8 @@ module Anthropic
|
|
|
29
29
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
30
30
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
31
31
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
32
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
32
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
33
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
33
34
|
sig { returns(T.nilable(String)) }
|
|
34
35
|
attr_accessor :expected_last_heartbeat
|
|
35
36
|
|
|
@@ -69,7 +70,8 @@ module Anthropic
|
|
|
69
70
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
70
71
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
71
72
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
72
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
73
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
74
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
73
75
|
expected_last_heartbeat: nil,
|
|
74
76
|
# Optional header to specify the beta version(s) you want to use.
|
|
75
77
|
betas: nil,
|
|
@@ -134,7 +134,8 @@ module Anthropic
|
|
|
134
134
|
end
|
|
135
135
|
def self.new(
|
|
136
136
|
type:,
|
|
137
|
-
# A human-readable explanation of
|
|
137
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
138
|
+
# match on it.
|
|
138
139
|
message: nil,
|
|
139
140
|
# The ID of the memory that blocked the write (`mem_...`), or an empty string if
|
|
140
141
|
# that memory can't be identified.
|
data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi
CHANGED
|
@@ -34,8 +34,6 @@ module Anthropic
|
|
|
34
34
|
sig { params(conflicting_path: String).void }
|
|
35
35
|
attr_writer :conflicting_path
|
|
36
36
|
|
|
37
|
-
# A human-readable explanation of the conflict. To handle the error in code, use
|
|
38
|
-
# `conflicting_path` and `conflicting_memory_id` instead.
|
|
39
37
|
sig { returns(T.nilable(String)) }
|
|
40
38
|
attr_reader :message
|
|
41
39
|
|
|
@@ -50,6 +48,9 @@ module Anthropic
|
|
|
50
48
|
# `/notes/todo.md`. To free the path, rename or delete the memory that
|
|
51
49
|
# `conflicting_memory_id` references, then retry. To change that memory instead of
|
|
52
50
|
# creating a new one, update it.
|
|
51
|
+
#
|
|
52
|
+
# To handle the error in code, use `conflicting_path` and `conflicting_memory_id`
|
|
53
|
+
# instead of `message`.
|
|
53
54
|
sig do
|
|
54
55
|
params(
|
|
55
56
|
conflicting_memory_id: String,
|
|
@@ -67,8 +68,6 @@ module Anthropic
|
|
|
67
68
|
# The path that blocked the write: the requested path, or the path of a memory
|
|
68
69
|
# that is an ancestor or descendant of it.
|
|
69
70
|
conflicting_path: nil,
|
|
70
|
-
# A human-readable explanation of the conflict. To handle the error in code, use
|
|
71
|
-
# `conflicting_path` and `conflicting_memory_id` instead.
|
|
72
71
|
message: nil,
|
|
73
72
|
type: :memory_path_conflict_error
|
|
74
73
|
)
|
|
@@ -16,7 +16,6 @@ module Anthropic
|
|
|
16
16
|
sig { returns(Symbol) }
|
|
17
17
|
attr_accessor :type
|
|
18
18
|
|
|
19
|
-
# A human-readable explanation of why the precondition failed.
|
|
20
19
|
sig { returns(T.nilable(String)) }
|
|
21
20
|
attr_reader :message
|
|
22
21
|
|
|
@@ -36,11 +35,7 @@ module Anthropic
|
|
|
36
35
|
sig do
|
|
37
36
|
params(message: String, type: Symbol).returns(T.attached_class)
|
|
38
37
|
end
|
|
39
|
-
def self.new(
|
|
40
|
-
# A human-readable explanation of why the precondition failed.
|
|
41
|
-
message: nil,
|
|
42
|
-
type: :memory_precondition_failed_error
|
|
43
|
-
)
|
|
38
|
+
def self.new(message: nil, type: :memory_precondition_failed_error)
|
|
44
39
|
end
|
|
45
40
|
|
|
46
41
|
sig { override.returns({ type: Symbol, message: String }) }
|
|
@@ -128,6 +128,11 @@ module Anthropic
|
|
|
128
128
|
sig { returns(T.nilable(String)) }
|
|
129
129
|
attr_accessor :model
|
|
130
130
|
|
|
131
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
132
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
133
|
+
sig { returns(T.nilable(String)) }
|
|
134
|
+
attr_accessor :organization_id
|
|
135
|
+
|
|
131
136
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
132
137
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
133
138
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -249,6 +254,7 @@ module Anthropic
|
|
|
249
254
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::OrSymbol
|
|
250
255
|
),
|
|
251
256
|
model: T.nilable(String),
|
|
257
|
+
organization_id: T.nilable(String),
|
|
252
258
|
product: T.nilable(String),
|
|
253
259
|
rbac_group_id: T.nilable(String),
|
|
254
260
|
service_tier:
|
|
@@ -324,6 +330,9 @@ module Anthropic
|
|
|
324
330
|
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
325
331
|
# not attributed to a specific model, such as code execution.
|
|
326
332
|
model:,
|
|
333
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
334
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
335
|
+
organization_id:,
|
|
327
336
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
328
337
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
329
338
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -406,6 +415,7 @@ module Anthropic
|
|
|
406
415
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
407
416
|
),
|
|
408
417
|
model: T.nilable(String),
|
|
418
|
+
organization_id: T.nilable(String),
|
|
409
419
|
product: T.nilable(String),
|
|
410
420
|
rbac_group_id: T.nilable(String),
|
|
411
421
|
service_tier:
|
|
@@ -77,6 +77,11 @@ module Anthropic
|
|
|
77
77
|
:model,
|
|
78
78
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy::TaggedSymbol
|
|
79
79
|
)
|
|
80
|
+
ORGANIZATION_ID =
|
|
81
|
+
T.let(
|
|
82
|
+
:organization_id,
|
|
83
|
+
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy::TaggedSymbol
|
|
84
|
+
)
|
|
80
85
|
PRODUCT =
|
|
81
86
|
T.let(
|
|
82
87
|
:product,
|
|
@@ -118,6 +118,11 @@ module Anthropic
|
|
|
118
118
|
sig { returns(T.nilable(String)) }
|
|
119
119
|
attr_accessor :model
|
|
120
120
|
|
|
121
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
122
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
123
|
+
sig { returns(T.nilable(String)) }
|
|
124
|
+
attr_accessor :organization_id
|
|
125
|
+
|
|
121
126
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
122
127
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
123
128
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -225,6 +230,7 @@ module Anthropic
|
|
|
225
230
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::OrSymbol
|
|
226
231
|
),
|
|
227
232
|
model: T.nilable(String),
|
|
233
|
+
organization_id: T.nilable(String),
|
|
228
234
|
product: T.nilable(String),
|
|
229
235
|
rbac_group_id: T.nilable(String),
|
|
230
236
|
service_tier:
|
|
@@ -294,6 +300,9 @@ module Anthropic
|
|
|
294
300
|
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
295
301
|
# not attributed to a specific model, such as code execution.
|
|
296
302
|
model:,
|
|
303
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
304
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
305
|
+
organization_id:,
|
|
297
306
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
298
307
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
299
308
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -370,6 +379,7 @@ module Anthropic
|
|
|
370
379
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
371
380
|
),
|
|
372
381
|
model: T.nilable(String),
|
|
382
|
+
organization_id: T.nilable(String),
|
|
373
383
|
product: T.nilable(String),
|
|
374
384
|
rbac_group_id: T.nilable(String),
|
|
375
385
|
service_tier:
|
|
@@ -72,6 +72,11 @@ module Anthropic
|
|
|
72
72
|
:model,
|
|
73
73
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageGroupBy::TaggedSymbol
|
|
74
74
|
)
|
|
75
|
+
ORGANIZATION_ID =
|
|
76
|
+
T.let(
|
|
77
|
+
:organization_id,
|
|
78
|
+
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageGroupBy::TaggedSymbol
|
|
79
|
+
)
|
|
75
80
|
PRODUCT =
|
|
76
81
|
T.let(
|
|
77
82
|
:product,
|
|
@@ -209,6 +209,13 @@ module Anthropic
|
|
|
209
209
|
end
|
|
210
210
|
attr_writer :order_by
|
|
211
211
|
|
|
212
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
213
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
214
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
215
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
216
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
217
|
+
attr_accessor :organization_ids
|
|
218
|
+
|
|
212
219
|
# Opaque cursor from a previous response's `next_page` field.
|
|
213
220
|
sig { returns(T.nilable(String)) }
|
|
214
221
|
attr_accessor :page
|
|
@@ -364,6 +371,7 @@ module Anthropic
|
|
|
364
371
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
365
372
|
order_by:
|
|
366
373
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
|
|
374
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
367
375
|
page: T.nilable(String),
|
|
368
376
|
products:
|
|
369
377
|
T.nilable(
|
|
@@ -480,6 +488,11 @@ module Anthropic
|
|
|
480
488
|
# `time_bucket_width`; without it, `time` is the same as `amount`. Defaults to
|
|
481
489
|
# `amount`.
|
|
482
490
|
order_by: nil,
|
|
491
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
492
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
493
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
494
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
495
|
+
organization_ids: nil,
|
|
483
496
|
# Opaque cursor from a previous response's `next_page` field.
|
|
484
497
|
page: nil,
|
|
485
498
|
# Product surfaces to include. Defaults to all products.
|
|
@@ -574,6 +587,7 @@ module Anthropic
|
|
|
574
587
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
575
588
|
order_by:
|
|
576
589
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
|
|
590
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
577
591
|
page: T.nilable(String),
|
|
578
592
|
products:
|
|
579
593
|
T.nilable(
|
|
@@ -203,6 +203,13 @@ module Anthropic
|
|
|
203
203
|
end
|
|
204
204
|
attr_writer :order_by
|
|
205
205
|
|
|
206
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
207
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
208
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
209
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
210
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
211
|
+
attr_accessor :organization_ids
|
|
212
|
+
|
|
206
213
|
# Opaque cursor from a previous response's `next_page` field.
|
|
207
214
|
sig { returns(T.nilable(String)) }
|
|
208
215
|
attr_accessor :page
|
|
@@ -358,6 +365,7 @@ module Anthropic
|
|
|
358
365
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
359
366
|
order_by:
|
|
360
367
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
|
|
368
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
361
369
|
page: T.nilable(String),
|
|
362
370
|
products:
|
|
363
371
|
T.nilable(
|
|
@@ -468,6 +476,11 @@ module Anthropic
|
|
|
468
476
|
# with `time_bucket_width`; without it, `time` is the same as `total_tokens`.
|
|
469
477
|
# Defaults to `total_tokens`.
|
|
470
478
|
order_by: nil,
|
|
479
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
480
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
481
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
482
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
483
|
+
organization_ids: nil,
|
|
471
484
|
# Opaque cursor from a previous response's `next_page` field.
|
|
472
485
|
page: nil,
|
|
473
486
|
# Product surfaces to include. Defaults to all products.
|
|
@@ -562,6 +575,7 @@ module Anthropic
|
|
|
562
575
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
563
576
|
order_by:
|
|
564
577
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
|
|
578
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
565
579
|
page: T.nilable(String),
|
|
566
580
|
products:
|
|
567
581
|
T.nilable(
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutManagedMemberErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
20
|
+
# out. The error message says which keys and tokens can.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :cannot_sign_out_managed_member)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutMembershipAdminErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The member is a membership admin, and the person the API key or token belongs to
|
|
20
|
+
# is not allowed to sign out membership admins.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :cannot_sign_out_membership_admin)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
12
|
+
def error_code
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
def details
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutOwnerErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The member is an owner or has owner permissions, and this API key or token
|
|
20
|
+
# cannot sign them out. In a Claude Enterprise organization, an API key with the
|
|
21
|
+
# `write:members` scope can.
|
|
22
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
23
|
+
def self.new(error_code: :cannot_sign_out_owner)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutPrimaryOwnerErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The member is the organization's primary owner, whom no API key or token can
|
|
20
|
+
# sign out.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :cannot_sign_out_primary_owner)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutPrivilegedMemberErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# This OAuth token cannot sign out a membership admin or a member whose roles
|
|
20
|
+
# grant owner, user management, or identity and access management.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :cannot_sign_out_privileged_member)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
sig { returns(Symbol) }
|
|
10
|
+
def error_code
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
sig do
|
|
14
|
+
returns(
|
|
15
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
def details
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaCannotSignOutSelfErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The member is the user the API key or token belongs to.
|
|
20
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
21
|
+
def self.new(error_code: :cannot_sign_out_self)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
25
|
+
def to_hash
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|