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
|
@@ -4,14 +4,23 @@ module Anthropic
|
|
|
4
4
|
module Helpers
|
|
5
5
|
module Bedrock
|
|
6
6
|
module EventStream
|
|
7
|
-
AWS_CONTENT_TYPE =
|
|
7
|
+
AWS_CONTENT_TYPE =
|
|
8
|
+
T.let(%r{^application/vnd\.amazon\.eventstream}, Regexp)
|
|
8
9
|
|
|
9
10
|
class << self
|
|
10
|
-
sig
|
|
11
|
+
sig do
|
|
12
|
+
params(chunks: T::Enumerable[String]).returns(T::Enumerable[String])
|
|
13
|
+
end
|
|
11
14
|
def to_sse(chunks)
|
|
12
15
|
end
|
|
13
16
|
|
|
14
|
-
sig
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
decoder: T.untyped,
|
|
20
|
+
chunk: T.nilable(String),
|
|
21
|
+
y: Enumerator::Yielder
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
15
24
|
def drain(decoder, chunk, y)
|
|
16
25
|
end
|
|
17
26
|
|
|
@@ -23,9 +23,13 @@ module Anthropic
|
|
|
23
23
|
|
|
24
24
|
sig do
|
|
25
25
|
params(
|
|
26
|
-
fallbacks:
|
|
27
|
-
T
|
|
28
|
-
|
|
26
|
+
fallbacks:
|
|
27
|
+
T::Array[
|
|
28
|
+
T.any(
|
|
29
|
+
Anthropic::Models::Beta::BetaFallbackParam,
|
|
30
|
+
T::Hash[Symbol, T.anything]
|
|
31
|
+
)
|
|
32
|
+
],
|
|
29
33
|
betas: T::Array[String]
|
|
30
34
|
).void
|
|
31
35
|
end
|
|
@@ -36,7 +40,11 @@ module Anthropic
|
|
|
36
40
|
override
|
|
37
41
|
.params(
|
|
38
42
|
request: Anthropic::APIRequest,
|
|
39
|
-
nxt:
|
|
43
|
+
nxt:
|
|
44
|
+
T
|
|
45
|
+
.proc
|
|
46
|
+
.params(req: Anthropic::APIRequest)
|
|
47
|
+
.returns(Anthropic::APIResponse)
|
|
40
48
|
)
|
|
41
49
|
.returns(Anthropic::APIResponse)
|
|
42
50
|
end
|
|
@@ -57,12 +57,16 @@ module Anthropic
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# @api private
|
|
60
|
-
sig
|
|
60
|
+
sig do
|
|
61
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
62
|
+
end
|
|
61
63
|
private def adapt_request(req)
|
|
62
64
|
end
|
|
63
65
|
|
|
64
66
|
# @api private
|
|
65
|
-
sig
|
|
67
|
+
sig do
|
|
68
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
69
|
+
end
|
|
66
70
|
private def apply_google_auth(req)
|
|
67
71
|
end
|
|
68
72
|
|
|
@@ -477,6 +477,8 @@ module Anthropic
|
|
|
477
477
|
"anthropic.organization.claude_tag.slack_workspaces.list"
|
|
478
478
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_RETRIEVE =
|
|
479
479
|
"anthropic.organization.claude_tag.bundles.retrieve"
|
|
480
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE =
|
|
481
|
+
"anthropic.organization.claude_tag.bundles.update"
|
|
480
482
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_LIST =
|
|
481
483
|
"anthropic.organization.claude_tag.bundles.list"
|
|
482
484
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_CREATE =
|
|
@@ -273,7 +273,7 @@ module Anthropic
|
|
|
273
273
|
end
|
|
274
274
|
|
|
275
275
|
# @api private
|
|
276
|
-
sig { params(max_len: T.nilable(Integer)).returns(String) }
|
|
276
|
+
sig { params(max_len: T.nilable(Integer)).returns(T.nilable(String)) }
|
|
277
277
|
private def read_enum(max_len)
|
|
278
278
|
end
|
|
279
279
|
|
|
@@ -311,7 +311,7 @@ module Anthropic
|
|
|
311
311
|
JSON_CONTENT =
|
|
312
312
|
T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
|
|
313
313
|
JSONL_CONTENT =
|
|
314
|
-
T.let(%r{^application/(
|
|
314
|
+
T.let(%r{^application/(?:x-(?:n|l)djson|(?:x-)?jsonl)}, Regexp)
|
|
315
315
|
|
|
316
316
|
class << self
|
|
317
317
|
# @api private
|
|
@@ -19,16 +19,6 @@ module Anthropic
|
|
|
19
19
|
TaggedSymbol = T.type_alias { T.all(Symbol, Anthropic::AnthropicBeta) }
|
|
20
20
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
21
21
|
|
|
22
|
-
MESSAGE_BATCHES_2024_09_24 =
|
|
23
|
-
T.let(
|
|
24
|
-
:"message-batches-2024-09-24",
|
|
25
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
26
|
-
)
|
|
27
|
-
PROMPT_CACHING_2024_07_31 =
|
|
28
|
-
T.let(
|
|
29
|
-
:"prompt-caching-2024-07-31",
|
|
30
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
31
|
-
)
|
|
32
22
|
COMPUTER_USE_2024_10_22 =
|
|
33
23
|
T.let(
|
|
34
24
|
:"computer-use-2024-10-22",
|
|
@@ -39,22 +29,8 @@ module Anthropic
|
|
|
39
29
|
:"computer-use-2025-01-24",
|
|
40
30
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
41
31
|
)
|
|
42
|
-
PDFS_2024_09_25 =
|
|
43
|
-
T.let(:"pdfs-2024-09-25", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
44
|
-
TOKEN_COUNTING_2024_11_01 =
|
|
45
|
-
T.let(
|
|
46
|
-
:"token-counting-2024-11-01",
|
|
47
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
48
|
-
)
|
|
49
|
-
TOKEN_EFFICIENT_TOOLS_2025_02_19 =
|
|
50
|
-
T.let(
|
|
51
|
-
:"token-efficient-tools-2025-02-19",
|
|
52
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
53
|
-
)
|
|
54
32
|
OUTPUT_128K_2025_02_19 =
|
|
55
33
|
T.let(:"output-128k-2025-02-19", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
56
|
-
FILES_API_2025_04_14 =
|
|
57
|
-
T.let(:"files-api-2025-04-14", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
58
34
|
MCP_CLIENT_2025_04_04 =
|
|
59
35
|
T.let(:"mcp-client-2025-04-04", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
60
36
|
MCP_CLIENT_2025_11_20 =
|
|
@@ -74,11 +50,6 @@ module Anthropic
|
|
|
74
50
|
:"code-execution-2025-05-22",
|
|
75
51
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
76
52
|
)
|
|
77
|
-
EXTENDED_CACHE_TTL_2025_04_11 =
|
|
78
|
-
T.let(
|
|
79
|
-
:"extended-cache-ttl-2025-04-11",
|
|
80
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
81
|
-
)
|
|
82
53
|
CONTEXT_1M_2025_08_07 =
|
|
83
54
|
T.let(:"context-1m-2025-08-07", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
84
55
|
CONTEXT_MANAGEMENT_2025_06_27 =
|
|
@@ -91,8 +62,6 @@ module Anthropic
|
|
|
91
62
|
:"model-context-window-exceeded-2025-08-26",
|
|
92
63
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
93
64
|
)
|
|
94
|
-
SKILLS_2025_10_02 =
|
|
95
|
-
T.let(:"skills-2025-10-02", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
96
65
|
FAST_MODE_2026_02_01 =
|
|
97
66
|
T.let(:"fast-mode-2026-02-01", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
98
67
|
OUTPUT_300K_2026_03_24 =
|
|
@@ -122,11 +91,6 @@ module Anthropic
|
|
|
122
91
|
:"managed-agents-2026-04-01",
|
|
123
92
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
124
93
|
)
|
|
125
|
-
CACHE_DIAGNOSIS_2026_04_07 =
|
|
126
|
-
T.let(
|
|
127
|
-
:"cache-diagnosis-2026-04-07",
|
|
128
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
129
|
-
)
|
|
130
94
|
DREAMING_2026_04_21 =
|
|
131
95
|
T.let(:"dreaming-2026-04-21", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
132
96
|
THINKING_TOKEN_COUNT_2026_05_13 =
|
|
@@ -188,11 +152,6 @@ module Anthropic
|
|
|
188
152
|
:"thinking-display-updates-2026-08-18",
|
|
189
153
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
190
154
|
)
|
|
191
|
-
CE_USER_MANAGEMENT_2026_07_13 =
|
|
192
|
-
T.let(
|
|
193
|
-
:"ce-user-management-2026-07-13",
|
|
194
|
-
Anthropic::AnthropicBeta::TaggedSymbol
|
|
195
|
-
)
|
|
196
155
|
MID_CONVERSATION_OUTPUT_CONFIG_2026_07_01 =
|
|
197
156
|
T.let(
|
|
198
157
|
:"mid-conversation-output-config-2026-07-01",
|
|
@@ -251,6 +210,47 @@ module Anthropic
|
|
|
251
210
|
:"experimental-claude-tag-2026-10-21",
|
|
252
211
|
Anthropic::AnthropicBeta::TaggedSymbol
|
|
253
212
|
)
|
|
213
|
+
MESSAGE_BATCHES_2024_09_24 =
|
|
214
|
+
T.let(
|
|
215
|
+
:"message-batches-2024-09-24",
|
|
216
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
217
|
+
)
|
|
218
|
+
PROMPT_CACHING_2024_07_31 =
|
|
219
|
+
T.let(
|
|
220
|
+
:"prompt-caching-2024-07-31",
|
|
221
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
222
|
+
)
|
|
223
|
+
PDFS_2024_09_25 =
|
|
224
|
+
T.let(:"pdfs-2024-09-25", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
225
|
+
TOKEN_COUNTING_2024_11_01 =
|
|
226
|
+
T.let(
|
|
227
|
+
:"token-counting-2024-11-01",
|
|
228
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
229
|
+
)
|
|
230
|
+
TOKEN_EFFICIENT_TOOLS_2025_02_19 =
|
|
231
|
+
T.let(
|
|
232
|
+
:"token-efficient-tools-2025-02-19",
|
|
233
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
234
|
+
)
|
|
235
|
+
FILES_API_2025_04_14 =
|
|
236
|
+
T.let(:"files-api-2025-04-14", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
237
|
+
EXTENDED_CACHE_TTL_2025_04_11 =
|
|
238
|
+
T.let(
|
|
239
|
+
:"extended-cache-ttl-2025-04-11",
|
|
240
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
241
|
+
)
|
|
242
|
+
SKILLS_2025_10_02 =
|
|
243
|
+
T.let(:"skills-2025-10-02", Anthropic::AnthropicBeta::TaggedSymbol)
|
|
244
|
+
CACHE_DIAGNOSIS_2026_04_07 =
|
|
245
|
+
T.let(
|
|
246
|
+
:"cache-diagnosis-2026-04-07",
|
|
247
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
CE_USER_MANAGEMENT_2026_07_13 =
|
|
250
|
+
T.let(
|
|
251
|
+
:"ce-user-management-2026-07-13",
|
|
252
|
+
Anthropic::AnthropicBeta::TaggedSymbol
|
|
253
|
+
)
|
|
254
254
|
end
|
|
255
255
|
end
|
|
256
256
|
end
|
|
@@ -20,7 +20,9 @@ module Anthropic
|
|
|
20
20
|
# The server decides each tool call individually: it judges, from the tool, its
|
|
21
21
|
# input, and the session content so far, whether the call is safe to execute or
|
|
22
22
|
# high-risk, and evaluates it to allow when judged safe and to deny when judged
|
|
23
|
-
# high-risk. A call the server cannot reach a judgement on evaluates to ask
|
|
23
|
+
# high-risk. A call the server cannot reach a judgement on evaluates to ask, or
|
|
24
|
+
# for some causes to deny, for example when the organization is out of credits or
|
|
25
|
+
# has reached a spend limit.
|
|
24
26
|
sig { params(type: Symbol).returns(T.attached_class) }
|
|
25
27
|
def self.new(type: :auto)
|
|
26
28
|
end
|
|
@@ -31,7 +31,7 @@ module Anthropic
|
|
|
31
31
|
end
|
|
32
32
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
33
|
|
|
34
|
-
#
|
|
34
|
+
# Built for the most ambitious work in coding, enterprise workflows, and the sciences
|
|
35
35
|
CLAUDE_FABLE_5_2 =
|
|
36
36
|
T.let(
|
|
37
37
|
:"claude-fable-5-2",
|
|
@@ -38,8 +38,9 @@ module Anthropic
|
|
|
38
38
|
sig { returns(Symbol) }
|
|
39
39
|
attr_accessor :type
|
|
40
40
|
|
|
41
|
-
#
|
|
42
|
-
#
|
|
41
|
+
# Recommendation: use `multiagent_20261001` instead of `coordinator`. A
|
|
42
|
+
# coordinator topology: the session's primary thread orchestrates work by spawning
|
|
43
|
+
# session threads, each running an agent drawn from the `agents` roster.
|
|
43
44
|
sig do
|
|
44
45
|
params(
|
|
45
46
|
agents:
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
17
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
18
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
19
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
20
|
+
# any other row when no covered day was measured.
|
|
21
|
+
sig { returns(T.nilable(Integer)) }
|
|
22
|
+
attr_accessor :active_day_count
|
|
23
|
+
|
|
24
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
25
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
26
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
27
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
28
|
+
# when no covered day was measured.
|
|
29
|
+
sig { returns(T.nilable(Integer)) }
|
|
30
|
+
attr_accessor :active_message_count
|
|
31
|
+
|
|
32
|
+
# Claude Tag activity metrics for a single linked user on a given day.
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
active_day_count: T.nilable(Integer),
|
|
36
|
+
active_message_count: T.nilable(Integer)
|
|
37
|
+
).returns(T.attached_class)
|
|
38
|
+
end
|
|
39
|
+
def self.new(
|
|
40
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
41
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
42
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
43
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
44
|
+
# any other row when no covered day was measured.
|
|
45
|
+
active_day_count:,
|
|
46
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
47
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
48
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
49
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
50
|
+
# when no covered day was measured.
|
|
51
|
+
active_message_count:
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
active_day_count: T.nilable(Integer),
|
|
59
|
+
active_message_count: T.nilable(Integer)
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
def to_hash
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -145,6 +145,36 @@ module Anthropic
|
|
|
145
145
|
sig { returns(T.nilable(Integer)) }
|
|
146
146
|
attr_accessor :claude_design_weekly_active_user_count
|
|
147
147
|
|
|
148
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
149
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
150
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
151
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
152
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
153
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
154
|
+
# reporting.
|
|
155
|
+
sig { returns(T.nilable(Integer)) }
|
|
156
|
+
attr_accessor :claude_tag_daily_active_user_count
|
|
157
|
+
|
|
158
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
159
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
160
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
161
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
162
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
163
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
164
|
+
# Tag reporting.
|
|
165
|
+
sig { returns(T.nilable(Integer)) }
|
|
166
|
+
attr_accessor :claude_tag_monthly_active_user_count
|
|
167
|
+
|
|
168
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
169
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
170
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
171
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
172
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
173
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
174
|
+
# Tag reporting.
|
|
175
|
+
sig { returns(T.nilable(Integer)) }
|
|
176
|
+
attr_accessor :claude_tag_weekly_active_user_count
|
|
177
|
+
|
|
148
178
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
149
179
|
# from the response while the per-product breakdown is not enabled for this
|
|
150
180
|
# organization.
|
|
@@ -217,6 +247,9 @@ module Anthropic
|
|
|
217
247
|
claude_design_daily_active_user_count: T.nilable(Integer),
|
|
218
248
|
claude_design_monthly_active_user_count: T.nilable(Integer),
|
|
219
249
|
claude_design_weekly_active_user_count: T.nilable(Integer),
|
|
250
|
+
claude_tag_daily_active_user_count: T.nilable(Integer),
|
|
251
|
+
claude_tag_monthly_active_user_count: T.nilable(Integer),
|
|
252
|
+
claude_tag_weekly_active_user_count: T.nilable(Integer),
|
|
220
253
|
office_agent_daily_active_user_count: T.nilable(Integer),
|
|
221
254
|
office_agent_monthly_active_user_count: T.nilable(Integer),
|
|
222
255
|
office_agent_weekly_active_user_count: T.nilable(Integer),
|
|
@@ -309,6 +342,30 @@ module Anthropic
|
|
|
309
342
|
# from the response while the per-product breakdown is not enabled for this
|
|
310
343
|
# organization.
|
|
311
344
|
claude_design_weekly_active_user_count: nil,
|
|
345
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
346
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
347
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
348
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
349
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
350
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
351
|
+
# reporting.
|
|
352
|
+
claude_tag_daily_active_user_count: nil,
|
|
353
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
354
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
355
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
356
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
357
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
358
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
359
|
+
# Tag reporting.
|
|
360
|
+
claude_tag_monthly_active_user_count: nil,
|
|
361
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
362
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
363
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
364
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
365
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
366
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
367
|
+
# Tag reporting.
|
|
368
|
+
claude_tag_weekly_active_user_count: nil,
|
|
312
369
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
313
370
|
# from the response while the per-product breakdown is not enabled for this
|
|
314
371
|
# organization.
|
|
@@ -372,6 +429,9 @@ module Anthropic
|
|
|
372
429
|
claude_design_daily_active_user_count: T.nilable(Integer),
|
|
373
430
|
claude_design_monthly_active_user_count: T.nilable(Integer),
|
|
374
431
|
claude_design_weekly_active_user_count: T.nilable(Integer),
|
|
432
|
+
claude_tag_daily_active_user_count: T.nilable(Integer),
|
|
433
|
+
claude_tag_monthly_active_user_count: T.nilable(Integer),
|
|
434
|
+
claude_tag_weekly_active_user_count: T.nilable(Integer),
|
|
375
435
|
office_agent_daily_active_user_count: T.nilable(Integer),
|
|
376
436
|
office_agent_monthly_active_user_count: T.nilable(Integer),
|
|
377
437
|
office_agent_weekly_active_user_count: T.nilable(Integer),
|
|
@@ -150,6 +150,29 @@ module Anthropic
|
|
|
150
150
|
end
|
|
151
151
|
attr_writer :chat_cowork_unified_metrics
|
|
152
152
|
|
|
153
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
154
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
155
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
156
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
157
|
+
sig do
|
|
158
|
+
returns(
|
|
159
|
+
T.nilable(
|
|
160
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
|
|
161
|
+
)
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
attr_reader :claude_tag_metrics
|
|
165
|
+
|
|
166
|
+
sig do
|
|
167
|
+
params(
|
|
168
|
+
claude_tag_metrics:
|
|
169
|
+
T.nilable(
|
|
170
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
|
|
171
|
+
)
|
|
172
|
+
).void
|
|
173
|
+
end
|
|
174
|
+
attr_writer :claude_tag_metrics
|
|
175
|
+
|
|
153
176
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
154
177
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
155
178
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -199,6 +222,10 @@ module Anthropic
|
|
|
199
222
|
T.nilable(
|
|
200
223
|
Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics::OrHash
|
|
201
224
|
),
|
|
225
|
+
claude_tag_metrics:
|
|
226
|
+
T.nilable(
|
|
227
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
|
|
228
|
+
),
|
|
202
229
|
last_activity_date: T.nilable(Date),
|
|
203
230
|
rbac_group_id: T.nilable(String),
|
|
204
231
|
rbac_group_name: T.nilable(String)
|
|
@@ -232,6 +259,11 @@ module Anthropic
|
|
|
232
259
|
# `sessions` (Cowork activity). Omitted from the response where Chat and Cowork
|
|
233
260
|
# unified is not available.
|
|
234
261
|
chat_cowork_unified_metrics: nil,
|
|
262
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
263
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
264
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
265
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
266
|
+
claude_tag_metrics: nil,
|
|
235
267
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
236
268
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
237
269
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -276,6 +308,10 @@ module Anthropic
|
|
|
276
308
|
T.nilable(
|
|
277
309
|
Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics
|
|
278
310
|
),
|
|
311
|
+
claude_tag_metrics:
|
|
312
|
+
T.nilable(
|
|
313
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
|
|
314
|
+
),
|
|
279
315
|
last_activity_date: T.nilable(Date),
|
|
280
316
|
rbac_group_id: T.nilable(String),
|
|
281
317
|
rbac_group_name: T.nilable(String)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The Bundle has an attachment this API does not support editing, so its
|
|
8
|
+
# instructions can be changed only in claude.ai.
|
|
9
|
+
class BetaBundleAttachmentNotSupportedError < Anthropic::Errors::BadRequestError
|
|
10
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaBundleAttachmentNotSupportedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# The Bundle has an attachment this API does not support editing, so its
|
|
20
|
+
# instructions can be changed only in claude.ai.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :bundle_attachment_not_supported)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through
|
|
8
|
+
# the API.
|
|
9
|
+
class BetaBundleOnCallError < Anthropic::Errors::BadRequestError
|
|
10
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails)
|
|
16
|
+
end
|
|
17
|
+
def details
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaBundleOnCallErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :error_code
|
|
18
|
+
|
|
19
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through
|
|
20
|
+
# the API.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :bundle_on_call)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|