anthropic 2.6.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.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +1 -1
  5. data/lib/anthropic/helpers/aws/client.rb +6 -0
  6. data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
  7. data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
  8. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  9. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  10. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
  11. data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
  12. data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
  13. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
  14. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
  15. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
  16. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
  17. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
  18. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
  19. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +2 -2
  20. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +2 -2
  21. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
  22. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
  23. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
  24. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
  25. data/lib/anthropic/models/error_details.rb +9 -9
  26. data/lib/anthropic/models/model.rb +10 -0
  27. data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
  28. data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
  29. data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
  30. data/lib/anthropic/models.rb +4 -0
  31. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
  32. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
  33. data/lib/anthropic/resources/beta/organization/api_keys.rb +1 -0
  34. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
  35. data/lib/anthropic/resources/beta/organization/external_keys.rb +5 -0
  36. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
  37. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
  38. data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
  39. data/lib/anthropic/resources/beta/organization/invites.rb +3 -0
  40. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +2 -0
  41. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +5 -0
  42. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
  43. data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
  44. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
  45. data/lib/anthropic/resources/beta/organization/spend_limits.rb +2 -2
  46. data/lib/anthropic/resources/beta/organization/users.rb +8 -4
  47. data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
  48. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +4 -0
  49. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
  50. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
  51. data/lib/anthropic/resources/beta/organization/workspaces.rb +4 -0
  52. data/lib/anthropic/resources/organization/api_keys.rb +1 -0
  53. data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
  54. data/lib/anthropic/resources/organization/external_keys.rb +5 -0
  55. data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
  56. data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
  57. data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
  58. data/lib/anthropic/resources/organization/invites.rb +3 -0
  59. data/lib/anthropic/resources/organization/rbac_groups/members.rb +2 -0
  60. data/lib/anthropic/resources/organization/rbac_groups.rb +5 -0
  61. data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
  62. data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
  63. data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
  64. data/lib/anthropic/resources/organization/users.rb +3 -0
  65. data/lib/anthropic/resources/organization/workspaces/members.rb +4 -0
  66. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
  67. data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
  68. data/lib/anthropic/resources/organization/workspaces.rb +4 -0
  69. data/lib/anthropic/version.rb +1 -1
  70. data/lib/anthropic.rb +3 -2
  71. data/rbi/anthropic/helpers/aws/client.rbi +5 -0
  72. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
  73. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  74. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
  75. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
  76. data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
  77. data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
  78. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
  79. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
  80. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
  81. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
  82. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
  83. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
  84. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +2 -2
  85. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +2 -2
  86. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
  87. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
  88. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
  89. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
  90. data/rbi/anthropic/models/error_details.rbi +6 -6
  91. data/rbi/anthropic/models/model.rbi +8 -0
  92. data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
  93. data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
  94. data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
  95. data/rbi/anthropic/models.rbi +5 -0
  96. data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
  97. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
  98. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
  99. data/rbi/anthropic/resources/beta/organization/users.rbi +4 -4
  100. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  101. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
  102. data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
  103. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
  104. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
  105. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
  106. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
  107. data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
  108. data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
  109. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
  110. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
  111. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
  112. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
  113. data/sig/anthropic/models/error_details.rbs +6 -6
  114. data/sig/anthropic/models/model.rbs +9 -1
  115. data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
  116. data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
  117. data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
  118. data/sig/anthropic/models.rbs +4 -0
  119. data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
  120. data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
  121. metadata +11 -8
  122. data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
  123. data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
  124. data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
  125. data/rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi +0 -32
  126. data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
  127. data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
@@ -115,6 +115,9 @@ module Anthropic
115
115
  variant :workspace_api_key_limit_exceeded,
116
116
  -> { Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails }
117
117
 
118
+ # The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
119
+ variant :sandbox_egress_restricted, -> { Anthropic::SandboxEgressRestrictedErrorDetails }
120
+
118
121
  # The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
119
122
  variant :user_profile_not_found, -> { Anthropic::UserProfileNotFoundErrorDetails }
120
123
 
@@ -206,7 +209,7 @@ module Anthropic
206
209
  variant :organization_not_enrolled_in_beta,
207
210
  -> { Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails }
208
211
 
209
- # On a public-sector deployment, only an API key or token that belongs to a person with owner permissions can sign out a member with the `managed` role.
212
+ # The member has the `managed` role, and this API key or token cannot sign them out. The error message says which keys and tokens can.
210
213
  variant :cannot_sign_out_managed_member,
211
214
  -> { Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails }
212
215
 
@@ -221,9 +224,6 @@ module Anthropic
221
224
  variant :cannot_sign_out_privileged_member,
222
225
  -> { Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails }
223
226
 
224
- # Anthropic has temporarily disabled billing changes for the user account the credential belongs to. Contact support.
225
- variant :billing_frozen, -> { Anthropic::Beta::BetaBillingFrozenErrorDetails }
226
-
227
227
  # The organization cannot retrieve, set or delete spend limits with an Admin API credential.
228
228
  variant :spend_limits_admin_api_writes_not_enabled,
229
229
  -> { Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails }
@@ -314,6 +314,7 @@ module Anthropic
314
314
  CMEK_CONTEXT_UNAVAILABLE = :cmek_context_unavailable
315
315
  ORG_API_KEY_LIMIT_EXCEEDED = :org_api_key_limit_exceeded
316
316
  WORKSPACE_API_KEY_LIMIT_EXCEEDED = :workspace_api_key_limit_exceeded
317
+ SANDBOX_EGRESS_RESTRICTED = :sandbox_egress_restricted
317
318
  USER_PROFILE_NOT_FOUND = :user_profile_not_found
318
319
  EXTERNAL_KEY_IN_WORKSPACE_POLICY = :external_key_in_workspace_policy
319
320
  ALREADY_MEMBER = :already_member
@@ -345,7 +346,6 @@ module Anthropic
345
346
  CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN = :cannot_sign_out_membership_admin
346
347
  CANNOT_SIGN_OUT_OWNER = :cannot_sign_out_owner
347
348
  CANNOT_SIGN_OUT_PRIVILEGED_MEMBER = :cannot_sign_out_privileged_member
348
- BILLING_FROZEN = :billing_frozen
349
349
  SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED = :spend_limits_admin_api_writes_not_enabled
350
350
  UNSUPPORTED_CHARSET = :unsupported_charset
351
351
  PLUGIN_NAME_TAKEN = :plugin_name_taken
@@ -367,7 +367,7 @@ module Anthropic
367
367
  end
368
368
 
369
369
  # @!method self.variants
370
- # @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
370
+ # @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
371
371
 
372
372
  # Creates a new instance of the variant class whose `error_code` matches the given
373
373
  # value, passing the remaining arguments to its constructor.
@@ -396,7 +396,7 @@ module Anthropic
396
396
  # @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
397
397
  #
398
398
  # @raise [ArgumentError]
399
- # @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
399
+ # @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
400
400
  def self.new(error_code:, **args)
401
401
  case error_code.to_sym
402
402
  when :available_tools_limit_exceeded
@@ -469,6 +469,8 @@ module Anthropic
469
469
  Anthropic::Organization::OrgAPIKeyLimitExceededErrorDetails.new(**args)
470
470
  when :workspace_api_key_limit_exceeded
471
471
  Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails.new(**args)
472
+ when :sandbox_egress_restricted
473
+ Anthropic::SandboxEgressRestrictedErrorDetails.new(**args)
472
474
  when :user_profile_not_found
473
475
  Anthropic::UserProfileNotFoundErrorDetails.new(**args)
474
476
  when :external_key_in_workspace_policy
@@ -531,8 +533,6 @@ module Anthropic
531
533
  Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails.new(**args)
532
534
  when :cannot_sign_out_privileged_member
533
535
  Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails.new(**args)
534
- when :billing_frozen
535
- Anthropic::Beta::BetaBillingFrozenErrorDetails.new(**args)
536
536
  when :spend_limits_admin_api_writes_not_enabled
537
537
  Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails.new(**args)
538
538
  when :unsupported_charset
@@ -9,6 +9,10 @@ module Anthropic
9
9
  module Model
10
10
  extend Anthropic::Internal::Type::Union
11
11
 
12
+ variant const: -> { Anthropic::Models::Model::CLAUDE_FABLE_5_2 }
13
+
14
+ variant const: -> { Anthropic::Models::Model::CLAUDE_MYTHOS_5_2 }
15
+
12
16
  variant const: -> { Anthropic::Models::Model::CLAUDE_HAIKU_5_5 }
13
17
 
14
18
  variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_5_5 }
@@ -60,6 +64,12 @@ module Anthropic
60
64
 
61
65
  # @!group
62
66
 
67
+ # Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
68
+ CLAUDE_FABLE_5_2 = :"claude-fable-5-2"
69
+
70
+ # Frontier intelligence for cybersecurity and life sciences research, available through verification programs
71
+ CLAUDE_MYTHOS_5_2 = :"claude-mythos-5-2"
72
+
63
73
  # Fastest model for high-volume, real-time tasks
64
74
  CLAUDE_HAIKU_5_5 = :"claude-haiku-5-5"
65
75
 
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The request came from a Claude sandbox with restricted network access, which is
6
+ # not allowed to make this change. Send it from outside the sandbox, or from a
7
+ # sandbox with unrestricted network access.
8
+ class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
9
+ # @!method error_code
10
+ # @return [Symbol, :sandbox_egress_restricted]
11
+
12
+ # @return [Anthropic::Models::SandboxEgressRestrictedErrorDetails]
13
+ def details
14
+ Anthropic::Internal::Type::Converter.coerce(
15
+ Anthropic::SandboxEgressRestrictedErrorDetails,
16
+ Anthropic::Internal::Util.dig(body, [:error, :details])
17
+ )
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute error_code
7
+ #
8
+ # @return [Symbol, :sandbox_egress_restricted]
9
+ required :error_code, const: :sandbox_egress_restricted
10
+
11
+ # @!method initialize(error_code: :sandbox_egress_restricted)
12
+ # The request came from a Claude sandbox with restricted network access, which is
13
+ # not allowed to make this change. Send it from outside the sandbox, or from a
14
+ # sandbox with unrestricted network access.
15
+ #
16
+ # @param error_code [Symbol, :sandbox_egress_restricted]
17
+ end
18
+ end
19
+ end
@@ -11,7 +11,6 @@ module Anthropic
11
11
  HIPAA = :hipaa
12
12
  INFERENCE_HOOKS = :inference_hooks
13
13
  THINKING = :thinking
14
- ZDR = :zdr
15
14
 
16
15
  # @!method self.values
17
16
  # @return [Array<Symbol>]
@@ -781,6 +781,10 @@ module Anthropic
781
781
  RequestBodyTooLargeAfterDecodingErrorDetails =
782
782
  Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
783
783
 
784
+ SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
785
+
786
+ SandboxEgressRestrictedErrorDetails = Anthropic::Models::SandboxEgressRestrictedErrorDetails
787
+
784
788
  SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
785
789
 
786
790
  ServerToolCaller = Anthropic::Models::ServerToolCaller
@@ -19,7 +19,7 @@ module Anthropic
19
19
  # {Anthropic::Models::Beta::Organization::Analytics::CostListParams} for more
20
20
  # details.
21
21
  #
22
- # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
22
+ # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
23
23
  #
24
24
  # @param starting_at [Time] Query param: Start of range, inclusive. RFC 3339 tz-aware. Must be within the la
25
25
  #
@@ -57,6 +57,8 @@ module Anthropic
57
57
  #
58
58
  # @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy] Query param: Row order. A metric ranks rows by that metric in the `order` direct
59
59
  #
60
+ # @param organization_ids [Array<String>, nil] Query param: Filter a parent organization's report to specific child organizatio
61
+ #
60
62
  # @param page [String, nil] Query param: Opaque cursor from a previous response's `next_page` field.
61
63
  #
62
64
  # @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Query param: Product surfaces to include. Defaults to all products.
@@ -105,6 +107,7 @@ module Anthropic
105
107
  :models,
106
108
  :order,
107
109
  :order_by,
110
+ :organization_ids,
108
111
  :page,
109
112
  :products,
110
113
  :rbac_group_ids,
@@ -140,6 +143,7 @@ module Anthropic
140
143
  models
141
144
  order
142
145
  order_by
146
+ organization_ids
143
147
  page
144
148
  products
145
149
  rbac_group_ids
@@ -20,7 +20,7 @@ module Anthropic
20
20
  # {Anthropic::Models::Beta::Organization::Analytics::UsageListParams} for more
21
21
  # details.
22
22
  #
23
- # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
23
+ # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
24
24
  #
25
25
  # @param starting_at [Time] Query param: Start of range, inclusive. RFC 3339 tz-aware. Must be within the la
26
26
  #
@@ -58,6 +58,8 @@ module Anthropic
58
58
  #
59
59
  # @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy] Query param: Row order. A metric ranks rows by that metric in the `order` direct
60
60
  #
61
+ # @param organization_ids [Array<String>, nil] Query param: Filter a parent organization's report to specific child organizatio
62
+ #
61
63
  # @param page [String, nil] Query param: Opaque cursor from a previous response's `next_page` field.
62
64
  #
63
65
  # @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Query param: Product surfaces to include. Defaults to all products.
@@ -106,6 +108,7 @@ module Anthropic
106
108
  :models,
107
109
  :order,
108
110
  :order_by,
111
+ :organization_ids,
109
112
  :page,
110
113
  :products,
111
114
  :rbac_group_ids,
@@ -141,6 +144,7 @@ module Anthropic
141
144
  models
142
145
  order
143
146
  order_by
147
+ organization_ids
144
148
  page
145
149
  products
146
150
  rbac_group_ids
@@ -43,6 +43,7 @@ module Anthropic
43
43
  #
44
44
  # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError]
45
45
  # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError]
46
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
46
47
  #
47
48
  # @return [Anthropic::Models::Beta::Organization::BetaAPIKey]
48
49
  #
@@ -58,6 +58,8 @@ module Anthropic
58
58
  #
59
59
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
60
60
  #
61
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
62
+ #
61
63
  # @return [Anthropic::Models::Beta::Organization::BetaComplianceSettings]
62
64
  #
63
65
  # @see Anthropic::Models::Beta::Organization::ComplianceSettingUpdateParams
@@ -24,6 +24,7 @@ module Anthropic
24
24
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
25
25
  #
26
26
  # @raise [Anthropic::Models::UserProfileNotFoundError]
27
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
27
28
  #
28
29
  # @return [Anthropic::Models::Beta::Organization::BetaExternalKey]
29
30
  #
@@ -86,6 +87,7 @@ module Anthropic
86
87
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
87
88
  #
88
89
  # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
90
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
89
91
  #
90
92
  # @return [Anthropic::Models::Beta::Organization::BetaExternalKey]
91
93
  #
@@ -149,6 +151,7 @@ module Anthropic
149
151
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
150
152
  #
151
153
  # @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
154
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
152
155
  #
153
156
  # @return [Anthropic::Models::Beta::Organization::ExternalKeyDeleteResponse]
154
157
  #
@@ -179,6 +182,8 @@ module Anthropic
179
182
  #
180
183
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
181
184
  #
185
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
186
+ #
182
187
  # @return [Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse]
183
188
  #
184
189
  # @see Anthropic::Models::Beta::Organization::ExternalKeyValidateParams
@@ -43,6 +43,8 @@ module Anthropic
43
43
  #
44
44
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
45
45
  #
46
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
47
+ #
46
48
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationIssuer]
47
49
  #
48
50
  # @see Anthropic::Models::Beta::Organization::Federation::IssuerCreateParams
@@ -133,6 +135,8 @@ module Anthropic
133
135
  #
134
136
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
135
137
  #
138
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
139
+ #
136
140
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationIssuer]
137
141
  #
138
142
  # @see Anthropic::Models::Beta::Organization::Federation::IssuerUpdateParams
@@ -216,6 +220,8 @@ module Anthropic
216
220
  #
217
221
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
218
222
  #
223
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
224
+ #
219
225
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationIssuer]
220
226
  #
221
227
  # @see Anthropic::Models::Beta::Organization::Federation::IssuerArchiveParams
@@ -81,6 +81,8 @@ module Anthropic
81
81
  #
82
82
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
83
83
  #
84
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
85
+ #
84
86
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationRuleWorkspace]
85
87
  #
86
88
  # @see Anthropic::Models::Beta::Organization::Federation::Rules::WorkspaceAddParams
@@ -124,6 +126,8 @@ module Anthropic
124
126
  #
125
127
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
126
128
  #
129
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
130
+ #
127
131
  # @return [Anthropic::Models::Beta::Organization::Federation::Rules::WorkspaceRemoveResponse]
128
132
  #
129
133
  # @see Anthropic::Models::Beta::Organization::Federation::Rules::WorkspaceRemoveParams
@@ -59,6 +59,8 @@ module Anthropic
59
59
  #
60
60
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
61
61
  #
62
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
63
+ #
62
64
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationRule]
63
65
  #
64
66
  # @see Anthropic::Models::Beta::Organization::Federation::RuleCreateParams
@@ -164,6 +166,8 @@ module Anthropic
164
166
  #
165
167
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
166
168
  #
169
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
170
+ #
167
171
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationRule]
168
172
  #
169
173
  # @see Anthropic::Models::Beta::Organization::Federation::RuleUpdateParams
@@ -252,6 +256,8 @@ module Anthropic
252
256
  #
253
257
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
254
258
  #
259
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
260
+ #
255
261
  # @return [Anthropic::Models::Beta::Organization::Federation::BetaFederationRule]
256
262
  #
257
263
  # @see Anthropic::Models::Beta::Organization::Federation::RuleArchiveParams
@@ -32,6 +32,7 @@ module Anthropic
32
32
  # @raise [Anthropic::Models::OrgMemberLimitExceededError]
33
33
  # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
34
34
  # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
35
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
35
36
  #
36
37
  # @return [Anthropic::Models::Beta::Organization::BetaOrganizationInvite]
37
38
  #
@@ -124,6 +125,8 @@ module Anthropic
124
125
  #
125
126
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
126
127
  #
128
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
129
+ #
127
130
  # @return [Anthropic::Models::Beta::Organization::InviteDeleteResponse]
128
131
  #
129
132
  # @see Anthropic::Models::Beta::Organization::InviteDeleteParams
@@ -61,6 +61,7 @@ module Anthropic
61
61
  #
62
62
  # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
63
63
  # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
64
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
64
65
  #
65
66
  # @return [Anthropic::Models::Beta::Organization::RBACGroups::BetaRBACGroupMember]
66
67
  #
@@ -97,6 +98,7 @@ module Anthropic
97
98
  #
98
99
  # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
99
100
  # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
101
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
100
102
  #
101
103
  # @return [Anthropic::Models::Beta::Organization::RBACGroups::BetaDeletedRBACGroupMember]
102
104
  #
@@ -19,6 +19,8 @@ module Anthropic
19
19
  #
20
20
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
21
21
  #
22
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
23
+ #
22
24
  # @return [Anthropic::Models::Beta::Organization::BetaRBACGroup]
23
25
  #
24
26
  # @see Anthropic::Models::Beta::Organization::RBACGroupCreateParams
@@ -77,6 +79,8 @@ module Anthropic
77
79
  #
78
80
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
79
81
  #
82
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
83
+ #
80
84
  # @return [Anthropic::Models::Beta::Organization::BetaRBACGroup]
81
85
  #
82
86
  # @see Anthropic::Models::Beta::Organization::RBACGroupUpdateParams
@@ -144,6 +148,7 @@ module Anthropic
144
148
  #
145
149
  # @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
146
150
  # @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
151
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
147
152
  #
148
153
  # @return [Anthropic::Models::Beta::Organization::BetaDeletedRBACGroup]
149
154
  #
@@ -86,6 +86,8 @@ module Anthropic
86
86
  #
87
87
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
88
88
  #
89
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
90
+ #
89
91
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember]
90
92
  #
91
93
  # @see Anthropic::Models::Beta::Organization::ServiceAccounts::WorkspaceAddParams
@@ -132,6 +134,8 @@ module Anthropic
132
134
  #
133
135
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
134
136
  #
137
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
138
+ #
135
139
  # @return [Anthropic::Models::Beta::Organization::ServiceAccounts::WorkspaceRemoveResponse]
136
140
  #
137
141
  # @see Anthropic::Models::Beta::Organization::ServiceAccounts::WorkspaceRemoveParams
@@ -38,6 +38,8 @@ module Anthropic
38
38
  #
39
39
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
40
40
  #
41
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
42
+ #
41
43
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccount]
42
44
  #
43
45
  # @see Anthropic::Models::Beta::Organization::ServiceAccountCreateParams
@@ -119,6 +121,8 @@ module Anthropic
119
121
  #
120
122
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
121
123
  #
124
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
125
+ #
122
126
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccount]
123
127
  #
124
128
  # @see Anthropic::Models::Beta::Organization::ServiceAccountUpdateParams
@@ -204,6 +208,8 @@ module Anthropic
204
208
  #
205
209
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
206
210
  #
211
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
212
+ #
207
213
  # @return [Anthropic::Models::Beta::Organization::BetaServiceAccount]
208
214
  #
209
215
  # @see Anthropic::Models::Beta::Organization::ServiceAccountArchiveParams
@@ -96,6 +96,8 @@ module Anthropic
96
96
  #
97
97
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
98
98
  #
99
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
100
+ #
99
101
  # @return [Anthropic::Models::Beta::Organization::SpendLimits::IncreaseRequestApproveResponse]
100
102
  #
101
103
  # @see Anthropic::Models::Beta::Organization::SpendLimits::IncreaseRequestApproveParams
@@ -131,6 +133,8 @@ module Anthropic
131
133
  #
132
134
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
133
135
  #
136
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
137
+ #
134
138
  # @return [Anthropic::Models::Beta::Organization::SpendLimits::BetaSpendLimitIncreaseRequest]
135
139
  #
136
140
  # @see Anthropic::Models::Beta::Organization::SpendLimits::IncreaseRequestDenyParams
@@ -102,7 +102,7 @@ module Anthropic
102
102
  #
103
103
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
104
104
  #
105
- # @raise [Anthropic::Models::Beta::BetaBillingFrozenError]
105
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
106
106
  # @raise [Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledError]
107
107
  #
108
108
  # @return [Anthropic::Models::Beta::Organization::SpendLimitDeleteResponse]
@@ -145,7 +145,7 @@ module Anthropic
145
145
  #
146
146
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
147
147
  #
148
- # @raise [Anthropic::Models::Beta::BetaBillingFrozenError]
148
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
149
149
  # @raise [Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledError]
150
150
  #
151
151
  # @return [Anthropic::Models::Beta::Organization::BetaSpendLimit]
@@ -42,6 +42,8 @@ module Anthropic
42
42
  #
43
43
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
44
44
  #
45
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
46
+ #
45
47
  # @return [Anthropic::Models::Beta::Organization::BetaOrganizationUser]
46
48
  #
47
49
  # @see Anthropic::Models::Beta::Organization::UserUpdateParams
@@ -108,6 +110,7 @@ module Anthropic
108
110
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
109
111
  #
110
112
  # @raise [Anthropic::Models::Organization::CannotRemoveLastMemberError]
113
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
111
114
  # @raise [Anthropic::Models::ConcurrentMembershipChangeError]
112
115
  #
113
116
  # @return [Anthropic::Models::Beta::Organization::UserRemoveResponse]
@@ -147,10 +150,10 @@ module Anthropic
147
150
  #
148
151
  # Every request must include the beta header
149
152
  # `anthropic-beta: admin-user-sign-out-2026-10-08`. A request without it returns
150
- # `400`. Sign-out is in beta. Anthropic turns it on for each organization and has
151
- # turned it on for every Claude Enterprise organization; until yours is on,
152
- # requests also return `400`. In a Claude Enterprise organization, an API key
153
- # needs the `write:members` scope; a key without it gets `403`.
153
+ # `400`. Sign-out is in beta for Claude Enterprise organizations. In an
154
+ # organization where it is not enabled, a request returns `400` with `error_code`
155
+ # `organization_not_enrolled_in_beta`. In a Claude Enterprise organization, an API
156
+ # key needs the `write:members` scope; a key without it gets `403`.
154
157
  #
155
158
  # Some parameter documentations has been truncated, see
156
159
  # {Anthropic::Models::Beta::Organization::UserSignOutParams} for more details.
@@ -170,6 +173,7 @@ module Anthropic
170
173
  # @raise [Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminError]
171
174
  # @raise [Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerError]
172
175
  # @raise [Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberError]
176
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
173
177
  #
174
178
  # @return [Anthropic::Models::Beta::Organization::BetaOrganizationUser]
175
179
  #
@@ -218,6 +218,8 @@ module Anthropic
218
218
  #
219
219
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
220
220
  #
221
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
222
+ #
221
223
  # @return [Anthropic::Models::Beta::Organization::BetaDeletedOrganizationWebhookEndpoint]
222
224
  #
223
225
  # @see Anthropic::Models::Beta::Organization::WebhookDeleteParams
@@ -258,6 +260,8 @@ module Anthropic
258
260
  #
259
261
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
260
262
  #
263
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
264
+ #
261
265
  # @return [Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointSigningSecret]
262
266
  #
263
267
  # @see Anthropic::Models::Beta::Organization::WebhookRegenerateSigningSecretParams
@@ -53,6 +53,7 @@ module Anthropic
53
53
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
54
54
  #
55
55
  # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
56
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
56
57
  #
57
58
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspaceMember]
58
59
  #
@@ -131,6 +132,7 @@ module Anthropic
131
132
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
133
  #
133
134
  # @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
135
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
134
136
  #
135
137
  # @return [Anthropic::Models::Beta::Organization::BetaWorkspaceMember]
136
138
  #
@@ -161,6 +163,8 @@ module Anthropic
161
163
  #
162
164
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
163
165
  #
166
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
167
+ #
164
168
  # @return [Anthropic::Models::Beta::Organization::Workspaces::MemberRemoveResponse]
165
169
  #
166
170
  # @see Anthropic::Models::Beta::Organization::Workspaces::MemberRemoveParams