anthropic 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +8 -0
- data/lib/anthropic/helpers/bedrock/client.rb +12 -2
- data/lib/anthropic/internal/tracing.rb +16 -0
- data/lib/anthropic/internal/transport/base_client.rb +5 -1
- data/lib/anthropic/internal/util.rb +5 -4
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/message_create_params.rb +6 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +2 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rb +29 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rb +27 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rb +29 -0
- data/lib/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rb +27 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rb +68 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rb +62 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rb +62 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rb +23 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rb +23 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rb +50 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rb +80 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rb +69 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rb +70 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rb +24 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rb +33 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rb +35 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rb +62 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rb +35 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rb +47 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rb +43 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rb +53 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rb +43 -0
- data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rb +53 -0
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +7 -1
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +8 -2
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb +1 -1
- data/lib/anthropic/models/beta_request_body_timeout_error.rb +20 -0
- data/lib/anthropic/models/beta_request_body_timeout_error_details.rb +18 -0
- data/lib/anthropic/models/error_details.rb +62 -5
- data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
- data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
- data/lib/anthropic/models/organization/organization_rate_limit_value.rb +1 -1
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +7 -1
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +8 -2
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb +1 -1
- data/lib/anthropic/models/sandbox_egress_restricted_error.rb +1 -1
- data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +1 -1
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
- data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
- data/lib/anthropic/models.rb +8 -0
- data/lib/anthropic/resources/beta/messages.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +4 -3
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +3 -2
- data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb +141 -0
- data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rb +126 -0
- data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rb +252 -0
- data/lib/anthropic/resources/beta/organization/claude_code/managed_settings.rb +35 -0
- data/lib/anthropic/resources/beta/organization/claude_code.rb +23 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +2 -2
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +5 -0
- data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +4 -0
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +2 -0
- data/lib/anthropic/resources/beta/organization/plugins.rb +3 -0
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/messages.rb +3 -0
- data/lib/anthropic/resources/organization/external_keys.rb +2 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +44 -0
- data/rbi/anthropic/internal/tracing.rbi +16 -0
- data/rbi/anthropic/internal/util.rbi +8 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_value.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rbi +30 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rbi +37 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rbi +30 -0
- data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rbi +37 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rbi +101 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rbi +82 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rbi +82 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rbi +70 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rbi +114 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rbi +104 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rbi +48 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rbi +136 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rbi +82 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rbi +97 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rbi +82 -0
- data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rbi +94 -0
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +7 -1
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +14 -2
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbi +2 -2
- data/rbi/anthropic/models/beta_request_body_timeout_error.rbi +17 -0
- data/rbi/anthropic/models/beta_request_body_timeout_error_details.rbi +28 -0
- data/rbi/anthropic/models/error_details.rbi +57 -0
- data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
- data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
- data/rbi/anthropic/models/organization/organization_rate_limit_value.rbi +2 -2
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +7 -1
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +14 -2
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_value.rbi +2 -2
- data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +1 -1
- data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +1 -1
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
- data/rbi/anthropic/models.rbi +10 -0
- data/rbi/anthropic/resources/beta/messages.rbi +18 -0
- data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +4 -3
- data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +3 -2
- data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rbi +112 -0
- data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rbi +86 -0
- data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rbi +180 -0
- data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings.rbi +39 -0
- data/rbi/anthropic/resources/beta/organization/claude_code.rbi +23 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization.rbi +3 -0
- data/rbi/anthropic/resources/organization/external_keys.rbi +2 -2
- data/sig/anthropic/internal/tracing.rbs +8 -0
- data/sig/anthropic/internal/util.rbs +2 -1
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rbs +15 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rbs +15 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rbs +24 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rbs +15 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rbs +15 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rbs +15 -0
- data/sig/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rbs +44 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rbs +44 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rbs +38 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rbs +53 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rbs +49 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rbs +21 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rbs +21 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rbs +21 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rbs +33 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rbs +36 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rbs +61 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rbs +36 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rbs +50 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rbs +48 -0
- data/sig/anthropic/models/beta_request_body_timeout_error.rbs +9 -0
- data/sig/anthropic/models/beta_request_body_timeout_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +57 -0
- data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
- data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rbs +28 -0
- data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rbs +26 -0
- data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rbs +41 -0
- data/sig/anthropic/resources/beta/organization/claude_code/managed_settings.rbs +19 -0
- data/sig/anthropic/resources/beta/organization/claude_code.rbs +13 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +134 -2
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeCode
|
|
8
|
+
class ManagedSettings
|
|
9
|
+
class RBACGroups
|
|
10
|
+
# Retrieve an RBAC Group's Claude Code managed settings.
|
|
11
|
+
#
|
|
12
|
+
# **Accepted credentials:** an organization-level Admin API key with the
|
|
13
|
+
# `read:claude_code_managed_settings` scope.
|
|
14
|
+
#
|
|
15
|
+
# Every request must include the beta header
|
|
16
|
+
# `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
|
|
17
|
+
# it, or from an organization not enabled for this beta, returns `404`. The Claude
|
|
18
|
+
# Code Managed Settings API is in beta and is available to Claude Enterprise
|
|
19
|
+
# organizations only.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
rbac_group_id: String,
|
|
23
|
+
betas:
|
|
24
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
25
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
26
|
+
).returns(
|
|
27
|
+
Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeRBACGroupManagedSettings
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def retrieve(
|
|
31
|
+
# The RBAC Group's ID, prefixed `rbac_group_`.
|
|
32
|
+
rbac_group_id,
|
|
33
|
+
# This endpoint is in beta: requests must send
|
|
34
|
+
# `ce-claude-code-managed-settings-2026-10-06` in this header.
|
|
35
|
+
betas: nil,
|
|
36
|
+
request_options: {}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# List the RBAC Groups that have Claude Code managed settings, highest precedence
|
|
41
|
+
# first.
|
|
42
|
+
#
|
|
43
|
+
# Each entry gives the group's status and timestamps, not its settings. The list
|
|
44
|
+
# includes deleted groups that still have settings, and leaves out the default
|
|
45
|
+
# settings. If the order changes between pages, the request returns `409`: list
|
|
46
|
+
# again from the first page.
|
|
47
|
+
#
|
|
48
|
+
# **Accepted credentials:** an organization-level Admin API key with the
|
|
49
|
+
# `read:claude_code_managed_settings` scope.
|
|
50
|
+
#
|
|
51
|
+
# Every request must include the beta header
|
|
52
|
+
# `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
|
|
53
|
+
# it, or from an organization not enabled for this beta, returns `404`. The Claude
|
|
54
|
+
# Code Managed Settings API is in beta and is available to Claude Enterprise
|
|
55
|
+
# organizations only.
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
limit: Integer,
|
|
59
|
+
page: T.nilable(String),
|
|
60
|
+
betas:
|
|
61
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
62
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
63
|
+
).returns(
|
|
64
|
+
Anthropic::Internal::PageCursor[
|
|
65
|
+
Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeRBACGroupManagedSettingsSummary
|
|
66
|
+
]
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def list(
|
|
70
|
+
# Query param: Number of items to return per page.
|
|
71
|
+
#
|
|
72
|
+
# Defaults to `20`. Ranges from `1` to `100`.
|
|
73
|
+
limit: nil,
|
|
74
|
+
# Query param: Optionally set to the `next_page` token from the previous response.
|
|
75
|
+
page: nil,
|
|
76
|
+
# Header param: This endpoint is in beta: requests must send
|
|
77
|
+
# `ce-claude-code-managed-settings-2026-10-06` in this header.
|
|
78
|
+
betas: nil,
|
|
79
|
+
request_options: {}
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Delete an RBAC Group's Claude Code managed settings and remove the group from
|
|
84
|
+
# `rbac_group_order`.
|
|
85
|
+
#
|
|
86
|
+
# A group with no settings returns `404` with the error code
|
|
87
|
+
# `rbac_group_managed_settings_not_found`. That code on a retry of a delete that
|
|
88
|
+
# returned `503` means the settings are gone.
|
|
89
|
+
#
|
|
90
|
+
# **Accepted credentials:** an organization-level Admin API key with the
|
|
91
|
+
# `write:claude_code_managed_settings` scope.
|
|
92
|
+
#
|
|
93
|
+
# Every request must include the beta header
|
|
94
|
+
# `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
|
|
95
|
+
# it, or from an organization not enabled for this beta, returns `404`. The Claude
|
|
96
|
+
# Code Managed Settings API is in beta and is available to Claude Enterprise
|
|
97
|
+
# organizations only.
|
|
98
|
+
#
|
|
99
|
+
# A write that returns `503` may have applied. Retrying it is safe.
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
rbac_group_id: String,
|
|
103
|
+
betas:
|
|
104
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
105
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
106
|
+
).returns(
|
|
107
|
+
Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaDeletedClaudeCodeRBACGroupManagedSettings
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
def delete(
|
|
111
|
+
# The RBAC Group's ID, prefixed `rbac_group_`.
|
|
112
|
+
rbac_group_id,
|
|
113
|
+
# This endpoint is in beta: requests must send
|
|
114
|
+
# `ce-claude-code-managed-settings-2026-10-06` in this header.
|
|
115
|
+
betas: nil,
|
|
116
|
+
request_options: {}
|
|
117
|
+
)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Create or replace an RBAC Group's Claude Code managed settings.
|
|
121
|
+
#
|
|
122
|
+
# New settings join the end of `rbac_group_order`, and existing settings keep
|
|
123
|
+
# their place. Until the group is moved up, its members who also belong to an
|
|
124
|
+
# earlier group keep that group's settings. In `organization` mode a write changes
|
|
125
|
+
# no member's settings until the organization switches to `rbac_groups` mode. Once
|
|
126
|
+
# a group has settings, that switch no longer copies the organization settings
|
|
127
|
+
# into default settings, so members in no RBAC Group in `rbac_group_order` receive
|
|
128
|
+
# no settings unless you set the default settings before the switch.
|
|
129
|
+
#
|
|
130
|
+
# Get the group's ID from the RBAC Groups API. One key can hold `read:rbac_groups`
|
|
131
|
+
# and `write:claude_code_managed_settings`.
|
|
132
|
+
#
|
|
133
|
+
# **Accepted credentials:** an organization-level Admin API key with the
|
|
134
|
+
# `write:claude_code_managed_settings` scope.
|
|
135
|
+
#
|
|
136
|
+
# Every request must include the beta header
|
|
137
|
+
# `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
|
|
138
|
+
# it, or from an organization not enabled for this beta, returns `404`. The Claude
|
|
139
|
+
# Code Managed Settings API is in beta and is available to Claude Enterprise
|
|
140
|
+
# organizations only.
|
|
141
|
+
#
|
|
142
|
+
# A write that returns `503` may have applied. Retrying it is safe.
|
|
143
|
+
sig do
|
|
144
|
+
params(
|
|
145
|
+
rbac_group_id: String,
|
|
146
|
+
settings: T::Hash[Symbol, T.anything],
|
|
147
|
+
betas:
|
|
148
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
149
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
150
|
+
).returns(
|
|
151
|
+
Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeRBACGroupManagedSettings
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
def set(
|
|
155
|
+
# Path param: The RBAC Group's ID, prefixed `rbac_group_`.
|
|
156
|
+
rbac_group_id,
|
|
157
|
+
# Body param: The whole settings document, a JSON object of Claude Code managed
|
|
158
|
+
# settings. It replaces any stored document. At most 1 MiB as the server stores
|
|
159
|
+
# it, which can be larger than the request body.
|
|
160
|
+
settings:,
|
|
161
|
+
# Header param: This endpoint is in beta: requests must send
|
|
162
|
+
# `ce-claude-code-managed-settings-2026-10-06` in this header.
|
|
163
|
+
betas: nil,
|
|
164
|
+
request_options: {}
|
|
165
|
+
)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# @api private
|
|
169
|
+
sig do
|
|
170
|
+
params(client: Anthropic::Client).returns(T.attached_class)
|
|
171
|
+
end
|
|
172
|
+
def self.new(client:)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeCode
|
|
8
|
+
class ManagedSettings
|
|
9
|
+
sig do
|
|
10
|
+
returns(
|
|
11
|
+
Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::Configuration
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
attr_reader :configuration
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::RBACGroups
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :rbac_groups
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::RBACGroupDefault
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
attr_reader :rbac_group_default
|
|
29
|
+
|
|
30
|
+
# @api private
|
|
31
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
32
|
+
def self.new(client:)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeCode
|
|
8
|
+
sig do
|
|
9
|
+
returns(
|
|
10
|
+
Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
attr_reader :managed_settings
|
|
14
|
+
|
|
15
|
+
# @api private
|
|
16
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
17
|
+
def self.new(client:)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -57,8 +57,8 @@ module Anthropic
|
|
|
57
57
|
# Partially update an external key config. Omitted fields are left unchanged.
|
|
58
58
|
#
|
|
59
59
|
# `display_name` is always editable. `geo` and `provider_config` cannot be changed
|
|
60
|
-
# once any workspace references this config,
|
|
61
|
-
#
|
|
60
|
+
# once any workspace references this config, and a Google Cloud key's provider and
|
|
61
|
+
# `key_name` cannot be changed at all.
|
|
62
62
|
sig do
|
|
63
63
|
params(
|
|
64
64
|
external_key_id: String,
|
|
@@ -65,6 +65,9 @@ module Anthropic
|
|
|
65
65
|
sig { returns(Anthropic::Resources::Beta::Organization::Webhooks) }
|
|
66
66
|
attr_reader :webhooks
|
|
67
67
|
|
|
68
|
+
sig { returns(Anthropic::Resources::Beta::Organization::ClaudeCode) }
|
|
69
|
+
attr_reader :claude_code
|
|
70
|
+
|
|
68
71
|
sig { returns(Anthropic::Resources::Beta::Organization::ClaudeTag) }
|
|
69
72
|
attr_reader :claude_tag
|
|
70
73
|
|
|
@@ -56,8 +56,8 @@ module Anthropic
|
|
|
56
56
|
# Partially update an external key config. Omitted fields are left unchanged.
|
|
57
57
|
#
|
|
58
58
|
# `display_name` is always editable. `geo` and `provider_config` cannot be changed
|
|
59
|
-
# once any workspace references this config,
|
|
60
|
-
#
|
|
59
|
+
# once any workspace references this config, and a Google Cloud key's provider and
|
|
60
|
+
# `key_name` cannot be changed at all.
|
|
61
61
|
sig do
|
|
62
62
|
params(
|
|
63
63
|
external_key_id: String,
|
|
@@ -306,6 +306,14 @@ module Anthropic
|
|
|
306
306
|
ORGANIZATION_WEBHOOKS_LIST: "anthropic.organization.webhooks.list"
|
|
307
307
|
ORGANIZATION_WEBHOOKS_DELETE: "anthropic.organization.webhooks.delete"
|
|
308
308
|
ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET: "anthropic.organization.webhooks.regenerate_signing_secret"
|
|
309
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_RETRIEVE: "anthropic.organization.claude_code.managed_settings.configuration.retrieve"
|
|
310
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_UPDATE: "anthropic.organization.claude_code.managed_settings.configuration.update"
|
|
311
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_RETRIEVE: "anthropic.organization.claude_code.managed_settings.rbac_groups.retrieve"
|
|
312
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_LIST: "anthropic.organization.claude_code.managed_settings.rbac_groups.list"
|
|
313
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_DELETE: "anthropic.organization.claude_code.managed_settings.rbac_groups.delete"
|
|
314
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_SET: "anthropic.organization.claude_code.managed_settings.rbac_groups.set"
|
|
315
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_RETRIEVE: "anthropic.organization.claude_code.managed_settings.rbac_group_default.retrieve"
|
|
316
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_UPDATE: "anthropic.organization.claude_code.managed_settings.rbac_group_default.update"
|
|
309
317
|
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_CREATE: "anthropic.organization.claude_tag.slack_channels.create"
|
|
310
318
|
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_RETRIEVE: "anthropic.organization.claude_tag.slack_channels.retrieve"
|
|
311
319
|
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_UPDATE: "anthropic.organization.claude_tag.slack_channels.update"
|
|
@@ -57,6 +57,7 @@ module Anthropic
|
|
|
57
57
|
| :"skills-2025-10-02"
|
|
58
58
|
| :"cache-diagnosis-2026-04-07"
|
|
59
59
|
| :"ce-user-management-2026-07-13"
|
|
60
|
+
| :"ce-claude-code-managed-settings-2026-10-06"
|
|
60
61
|
| :"user-profiles-billing-2026-10-01"
|
|
61
62
|
| String
|
|
62
63
|
|
|
@@ -121,6 +122,7 @@ module Anthropic
|
|
|
121
122
|
SKILLS_2025_10_02: :"skills-2025-10-02"
|
|
122
123
|
CACHE_DIAGNOSIS_2026_04_07: :"cache-diagnosis-2026-04-07"
|
|
123
124
|
CE_USER_MANAGEMENT_2026_07_13: :"ce-user-management-2026-07-13"
|
|
125
|
+
CE_CLAUDE_CODE_MANAGED_SETTINGS_2026_10_06: :"ce-claude-code-managed-settings-2026-10-06"
|
|
124
126
|
USER_PROFILES_BILLING_2026_10_01: :"user-profiles-billing-2026-10-01"
|
|
125
127
|
end
|
|
126
128
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
class BetaRBACGroupNotFoundError < Anthropic::Errors::NotFoundError
|
|
6
|
+
def error_code: -> :rbac_group_not_found
|
|
7
|
+
|
|
8
|
+
def details: -> Anthropic::Beta::Organization::BetaRBACGroupNotFoundErrorDetails
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_rbac_group_not_found_error_details =
|
|
6
|
+
{ error_code: :rbac_group_not_found }
|
|
7
|
+
|
|
8
|
+
class BetaRBACGroupNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor error_code: :rbac_group_not_found
|
|
10
|
+
|
|
11
|
+
def initialize: (?error_code: :rbac_group_not_found) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { error_code: :rbac_group_not_found }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/sig/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rbs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
class BetaCMEKFeatureUnsupportedError < Anthropic::Errors::BadRequestError
|
|
7
|
+
def error_code: -> :cmek_feature_unsupported
|
|
8
|
+
|
|
9
|
+
def details: -> Anthropic::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
type beta_cmek_feature_unsupported_error_details =
|
|
7
|
+
{ error_code: :cmek_feature_unsupported }
|
|
8
|
+
|
|
9
|
+
class BetaCMEKFeatureUnsupportedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :cmek_feature_unsupported
|
|
11
|
+
|
|
12
|
+
def initialize: (?error_code: :cmek_feature_unsupported) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { error_code: :cmek_feature_unsupported }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
class BetaRBACGroupManagedSettingsNotFoundError < Anthropic::Errors::NotFoundError
|
|
7
|
+
def error_code: -> :rbac_group_managed_settings_not_found
|
|
8
|
+
|
|
9
|
+
def details: -> Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
type beta_rbac_group_managed_settings_not_found_error_details =
|
|
7
|
+
{ error_code: :rbac_group_managed_settings_not_found }
|
|
8
|
+
|
|
9
|
+
class BetaRBACGroupManagedSettingsNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :rbac_group_managed_settings_not_found
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?error_code: :rbac_group_managed_settings_not_found
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
error_code: :rbac_group_managed_settings_not_found
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
class BetaRBACGroupOrderLimitExceededError < Anthropic::Errors::BadRequestError
|
|
7
|
+
def error_code: -> :rbac_group_order_limit_exceeded
|
|
8
|
+
|
|
9
|
+
def details: -> Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
type beta_rbac_group_order_limit_exceeded_error_details =
|
|
7
|
+
{ error_code: :rbac_group_order_limit_exceeded }
|
|
8
|
+
|
|
9
|
+
class BetaRBACGroupOrderLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :rbac_group_order_limit_exceeded
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?error_code: :rbac_group_order_limit_exceeded
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { error_code: :rbac_group_order_limit_exceeded }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
class BetaSettingsDocumentLimitExceededError < Anthropic::Errors::BadRequestError
|
|
7
|
+
def error_code: -> :settings_document_limit_exceeded
|
|
8
|
+
|
|
9
|
+
def details: -> Anthropic::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
type beta_settings_document_limit_exceeded_error_details =
|
|
7
|
+
{ error_code: :settings_document_limit_exceeded }
|
|
8
|
+
|
|
9
|
+
class BetaSettingsDocumentLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :settings_document_limit_exceeded
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?error_code: :settings_document_limit_exceeded
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { error_code: :settings_document_limit_exceeded }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
class BetaSettingsHistoryLimitExceededError < Anthropic::Errors::BadRequestError
|
|
7
|
+
def error_code: -> :settings_history_limit_exceeded
|
|
8
|
+
|
|
9
|
+
def details: -> Anthropic::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
type beta_settings_history_limit_exceeded_error_details =
|
|
7
|
+
{ error_code: :settings_history_limit_exceeded }
|
|
8
|
+
|
|
9
|
+
class BetaSettingsHistoryLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :settings_history_limit_exceeded
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?error_code: :settings_history_limit_exceeded
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { error_code: :settings_history_limit_exceeded }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
module ManagedSettings
|
|
7
|
+
type beta_claude_code_managed_settings_configuration =
|
|
8
|
+
{
|
|
9
|
+
mode: Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode,
|
|
10
|
+
mode_updated_at: Time?,
|
|
11
|
+
rbac_group_order: ::Array[String],
|
|
12
|
+
rbac_group_order_version: String,
|
|
13
|
+
type: :claude_code_managed_settings_configuration
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class BetaClaudeCodeManagedSettingsConfiguration < Anthropic::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor mode: Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode
|
|
18
|
+
|
|
19
|
+
attr_accessor mode_updated_at: Time?
|
|
20
|
+
|
|
21
|
+
attr_accessor rbac_group_order: ::Array[String]
|
|
22
|
+
|
|
23
|
+
attr_accessor rbac_group_order_version: String
|
|
24
|
+
|
|
25
|
+
attr_accessor type: :claude_code_managed_settings_configuration
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
mode: Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode,
|
|
29
|
+
mode_updated_at: Time?,
|
|
30
|
+
rbac_group_order: ::Array[String],
|
|
31
|
+
rbac_group_order_version: String,
|
|
32
|
+
?type: :claude_code_managed_settings_configuration
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
mode: Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode,
|
|
37
|
+
mode_updated_at: Time?,
|
|
38
|
+
rbac_group_order: ::Array[String],
|
|
39
|
+
rbac_group_order_version: String,
|
|
40
|
+
type: :claude_code_managed_settings_configuration
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
module ClaudeCode
|
|
6
|
+
module ManagedSettings
|
|
7
|
+
type beta_claude_code_managed_settings_mode =
|
|
8
|
+
Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsOrganizationMode
|
|
9
|
+
| Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsRBACGroupsMode
|
|
10
|
+
|
|
11
|
+
module BetaClaudeCodeManagedSettingsMode
|
|
12
|
+
extend Anthropic::Internal::Type::Union
|
|
13
|
+
|
|
14
|
+
type type_ = :organization | :rbac_groups
|
|
15
|
+
|
|
16
|
+
module Type
|
|
17
|
+
extend Anthropic::Internal::Type::Enum
|
|
18
|
+
|
|
19
|
+
ORGANIZATION: :organization
|
|
20
|
+
RBAC_GROUPS: :rbac_groups
|
|
21
|
+
|
|
22
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsMode::type_]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode]
|
|
26
|
+
|
|
27
|
+
def self.new:
|
|
28
|
+
(
|
|
29
|
+
type: :organization | "organization"
|
|
30
|
+
) -> Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsOrganizationMode
|
|
31
|
+
| (
|
|
32
|
+
type: :rbac_groups | "rbac_groups"
|
|
33
|
+
) -> Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsRBACGroupsMode
|
|
34
|
+
| (
|
|
35
|
+
type: Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsMode::type_
|
|
36
|
+
| String
|
|
37
|
+
) -> Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::beta_claude_code_managed_settings_mode
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|