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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute active_day_count
|
|
9
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
10
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
11
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
12
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
13
|
+
# any other row when no covered day was measured.
|
|
14
|
+
#
|
|
15
|
+
# @return [Integer, nil]
|
|
16
|
+
required :active_day_count, Integer, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute active_message_count
|
|
19
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
20
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
21
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
22
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
23
|
+
# when no covered day was measured.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
required :active_message_count, Integer, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!method initialize(active_day_count:, active_message_count:)
|
|
29
|
+
# Claude Tag activity metrics for a single linked user on a given day.
|
|
30
|
+
#
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsClaudeTagMetrics} for more
|
|
33
|
+
# details.
|
|
34
|
+
#
|
|
35
|
+
# @param active_day_count [Integer, nil] 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
36
|
+
#
|
|
37
|
+
# @param active_message_count [Integer, nil] Number of the user's Slack messages that made them active: @-mentions, direct me
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -187,6 +187,42 @@ module Anthropic
|
|
|
187
187
|
# @return [Integer, nil]
|
|
188
188
|
optional :claude_design_weekly_active_user_count, Integer, nil?: true
|
|
189
189
|
|
|
190
|
+
# @!attribute claude_tag_daily_active_user_count
|
|
191
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
192
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
193
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
194
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
195
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
196
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
197
|
+
# reporting.
|
|
198
|
+
#
|
|
199
|
+
# @return [Integer, nil]
|
|
200
|
+
optional :claude_tag_daily_active_user_count, Integer, nil?: true
|
|
201
|
+
|
|
202
|
+
# @!attribute claude_tag_monthly_active_user_count
|
|
203
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
204
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
205
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
206
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
207
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
208
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
209
|
+
# Tag reporting.
|
|
210
|
+
#
|
|
211
|
+
# @return [Integer, nil]
|
|
212
|
+
optional :claude_tag_monthly_active_user_count, Integer, nil?: true
|
|
213
|
+
|
|
214
|
+
# @!attribute claude_tag_weekly_active_user_count
|
|
215
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
216
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
217
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
218
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
219
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
220
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
221
|
+
# Tag reporting.
|
|
222
|
+
#
|
|
223
|
+
# @return [Integer, nil]
|
|
224
|
+
optional :claude_tag_weekly_active_user_count, Integer, nil?: true
|
|
225
|
+
|
|
190
226
|
# @!attribute office_agent_daily_active_user_count
|
|
191
227
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
192
228
|
# from the response while the per-product breakdown is not enabled for this
|
|
@@ -245,7 +281,7 @@ module Anthropic
|
|
|
245
281
|
# @return [Integer, nil]
|
|
246
282
|
optional :science_weekly_active_user_count, Integer, nil?: true
|
|
247
283
|
|
|
248
|
-
# @!method initialize(assigned_seat_count:, cowork_daily_active_user_count:, cowork_monthly_active_user_count:, cowork_weekly_active_user_count:, daily_active_user_count:, daily_adoption_rate:, ending_at:, monthly_active_user_count:, monthly_adoption_rate:, pending_invite_count:, starting_at:, weekly_active_user_count:, weekly_adoption_rate:, chat_cowork_unified_daily_active_user_count: nil, chat_cowork_unified_monthly_active_user_count: nil, chat_cowork_unified_weekly_active_user_count: nil, chat_daily_active_user_count: nil, chat_monthly_active_user_count: nil, chat_weekly_active_user_count: nil, claude_code_daily_active_user_count: nil, claude_code_monthly_active_user_count: nil, claude_code_weekly_active_user_count: nil, claude_design_daily_active_user_count: nil, claude_design_monthly_active_user_count: nil, claude_design_weekly_active_user_count: nil, office_agent_daily_active_user_count: nil, office_agent_monthly_active_user_count: nil, office_agent_weekly_active_user_count: nil, science_daily_active_user_count: nil, science_entitled_user_count: nil, science_monthly_active_user_count: nil, science_weekly_active_user_count: nil)
|
|
284
|
+
# @!method initialize(assigned_seat_count:, cowork_daily_active_user_count:, cowork_monthly_active_user_count:, cowork_weekly_active_user_count:, daily_active_user_count:, daily_adoption_rate:, ending_at:, monthly_active_user_count:, monthly_adoption_rate:, pending_invite_count:, starting_at:, weekly_active_user_count:, weekly_adoption_rate:, chat_cowork_unified_daily_active_user_count: nil, chat_cowork_unified_monthly_active_user_count: nil, chat_cowork_unified_weekly_active_user_count: nil, chat_daily_active_user_count: nil, chat_monthly_active_user_count: nil, chat_weekly_active_user_count: nil, claude_code_daily_active_user_count: nil, claude_code_monthly_active_user_count: nil, claude_code_weekly_active_user_count: nil, claude_design_daily_active_user_count: nil, claude_design_monthly_active_user_count: nil, claude_design_weekly_active_user_count: nil, claude_tag_daily_active_user_count: nil, claude_tag_monthly_active_user_count: nil, claude_tag_weekly_active_user_count: nil, office_agent_daily_active_user_count: nil, office_agent_monthly_active_user_count: nil, office_agent_weekly_active_user_count: nil, science_daily_active_user_count: nil, science_entitled_user_count: nil, science_monthly_active_user_count: nil, science_weekly_active_user_count: nil)
|
|
249
285
|
# Per-day entry in the /summaries response.
|
|
250
286
|
#
|
|
251
287
|
# Some parameter documentations has been truncated, see
|
|
@@ -302,6 +338,12 @@ module Anthropic
|
|
|
302
338
|
#
|
|
303
339
|
# @param claude_design_weekly_active_user_count [Integer, nil] Number of users with Claude Design activity in the 7-day rolling window. Omitted
|
|
304
340
|
#
|
|
341
|
+
# @param claude_tag_daily_active_user_count [Integer, nil] Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
342
|
+
#
|
|
343
|
+
# @param claude_tag_monthly_active_user_count [Integer, nil] Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
344
|
+
#
|
|
345
|
+
# @param claude_tag_weekly_active_user_count [Integer, nil] Number of Slack users active in Claude Tag in the 7-day rolling window. Counts d
|
|
346
|
+
#
|
|
305
347
|
# @param office_agent_daily_active_user_count [Integer, nil] Number of users with Claude in Office activity on the requested day. Omitted fro
|
|
306
348
|
#
|
|
307
349
|
# @param office_agent_monthly_active_user_count [Integer, nil] Number of users with Claude in Office activity in the 30-day rolling window. Omi
|
|
@@ -74,6 +74,17 @@ module Anthropic
|
|
|
74
74
|
-> { Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics },
|
|
75
75
|
nil?: true
|
|
76
76
|
|
|
77
|
+
# @!attribute claude_tag_metrics
|
|
78
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
79
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
80
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
81
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
82
|
+
#
|
|
83
|
+
# @return [Anthropic::Models::Beta::Organization::BetaAnalyticsClaudeTagMetrics, nil]
|
|
84
|
+
optional :claude_tag_metrics,
|
|
85
|
+
-> { Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics },
|
|
86
|
+
nil?: true
|
|
87
|
+
|
|
77
88
|
# @!attribute last_activity_date
|
|
78
89
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
79
90
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
@@ -104,7 +115,7 @@ module Anthropic
|
|
|
104
115
|
# @return [String, nil]
|
|
105
116
|
optional :rbac_group_name, String, nil?: true
|
|
106
117
|
|
|
107
|
-
# @!method initialize(chat_metrics:, claude_code_metrics:, cowork_metrics:, design_metrics:, distinct_user_count:, office_metrics:, science_metrics:, user:, web_search_count:, chat_cowork_unified_metrics: nil, last_activity_date: nil, rbac_group_id: nil, rbac_group_name: nil)
|
|
118
|
+
# @!method initialize(chat_metrics:, claude_code_metrics:, cowork_metrics:, design_metrics:, distinct_user_count:, office_metrics:, science_metrics:, user:, web_search_count:, chat_cowork_unified_metrics: nil, claude_tag_metrics: nil, last_activity_date: nil, rbac_group_id: nil, rbac_group_name: nil)
|
|
108
119
|
# Per-user activity data for a given day.
|
|
109
120
|
#
|
|
110
121
|
# Some parameter documentations has been truncated, see
|
|
@@ -131,6 +142,8 @@ module Anthropic
|
|
|
131
142
|
#
|
|
132
143
|
# @param chat_cowork_unified_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics, nil] Activity recorded while the member had Chat and Cowork unified (Cowork's feature
|
|
133
144
|
#
|
|
145
|
+
# @param claude_tag_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsClaudeTagMetrics, nil] Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
146
|
+
#
|
|
134
147
|
# @param last_activity_date [Date, nil] Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, wit
|
|
135
148
|
#
|
|
136
149
|
# @param rbac_group_id [String, nil] Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API s
|
|
@@ -4,8 +4,8 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
6
|
module Organization
|
|
7
|
-
#
|
|
8
|
-
#
|
|
7
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
8
|
+
# out. The error message says which keys and tokens can.
|
|
9
9
|
class BetaCannotSignOutManagedMemberError < Anthropic::Errors::PermissionDeniedError
|
|
10
10
|
# @!method error_code
|
|
11
11
|
# @return [Symbol, :cannot_sign_out_managed_member]
|
data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb
CHANGED
|
@@ -11,8 +11,8 @@ module Anthropic
|
|
|
11
11
|
required :error_code, const: :cannot_sign_out_managed_member
|
|
12
12
|
|
|
13
13
|
# @!method initialize(error_code: :cannot_sign_out_managed_member)
|
|
14
|
-
#
|
|
15
|
-
#
|
|
14
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
15
|
+
# out. The error message says which keys and tokens can.
|
|
16
16
|
#
|
|
17
17
|
# @param error_code [Symbol, :cannot_sign_out_managed_member]
|
|
18
18
|
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# How Claude takes part in a Slack channel. A channel alone stores one. More types
|
|
8
|
+
# can be added.
|
|
9
|
+
module BetaClaudeTagReplyMode
|
|
10
|
+
extend Anthropic::Internal::Type::Union
|
|
11
|
+
|
|
12
|
+
discriminator :type
|
|
13
|
+
|
|
14
|
+
# Claude reads along and joins in when it can help, and pauses on its own in quiet or busy channels.
|
|
15
|
+
variant :automatic, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic }
|
|
16
|
+
|
|
17
|
+
# Claude replies only when it is @-mentioned.
|
|
18
|
+
variant :mention_only, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly }
|
|
19
|
+
|
|
20
|
+
# Like `automatic`, but Claude never pauses on its own. Available where it is enabled for the channel.
|
|
21
|
+
variant :always_awake, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake }
|
|
22
|
+
|
|
23
|
+
# Every new top-level message in the channel gets its own reply from Claude, in a thread under it. Available where it is enabled for the channel, and only once Claude has been used in the channel.
|
|
24
|
+
variant :thread, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread }
|
|
25
|
+
|
|
26
|
+
module Type
|
|
27
|
+
extend Anthropic::Internal::Type::Enum
|
|
28
|
+
|
|
29
|
+
AUTOMATIC = :automatic
|
|
30
|
+
MENTION_ONLY = :mention_only
|
|
31
|
+
ALWAYS_AWAKE = :always_awake
|
|
32
|
+
THREAD = :thread
|
|
33
|
+
|
|
34
|
+
# @!method self.values
|
|
35
|
+
# @return [Array<Symbol>]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# @!method self.variants
|
|
39
|
+
# @return [Array(Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread)]
|
|
40
|
+
|
|
41
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
42
|
+
# value, passing the remaining arguments to its constructor.
|
|
43
|
+
#
|
|
44
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode::Type, String]
|
|
45
|
+
#
|
|
46
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
47
|
+
#
|
|
48
|
+
# @raise [ArgumentError]
|
|
49
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread]
|
|
50
|
+
def self.new(type:, **args)
|
|
51
|
+
case type.to_sym
|
|
52
|
+
when :automatic
|
|
53
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic.new(**args)
|
|
54
|
+
when :mention_only
|
|
55
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly.new(**args)
|
|
56
|
+
when :always_awake
|
|
57
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake.new(**args)
|
|
58
|
+
when :thread
|
|
59
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread.new(**args)
|
|
60
|
+
else
|
|
61
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeAlwaysAwake < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :always_awake]
|
|
11
|
+
required :type, const: :always_awake
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :always_awake)
|
|
14
|
+
# Like `automatic`, but Claude never pauses on its own. Available where it is
|
|
15
|
+
# enabled for the channel.
|
|
16
|
+
#
|
|
17
|
+
# @param type [Symbol, :always_awake]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeAutomatic < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :automatic]
|
|
11
|
+
required :type, const: :automatic
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :automatic)
|
|
14
|
+
# Claude reads along and joins in when it can help, and pauses on its own in quiet
|
|
15
|
+
# or busy channels.
|
|
16
|
+
#
|
|
17
|
+
# @param type [Symbol, :automatic]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeMentionOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :mention_only]
|
|
11
|
+
required :type, const: :mention_only
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :mention_only)
|
|
14
|
+
# Claude replies only when it is @-mentioned.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :mention_only]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeThread < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :thread]
|
|
11
|
+
required :type, const: :thread
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :thread)
|
|
14
|
+
# Every new top-level message in the channel gets its own reply from Claude, in a
|
|
15
|
+
# thread under it. Available where it is enabled for the channel, and only once
|
|
16
|
+
# Claude has been used in the channel.
|
|
17
|
+
#
|
|
18
|
+
# @param type [Symbol, :thread]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -45,7 +45,18 @@ module Anthropic
|
|
|
45
45
|
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
46
46
|
required :model, union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource }, nil?: true
|
|
47
47
|
|
|
48
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# The settings level `reply_mode` comes from: the channel when it stores one. With
|
|
50
|
+
# `include_inherited=true` and no stored mode it is `default`.
|
|
51
|
+
#
|
|
52
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
53
|
+
required :reply_mode,
|
|
54
|
+
union: -> {
|
|
55
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingSource
|
|
56
|
+
},
|
|
57
|
+
nil?: true
|
|
58
|
+
|
|
59
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:, reply_mode:)
|
|
49
60
|
# For each setting, the settings level its value in `settings` comes from. Without
|
|
50
61
|
# `include_inherited`, a setting the channel or workspace stores has a source that
|
|
51
62
|
# names the channel or workspace itself, and one it does not store has null, or an
|
|
@@ -65,6 +76,8 @@ module Anthropic
|
|
|
65
76
|
# @param instructions [Array<Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource>] Every settings level that contributes text to `instructions`, broadest first, in
|
|
66
77
|
#
|
|
67
78
|
# @param model [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `model` comes from.
|
|
79
|
+
#
|
|
80
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `reply_mode` comes from: the channel when it stores one. With
|
|
68
81
|
end
|
|
69
82
|
end
|
|
70
83
|
end
|
|
@@ -45,11 +45,26 @@ module Anthropic
|
|
|
45
45
|
# @return [String, nil]
|
|
46
46
|
required :model, String, nil?: true
|
|
47
47
|
|
|
48
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
50
|
+
# level passes one on, so it is always null on a workspace. Null on a channel
|
|
51
|
+
# means the channel stores none yet: Claude then follows the reply mode chosen in
|
|
52
|
+
# Slack, if one was, else `automatic`. A stored reply mode can be changed but
|
|
53
|
+
# never cleared.
|
|
54
|
+
#
|
|
55
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
56
|
+
required :reply_mode,
|
|
57
|
+
union: -> {
|
|
58
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
59
|
+
},
|
|
60
|
+
nil?: true
|
|
61
|
+
|
|
62
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:, reply_mode:)
|
|
49
63
|
# Claude Tag settings. Without `include_inherited`, a setting that is null is not
|
|
50
64
|
# set on the settings level and is inherited. With it, `enabled` and
|
|
51
|
-
# `guest_policy` are never null,
|
|
52
|
-
#
|
|
65
|
+
# `guest_policy` are never null, `instructions`, `model` and `environment_id` are
|
|
66
|
+
# null when no settings level sets them, and `reply_mode` is null unless the
|
|
67
|
+
# channel itself stores one.
|
|
53
68
|
#
|
|
54
69
|
# Some parameter documentations has been truncated, see
|
|
55
70
|
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettings} for more details.
|
|
@@ -63,6 +78,8 @@ module Anthropic
|
|
|
63
78
|
# @param instructions [String, nil] Instructions for Claude. Instructions add up: the text of every settings level t
|
|
64
79
|
#
|
|
65
80
|
# @param model [String, nil] The model Claude uses: a model identifier or the name of a model line. The neare
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
66
83
|
end
|
|
67
84
|
end
|
|
68
85
|
end
|
|
@@ -14,7 +14,9 @@ module Anthropic
|
|
|
14
14
|
|
|
15
15
|
# @!attribute environment_id
|
|
16
16
|
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
-
# environment of the organization, starting with `env_
|
|
17
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
18
|
+
# runner pool of the organization that every member may use, starting with
|
|
19
|
+
# `ccpool_`. Null clears it.
|
|
18
20
|
#
|
|
19
21
|
# @return [String, nil]
|
|
20
22
|
optional :environment_id, String, nil?: true
|
|
@@ -43,7 +45,23 @@ module Anthropic
|
|
|
43
45
|
# @return [String, nil]
|
|
44
46
|
optional :model, String, nil?: true
|
|
45
47
|
|
|
46
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
50
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
51
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
52
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
53
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
54
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
55
|
+
# `automatic`.
|
|
56
|
+
#
|
|
57
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
58
|
+
optional :reply_mode,
|
|
59
|
+
union: -> {
|
|
60
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
61
|
+
},
|
|
62
|
+
nil?: true
|
|
63
|
+
|
|
64
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil, reply_mode: nil)
|
|
47
65
|
# The settings in a request that sets a Slack channel up. A setting left out is
|
|
48
66
|
# not set. A setting sent as null is cleared.
|
|
49
67
|
#
|
|
@@ -60,6 +78,8 @@ module Anthropic
|
|
|
60
78
|
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
79
|
#
|
|
62
80
|
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
63
83
|
end
|
|
64
84
|
end
|
|
65
85
|
end
|
|
@@ -14,7 +14,9 @@ module Anthropic
|
|
|
14
14
|
|
|
15
15
|
# @!attribute environment_id
|
|
16
16
|
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
-
# environment of the organization, starting with `env_
|
|
17
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
18
|
+
# runner pool of the organization that every member may use, starting with
|
|
19
|
+
# `ccpool_`. Null clears it.
|
|
18
20
|
#
|
|
19
21
|
# @return [String, nil]
|
|
20
22
|
optional :environment_id, String, nil?: true
|
|
@@ -43,7 +45,23 @@ module Anthropic
|
|
|
43
45
|
# @return [String, nil]
|
|
44
46
|
optional :model, String, nil?: true
|
|
45
47
|
|
|
46
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
50
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
51
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
52
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
53
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
54
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
55
|
+
# `automatic`.
|
|
56
|
+
#
|
|
57
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
58
|
+
optional :reply_mode,
|
|
59
|
+
union: -> {
|
|
60
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
61
|
+
},
|
|
62
|
+
nil?: true
|
|
63
|
+
|
|
64
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil, reply_mode: nil)
|
|
47
65
|
# The settings to change. A setting left out is unchanged. A setting sent as null
|
|
48
66
|
# is cleared, so it is inherited.
|
|
49
67
|
#
|
|
@@ -60,6 +78,8 @@ module Anthropic
|
|
|
60
78
|
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
79
|
#
|
|
62
80
|
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
63
83
|
end
|
|
64
84
|
end
|
|
65
85
|
end
|
|
@@ -102,6 +102,7 @@ module Anthropic
|
|
|
102
102
|
|
|
103
103
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
104
104
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
105
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
105
106
|
|
|
106
107
|
# @!method self.values
|
|
107
108
|
# @return [Array<Symbol>]
|
|
@@ -93,6 +93,7 @@ module Anthropic
|
|
|
93
93
|
|
|
94
94
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
95
95
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
96
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
96
97
|
|
|
97
98
|
# @!method self.values
|
|
98
99
|
# @return [Array<Symbol>]
|
|
@@ -19,9 +19,9 @@ module Anthropic
|
|
|
19
19
|
required :created_at, Time
|
|
20
20
|
|
|
21
21
|
# @!attribute display_name
|
|
22
|
-
# Name of the RBAC Role. For a role created by Anthropic, this
|
|
23
|
-
#
|
|
24
|
-
# lasting reference to a role, store its `id`.
|
|
22
|
+
# Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
|
|
23
|
+
# for the access that the role grants. Anthropic may change this name, so to keep
|
|
24
|
+
# a lasting reference to a role, store its `id`.
|
|
25
25
|
#
|
|
26
26
|
# @return [String]
|
|
27
27
|
required :display_name, String
|
|
@@ -48,7 +48,7 @@ module Anthropic
|
|
|
48
48
|
#
|
|
49
49
|
# @param created_at [Time] RFC 3339 datetime string indicating when the RBAC Role was created.
|
|
50
50
|
#
|
|
51
|
-
# @param display_name [String] Name of the RBAC Role. For a role created by Anthropic, this
|
|
51
|
+
# @param display_name [String] Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
|
|
52
52
|
#
|
|
53
53
|
# @param updated_at [Time] RFC 3339 datetime string indicating when the RBAC Role was last updated.
|
|
54
54
|
#
|
|
@@ -29,10 +29,12 @@ module Anthropic
|
|
|
29
29
|
optional :geo, enum: -> { Anthropic::Beta::Organization::ExternalKeyCreateParams::Geo }
|
|
30
30
|
|
|
31
31
|
# @!attribute user_profile_id
|
|
32
|
-
# ID of a user profile to bind the key to.
|
|
33
|
-
#
|
|
34
|
-
# user profile
|
|
35
|
-
#
|
|
32
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
33
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
34
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
35
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
36
|
+
# organization's own key, because a key created without a user profile ID can be
|
|
37
|
+
# attached to any Workspace, including another customer's.
|
|
36
38
|
#
|
|
37
39
|
# @return [String, nil]
|
|
38
40
|
optional :user_profile_id, String, nil?: true
|
|
@@ -48,7 +50,7 @@ module Anthropic
|
|
|
48
50
|
#
|
|
49
51
|
# @param geo [Symbol, Anthropic::Models::Beta::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
|
|
50
52
|
#
|
|
51
|
-
# @param user_profile_id [String, nil] ID of a user profile to bind the key to.
|
|
53
|
+
# @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
|
|
52
54
|
#
|
|
53
55
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
54
56
|
|
|
@@ -62,6 +62,7 @@ module Anthropic
|
|
|
62
62
|
|
|
63
63
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
64
64
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
65
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
65
66
|
|
|
66
67
|
# @!method self.values
|
|
67
68
|
# @return [Array<Symbol>]
|
|
@@ -81,6 +81,7 @@ module Anthropic
|
|
|
81
81
|
|
|
82
82
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
83
83
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
84
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED = :"user_profile.program_status_updated"
|
|
84
85
|
|
|
85
86
|
# @!method self.values
|
|
86
87
|
# @return [Array<Symbol>]
|