anthropic 2.6.0 → 2.8.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 +49 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +1 -1
- data/lib/anthropic/helpers/aws/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/client.rb +17 -5
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
- data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
- data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
- data/lib/anthropic/helpers/vertex/client.rb +26 -12
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -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_cannot_sign_out_managed_member_error.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +2 -2
- 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_new_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +4 -4
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +7 -5
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
- data/lib/anthropic/models/error_details.rb +9 -9
- data/lib/anthropic/models/model.rb +10 -0
- 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_create_params.rb +7 -5
- data/lib/anthropic/models/organization/rbac_role.rb +4 -4
- data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
- data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
- data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
- data/lib/anthropic/models.rb +4 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
- data/lib/anthropic/resources/beta/organization/api_keys.rb +1 -0
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +6 -1
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/beta/organization/invites.rb +3 -0
- 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_groups/members.rb +2 -0
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +5 -0
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +2 -2
- data/lib/anthropic/resources/beta/organization/users.rb +8 -4
- data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/api_keys.rb +1 -0
- data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/organization/external_keys.rb +6 -1
- data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/organization/invites.rb +3 -0
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +2 -0
- data/lib/anthropic/resources/organization/rbac_groups.rb +5 -0
- data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/organization/users.rb +3 -0
- data/lib/anthropic/resources/organization/workspaces/members.rb +4 -0
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +10 -2
- data/rbi/anthropic/helpers/aws/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
- 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_cannot_sign_out_managed_member_error.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +2 -2
- 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_new_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +12 -8
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
- data/rbi/anthropic/models/error_details.rbi +6 -6
- data/rbi/anthropic/models/model.rbi +8 -0
- 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_create_params.rbi +12 -8
- data/rbi/anthropic/models/organization/rbac_role.rbi +6 -6
- data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
- data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
- data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
- data/rbi/anthropic/models.rbi +5 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +6 -4
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +4 -5
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +13 -12
- data/rbi/anthropic/resources/beta/organization/users.rbi +4 -4
- data/rbi/anthropic/resources/organization/external_keys.rbi +6 -4
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
- 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_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_new_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
- data/sig/anthropic/models/error_details.rbs +6 -6
- data/sig/anthropic/models/model.rbs +9 -1
- 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/sandbox_egress_restricted_error.rbs +9 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
- data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
- data/sig/anthropic/models.rbs +4 -0
- data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
- metadata +32 -8
- data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
- data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
- data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
- data/rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi +0 -32
- data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
- data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
|
@@ -30,6 +30,8 @@ module Anthropic
|
|
|
30
30
|
#
|
|
31
31
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
32
|
#
|
|
33
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
34
|
+
#
|
|
33
35
|
# @return [Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit]
|
|
34
36
|
#
|
|
35
37
|
# @see Anthropic::Models::Organization::Workspaces::RateLimitUpdateParams
|
|
@@ -76,6 +76,8 @@ module Anthropic
|
|
|
76
76
|
#
|
|
77
77
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
78
78
|
#
|
|
79
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
80
|
+
#
|
|
79
81
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
80
82
|
#
|
|
81
83
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountUpdateParams
|
|
@@ -172,6 +174,8 @@ module Anthropic
|
|
|
172
174
|
#
|
|
173
175
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
176
|
#
|
|
177
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
178
|
+
#
|
|
175
179
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
176
180
|
#
|
|
177
181
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountAddParams
|
|
@@ -211,6 +215,8 @@ module Anthropic
|
|
|
211
215
|
#
|
|
212
216
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
213
217
|
#
|
|
218
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
219
|
+
#
|
|
214
220
|
# @return [Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveResponse]
|
|
215
221
|
#
|
|
216
222
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveParams
|
|
@@ -39,6 +39,7 @@ module Anthropic
|
|
|
39
39
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
40
40
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
41
41
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
42
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
42
43
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
43
44
|
#
|
|
44
45
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
@@ -109,6 +110,7 @@ module Anthropic
|
|
|
109
110
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
110
111
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
111
112
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
113
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
112
114
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
113
115
|
#
|
|
114
116
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
@@ -175,6 +177,8 @@ module Anthropic
|
|
|
175
177
|
# @param workspace_id [String]
|
|
176
178
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
177
179
|
#
|
|
180
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
181
|
+
#
|
|
178
182
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
179
183
|
#
|
|
180
184
|
# @see Anthropic::Models::Organization::WorkspaceArchiveParams
|
data/lib/anthropic/version.rb
CHANGED
data/lib/anthropic.rb
CHANGED
|
@@ -111,7 +111,6 @@ require_relative "anthropic/internal/page_cursor"
|
|
|
111
111
|
require_relative "anthropic/internal/report_page_cursor"
|
|
112
112
|
require_relative "anthropic/internal/token_page"
|
|
113
113
|
require_relative "anthropic/models/available_tools_limit_exceeded_error"
|
|
114
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error"
|
|
115
114
|
require_relative "anthropic/models/beta/beta_environment_archived_error"
|
|
116
115
|
require_relative "anthropic/models/beta/beta_environment_create_disabled_error"
|
|
117
116
|
require_relative "anthropic/models/beta/beta_environment_not_found_error"
|
|
@@ -182,6 +181,7 @@ require_relative "anthropic/models/ramp_limit_exceeded_error"
|
|
|
182
181
|
require_relative "anthropic/models/request_body_encoding_invalid_error"
|
|
183
182
|
require_relative "anthropic/models/request_body_encoding_unsupported_error"
|
|
184
183
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error"
|
|
184
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error"
|
|
185
185
|
require_relative "anthropic/models/skill_read_blocked_undecryptable_error"
|
|
186
186
|
require_relative "anthropic/models/storage_quota_exceeded_error"
|
|
187
187
|
require_relative "anthropic/models/thread_already_continued_error"
|
|
@@ -243,7 +243,6 @@ require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_blo
|
|
|
243
243
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_block_param"
|
|
244
244
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error"
|
|
245
245
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_param"
|
|
246
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error_details"
|
|
247
246
|
require_relative "anthropic/models/beta/beta_browser_click_target"
|
|
248
247
|
require_relative "anthropic/models/beta/beta_browser_close_tab_config"
|
|
249
248
|
require_relative "anthropic/models/beta/beta_browser_close_tab_input"
|
|
@@ -955,6 +954,7 @@ require_relative "anthropic/models/beta/beta_webhook_session_thread_terminated_e
|
|
|
955
954
|
require_relative "anthropic/models/beta/beta_webhook_session_updated_event_data"
|
|
956
955
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data"
|
|
957
956
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data"
|
|
957
|
+
require_relative "anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data"
|
|
958
958
|
require_relative "anthropic/models/beta/beta_webhook_vault_archived_event_data"
|
|
959
959
|
require_relative "anthropic/models/beta/beta_webhook_vault_created_event_data"
|
|
960
960
|
require_relative "anthropic/models/beta/beta_webhook_vault_credential_archived_event_data"
|
|
@@ -1104,6 +1104,7 @@ require_relative "anthropic/models/beta/organization/beta_analytics_chat_cowork_
|
|
|
1104
1104
|
require_relative "anthropic/models/beta/organization/beta_analytics_chat_metrics"
|
|
1105
1105
|
require_relative "anthropic/models/beta/organization/beta_analytics_claude_code_metrics"
|
|
1106
1106
|
require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_category"
|
|
1107
|
+
require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_metrics"
|
|
1107
1108
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_activity"
|
|
1108
1109
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics"
|
|
1109
1110
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics"
|
|
@@ -1194,6 +1195,11 @@ require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_polic
|
|
|
1194
1195
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
|
|
1195
1196
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only"
|
|
1196
1197
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict"
|
|
1198
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode"
|
|
1199
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake"
|
|
1200
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic"
|
|
1201
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only"
|
|
1202
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread"
|
|
1197
1203
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_settings"
|
|
1198
1204
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_settings_create"
|
|
1199
1205
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_setting_source"
|
|
@@ -2043,6 +2049,7 @@ require_relative "anthropic/models/organization/analytics_chat_cowork_unified_me
|
|
|
2043
2049
|
require_relative "anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics"
|
|
2044
2050
|
require_relative "anthropic/models/organization/analytics_chat_metrics"
|
|
2045
2051
|
require_relative "anthropic/models/organization/analytics_claude_code_metrics"
|
|
2052
|
+
require_relative "anthropic/models/organization/analytics_claude_tag_metrics"
|
|
2046
2053
|
require_relative "anthropic/models/organization/analytics_connector_activity"
|
|
2047
2054
|
require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics"
|
|
2048
2055
|
require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics"
|
|
@@ -2291,6 +2298,7 @@ require_relative "anthropic/models/refusal_stop_details"
|
|
|
2291
2298
|
require_relative "anthropic/models/request_body_encoding_invalid_error_details"
|
|
2292
2299
|
require_relative "anthropic/models/request_body_encoding_unsupported_error_details"
|
|
2293
2300
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error_details"
|
|
2301
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error_details"
|
|
2294
2302
|
require_relative "anthropic/models/search_result_block_param"
|
|
2295
2303
|
require_relative "anthropic/models/server_tool_caller"
|
|
2296
2304
|
require_relative "anthropic/models/server_tool_caller_20260120"
|
|
@@ -25,6 +25,7 @@ module Anthropic
|
|
|
25
25
|
timeout: T.nilable(Float),
|
|
26
26
|
initial_retry_delay: Float,
|
|
27
27
|
max_retry_delay: Float,
|
|
28
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
28
29
|
open_telemetry:
|
|
29
30
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
30
31
|
).returns(T.attached_class)
|
|
@@ -45,6 +46,10 @@ module Anthropic
|
|
|
45
46
|
timeout: nil,
|
|
46
47
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
47
48
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
49
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The
|
|
50
|
+
# workspace ID header and SigV4 signing are applied per attempt, after
|
|
51
|
+
# user middleware.
|
|
52
|
+
middleware: nil,
|
|
48
53
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
49
54
|
open_telemetry: nil
|
|
50
55
|
)
|
|
@@ -27,6 +27,7 @@ module Anthropic
|
|
|
27
27
|
timeout: T.nilable(Float),
|
|
28
28
|
initial_retry_delay: Float,
|
|
29
29
|
max_retry_delay: Float,
|
|
30
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
30
31
|
open_telemetry:
|
|
31
32
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
32
33
|
).returns(T.attached_class)
|
|
@@ -46,6 +47,10 @@ module Anthropic
|
|
|
46
47
|
timeout: nil,
|
|
47
48
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
48
49
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
50
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The user
|
|
51
|
+
# profile ID moves into the body and the request is SigV4-signed per
|
|
52
|
+
# attempt, after user middleware.
|
|
53
|
+
middleware: nil,
|
|
49
54
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
50
55
|
open_telemetry: nil
|
|
51
56
|
)
|
|
@@ -31,6 +31,13 @@ module Anthropic
|
|
|
31
31
|
end
|
|
32
32
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
33
|
|
|
34
|
+
# Built for the most ambitious work in coding, enterprise workflows, and the sciences
|
|
35
|
+
CLAUDE_FABLE_5_2 =
|
|
36
|
+
T.let(
|
|
37
|
+
:"claude-fable-5-2",
|
|
38
|
+
Anthropic::Beta::BetaManagedAgentsModel::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
|
|
34
41
|
# Fastest model for high-volume, real-time tasks
|
|
35
42
|
CLAUDE_HAIKU_5_5 =
|
|
36
43
|
T.let(
|
|
@@ -80,7 +80,8 @@ module Anthropic
|
|
|
80
80
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData::OrHash,
|
|
81
81
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData::OrHash,
|
|
82
82
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData::OrHash,
|
|
83
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash
|
|
83
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash,
|
|
84
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData::OrHash
|
|
84
85
|
),
|
|
85
86
|
type: Symbol
|
|
86
87
|
).returns(T.attached_class)
|
|
@@ -56,7 +56,8 @@ module Anthropic
|
|
|
56
56
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData,
|
|
57
57
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData,
|
|
58
58
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData,
|
|
59
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
59
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData,
|
|
60
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
60
61
|
)
|
|
61
62
|
end
|
|
62
63
|
|
|
@@ -299,6 +300,11 @@ module Anthropic
|
|
|
299
300
|
:"user_profile.enforcement_action_resolved",
|
|
300
301
|
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
301
302
|
)
|
|
303
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
304
|
+
T.let(
|
|
305
|
+
:"user_profile.program_status_updated",
|
|
306
|
+
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
307
|
+
)
|
|
302
308
|
|
|
303
309
|
sig do
|
|
304
310
|
override.returns(
|
data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
BetaWebhookUserProfileProgramStatusUpdatedEventData =
|
|
6
|
+
Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
7
|
+
|
|
8
|
+
module Beta
|
|
9
|
+
class BetaWebhookUserProfileProgramStatusUpdatedEventData < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData,
|
|
14
|
+
Anthropic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# ID of the user profile that triggered the event.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :organization_id
|
|
24
|
+
|
|
25
|
+
sig { returns(Symbol) }
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(id: String, organization_id: String, type: Symbol).returns(
|
|
30
|
+
T.attached_class
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
def self.new(
|
|
34
|
+
# ID of the user profile that triggered the event.
|
|
35
|
+
id:,
|
|
36
|
+
organization_id:,
|
|
37
|
+
type: :"user_profile.program_status_updated"
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{ id: String, organization_id: String, type: Symbol }
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -29,7 +29,8 @@ module Anthropic
|
|
|
29
29
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
30
30
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
31
31
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
32
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
32
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
33
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
33
34
|
sig { returns(T.nilable(String)) }
|
|
34
35
|
attr_accessor :expected_last_heartbeat
|
|
35
36
|
|
|
@@ -69,7 +70,8 @@ module Anthropic
|
|
|
69
70
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
70
71
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
71
72
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
72
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
73
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
74
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
73
75
|
expected_last_heartbeat: nil,
|
|
74
76
|
# Optional header to specify the beta version(s) you want to use.
|
|
75
77
|
betas: nil,
|
|
@@ -128,6 +128,11 @@ module Anthropic
|
|
|
128
128
|
sig { returns(T.nilable(String)) }
|
|
129
129
|
attr_accessor :model
|
|
130
130
|
|
|
131
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
132
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
133
|
+
sig { returns(T.nilable(String)) }
|
|
134
|
+
attr_accessor :organization_id
|
|
135
|
+
|
|
131
136
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
132
137
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
133
138
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -249,6 +254,7 @@ module Anthropic
|
|
|
249
254
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::OrSymbol
|
|
250
255
|
),
|
|
251
256
|
model: T.nilable(String),
|
|
257
|
+
organization_id: T.nilable(String),
|
|
252
258
|
product: T.nilable(String),
|
|
253
259
|
rbac_group_id: T.nilable(String),
|
|
254
260
|
service_tier:
|
|
@@ -324,6 +330,9 @@ module Anthropic
|
|
|
324
330
|
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
325
331
|
# not attributed to a specific model, such as code execution.
|
|
326
332
|
model:,
|
|
333
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
334
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
335
|
+
organization_id:,
|
|
327
336
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
328
337
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
329
338
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -406,6 +415,7 @@ module Anthropic
|
|
|
406
415
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
407
416
|
),
|
|
408
417
|
model: T.nilable(String),
|
|
418
|
+
organization_id: T.nilable(String),
|
|
409
419
|
product: T.nilable(String),
|
|
410
420
|
rbac_group_id: T.nilable(String),
|
|
411
421
|
service_tier:
|
|
@@ -77,6 +77,11 @@ module Anthropic
|
|
|
77
77
|
:model,
|
|
78
78
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy::TaggedSymbol
|
|
79
79
|
)
|
|
80
|
+
ORGANIZATION_ID =
|
|
81
|
+
T.let(
|
|
82
|
+
:organization_id,
|
|
83
|
+
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroupBy::TaggedSymbol
|
|
84
|
+
)
|
|
80
85
|
PRODUCT =
|
|
81
86
|
T.let(
|
|
82
87
|
:product,
|
|
@@ -118,6 +118,11 @@ module Anthropic
|
|
|
118
118
|
sig { returns(T.nilable(String)) }
|
|
119
119
|
attr_accessor :model
|
|
120
120
|
|
|
121
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
122
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
123
|
+
sig { returns(T.nilable(String)) }
|
|
124
|
+
attr_accessor :organization_id
|
|
125
|
+
|
|
121
126
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
122
127
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
123
128
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -225,6 +230,7 @@ module Anthropic
|
|
|
225
230
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::OrSymbol
|
|
226
231
|
),
|
|
227
232
|
model: T.nilable(String),
|
|
233
|
+
organization_id: T.nilable(String),
|
|
228
234
|
product: T.nilable(String),
|
|
229
235
|
rbac_group_id: T.nilable(String),
|
|
230
236
|
service_tier:
|
|
@@ -294,6 +300,9 @@ module Anthropic
|
|
|
294
300
|
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
295
301
|
# not attributed to a specific model, such as code execution.
|
|
296
302
|
model:,
|
|
303
|
+
# UUID of the child organization the usage belongs to, on a parent organization's
|
|
304
|
+
# report across its children. Null unless `organization_id` is in `group_by[]`.
|
|
305
|
+
organization_id:,
|
|
297
306
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
298
307
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
299
308
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
@@ -370,6 +379,7 @@ module Anthropic
|
|
|
370
379
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
371
380
|
),
|
|
372
381
|
model: T.nilable(String),
|
|
382
|
+
organization_id: T.nilable(String),
|
|
373
383
|
product: T.nilable(String),
|
|
374
384
|
rbac_group_id: T.nilable(String),
|
|
375
385
|
service_tier:
|
|
@@ -72,6 +72,11 @@ module Anthropic
|
|
|
72
72
|
:model,
|
|
73
73
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageGroupBy::TaggedSymbol
|
|
74
74
|
)
|
|
75
|
+
ORGANIZATION_ID =
|
|
76
|
+
T.let(
|
|
77
|
+
:organization_id,
|
|
78
|
+
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageGroupBy::TaggedSymbol
|
|
79
|
+
)
|
|
75
80
|
PRODUCT =
|
|
76
81
|
T.let(
|
|
77
82
|
:product,
|
|
@@ -209,6 +209,13 @@ module Anthropic
|
|
|
209
209
|
end
|
|
210
210
|
attr_writer :order_by
|
|
211
211
|
|
|
212
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
213
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
214
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
215
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
216
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
217
|
+
attr_accessor :organization_ids
|
|
218
|
+
|
|
212
219
|
# Opaque cursor from a previous response's `next_page` field.
|
|
213
220
|
sig { returns(T.nilable(String)) }
|
|
214
221
|
attr_accessor :page
|
|
@@ -364,6 +371,7 @@ module Anthropic
|
|
|
364
371
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
365
372
|
order_by:
|
|
366
373
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
|
|
374
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
367
375
|
page: T.nilable(String),
|
|
368
376
|
products:
|
|
369
377
|
T.nilable(
|
|
@@ -480,6 +488,11 @@ module Anthropic
|
|
|
480
488
|
# `time_bucket_width`; without it, `time` is the same as `amount`. Defaults to
|
|
481
489
|
# `amount`.
|
|
482
490
|
order_by: nil,
|
|
491
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
492
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
493
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
494
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
495
|
+
organization_ids: nil,
|
|
483
496
|
# Opaque cursor from a previous response's `next_page` field.
|
|
484
497
|
page: nil,
|
|
485
498
|
# Product surfaces to include. Defaults to all products.
|
|
@@ -574,6 +587,7 @@ module Anthropic
|
|
|
574
587
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
575
588
|
order_by:
|
|
576
589
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
|
|
590
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
577
591
|
page: T.nilable(String),
|
|
578
592
|
products:
|
|
579
593
|
T.nilable(
|
|
@@ -203,6 +203,13 @@ module Anthropic
|
|
|
203
203
|
end
|
|
204
204
|
attr_writer :order_by
|
|
205
205
|
|
|
206
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
207
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
208
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
209
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
210
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
211
|
+
attr_accessor :organization_ids
|
|
212
|
+
|
|
206
213
|
# Opaque cursor from a previous response's `next_page` field.
|
|
207
214
|
sig { returns(T.nilable(String)) }
|
|
208
215
|
attr_accessor :page
|
|
@@ -358,6 +365,7 @@ module Anthropic
|
|
|
358
365
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
359
366
|
order_by:
|
|
360
367
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
|
|
368
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
361
369
|
page: T.nilable(String),
|
|
362
370
|
products:
|
|
363
371
|
T.nilable(
|
|
@@ -468,6 +476,11 @@ module Anthropic
|
|
|
468
476
|
# with `time_bucket_width`; without it, `time` is the same as `total_tokens`.
|
|
469
477
|
# Defaults to `total_tokens`.
|
|
470
478
|
order_by: nil,
|
|
479
|
+
# Filter a parent organization's report to specific child organizations, by
|
|
480
|
+
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
481
|
+
# matches nothing. Requires an API key created at the parent organization level.
|
|
482
|
+
# Use `group_by[]=organization_id` to break out per-organization values.
|
|
483
|
+
organization_ids: nil,
|
|
471
484
|
# Opaque cursor from a previous response's `next_page` field.
|
|
472
485
|
page: nil,
|
|
473
486
|
# Product surfaces to include. Defaults to all products.
|
|
@@ -562,6 +575,7 @@ module Anthropic
|
|
|
562
575
|
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
|
|
563
576
|
order_by:
|
|
564
577
|
Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
|
|
578
|
+
organization_ids: T.nilable(T::Array[String]),
|
|
565
579
|
page: T.nilable(String),
|
|
566
580
|
products:
|
|
567
581
|
T.nilable(
|
|
@@ -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),
|