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.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +10 -0
  5. data/lib/anthropic/errors.rb +11 -0
  6. data/lib/anthropic/internal/tracing.rb +1 -0
  7. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  8. data/lib/anthropic/models/api_error_object.rb +9 -2
  9. data/lib/anthropic/models/authentication_error.rb +9 -2
  10. data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
  11. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
  12. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
  13. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
  14. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
  15. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
  16. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
  17. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
  18. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
  19. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
  20. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
  21. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
  22. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
  23. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
  24. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
  25. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
  26. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
  27. data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
  28. data/lib/anthropic/models/beta_api_error.rb +9 -2
  29. data/lib/anthropic/models/beta_authentication_error.rb +9 -2
  30. data/lib/anthropic/models/beta_billing_error.rb +9 -2
  31. data/lib/anthropic/models/beta_error.rb +4 -1
  32. data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
  33. data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
  34. data/lib/anthropic/models/beta_not_found_error.rb +9 -2
  35. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
  36. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
  37. data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
  38. data/lib/anthropic/models/beta_permission_error.rb +9 -2
  39. data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
  40. data/lib/anthropic/models/billing_error.rb +9 -2
  41. data/lib/anthropic/models/error_details.rb +69 -2
  42. data/lib/anthropic/models/error_object.rb +4 -1
  43. data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
  44. data/lib/anthropic/models/invalid_request_error.rb +9 -2
  45. data/lib/anthropic/models/not_found_error.rb +9 -2
  46. data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
  47. data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
  48. data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
  49. data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
  50. data/lib/anthropic/models/overloaded_error.rb +9 -2
  51. data/lib/anthropic/models/permission_error.rb +9 -2
  52. data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
  53. data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
  54. data/lib/anthropic/models/rate_limit_error.rb +9 -2
  55. data/lib/anthropic/models.rb +9 -0
  56. data/lib/anthropic/resources/beta/environments/work.rb +10 -24
  57. data/lib/anthropic/resources/beta/environments.rb +16 -37
  58. data/lib/anthropic/resources/beta/files.rb +23 -50
  59. data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
  60. data/lib/anthropic/resources/beta/messages.rb +74 -139
  61. data/lib/anthropic/resources/beta/models.rb +4 -10
  62. data/lib/anthropic/resources/beta/organization/api_keys.rb +2 -2
  63. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
  64. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
  65. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
  66. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
  67. data/lib/anthropic/resources/beta/organization/external_keys.rb +3 -7
  68. data/lib/anthropic/resources/beta/organization/invites.rb +7 -17
  69. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
  70. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
  71. data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
  72. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +4 -14
  73. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +2 -7
  74. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
  75. data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
  76. data/lib/anthropic/resources/beta/organization/users.rb +65 -4
  77. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +2 -2
  78. data/lib/anthropic/resources/beta/organization/workspaces.rb +12 -22
  79. data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
  80. data/lib/anthropic/resources/beta/skills.rb +11 -26
  81. data/lib/anthropic/resources/files.rb +23 -50
  82. data/lib/anthropic/resources/messages/batches.rb +15 -35
  83. data/lib/anthropic/resources/messages.rb +74 -139
  84. data/lib/anthropic/resources/models.rb +4 -10
  85. data/lib/anthropic/resources/organization/api_keys.rb +2 -2
  86. data/lib/anthropic/resources/organization/external_keys.rb +3 -7
  87. data/lib/anthropic/resources/organization/invites.rb +7 -17
  88. data/lib/anthropic/resources/organization/rbac_groups/members.rb +4 -14
  89. data/lib/anthropic/resources/organization/rbac_groups.rb +2 -7
  90. data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
  91. data/lib/anthropic/resources/organization/users.rb +2 -4
  92. data/lib/anthropic/resources/organization/workspaces/members.rb +2 -2
  93. data/lib/anthropic/resources/organization/workspaces.rb +12 -22
  94. data/lib/anthropic/resources/skills/versions.rb +11 -26
  95. data/lib/anthropic/resources/skills.rb +11 -26
  96. data/lib/anthropic/version.rb +1 -1
  97. data/lib/anthropic.rb +22 -0
  98. data/manifest.yaml +1 -0
  99. data/rbi/anthropic/errors.rbi +14 -0
  100. data/rbi/anthropic/internal/tracing.rbi +1 -0
  101. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  102. data/rbi/anthropic/models/api_error_object.rbi +10 -1
  103. data/rbi/anthropic/models/authentication_error.rbi +10 -1
  104. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
  105. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
  106. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
  107. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
  108. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
  109. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
  110. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
  111. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
  112. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
  113. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
  114. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
  115. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
  116. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
  117. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
  118. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
  119. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
  120. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
  121. data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
  122. data/rbi/anthropic/models/beta_api_error.rbi +10 -1
  123. data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
  124. data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
  125. data/rbi/anthropic/models/beta_error.rbi +6 -1
  126. data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
  127. data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
  128. data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
  129. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
  130. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
  131. data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
  132. data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
  133. data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
  134. data/rbi/anthropic/models/billing_error.rbi +10 -1
  135. data/rbi/anthropic/models/error_details.rbi +60 -0
  136. data/rbi/anthropic/models/error_object.rbi +6 -1
  137. data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
  138. data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
  139. data/rbi/anthropic/models/not_found_error.rbi +10 -1
  140. data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
  141. data/rbi/anthropic/models/organization/external_key_validation_failed_error_details.rbi +30 -0
  142. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
  143. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
  144. data/rbi/anthropic/models/overloaded_error.rbi +10 -1
  145. data/rbi/anthropic/models/permission_error.rbi +10 -1
  146. data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
  147. data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
  148. data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
  149. data/rbi/anthropic/models.rbi +11 -0
  150. data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
  151. data/sig/anthropic/errors.rbs +3 -0
  152. data/sig/anthropic/internal/tracing.rbs +1 -0
  153. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  154. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
  155. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
  156. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
  157. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
  158. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
  159. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
  160. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
  161. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
  162. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
  163. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
  164. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
  165. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
  166. data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
  167. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
  168. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
  169. data/sig/anthropic/models/error_details.rbs +67 -0
  170. data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
  171. data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
  172. data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
  173. data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
  174. data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
  175. data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
  176. data/sig/anthropic/models.rbs +8 -0
  177. data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
  178. metadata +65 -2
@@ -50,7 +50,7 @@ module Anthropic
50
50
  #
51
51
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
52
52
  #
53
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
53
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
54
54
  #
55
55
  # @return [Anthropic::Models::Organization::WorkspaceMember]
56
56
  #
@@ -126,7 +126,7 @@ module Anthropic
126
126
  #
127
127
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
128
128
  #
129
- # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError] The workspace has reached the member limit that Anthropic set for it.
129
+ # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
130
130
  #
131
131
  # @return [Anthropic::Models::Organization::WorkspaceMember]
132
132
  #
@@ -34,17 +34,12 @@ module Anthropic
34
34
  #
35
35
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
36
36
  #
37
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
38
- # that user profile. A Workspace can use only a key bound to its own user profile
39
- # or a key that isn't bound to one.
40
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
41
- # is no longer active. The request either names this user profile by ID, or names
42
- # a resource, such as an External Key, that is bound to it.
43
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
44
- # rule it broke; an organization admin can see and change the policy in the
45
- # Console.
46
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
47
- # again.
37
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
38
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
39
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
40
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
41
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
42
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
48
43
  #
49
44
  # @return [Anthropic::Models::Organization::Workspace]
50
45
  #
@@ -109,17 +104,12 @@ module Anthropic
109
104
  #
110
105
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
111
106
  #
112
- # @raise [Anthropic::Models::Organization::KeyProfileMismatchError] The External Key is bound to a user profile, and the Workspace does not have
113
- # that user profile. A Workspace can use only a key bound to its own user profile
114
- # or a key that isn't bound to one.
115
- # @raise [Anthropic::Models::UserProfileNotFoundError] The request depends on a user profile that does not exist in the organization or
116
- # is no longer active. The request either names this user profile by ID, or names
117
- # a resource, such as an External Key, that is bound to it.
118
- # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError] The request breaks the organization's Workspace Policy. The message says which
119
- # rule it broke; an organization admin can see and change the policy in the
120
- # Console.
121
- # @raise [Anthropic::Models::Organization::ExternalKeyChangedError] The external key changed while the request was validating it. Send the request
122
- # again.
107
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
108
+ # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
109
+ # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
110
+ # @raise [Anthropic::Models::UserProfileNotFoundError]
111
+ # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
112
+ # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
123
113
  #
124
114
  # @return [Anthropic::Models::Organization::Workspace]
125
115
  #
@@ -19,17 +19,11 @@ module Anthropic
19
19
  #
20
20
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
21
21
  #
22
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
23
- # no longer a member of the organization or of that workspace.
24
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
25
- # Re-enable the key, then retry.
26
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
27
- # workspace's customer-managed encryption key. The key itself may be healthy.
28
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
29
- # organization disabled for any other reason, such as billing, does not get this
30
- # code. `appeal_url`, when present, is where the organization can appeal.
31
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
32
- # refused. Retry in a few minutes.
22
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
23
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
24
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
25
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
26
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
33
27
  #
34
28
  # @return [Anthropic::Models::Skills::SkillVersion]
35
29
  #
@@ -71,11 +65,8 @@ module Anthropic
71
65
  #
72
66
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
73
67
  #
74
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
75
- # no longer a member of the organization or of that workspace.
76
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
77
- # organization disabled for any other reason, such as billing, does not get this
78
- # code. `appeal_url`, when present, is where the organization can appeal.
68
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
69
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
79
70
  #
80
71
  # @return [Anthropic::Models::Skills::SkillVersion]
81
72
  #
@@ -115,11 +106,8 @@ module Anthropic
115
106
  #
116
107
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
117
108
  #
118
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
119
- # no longer a member of the organization or of that workspace.
120
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
121
- # organization disabled for any other reason, such as billing, does not get this
122
- # code. `appeal_url`, when present, is where the organization can appeal.
109
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
110
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
123
111
  #
124
112
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skills::SkillVersion>]
125
113
  #
@@ -158,11 +146,8 @@ module Anthropic
158
146
  #
159
147
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
160
148
  #
161
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
162
- # no longer a member of the organization or of that workspace.
163
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
164
- # organization disabled for any other reason, such as billing, does not get this
165
- # code. `appeal_url`, when present, is where the organization can appeal.
149
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
150
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
166
151
  #
167
152
  # @return [Anthropic::Models::Skills::DeletedSkillVersion]
168
153
  #
@@ -21,17 +21,11 @@ module Anthropic
21
21
  #
22
22
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
23
23
  #
24
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
25
- # no longer a member of the organization or of that workspace.
26
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
27
- # Re-enable the key, then retry.
28
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
29
- # workspace's customer-managed encryption key. The key itself may be healthy.
30
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
31
- # organization disabled for any other reason, such as billing, does not get this
32
- # code. `appeal_url`, when present, is where the organization can appeal.
33
- # @raise [Anthropic::Models::CMEKContextUnavailableError] The workspace's encryption settings could not be read, so the request was
34
- # refused. Retry in a few minutes.
24
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
25
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
26
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
27
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
28
+ # @raise [Anthropic::Models::CMEKContextUnavailableError]
35
29
  #
36
30
  # @return [Anthropic::Models::Skill]
37
31
  #
@@ -70,11 +64,8 @@ module Anthropic
70
64
  #
71
65
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
72
66
  #
73
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
74
- # no longer a member of the organization or of that workspace.
75
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
76
- # organization disabled for any other reason, such as billing, does not get this
77
- # code. `appeal_url`, when present, is where the organization can appeal.
67
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
68
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
78
69
  #
79
70
  # @return [Anthropic::Models::Skill]
80
71
  #
@@ -110,11 +101,8 @@ module Anthropic
110
101
  #
111
102
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
112
103
  #
113
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
114
- # no longer a member of the organization or of that workspace.
115
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
116
- # organization disabled for any other reason, such as billing, does not get this
117
- # code. `appeal_url`, when present, is where the organization can appeal.
104
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
105
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
118
106
  #
119
107
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Skill>]
120
108
  #
@@ -150,11 +138,8 @@ module Anthropic
150
138
  #
151
139
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
152
140
  #
153
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
154
- # no longer a member of the organization or of that workspace.
155
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
156
- # organization disabled for any other reason, such as billing, does not get this
157
- # code. `appeal_url`, when present, is where the organization can appeal.
141
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
142
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
158
143
  #
159
144
  # @return [Anthropic::Models::DeletedSkill]
160
145
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "2.5.0"
4
+ VERSION = "2.6.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -18,6 +18,7 @@ require "set"
18
18
  require "stringio"
19
19
  require "time"
20
20
  require "uri"
21
+ require "yaml"
21
22
  # rubocop:enable Lint/RedundantRequireStatement
22
23
 
23
24
  # We already ship the preferred sorbet manifests in the package itself.
@@ -119,6 +120,12 @@ require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
119
120
  require_relative "anthropic/models/beta/beta_invalid_metadata_error"
120
121
  require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
121
122
  require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
123
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error"
124
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error"
125
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error"
126
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error"
127
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error"
128
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error"
122
129
  require_relative "anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error"
123
130
  require_relative "anthropic/models/beta/organization/beta_compliance_configuration_restricted_error"
124
131
  require_relative "anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error"
@@ -131,6 +138,7 @@ require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_e
131
138
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error"
132
139
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error"
133
140
  require_relative "anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error"
141
+ require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error"
134
142
  require_relative "anthropic/models/beta_unsupported_charset_error"
135
143
  require_relative "anthropic/models/claude_code_key_creator_not_member_error"
136
144
  require_relative "anthropic/models/claude_code_version_too_old_error"
@@ -157,6 +165,8 @@ require_relative "anthropic/models/organization/cannot_remove_last_member_error"
157
165
  require_relative "anthropic/models/organization/email_domain_not_allowed_error"
158
166
  require_relative "anthropic/models/organization/external_key_changed_error"
159
167
  require_relative "anthropic/models/organization/external_key_in_workspace_policy_error"
168
+ require_relative "anthropic/models/organization/external_key_validation_failed_error"
169
+ require_relative "anthropic/models/organization/external_key_validation_timed_out_error"
160
170
  require_relative "anthropic/models/organization/invite_already_exists_error"
161
171
  require_relative "anthropic/models/organization/key_profile_mismatch_error"
162
172
  require_relative "anthropic/models/organization/org_api_key_limit_exceeded_error"
@@ -168,6 +178,7 @@ require_relative "anthropic/models/organization/workspace_policy_violation_error
168
178
  require_relative "anthropic/models/organization_on_hold_error"
169
179
  require_relative "anthropic/models/organization_type_not_supported_error"
170
180
  require_relative "anthropic/models/org_member_limit_exceeded_error"
181
+ require_relative "anthropic/models/ramp_limit_exceeded_error"
171
182
  require_relative "anthropic/models/request_body_encoding_invalid_error"
172
183
  require_relative "anthropic/models/request_body_encoding_unsupported_error"
173
184
  require_relative "anthropic/models/request_body_too_large_after_decoding_error"
@@ -1172,6 +1183,12 @@ require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scop
1172
1183
  require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
1173
1184
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
1174
1185
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
1186
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details"
1187
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details"
1188
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details"
1189
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details"
1190
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details"
1191
+ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details"
1175
1192
  require_relative "anthropic/models/beta/organization/beta_claude_tag_default_setting_source"
1176
1193
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy"
1177
1194
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
@@ -1439,6 +1456,7 @@ require_relative "anthropic/models/beta/organization/user_list_params"
1439
1456
  require_relative "anthropic/models/beta/organization/user_remove_params"
1440
1457
  require_relative "anthropic/models/beta/organization/user_remove_response"
1441
1458
  require_relative "anthropic/models/beta/organization/user_retrieve_params"
1459
+ require_relative "anthropic/models/beta/organization/user_sign_out_params"
1442
1460
  require_relative "anthropic/models/beta/organization/user_update_params"
1443
1461
  require_relative "anthropic/models/beta/organization/webhook_create_params"
1444
1462
  require_relative "anthropic/models/beta/organization/webhook_delete_params"
@@ -1710,6 +1728,7 @@ require_relative "anthropic/models/beta_gateway_timeout_error"
1710
1728
  require_relative "anthropic/models/beta_invalid_request_error"
1711
1729
  require_relative "anthropic/models/beta_monetary_amount"
1712
1730
  require_relative "anthropic/models/beta_not_found_error"
1731
+ require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error_details"
1713
1732
  require_relative "anthropic/models/beta_overloaded_error"
1714
1733
  require_relative "anthropic/models/beta_permission_error"
1715
1734
  require_relative "anthropic/models/beta_rate_limit_error"
@@ -2105,6 +2124,8 @@ require_relative "anthropic/models/organization/external_key_unattached_attachme
2105
2124
  require_relative "anthropic/models/organization/external_key_update_params"
2106
2125
  require_relative "anthropic/models/organization/external_key_validate_params"
2107
2126
  require_relative "anthropic/models/organization/external_key_validate_response"
2127
+ require_relative "anthropic/models/organization/external_key_validation_failed_error_details"
2128
+ require_relative "anthropic/models/organization/external_key_validation_timed_out_error_details"
2108
2129
  require_relative "anthropic/models/organization/federation/federation_issuer"
2109
2130
  require_relative "anthropic/models/organization/federation/federation_issuer_poll_status"
2110
2131
  require_relative "anthropic/models/organization/federation/federation_rule"
@@ -2254,6 +2275,7 @@ require_relative "anthropic/models/output_tokens_details"
2254
2275
  require_relative "anthropic/models/overloaded_error"
2255
2276
  require_relative "anthropic/models/permission_error"
2256
2277
  require_relative "anthropic/models/plain_text_source"
2278
+ require_relative "anthropic/models/ramp_limit_exceeded_error_details"
2257
2279
  require_relative "anthropic/models/rate_limit_error"
2258
2280
  require_relative "anthropic/models/raw_content_block_delta"
2259
2281
  require_relative "anthropic/models/raw_content_block_delta_event"
data/manifest.yaml CHANGED
@@ -14,3 +14,4 @@ dependencies:
14
14
  - stringio
15
15
  - time
16
16
  - uri
17
+ - yaml
@@ -133,21 +133,32 @@ module Anthropic
133
133
  end
134
134
 
135
135
  class APIStatusError < Anthropic::Errors::APIError
136
+ # A human-readable explanation of the error. Its wording can change, so don't
137
+ # match on it.
138
+ #
136
139
  # `error.message` from the response body, if present.
137
140
  sig { returns(T.nilable(String)) }
138
141
  def api_message
139
142
  end
140
143
 
144
+ # The broad category of the error.
145
+ #
141
146
  # `error.type` from the response body, if present.
142
147
  sig { returns(T.nilable(Anthropic::ErrorType::TaggedSymbol)) }
143
148
  def type
144
149
  end
145
150
 
151
+ # A stable code that names the cause.
152
+ #
146
153
  # `error.details.error_code` from the response body, if present and a string.
147
154
  sig { returns(T.nilable(Symbol)) }
148
155
  def error_code
149
156
  end
150
157
 
158
+ # Machine-readable detail about the cause of the error. `error_code` names the
159
+ # cause; branch on it rather than on `message`. Absent when the error has no code.
160
+ # Treat an unrecognized `error_code` as the bare `type`.
161
+ #
151
162
  # `error.details` from the response body, if present.
152
163
  sig { returns(T.nilable(Anthropic::ErrorDetails::Variants)) }
153
164
  def details
@@ -270,5 +281,8 @@ module Anthropic
270
281
  class OverloadedError < Anthropic::Errors::InternalServerError
271
282
  HTTP_STATUS = 529
272
283
  end
284
+
285
+ class ConfigurationError < Anthropic::Errors::Error
286
+ end
273
287
  end
274
288
  end
@@ -380,6 +380,7 @@ module Anthropic
380
380
  "anthropic.tunnels.certificates.retrieve"
381
381
  TUNNELS_CERTIFICATES_LIST = "anthropic.tunnels.certificates.list"
382
382
  TUNNELS_CERTIFICATES_ARCHIVE = "anthropic.tunnels.certificates.archive"
383
+ ORGANIZATION_USERS_SIGN_OUT = "anthropic.organization.users.sign_out"
383
384
  ORGANIZATION_ANALYTICS_USAGE_LIST =
384
385
  "anthropic.organization.analytics.usage.list"
385
386
  ORGANIZATION_ANALYTICS_COST_LIST =
@@ -231,6 +231,11 @@ module Anthropic
231
231
  )
232
232
  WEBHOOKS_2026_10_07 =
233
233
  T.let(:"webhooks-2026-10-07", Anthropic::AnthropicBeta::TaggedSymbol)
234
+ ADMIN_USER_SIGN_OUT_2026_10_08 =
235
+ T.let(
236
+ :"admin-user-sign-out-2026-10-08",
237
+ Anthropic::AnthropicBeta::TaggedSymbol
238
+ )
234
239
  MESSAGE_THREADS_2026_08_12 =
235
240
  T.let(
236
241
  :"message-threads-2026-08-12",
@@ -8,14 +8,23 @@ module Anthropic
8
8
  T.any(Anthropic::APIErrorObject, Anthropic::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # A human-readable explanation of the error. Its wording can change, so don't
12
+ # match on it.
11
13
  sig { returns(String) }
12
14
  attr_accessor :message
13
15
 
16
+ # The broad category of the error.
14
17
  sig { returns(Symbol) }
15
18
  attr_accessor :type
16
19
 
17
20
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
18
- def self.new(message:, type: :api_error)
21
+ def self.new(
22
+ # A human-readable explanation of the error. Its wording can change, so don't
23
+ # match on it.
24
+ message:,
25
+ # The broad category of the error.
26
+ type: :api_error
27
+ )
19
28
  end
20
29
 
21
30
  sig { override.returns({ message: String, type: Symbol }) }
@@ -8,14 +8,23 @@ module Anthropic
8
8
  T.any(Anthropic::AuthenticationError, Anthropic::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # A human-readable explanation of the error. Its wording can change, so don't
12
+ # match on it.
11
13
  sig { returns(String) }
12
14
  attr_accessor :message
13
15
 
16
+ # The broad category of the error.
14
17
  sig { returns(Symbol) }
15
18
  attr_accessor :type
16
19
 
17
20
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
18
- def self.new(message:, type: :authentication_error)
21
+ def self.new(
22
+ # A human-readable explanation of the error. Its wording can change, so don't
23
+ # match on it.
24
+ message:,
25
+ # The broad category of the error.
26
+ type: :authentication_error
27
+ )
19
28
  end
20
29
 
21
30
  sig { override.returns({ message: String, type: Symbol }) }
@@ -111,8 +111,8 @@ module Anthropic
111
111
  end
112
112
  def self.new(
113
113
  type:,
114
- # A human-readable explanation of why the memory store can't be used yet, with the
115
- # ID of the dream that is using it when the server can identify it.
114
+ # A human-readable explanation of the error. Its wording can change, so don't
115
+ # match on it.
116
116
  message: nil
117
117
  )
118
118
  end
@@ -17,8 +17,6 @@ module Anthropic
17
17
  sig { returns(Symbol) }
18
18
  attr_accessor :type
19
19
 
20
- # A human-readable explanation of why the memory store can't be used yet, with the
21
- # ID of the dream that is using it when the server can identify it.
22
20
  sig { returns(T.nilable(String)) }
23
21
  attr_reader :message
24
22
 
@@ -36,12 +34,7 @@ module Anthropic
36
34
  # end or cancel it, then retry. The response sets the `x-should-retry` header to
37
35
  # `false`.
38
36
  sig { params(message: String, type: Symbol).returns(T.attached_class) }
39
- def self.new(
40
- # A human-readable explanation of why the memory store can't be used yet, with the
41
- # ID of the dream that is using it when the server can identify it.
42
- message: nil,
43
- type: :conflict_error
44
- )
37
+ def self.new(message: nil, type: :conflict_error)
45
38
  end
46
39
 
47
40
  sig { override.returns({ type: Symbol, message: String }) }
@@ -134,7 +134,8 @@ module Anthropic
134
134
  end
135
135
  def self.new(
136
136
  type:,
137
- # A human-readable explanation of why the precondition failed.
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.
@@ -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 }) }
@@ -0,0 +1,25 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # On a public-sector deployment, only an API key or token that belongs to a person
8
+ # with owner permissions can sign out a member with the `managed` role.
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
@@ -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
+ # On a public-sector deployment, only an API key or token that belongs to a person
20
+ # with owner permissions can sign out a member with the `managed` role.
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
@@ -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