anthropic 2.7.0 → 2.9.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 +62 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +4 -0
- data/lib/anthropic/helpers/bedrock/client.rb +17 -5
- data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
- data/lib/anthropic/helpers/tools/runner.rb +21 -4
- data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
- data/lib/anthropic/helpers/vertex/client.rb +26 -12
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/internal/type/file_input.rb +11 -0
- data/lib/anthropic/internal/util.rb +43 -11
- data/lib/anthropic/models/anthropic_beta.rb +44 -30
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +13 -4
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +8 -5
- data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
- data/lib/anthropic/models/error_details.rb +28 -3
- data/lib/anthropic/models/model.rb +2 -2
- data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
- data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
- data/lib/anthropic/models/organization/external_key.rb +2 -2
- data/lib/anthropic/models/organization/external_key_create_params.rb +8 -5
- data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
- data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
- data/lib/anthropic/models/organization/rbac_role.rb +13 -4
- data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
- data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
- data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
- data/lib/anthropic/models/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
- data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
- data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
- data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
- data/lib/anthropic/models.rb +8 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +5 -1
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
- data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/resources/organization/external_keys.rb +1 -1
- data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +22 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
- data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
- data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
- data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
- data/rbi/anthropic/internal/tracing.rbi +2 -0
- data/rbi/anthropic/internal/util.rbi +2 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +41 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +21 -4
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +14 -8
- data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
- data/rbi/anthropic/models/error_details.rbi +25 -1
- data/rbi/anthropic/models/model.rbi +2 -2
- data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
- data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
- data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
- data/rbi/anthropic/models/organization/external_key.rbi +4 -4
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +14 -8
- data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
- data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
- data/rbi/anthropic/models/organization/rbac_role.rbi +18 -4
- data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
- data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
- data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
- data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
- data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
- data/rbi/anthropic/models.rbi +10 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +7 -4
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
- data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +10 -8
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +2 -1
- data/rbi/anthropic/resources/organization/external_keys.rbi +7 -4
- data/rbi/anthropic/resources/organization/workspaces.rbi +2 -1
- data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
- data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/internal/util.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +21 -21
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
- data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
- data/sig/anthropic/models/error_details.rbs +26 -0
- data/sig/anthropic/models/model.rbs +2 -2
- data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
- data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
- data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
- data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
- data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
- data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
- data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
- metadata +68 -2
|
@@ -29,10 +29,13 @@ module Anthropic
|
|
|
29
29
|
optional :geo, enum: -> { Anthropic::Beta::Organization::ExternalKeyCreateParams::Geo }
|
|
30
30
|
|
|
31
31
|
# @!attribute user_profile_id
|
|
32
|
-
# ID of a user profile to bind the key to.
|
|
33
|
-
#
|
|
34
|
-
# user profile
|
|
35
|
-
#
|
|
32
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
33
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
34
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
35
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
36
|
+
# organization's own key, never a customer's. A key created without a user profile
|
|
37
|
+
# ID can't be attached to a Workspace that has a user profile, and you can't add
|
|
38
|
+
# one to the key later.
|
|
36
39
|
#
|
|
37
40
|
# @return [String, nil]
|
|
38
41
|
optional :user_profile_id, String, nil?: true
|
|
@@ -48,7 +51,7 @@ module Anthropic
|
|
|
48
51
|
#
|
|
49
52
|
# @param geo [Symbol, Anthropic::Models::Beta::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
|
|
50
53
|
#
|
|
51
|
-
# @param user_profile_id [String, nil] ID of a user profile to bind the key to.
|
|
54
|
+
# @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
|
|
52
55
|
#
|
|
53
56
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
54
57
|
|
|
@@ -54,7 +54,8 @@ module Anthropic
|
|
|
54
54
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
55
55
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
56
56
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
57
|
-
# organization's ID here; another organization returns a 404.
|
|
57
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
58
|
+
# organization of its own must always pass `organization_id`.
|
|
58
59
|
#
|
|
59
60
|
# @return [String, nil]
|
|
60
61
|
optional :organization_id, String, nil?: true
|
|
@@ -24,7 +24,8 @@ module Anthropic
|
|
|
24
24
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
25
25
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
26
26
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
27
|
-
# organization's ID here; another organization returns a 404.
|
|
27
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
28
|
+
# organization of its own must always pass `organization_id`.
|
|
28
29
|
#
|
|
29
30
|
# @return [String, nil]
|
|
30
31
|
optional :organization_id, String, nil?: true
|
|
@@ -22,7 +22,8 @@ module Anthropic
|
|
|
22
22
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
23
23
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
24
24
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
25
|
-
# organization's ID here; another organization returns a 404.
|
|
25
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
26
|
+
# organization of its own must always pass `organization_id`.
|
|
26
27
|
#
|
|
27
28
|
# @return [String, nil]
|
|
28
29
|
optional :organization_id, String, nil?: true
|
|
@@ -22,7 +22,8 @@ module Anthropic
|
|
|
22
22
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
23
23
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
24
24
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
25
|
-
# organization's ID here; another organization returns a 404.
|
|
25
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
26
|
+
# organization of its own must always pass `organization_id`.
|
|
26
27
|
#
|
|
27
28
|
# @return [String, nil]
|
|
28
29
|
optional :organization_id, String, nil?: true
|
|
@@ -31,7 +31,8 @@ module Anthropic
|
|
|
31
31
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
32
32
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
33
33
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
34
|
-
# organization's ID here; another organization returns a 404.
|
|
34
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
35
|
+
# organization of its own must always pass `organization_id`.
|
|
35
36
|
#
|
|
36
37
|
# @return [String, nil]
|
|
37
38
|
optional :organization_id, String, nil?: true
|
|
@@ -31,7 +31,8 @@ module Anthropic
|
|
|
31
31
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
32
32
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
33
33
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
34
|
-
# organization's ID here; another organization returns a 404.
|
|
34
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
35
|
+
# organization of its own must always pass `organization_id`.
|
|
35
36
|
#
|
|
36
37
|
# @return [String, nil]
|
|
37
38
|
optional :organization_id, String, nil?: true
|
|
@@ -29,7 +29,8 @@ module Anthropic
|
|
|
29
29
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
30
30
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
31
31
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
32
|
-
# organization's ID here; another organization returns a 404.
|
|
32
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
33
|
+
# organization of its own must always pass `organization_id`.
|
|
33
34
|
#
|
|
34
35
|
# @return [String, nil]
|
|
35
36
|
optional :organization_id, String, nil?: true
|
|
@@ -31,7 +31,8 @@ module Anthropic
|
|
|
31
31
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
32
32
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
33
33
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
34
|
-
# organization's ID here; another organization returns a 404.
|
|
34
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
35
|
+
# organization of its own must always pass `organization_id`.
|
|
35
36
|
#
|
|
36
37
|
# @return [String, nil]
|
|
37
38
|
optional :organization_id, String, nil?: true
|
|
@@ -30,7 +30,8 @@ module Anthropic
|
|
|
30
30
|
# organization's UUID or its `org_`-prefixed ID. A value that is neither returns a
|
|
31
31
|
# 400; an organization that is not a child of the key's parent, or where the
|
|
32
32
|
# Plugins API is not available, returns a 404. Any other key may pass only its own
|
|
33
|
-
# organization's ID here; another organization returns a 404.
|
|
33
|
+
# organization's ID here; another organization returns a 404. A key with no
|
|
34
|
+
# organization of its own must always pass `organization_id`.
|
|
34
35
|
#
|
|
35
36
|
# @return [String, nil]
|
|
36
37
|
optional :organization_id, String, nil?: true
|
|
@@ -64,7 +64,8 @@ module Anthropic
|
|
|
64
64
|
# the Workspace must then name this user profile; the API rejects a request that
|
|
65
65
|
# names none or a different one. Once set, it can't be replaced or removed
|
|
66
66
|
# (sending the same ID again changes nothing); only deleting the user profile
|
|
67
|
-
# clears it.
|
|
67
|
+
# clears it. It can't be set on a Workspace whose External Key isn't bound to this
|
|
68
|
+
# user profile. The default Workspace can't have a user profile.
|
|
68
69
|
#
|
|
69
70
|
# @return [String, nil]
|
|
70
71
|
optional :user_profile_id, String
|
data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Anthropic
|
|
|
18
18
|
# The server reached no judgement; the invocation is held for client approval.
|
|
19
19
|
variant :ask, -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionAsk }
|
|
20
20
|
|
|
21
|
-
# The server judged the invocation high-risk; it does not execute and a synthetic error tool result is appended.
|
|
21
|
+
# The server judged the invocation high-risk, or reached no judgement and did not hold it for client approval (for example, because the organization is out of credits or has reached a spend limit); it does not execute and a synthetic error tool result is appended.
|
|
22
22
|
variant :deny, -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny }
|
|
23
23
|
|
|
24
24
|
module Type
|
data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb
CHANGED
|
@@ -7,8 +7,9 @@ module Anthropic
|
|
|
7
7
|
class BetaManagedAgentsAgentAutoEvaluatedPermissionDeny < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute reason_code
|
|
9
9
|
# The judgement's grounds in registry-bound terms. Open registry; currently
|
|
10
|
-
# "high_risk" (judged high-risk; the call does not run)
|
|
11
|
-
#
|
|
10
|
+
# "high_risk" (judged high-risk; the call does not run) and "indeterminate" (no
|
|
11
|
+
# judgement was reached; the call does not run). Clients must tolerate values
|
|
12
|
+
# outside this set.
|
|
12
13
|
#
|
|
13
14
|
# @return [String]
|
|
14
15
|
required :reason_code, String
|
|
@@ -19,8 +20,10 @@ module Anthropic
|
|
|
19
20
|
required :type, const: :deny
|
|
20
21
|
|
|
21
22
|
# @!method initialize(reason_code:, type: :deny)
|
|
22
|
-
# The server judged the invocation high-risk
|
|
23
|
-
#
|
|
23
|
+
# The server judged the invocation high-risk, or reached no judgement and did not
|
|
24
|
+
# hold it for client approval (for example, because the organization is out of
|
|
25
|
+
# credits or has reached a spend limit); it does not execute and a synthetic error
|
|
26
|
+
# tool result is appended.
|
|
24
27
|
#
|
|
25
28
|
# Some parameter documentations has been truncated, see
|
|
26
29
|
# {Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny}
|
|
@@ -163,7 +163,7 @@ module Anthropic
|
|
|
163
163
|
variant :external_key_validation_timed_out,
|
|
164
164
|
-> { Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails }
|
|
165
165
|
|
|
166
|
-
#
|
|
166
|
+
# After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
|
|
167
167
|
variant :key_profile_mismatch, -> { Anthropic::Organization::KeyProfileMismatchErrorDetails }
|
|
168
168
|
|
|
169
169
|
# The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
|
|
@@ -179,6 +179,12 @@ module Anthropic
|
|
|
179
179
|
# The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
|
|
180
180
|
variant :organization_type_not_supported, -> { Anthropic::OrganizationTypeNotSupportedErrorDetails }
|
|
181
181
|
|
|
182
|
+
# The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
|
|
183
|
+
variant :parent_organization_required, -> { Anthropic::ParentOrganizationRequiredErrorDetails }
|
|
184
|
+
|
|
185
|
+
# No RBAC Role with this ID was found.
|
|
186
|
+
variant :rbac_role_not_found, -> { Anthropic::RBACRoleNotFoundErrorDetails }
|
|
187
|
+
|
|
182
188
|
# Anthropic has turned off creating environments for this organization. Existing environments still work.
|
|
183
189
|
variant :environment_create_disabled, -> { Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails }
|
|
184
190
|
|
|
@@ -276,6 +282,13 @@ module Anthropic
|
|
|
276
282
|
variant :slack_channel_set_up_settings_conflict,
|
|
277
283
|
-> { Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails }
|
|
278
284
|
|
|
285
|
+
# The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
|
|
286
|
+
variant :bundle_attachment_not_supported,
|
|
287
|
+
-> { Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails }
|
|
288
|
+
|
|
289
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through the API.
|
|
290
|
+
variant :bundle_on_call, -> { Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails }
|
|
291
|
+
|
|
279
292
|
module ErrorCode
|
|
280
293
|
extend Anthropic::Internal::Type::Enum
|
|
281
294
|
|
|
@@ -333,6 +346,8 @@ module Anthropic
|
|
|
333
346
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
334
347
|
WORKSPACE_MEMBER_LIMIT_EXCEEDED = :workspace_member_limit_exceeded
|
|
335
348
|
ORGANIZATION_TYPE_NOT_SUPPORTED = :organization_type_not_supported
|
|
349
|
+
PARENT_ORGANIZATION_REQUIRED = :parent_organization_required
|
|
350
|
+
RBAC_ROLE_NOT_FOUND = :rbac_role_not_found
|
|
336
351
|
ENVIRONMENT_CREATE_DISABLED = :environment_create_disabled
|
|
337
352
|
ENVIRONMENT_ARCHIVED = :environment_archived
|
|
338
353
|
INVALID_CONFIG_TYPE_CHANGE = :invalid_config_type_change
|
|
@@ -361,13 +376,15 @@ module Anthropic
|
|
|
361
376
|
ENVIRONMENT_NOT_FOUND = :environment_not_found
|
|
362
377
|
SLACK_CHANNEL_SET_UP_ENVIRONMENT_NOT_FOUND = :slack_channel_set_up_environment_not_found
|
|
363
378
|
SLACK_CHANNEL_SET_UP_SETTINGS_CONFLICT = :slack_channel_set_up_settings_conflict
|
|
379
|
+
BUNDLE_ATTACHMENT_NOT_SUPPORTED = :bundle_attachment_not_supported
|
|
380
|
+
BUNDLE_ON_CALL = :bundle_on_call
|
|
364
381
|
|
|
365
382
|
# @!method self.values
|
|
366
383
|
# @return [Array<Symbol>]
|
|
367
384
|
end
|
|
368
385
|
|
|
369
386
|
# @!method self.variants
|
|
370
|
-
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
|
|
387
|
+
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails)]
|
|
371
388
|
|
|
372
389
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
373
390
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -396,7 +413,7 @@ module Anthropic
|
|
|
396
413
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
397
414
|
#
|
|
398
415
|
# @raise [ArgumentError]
|
|
399
|
-
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
|
|
416
|
+
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
400
417
|
def self.new(error_code:, **args)
|
|
401
418
|
case error_code.to_sym
|
|
402
419
|
when :available_tools_limit_exceeded
|
|
@@ -507,6 +524,10 @@ module Anthropic
|
|
|
507
524
|
Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails.new(**args)
|
|
508
525
|
when :organization_type_not_supported
|
|
509
526
|
Anthropic::OrganizationTypeNotSupportedErrorDetails.new(**args)
|
|
527
|
+
when :parent_organization_required
|
|
528
|
+
Anthropic::ParentOrganizationRequiredErrorDetails.new(**args)
|
|
529
|
+
when :rbac_role_not_found
|
|
530
|
+
Anthropic::RBACRoleNotFoundErrorDetails.new(**args)
|
|
510
531
|
when :environment_create_disabled
|
|
511
532
|
Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails.new(**args)
|
|
512
533
|
when :environment_archived
|
|
@@ -563,6 +584,10 @@ module Anthropic
|
|
|
563
584
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails.new(**args)
|
|
564
585
|
when :slack_channel_set_up_settings_conflict
|
|
565
586
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails.new(**args)
|
|
587
|
+
when :bundle_attachment_not_supported
|
|
588
|
+
Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails.new(**args)
|
|
589
|
+
when :bundle_on_call
|
|
590
|
+
Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails.new(**args)
|
|
566
591
|
else
|
|
567
592
|
raise ArgumentError, "unknown error_code: #{error_code}"
|
|
568
593
|
end
|
|
@@ -64,10 +64,10 @@ module Anthropic
|
|
|
64
64
|
|
|
65
65
|
# @!group
|
|
66
66
|
|
|
67
|
-
#
|
|
67
|
+
# Built for the most ambitious work in coding, enterprise workflows, and the sciences
|
|
68
68
|
CLAUDE_FABLE_5_2 = :"claude-fable-5-2"
|
|
69
69
|
|
|
70
|
-
#
|
|
70
|
+
# Built for the most demanding cybersecurity and life sciences research, available through verification programs
|
|
71
71
|
CLAUDE_MYTHOS_5_2 = :"claude-mythos-5-2"
|
|
72
72
|
|
|
73
73
|
# Fastest model for high-volume, real-time tasks
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute active_day_count
|
|
8
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
9
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
10
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
11
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
12
|
+
# any other row when no covered day was measured.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
required :active_day_count, Integer, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute active_message_count
|
|
18
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
19
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
20
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
21
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
22
|
+
# when no covered day was measured.
|
|
23
|
+
#
|
|
24
|
+
# @return [Integer, nil]
|
|
25
|
+
required :active_message_count, Integer, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!method initialize(active_day_count:, active_message_count:)
|
|
28
|
+
# Claude Tag activity metrics for a single linked user on a given day.
|
|
29
|
+
#
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Anthropic::Models::Organization::AnalyticsClaudeTagMetrics} for more details.
|
|
32
|
+
#
|
|
33
|
+
# @param active_day_count [Integer, nil] 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
34
|
+
#
|
|
35
|
+
# @param active_message_count [Integer, nil] Number of the user's Slack messages that made them active: @-mentions, direct me
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -186,6 +186,42 @@ module Anthropic
|
|
|
186
186
|
# @return [Integer, nil]
|
|
187
187
|
optional :claude_design_weekly_active_user_count, Integer, nil?: true
|
|
188
188
|
|
|
189
|
+
# @!attribute claude_tag_daily_active_user_count
|
|
190
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
191
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
192
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
193
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
194
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
195
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
196
|
+
# reporting.
|
|
197
|
+
#
|
|
198
|
+
# @return [Integer, nil]
|
|
199
|
+
optional :claude_tag_daily_active_user_count, Integer, nil?: true
|
|
200
|
+
|
|
201
|
+
# @!attribute claude_tag_monthly_active_user_count
|
|
202
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
203
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
204
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
205
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
206
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
207
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
208
|
+
# Tag reporting.
|
|
209
|
+
#
|
|
210
|
+
# @return [Integer, nil]
|
|
211
|
+
optional :claude_tag_monthly_active_user_count, Integer, nil?: true
|
|
212
|
+
|
|
213
|
+
# @!attribute claude_tag_weekly_active_user_count
|
|
214
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
215
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
216
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
217
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
218
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
219
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
220
|
+
# Tag reporting.
|
|
221
|
+
#
|
|
222
|
+
# @return [Integer, nil]
|
|
223
|
+
optional :claude_tag_weekly_active_user_count, Integer, nil?: true
|
|
224
|
+
|
|
189
225
|
# @!attribute office_agent_daily_active_user_count
|
|
190
226
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
191
227
|
# from the response while the per-product breakdown is not enabled for this
|
|
@@ -244,7 +280,7 @@ module Anthropic
|
|
|
244
280
|
# @return [Integer, nil]
|
|
245
281
|
optional :science_weekly_active_user_count, Integer, nil?: true
|
|
246
282
|
|
|
247
|
-
# @!method initialize(assigned_seat_count:, cowork_daily_active_user_count:, cowork_monthly_active_user_count:, cowork_weekly_active_user_count:, daily_active_user_count:, daily_adoption_rate:, ending_at:, monthly_active_user_count:, monthly_adoption_rate:, pending_invite_count:, starting_at:, weekly_active_user_count:, weekly_adoption_rate:, chat_cowork_unified_daily_active_user_count: nil, chat_cowork_unified_monthly_active_user_count: nil, chat_cowork_unified_weekly_active_user_count: nil, chat_daily_active_user_count: nil, chat_monthly_active_user_count: nil, chat_weekly_active_user_count: nil, claude_code_daily_active_user_count: nil, claude_code_monthly_active_user_count: nil, claude_code_weekly_active_user_count: nil, claude_design_daily_active_user_count: nil, claude_design_monthly_active_user_count: nil, claude_design_weekly_active_user_count: nil, office_agent_daily_active_user_count: nil, office_agent_monthly_active_user_count: nil, office_agent_weekly_active_user_count: nil, science_daily_active_user_count: nil, science_entitled_user_count: nil, science_monthly_active_user_count: nil, science_weekly_active_user_count: nil)
|
|
283
|
+
# @!method initialize(assigned_seat_count:, cowork_daily_active_user_count:, cowork_monthly_active_user_count:, cowork_weekly_active_user_count:, daily_active_user_count:, daily_adoption_rate:, ending_at:, monthly_active_user_count:, monthly_adoption_rate:, pending_invite_count:, starting_at:, weekly_active_user_count:, weekly_adoption_rate:, chat_cowork_unified_daily_active_user_count: nil, chat_cowork_unified_monthly_active_user_count: nil, chat_cowork_unified_weekly_active_user_count: nil, chat_daily_active_user_count: nil, chat_monthly_active_user_count: nil, chat_weekly_active_user_count: nil, claude_code_daily_active_user_count: nil, claude_code_monthly_active_user_count: nil, claude_code_weekly_active_user_count: nil, claude_design_daily_active_user_count: nil, claude_design_monthly_active_user_count: nil, claude_design_weekly_active_user_count: nil, claude_tag_daily_active_user_count: nil, claude_tag_monthly_active_user_count: nil, claude_tag_weekly_active_user_count: nil, office_agent_daily_active_user_count: nil, office_agent_monthly_active_user_count: nil, office_agent_weekly_active_user_count: nil, science_daily_active_user_count: nil, science_entitled_user_count: nil, science_monthly_active_user_count: nil, science_weekly_active_user_count: nil)
|
|
248
284
|
# Per-day entry in the /summaries response.
|
|
249
285
|
#
|
|
250
286
|
# Some parameter documentations has been truncated, see
|
|
@@ -301,6 +337,12 @@ module Anthropic
|
|
|
301
337
|
#
|
|
302
338
|
# @param claude_design_weekly_active_user_count [Integer, nil] Number of users with Claude Design activity in the 7-day rolling window. Omitted
|
|
303
339
|
#
|
|
340
|
+
# @param claude_tag_daily_active_user_count [Integer, nil] Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
341
|
+
#
|
|
342
|
+
# @param claude_tag_monthly_active_user_count [Integer, nil] Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
343
|
+
#
|
|
344
|
+
# @param claude_tag_weekly_active_user_count [Integer, nil] Number of Slack users active in Claude Tag in the 7-day rolling window. Counts d
|
|
345
|
+
#
|
|
304
346
|
# @param office_agent_daily_active_user_count [Integer, nil] Number of users with Claude in Office activity on the requested day. Omitted fro
|
|
305
347
|
#
|
|
306
348
|
# @param office_agent_monthly_active_user_count [Integer, nil] Number of users with Claude in Office activity in the 30-day rolling window. Omi
|
|
@@ -73,6 +73,15 @@ module Anthropic
|
|
|
73
73
|
-> { Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics },
|
|
74
74
|
nil?: true
|
|
75
75
|
|
|
76
|
+
# @!attribute claude_tag_metrics
|
|
77
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
78
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
79
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
80
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
81
|
+
#
|
|
82
|
+
# @return [Anthropic::Models::Organization::AnalyticsClaudeTagMetrics, nil]
|
|
83
|
+
optional :claude_tag_metrics, -> { Anthropic::Organization::AnalyticsClaudeTagMetrics }, nil?: true
|
|
84
|
+
|
|
76
85
|
# @!attribute last_activity_date
|
|
77
86
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
78
87
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
@@ -103,7 +112,7 @@ module Anthropic
|
|
|
103
112
|
# @return [String, nil]
|
|
104
113
|
optional :rbac_group_name, String, nil?: true
|
|
105
114
|
|
|
106
|
-
# @!method initialize(chat_metrics:, claude_code_metrics:, cowork_metrics:, design_metrics:, distinct_user_count:, office_metrics:, science_metrics:, user:, web_search_count:, chat_cowork_unified_metrics: nil, last_activity_date: nil, rbac_group_id: nil, rbac_group_name: nil)
|
|
115
|
+
# @!method initialize(chat_metrics:, claude_code_metrics:, cowork_metrics:, design_metrics:, distinct_user_count:, office_metrics:, science_metrics:, user:, web_search_count:, chat_cowork_unified_metrics: nil, claude_tag_metrics: nil, last_activity_date: nil, rbac_group_id: nil, rbac_group_name: nil)
|
|
107
116
|
# Per-user activity data for a given day.
|
|
108
117
|
#
|
|
109
118
|
# Some parameter documentations has been truncated, see
|
|
@@ -129,6 +138,8 @@ module Anthropic
|
|
|
129
138
|
#
|
|
130
139
|
# @param chat_cowork_unified_metrics [Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedMetrics, nil] Activity recorded while the member had Chat and Cowork unified (Cowork's feature
|
|
131
140
|
#
|
|
141
|
+
# @param claude_tag_metrics [Anthropic::Models::Organization::AnalyticsClaudeTagMetrics, nil] Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
142
|
+
#
|
|
132
143
|
# @param last_activity_date [Date, nil] Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, wit
|
|
133
144
|
#
|
|
134
145
|
# @param rbac_group_id [String, nil] Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API s
|
|
@@ -57,8 +57,8 @@ module Anthropic
|
|
|
57
57
|
# @!attribute user_profile_id
|
|
58
58
|
# ID of the user profile the key is bound to, or null if the key is not bound to
|
|
59
59
|
# one. A key bound to a user profile can only be attached to a Workspace that has
|
|
60
|
-
# the same user profile. A key that isn't bound can be attached to a
|
|
61
|
-
#
|
|
60
|
+
# the same user profile. A key that isn't bound can only be attached to a
|
|
61
|
+
# Workspace that has no user profile.
|
|
62
62
|
#
|
|
63
63
|
# @return [String, nil]
|
|
64
64
|
required :user_profile_id, String, nil?: true
|
|
@@ -27,10 +27,13 @@ module Anthropic
|
|
|
27
27
|
optional :geo, enum: -> { Anthropic::Organization::ExternalKeyCreateParams::Geo }
|
|
28
28
|
|
|
29
29
|
# @!attribute user_profile_id
|
|
30
|
-
# ID of a user profile to bind the key to.
|
|
31
|
-
#
|
|
32
|
-
# user profile
|
|
33
|
-
#
|
|
30
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
31
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
32
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
33
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
34
|
+
# organization's own key, never a customer's. A key created without a user profile
|
|
35
|
+
# ID can't be attached to a Workspace that has a user profile, and you can't add
|
|
36
|
+
# one to the key later.
|
|
34
37
|
#
|
|
35
38
|
# @return [String, nil]
|
|
36
39
|
optional :user_profile_id, String, nil?: true
|
|
@@ -45,7 +48,7 @@ module Anthropic
|
|
|
45
48
|
#
|
|
46
49
|
# @param geo [Symbol, Anthropic::Models::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
|
|
47
50
|
#
|
|
48
|
-
# @param user_profile_id [String, nil] ID of a user profile to bind the key to.
|
|
51
|
+
# @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
|
|
49
52
|
#
|
|
50
53
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
51
54
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Organization
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# After this request, the External Key and the Workspace would not have the same
|
|
7
|
+
# user profile. A key and its Workspace must have the same user profile, or both
|
|
8
|
+
# have none.
|
|
9
9
|
class KeyProfileMismatchError < Anthropic::Errors::BadRequestError
|
|
10
10
|
# @!method error_code
|
|
11
11
|
# @return [Symbol, :key_profile_mismatch]
|
|
@@ -10,9 +10,9 @@ module Anthropic
|
|
|
10
10
|
required :error_code, const: :key_profile_mismatch
|
|
11
11
|
|
|
12
12
|
# @!method initialize(error_code: :key_profile_mismatch)
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# After this request, the External Key and the Workspace would not have the same
|
|
14
|
+
# user profile. A key and its Workspace must have the same user profile, or both
|
|
15
|
+
# have none.
|
|
16
16
|
#
|
|
17
17
|
# @param error_code [Symbol, :key_profile_mismatch]
|
|
18
18
|
end
|
|
@@ -18,13 +18,20 @@ module Anthropic
|
|
|
18
18
|
required :created_at, Time
|
|
19
19
|
|
|
20
20
|
# @!attribute display_name
|
|
21
|
-
# Name of the RBAC Role. For a role
|
|
22
|
-
#
|
|
21
|
+
# Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
|
|
22
|
+
# access that the role grants. Anthropic may change this name, so to keep a
|
|
23
23
|
# lasting reference to a role, store its `id`.
|
|
24
24
|
#
|
|
25
25
|
# @return [String]
|
|
26
26
|
required :display_name, String
|
|
27
27
|
|
|
28
|
+
# @!attribute source
|
|
29
|
+
# Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
30
|
+
# so do not treat every role that is not `built_in` as `custom`.
|
|
31
|
+
#
|
|
32
|
+
# @return [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom]
|
|
33
|
+
required :source, union: -> { Anthropic::Organization::RBACRoleSource }
|
|
34
|
+
|
|
28
35
|
# @!attribute type
|
|
29
36
|
# Object type.
|
|
30
37
|
#
|
|
@@ -39,7 +46,7 @@ module Anthropic
|
|
|
39
46
|
# @return [Time]
|
|
40
47
|
required :updated_at, Time
|
|
41
48
|
|
|
42
|
-
# @!method initialize(id:, created_at:, display_name:, updated_at:, type: :rbac_role)
|
|
49
|
+
# @!method initialize(id:, created_at:, display_name:, source:, updated_at:, type: :rbac_role)
|
|
43
50
|
# Some parameter documentations has been truncated, see
|
|
44
51
|
# {Anthropic::Models::Organization::RBACRole} for more details.
|
|
45
52
|
#
|
|
@@ -47,7 +54,9 @@ module Anthropic
|
|
|
47
54
|
#
|
|
48
55
|
# @param created_at [Time] RFC 3339 datetime string indicating when the RBAC Role was created.
|
|
49
56
|
#
|
|
50
|
-
# @param display_name [String] Name of the RBAC Role. For a role
|
|
57
|
+
# @param display_name [String] Name of the RBAC Role. For a built-in role, this is Anthropic's name for the acc
|
|
58
|
+
#
|
|
59
|
+
# @param source [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom] Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
51
60
|
#
|
|
52
61
|
# @param updated_at [Time] RFC 3339 datetime string indicating when the RBAC Role was last updated.
|
|
53
62
|
#
|