anthropic 2.5.0 → 2.6.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 +27 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +10 -0
- data/lib/anthropic/errors.rb +11 -0
- 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_target_store_held_error.rb +1 -7
- 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/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/user_sign_out_params.rb +38 -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 +69 -2
- 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/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.rb +9 -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/api_keys.rb +2 -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/external_keys.rb +3 -7
- data/lib/anthropic/resources/beta/organization/invites.rb +7 -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 +4 -14
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +2 -7
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
- data/lib/anthropic/resources/beta/organization/users.rb +65 -4
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +12 -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 +2 -2
- data/lib/anthropic/resources/organization/external_keys.rb +3 -7
- data/lib/anthropic/resources/organization/invites.rb +7 -17
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +4 -14
- data/lib/anthropic/resources/organization/rbac_groups.rb +2 -7
- data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/organization/users.rb +2 -4
- data/lib/anthropic/resources/organization/workspaces/members.rb +2 -2
- data/lib/anthropic/resources/organization/workspaces.rb +12 -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 +22 -0
- data/manifest.yaml +1 -0
- data/rbi/anthropic/errors.rbi +14 -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_target_store_held_error.rbi +1 -8
- 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/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/user_sign_out_params.rbi +75 -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 +60 -0
- 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/not_found_error.rbi +10 -1
- data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
- data/rbi/anthropic/models/organization/external_key_validation_failed_error_details.rbi +30 -0
- 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.rbi +11 -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/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/user_sign_out_params.rbs +36 -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 +67 -0
- 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.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
- metadata +65 -2
|
@@ -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
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class UserSignOutParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Anthropic::Beta::Organization::UserSignOutParams,
|
|
15
|
+
Anthropic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# ID of the User.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :user_id
|
|
22
|
+
|
|
23
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
24
|
+
# this header.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
T.nilable(
|
|
28
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
attr_reader :betas
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :betas
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
user_id: String,
|
|
44
|
+
betas:
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
46
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
47
|
+
).returns(T.attached_class)
|
|
48
|
+
end
|
|
49
|
+
def self.new(
|
|
50
|
+
# ID of the User.
|
|
51
|
+
user_id:,
|
|
52
|
+
# This endpoint is in beta: requests must send `admin-user-sign-out-2026-10-08` in
|
|
53
|
+
# this header.
|
|
54
|
+
betas: nil,
|
|
55
|
+
request_options: {}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
override.returns(
|
|
61
|
+
{
|
|
62
|
+
user_id: String,
|
|
63
|
+
betas:
|
|
64
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
65
|
+
request_options: Anthropic::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaAPIError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :api_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :authentication_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaBillingError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :billing_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -67,7 +67,12 @@ module Anthropic
|
|
|
67
67
|
message: String
|
|
68
68
|
).returns(Anthropic::BetaError::Variants)
|
|
69
69
|
end
|
|
70
|
-
def self.new(
|
|
70
|
+
def self.new(
|
|
71
|
+
type:,
|
|
72
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
73
|
+
# match on it.
|
|
74
|
+
message:
|
|
75
|
+
)
|
|
71
76
|
end
|
|
72
77
|
end
|
|
73
78
|
end
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :timeout_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -11,14 +11,23 @@ module Anthropic
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
15
|
+
# match on it.
|
|
14
16
|
sig { returns(String) }
|
|
15
17
|
attr_accessor :message
|
|
16
18
|
|
|
19
|
+
# The broad category of the error.
|
|
17
20
|
sig { returns(Symbol) }
|
|
18
21
|
attr_accessor :type
|
|
19
22
|
|
|
20
23
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
21
|
-
def self.new(
|
|
24
|
+
def self.new(
|
|
25
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
26
|
+
# match on it.
|
|
27
|
+
message:,
|
|
28
|
+
# The broad category of the error.
|
|
29
|
+
type: :invalid_request_error
|
|
30
|
+
)
|
|
22
31
|
end
|
|
23
32
|
|
|
24
33
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaNotFoundError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :not_found_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
6
|
+
# message names the beta value.
|
|
7
|
+
class BetaOrganizationNotEnrolledInBetaError < Anthropic::Errors::BadRequestError
|
|
8
|
+
sig { returns(Symbol) }
|
|
9
|
+
def error_code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails) }
|
|
13
|
+
def details
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaOrganizationNotEnrolledInBetaErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Symbol) }
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
|
|
17
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
18
|
+
# message names the beta value.
|
|
19
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(error_code: :organization_not_enrolled_in_beta)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
24
|
+
def to_hash
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaOverloadedError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :overloaded_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaPermissionError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :permission_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BetaRateLimitError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :rate_limit_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|
|
@@ -8,14 +8,23 @@ module Anthropic
|
|
|
8
8
|
T.any(Anthropic::BillingError, Anthropic::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
12
|
+
# match on it.
|
|
11
13
|
sig { returns(String) }
|
|
12
14
|
attr_accessor :message
|
|
13
15
|
|
|
16
|
+
# The broad category of the error.
|
|
14
17
|
sig { returns(Symbol) }
|
|
15
18
|
attr_accessor :type
|
|
16
19
|
|
|
17
20
|
sig { params(message: String, type: Symbol).returns(T.attached_class) }
|
|
18
|
-
def self.new(
|
|
21
|
+
def self.new(
|
|
22
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
23
|
+
# match on it.
|
|
24
|
+
message:,
|
|
25
|
+
# The broad category of the error.
|
|
26
|
+
type: :billing_error
|
|
27
|
+
)
|
|
19
28
|
end
|
|
20
29
|
|
|
21
30
|
sig { override.returns({ message: String, type: Symbol }) }
|