anthropic 2.10.0 → 2.11.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 +19 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +7 -0
- 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/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 +50 -3
- 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.rb +4 -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/organization/external_keys.rb +2 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +42 -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/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 +42 -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.rbi +5 -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 +46 -0
- data/sig/anthropic/models.rbs +4 -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 +128 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55b3e584342176017dc9ea861846ac8a115190ba9442b306994da8b538c57dfa
|
|
4
|
+
data.tar.gz: 68cde5da0fa503a6b22985d38a62d7c52329b620572e88011df8086f7484849e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f04fc92bd102e1482975ca6ff9a161059e2ecd9fc6fbe5515ca73d5b32f4ff4048eb6dc2dfb574c833e32d9433653647bd3c4581a67042f2d85c589462ff865b
|
|
7
|
+
data.tar.gz: ffde920ee7f22a1a52e4c65364b740adfb05d14318bcc47e3c1d0764d3adbc5cc2c7d7da12bd61fe020406e3ceb1e4b5b04f46744978e17c62d9bfd49c9f6370
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.11.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v2.10.0...v2.11.0) (2026-11-19)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **api:** add Claude Code managed settings to the Admin API
|
|
8
|
+
* **api:** add the sandbox_egress_restricted error to Admin API plugin methods
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **client:** return the bytes of downloaded JSON and JSONL files
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Chores
|
|
17
|
+
|
|
18
|
+
* **docs:** explain how the input-token rate limit types differ
|
|
19
|
+
* **docs:** name Claude Security in the usage and cost report descriptions
|
|
20
|
+
* **docs:** note that a Google Cloud external key's provider and key_name can't be changed
|
|
21
|
+
|
|
3
22
|
## [2.10.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v2.9.0...v2.10.0) (2026-11-17)
|
|
4
23
|
|
|
5
24
|
### Features
|
data/README.md
CHANGED
|
@@ -34,6 +34,7 @@ module Anthropic
|
|
|
34
34
|
[400, "cannot_sign_out_self"] => Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfError,
|
|
35
35
|
[400, "claude_code_key_creator_not_member"] => Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError,
|
|
36
36
|
[400, "claude_code_version_too_old"] => Anthropic::Models::ClaudeCodeVersionTooOldError,
|
|
37
|
+
[400, "cmek_feature_unsupported"] => Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedError,
|
|
37
38
|
[400, "cmek_key_disabled"] => Anthropic::Models::CMEKKeyDisabledError,
|
|
38
39
|
[400, "cmek_key_network_blocked"] => Anthropic::Models::CMEKKeyNetworkBlockedError,
|
|
39
40
|
[400, "compaction_block_ambiguous"] => Anthropic::Models::CompactionBlockAmbiguousError,
|
|
@@ -61,10 +62,14 @@ module Anthropic
|
|
|
61
62
|
[400, "organization_type_not_supported"] => Anthropic::Models::OrganizationTypeNotSupportedError,
|
|
62
63
|
[400, "parent_organization_required"] => Anthropic::Models::ParentOrganizationRequiredError,
|
|
63
64
|
[400, "rbac_group_grants_owner_access"] => Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError,
|
|
65
|
+
[400, "rbac_group_order_limit_exceeded"] => Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededError,
|
|
64
66
|
[400, "rbac_group_owner_access_unconfirmed"] => Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError,
|
|
65
67
|
[400, "request_body_encoding_invalid"] => Anthropic::Models::RequestBodyEncodingInvalidError,
|
|
66
68
|
[400, "request_body_encoding_unsupported"] => Anthropic::Models::RequestBodyEncodingUnsupportedError,
|
|
69
|
+
[400, "request_body_timeout"] => Anthropic::Models::BetaRequestBodyTimeoutError,
|
|
67
70
|
[400, "scan_failed"] => Anthropic::Models::Beta::Organization::BetaScanFailedError,
|
|
71
|
+
[400, "settings_document_limit_exceeded"] => Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededError,
|
|
72
|
+
[400, "settings_history_limit_exceeded"] => Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededError,
|
|
68
73
|
[400, "slack_channel_set_up_settings_refused"] => Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedError,
|
|
69
74
|
[400, "storage_quota_exceeded"] => Anthropic::Models::StorageQuotaExceededError,
|
|
70
75
|
[400, "thread_already_continued"] => Anthropic::Models::ThreadAlreadyContinuedError,
|
|
@@ -97,6 +102,8 @@ module Anthropic
|
|
|
97
102
|
[403, "user_profile_not_billable"] => Anthropic::Models::UserProfileNotBillableError,
|
|
98
103
|
[404, "environment_not_found"] => Anthropic::Models::Beta::BetaEnvironmentNotFoundError,
|
|
99
104
|
[404, "file_expired"] => Anthropic::Models::FileExpiredError,
|
|
105
|
+
[404, "rbac_group_managed_settings_not_found"] => Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundError,
|
|
106
|
+
[404, "rbac_group_not_found"] => Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundError,
|
|
100
107
|
[404, "rbac_role_not_found"] => Anthropic::Models::RBACRoleNotFoundError,
|
|
101
108
|
[404, "slack_channel_set_up_environment_not_found"] => Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError,
|
|
102
109
|
[404, "thread_not_found"] => Anthropic::Models::ThreadNotFoundError,
|
|
@@ -354,6 +354,22 @@ module Anthropic
|
|
|
354
354
|
ORGANIZATION_WEBHOOKS_DELETE = "anthropic.organization.webhooks.delete"
|
|
355
355
|
ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET =
|
|
356
356
|
"anthropic.organization.webhooks.regenerate_signing_secret"
|
|
357
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_RETRIEVE =
|
|
358
|
+
"anthropic.organization.claude_code.managed_settings.configuration.retrieve"
|
|
359
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_UPDATE =
|
|
360
|
+
"anthropic.organization.claude_code.managed_settings.configuration.update"
|
|
361
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_RETRIEVE =
|
|
362
|
+
"anthropic.organization.claude_code.managed_settings.rbac_groups.retrieve"
|
|
363
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_LIST =
|
|
364
|
+
"anthropic.organization.claude_code.managed_settings.rbac_groups.list"
|
|
365
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_DELETE =
|
|
366
|
+
"anthropic.organization.claude_code.managed_settings.rbac_groups.delete"
|
|
367
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_SET =
|
|
368
|
+
"anthropic.organization.claude_code.managed_settings.rbac_groups.set"
|
|
369
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_RETRIEVE =
|
|
370
|
+
"anthropic.organization.claude_code.managed_settings.rbac_group_default.retrieve"
|
|
371
|
+
ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_UPDATE =
|
|
372
|
+
"anthropic.organization.claude_code.managed_settings.rbac_group_default.update"
|
|
357
373
|
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_CREATE = "anthropic.organization.claude_tag.slack_channels.create"
|
|
358
374
|
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_RETRIEVE =
|
|
359
375
|
"anthropic.organization.claude_tag.slack_channels.retrieve"
|
|
@@ -866,7 +866,11 @@ module Anthropic
|
|
|
866
866
|
)
|
|
867
867
|
yield(status, headers) if block_given?
|
|
868
868
|
|
|
869
|
-
decoded = Anthropic::Internal::Util.decode_content(
|
|
869
|
+
decoded = Anthropic::Internal::Util.decode_content(
|
|
870
|
+
headers,
|
|
871
|
+
stream: stream,
|
|
872
|
+
binary: model == StringIO
|
|
873
|
+
)
|
|
870
874
|
case req
|
|
871
875
|
in {stream: Class => st}
|
|
872
876
|
st.new(
|
|
@@ -806,12 +806,13 @@ module Anthropic
|
|
|
806
806
|
# @param headers [Hash{String=>String}]
|
|
807
807
|
# @param stream [Enumerable<String>]
|
|
808
808
|
# @param suppress_error [Boolean]
|
|
809
|
+
# @param binary [Boolean]
|
|
809
810
|
#
|
|
810
811
|
# @raise [JSON::ParserError]
|
|
811
812
|
# @return [Object]
|
|
812
|
-
def decode_content(headers, stream:, suppress_error: false)
|
|
813
|
+
def decode_content(headers, stream:, suppress_error: false, binary: false)
|
|
813
814
|
case (content_type = headers["content-type"])
|
|
814
|
-
in Anthropic::Internal::Util::JSON_CONTENT
|
|
815
|
+
in Anthropic::Internal::Util::JSON_CONTENT unless binary
|
|
815
816
|
return nil if (json = stream.to_a.join).empty?
|
|
816
817
|
|
|
817
818
|
begin
|
|
@@ -820,7 +821,7 @@ module Anthropic
|
|
|
820
821
|
raise e unless suppress_error
|
|
821
822
|
json
|
|
822
823
|
end
|
|
823
|
-
in Anthropic::Internal::Util::JSONL_CONTENT
|
|
824
|
+
in Anthropic::Internal::Util::JSONL_CONTENT unless binary
|
|
824
825
|
lines = decode_lines(stream)
|
|
825
826
|
chain_fused(lines) do |y|
|
|
826
827
|
lines.each do
|
|
@@ -829,7 +830,7 @@ module Anthropic
|
|
|
829
830
|
y << JSON.parse(_1, symbolize_names: true)
|
|
830
831
|
end
|
|
831
832
|
end
|
|
832
|
-
in %r{^text/event-stream}
|
|
833
|
+
in %r{^text/event-stream} unless binary
|
|
833
834
|
lines = decode_lines(stream)
|
|
834
835
|
decode_sse(lines)
|
|
835
836
|
else
|
|
@@ -121,6 +121,8 @@ module Anthropic
|
|
|
121
121
|
|
|
122
122
|
variant const: -> { Anthropic::Models::AnthropicBeta::CE_USER_MANAGEMENT_2026_07_13 }
|
|
123
123
|
|
|
124
|
+
variant const: -> { Anthropic::Models::AnthropicBeta::CE_CLAUDE_CODE_MANAGED_SETTINGS_2026_10_06 }
|
|
125
|
+
|
|
124
126
|
variant const: -> { Anthropic::Models::AnthropicBeta::USER_PROFILES_BILLING_2026_10_01 }
|
|
125
127
|
|
|
126
128
|
variant String
|
|
@@ -204,6 +206,7 @@ module Anthropic
|
|
|
204
206
|
CACHE_DIAGNOSIS_2026_04_07 = :"cache-diagnosis-2026-04-07"
|
|
205
207
|
# @deprecated This value is no longer needed. Remove it from your requests.
|
|
206
208
|
CE_USER_MANAGEMENT_2026_07_13 = :"ce-user-management-2026-07-13"
|
|
209
|
+
CE_CLAUDE_CODE_MANAGED_SETTINGS_2026_10_06 = :"ce-claude-code-managed-settings-2026-10-06"
|
|
207
210
|
USER_PROFILES_BILLING_2026_10_01 = :"user-profiles-billing-2026-10-01"
|
|
208
211
|
|
|
209
212
|
# @!endgroup
|
|
@@ -138,7 +138,8 @@ module Anthropic
|
|
|
138
138
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
139
139
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
140
140
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
141
|
-
# filter only where Chat and Cowork unified is available.
|
|
141
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
142
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
142
143
|
# is reported as "other".
|
|
143
144
|
#
|
|
144
145
|
# @return [String, nil]
|
|
@@ -128,7 +128,8 @@ module Anthropic
|
|
|
128
128
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
129
129
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
130
130
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
131
|
-
# filter only where Chat and Cowork unified is available.
|
|
131
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
132
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
132
133
|
# is reported as "other".
|
|
133
134
|
#
|
|
134
135
|
# @return [String, nil]
|
|
@@ -93,7 +93,8 @@ module Anthropic
|
|
|
93
93
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
94
94
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
95
95
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
96
|
-
# filter only where Chat and Cowork unified is available.
|
|
96
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
97
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
97
98
|
# is reported as "other".
|
|
98
99
|
#
|
|
99
100
|
# @return [String, nil]
|
|
@@ -105,7 +105,8 @@ module Anthropic
|
|
|
105
105
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
106
106
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
107
107
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
108
|
-
# filter only where Chat and Cowork unified is available.
|
|
108
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
109
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
109
110
|
# is reported as "other".
|
|
110
111
|
#
|
|
111
112
|
# @return [String, nil]
|
|
@@ -86,7 +86,8 @@ module Anthropic
|
|
|
86
86
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
87
87
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
88
88
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
89
|
-
# filter only where Chat and Cowork unified is available.
|
|
89
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
90
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
90
91
|
# is reported as "other".
|
|
91
92
|
#
|
|
92
93
|
# @return [String, nil]
|
|
@@ -99,7 +99,8 @@ module Anthropic
|
|
|
99
99
|
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
100
100
|
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
101
101
|
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
102
|
-
# filter only where Chat and Cowork unified is available.
|
|
102
|
+
# filter only where Chat and Cowork unified is available. `cc_security_autopatch`
|
|
103
|
+
# is work that Claude Security runs for the organization. Some unattributed usage
|
|
103
104
|
# is reported as "other".
|
|
104
105
|
#
|
|
105
106
|
# @return [String, nil]
|
|
@@ -7,7 +7,7 @@ module Anthropic
|
|
|
7
7
|
class BetaOrganizationRateLimitValue < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute type
|
|
9
9
|
# The limiter type (for example, `requests_per_minute` or
|
|
10
|
-
# `
|
|
10
|
+
# `input_tokens_per_minute_cache_aware`).
|
|
11
11
|
#
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :type, String
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The RBAC Group is not one of the organization's groups.
|
|
8
|
+
class BetaRBACGroupNotFoundError < Anthropic::Errors::NotFoundError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :rbac_group_not_found]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::Beta::Organization::BetaRBACGroupNotFoundErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaRBACGroupNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :rbac_group_not_found]
|
|
11
|
+
required :error_code, const: :rbac_group_not_found
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :rbac_group_not_found)
|
|
14
|
+
# The RBAC Group is not one of the organization's groups.
|
|
15
|
+
#
|
|
16
|
+
# @param error_code [Symbol, :rbac_group_not_found]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rb
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
# This stored settings document currently cannot be read or replaced. Contact
|
|
9
|
+
# support, or, if you no longer need these settings, delete the group's settings
|
|
10
|
+
# or clear the default.
|
|
11
|
+
class BetaCMEKFeatureUnsupportedError < Anthropic::Errors::BadRequestError
|
|
12
|
+
# @!method error_code
|
|
13
|
+
# @return [Symbol, :cmek_feature_unsupported]
|
|
14
|
+
|
|
15
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails]
|
|
16
|
+
def details
|
|
17
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
18
|
+
Anthropic::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails,
|
|
19
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
class BetaCMEKFeatureUnsupportedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute error_code
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :cmek_feature_unsupported]
|
|
12
|
+
required :error_code, const: :cmek_feature_unsupported
|
|
13
|
+
|
|
14
|
+
# @!method initialize(error_code: :cmek_feature_unsupported)
|
|
15
|
+
# This stored settings document currently cannot be read or replaced. Contact
|
|
16
|
+
# support, or, if you no longer need these settings, delete the group's settings
|
|
17
|
+
# or clear the default.
|
|
18
|
+
#
|
|
19
|
+
# @param error_code [Symbol, :cmek_feature_unsupported]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
# This RBAC Group has no Claude Code managed settings.
|
|
9
|
+
class BetaRBACGroupManagedSettingsNotFoundError < Anthropic::Errors::NotFoundError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :rbac_group_managed_settings_not_found]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
class BetaRBACGroupManagedSettingsNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute error_code
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :rbac_group_managed_settings_not_found]
|
|
12
|
+
required :error_code, const: :rbac_group_managed_settings_not_found
|
|
13
|
+
|
|
14
|
+
# @!method initialize(error_code: :rbac_group_managed_settings_not_found)
|
|
15
|
+
# This RBAC Group has no Claude Code managed settings.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :rbac_group_managed_settings_not_found]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
# The RBAC Group order already has the most groups allowed. Delete another group's
|
|
9
|
+
# settings first.
|
|
10
|
+
class BetaRBACGroupOrderLimitExceededError < Anthropic::Errors::BadRequestError
|
|
11
|
+
# @!method error_code
|
|
12
|
+
# @return [Symbol, :rbac_group_order_limit_exceeded]
|
|
13
|
+
|
|
14
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails]
|
|
15
|
+
def details
|
|
16
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
17
|
+
Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails,
|
|
18
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
class BetaRBACGroupOrderLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute error_code
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :rbac_group_order_limit_exceeded]
|
|
12
|
+
required :error_code, const: :rbac_group_order_limit_exceeded
|
|
13
|
+
|
|
14
|
+
# @!method initialize(error_code: :rbac_group_order_limit_exceeded)
|
|
15
|
+
# The RBAC Group order already has the most groups allowed. Delete another group's
|
|
16
|
+
# settings first.
|
|
17
|
+
#
|
|
18
|
+
# @param error_code [Symbol, :rbac_group_order_limit_exceeded]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
# The organization has reached its limit of settings documents, counting unused
|
|
9
|
+
# ones. An owner can remove unused documents in claude.ai. Deleting a group's
|
|
10
|
+
# settings or clearing the default settings also frees a document, if nothing else
|
|
11
|
+
# uses it. None of these works once the organization has also reached its settings
|
|
12
|
+
# history limit.
|
|
13
|
+
class BetaSettingsDocumentLimitExceededError < Anthropic::Errors::BadRequestError
|
|
14
|
+
# @!method error_code
|
|
15
|
+
# @return [Symbol, :settings_document_limit_exceeded]
|
|
16
|
+
|
|
17
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails]
|
|
18
|
+
def details
|
|
19
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
20
|
+
Anthropic::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails,
|
|
21
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
class BetaSettingsDocumentLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute error_code
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :settings_document_limit_exceeded]
|
|
12
|
+
required :error_code, const: :settings_document_limit_exceeded
|
|
13
|
+
|
|
14
|
+
# @!method initialize(error_code: :settings_document_limit_exceeded)
|
|
15
|
+
# The organization has reached its limit of settings documents, counting unused
|
|
16
|
+
# ones. An owner can remove unused documents in claude.ai. Deleting a group's
|
|
17
|
+
# settings or clearing the default settings also frees a document, if nothing else
|
|
18
|
+
# uses it. None of these works once the organization has also reached its settings
|
|
19
|
+
# history limit.
|
|
20
|
+
#
|
|
21
|
+
# @param error_code [Symbol, :settings_document_limit_exceeded]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
# The organization has reached its settings history limit, a cap on stored
|
|
9
|
+
# versions of its settings documents. Nothing in the API or claude.ai lowers the
|
|
10
|
+
# count, so contact support. Creating or deleting group settings, creating or
|
|
11
|
+
# clearing the default settings, and reordering are refused. Changing the mode
|
|
12
|
+
# still works, unless it would copy the organization settings into a new default.
|
|
13
|
+
class BetaSettingsHistoryLimitExceededError < Anthropic::Errors::BadRequestError
|
|
14
|
+
# @!method error_code
|
|
15
|
+
# @return [Symbol, :settings_history_limit_exceeded]
|
|
16
|
+
|
|
17
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails]
|
|
18
|
+
def details
|
|
19
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
20
|
+
Anthropic::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails,
|
|
21
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
class BetaSettingsHistoryLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute error_code
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :settings_history_limit_exceeded]
|
|
12
|
+
required :error_code, const: :settings_history_limit_exceeded
|
|
13
|
+
|
|
14
|
+
# @!method initialize(error_code: :settings_history_limit_exceeded)
|
|
15
|
+
# The organization has reached its settings history limit, a cap on stored
|
|
16
|
+
# versions of its settings documents. Nothing in the API or claude.ai lowers the
|
|
17
|
+
# count, so contact support. Creating or deleting group settings, creating or
|
|
18
|
+
# clearing the default settings, and reordering are refused. Changing the mode
|
|
19
|
+
# still works, unless it would copy the organization settings into a new default.
|
|
20
|
+
#
|
|
21
|
+
# @param error_code [Symbol, :settings_history_limit_exceeded]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeCode
|
|
8
|
+
module ManagedSettings
|
|
9
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::Configuration#retrieve
|
|
10
|
+
class BetaClaudeCodeManagedSettingsConfiguration < Anthropic::Internal::Type::BaseModel
|
|
11
|
+
# @!attribute mode
|
|
12
|
+
# How the organization serves managed settings. In `organization` mode every
|
|
13
|
+
# member receives the organization settings, which are set in claude.ai. In
|
|
14
|
+
# `rbac_groups` mode each member receives the settings of the first RBAC Group in
|
|
15
|
+
# `rbac_group_order` that they belong to. A member in none of them receives the
|
|
16
|
+
# default settings, or no settings if no default is set.
|
|
17
|
+
#
|
|
18
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsOrganizationMode, Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsRBACGroupsMode]
|
|
19
|
+
required :mode,
|
|
20
|
+
union: -> { Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsMode }
|
|
21
|
+
|
|
22
|
+
# @!attribute mode_updated_at
|
|
23
|
+
# When the mode last changed, in RFC 3339 format, or `null` if it never has.
|
|
24
|
+
#
|
|
25
|
+
# @return [Time, nil]
|
|
26
|
+
required :mode_updated_at, Time, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute rbac_group_order
|
|
29
|
+
# The ID of every RBAC Group with settings, deleted groups included, highest
|
|
30
|
+
# precedence first.
|
|
31
|
+
#
|
|
32
|
+
# @return [Array<String>]
|
|
33
|
+
required :rbac_group_order, Anthropic::Internal::Type::ArrayOf[String]
|
|
34
|
+
|
|
35
|
+
# @!attribute rbac_group_order_version
|
|
36
|
+
# An opaque version of `rbac_group_order`, which changes whenever the order does.
|
|
37
|
+
# Send it back with a new order.
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
required :rbac_group_order_version, String
|
|
41
|
+
|
|
42
|
+
# @!attribute type
|
|
43
|
+
# Always `claude_code_managed_settings_configuration`.
|
|
44
|
+
#
|
|
45
|
+
# @return [Symbol, :claude_code_managed_settings_configuration]
|
|
46
|
+
required :type, const: :claude_code_managed_settings_configuration
|
|
47
|
+
|
|
48
|
+
# @!method initialize(mode:, mode_updated_at:, rbac_group_order:, rbac_group_order_version:, type: :claude_code_managed_settings_configuration)
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration}
|
|
51
|
+
# for more details.
|
|
52
|
+
#
|
|
53
|
+
# @param mode [Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsOrganizationMode, Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsRBACGroupsMode] How the organization serves managed settings. In `organization` mode every membe
|
|
54
|
+
#
|
|
55
|
+
# @param mode_updated_at [Time, nil] When the mode last changed, in RFC 3339 format, or `null` if it never has.
|
|
56
|
+
#
|
|
57
|
+
# @param rbac_group_order [Array<String>] The ID of every RBAC Group with settings, deleted groups included, highest prece
|
|
58
|
+
#
|
|
59
|
+
# @param rbac_group_order_version [String] An opaque version of `rbac_group_order`, which changes whenever the order does.
|
|
60
|
+
#
|
|
61
|
+
# @param type [Symbol, :claude_code_managed_settings_configuration] Always `claude_code_managed_settings_configuration`.
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|