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
|
@@ -150,6 +150,29 @@ module Anthropic
|
|
|
150
150
|
end
|
|
151
151
|
attr_writer :chat_cowork_unified_metrics
|
|
152
152
|
|
|
153
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
154
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
155
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
156
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
157
|
+
sig do
|
|
158
|
+
returns(
|
|
159
|
+
T.nilable(
|
|
160
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
|
|
161
|
+
)
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
attr_reader :claude_tag_metrics
|
|
165
|
+
|
|
166
|
+
sig do
|
|
167
|
+
params(
|
|
168
|
+
claude_tag_metrics:
|
|
169
|
+
T.nilable(
|
|
170
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
|
|
171
|
+
)
|
|
172
|
+
).void
|
|
173
|
+
end
|
|
174
|
+
attr_writer :claude_tag_metrics
|
|
175
|
+
|
|
153
176
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
154
177
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
155
178
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -199,6 +222,10 @@ module Anthropic
|
|
|
199
222
|
T.nilable(
|
|
200
223
|
Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics::OrHash
|
|
201
224
|
),
|
|
225
|
+
claude_tag_metrics:
|
|
226
|
+
T.nilable(
|
|
227
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
|
|
228
|
+
),
|
|
202
229
|
last_activity_date: T.nilable(Date),
|
|
203
230
|
rbac_group_id: T.nilable(String),
|
|
204
231
|
rbac_group_name: T.nilable(String)
|
|
@@ -232,6 +259,11 @@ module Anthropic
|
|
|
232
259
|
# `sessions` (Cowork activity). Omitted from the response where Chat and Cowork
|
|
233
260
|
# unified is not available.
|
|
234
261
|
chat_cowork_unified_metrics: nil,
|
|
262
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
263
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
264
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
265
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
266
|
+
claude_tag_metrics: nil,
|
|
235
267
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
236
268
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
237
269
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -276,6 +308,10 @@ module Anthropic
|
|
|
276
308
|
T.nilable(
|
|
277
309
|
Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics
|
|
278
310
|
),
|
|
311
|
+
claude_tag_metrics:
|
|
312
|
+
T.nilable(
|
|
313
|
+
Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
|
|
314
|
+
),
|
|
279
315
|
last_activity_date: T.nilable(Date),
|
|
280
316
|
rbac_group_id: T.nilable(String),
|
|
281
317
|
rbac_group_name: T.nilable(String)
|
|
@@ -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
|
sig { returns(Symbol) }
|
|
11
11
|
def error_code
|
data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi
CHANGED
|
@@ -16,8 +16,8 @@ module Anthropic
|
|
|
16
16
|
sig { returns(Symbol) }
|
|
17
17
|
attr_accessor :error_code
|
|
18
18
|
|
|
19
|
-
#
|
|
20
|
-
#
|
|
19
|
+
# The member has the `managed` role, and this API key or token cannot sign them
|
|
20
|
+
# out. The error message says which keys and tokens can.
|
|
21
21
|
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
22
|
def self.new(error_code: :cannot_sign_out_managed_member)
|
|
23
23
|
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# typed: strong
|
|
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
|
+
Variants =
|
|
13
|
+
T.type_alias do
|
|
14
|
+
T.any(
|
|
15
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
16
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
17
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
18
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
module Type
|
|
23
|
+
extend Anthropic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
TaggedSymbol =
|
|
26
|
+
T.type_alias do
|
|
27
|
+
T.all(
|
|
28
|
+
Symbol,
|
|
29
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
|
+
|
|
34
|
+
AUTOMATIC =
|
|
35
|
+
T.let(
|
|
36
|
+
:automatic,
|
|
37
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::TaggedSymbol
|
|
38
|
+
)
|
|
39
|
+
MENTION_ONLY =
|
|
40
|
+
T.let(
|
|
41
|
+
:mention_only,
|
|
42
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::TaggedSymbol
|
|
43
|
+
)
|
|
44
|
+
ALWAYS_AWAKE =
|
|
45
|
+
T.let(
|
|
46
|
+
:always_awake,
|
|
47
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::TaggedSymbol
|
|
48
|
+
)
|
|
49
|
+
THREAD =
|
|
50
|
+
T.let(
|
|
51
|
+
:thread,
|
|
52
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
T::Array[
|
|
58
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::TaggedSymbol
|
|
59
|
+
]
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
def self.values
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
override.returns(
|
|
68
|
+
T::Array[
|
|
69
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Variants
|
|
70
|
+
]
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
def self.variants
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
77
|
+
# value, passing the remaining arguments to its constructor.
|
|
78
|
+
sig do
|
|
79
|
+
params(
|
|
80
|
+
type:
|
|
81
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Type::OrSymbol
|
|
82
|
+
).returns(
|
|
83
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Variants
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def self.new(type:)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeAlwaysAwake < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
# Like `automatic`, but Claude never pauses on its own. Available where it is
|
|
20
|
+
# enabled for the channel.
|
|
21
|
+
sig { params(type: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(type: :always_awake)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeAutomatic < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
# Claude reads along and joins in when it can help, and pauses on its own in quiet
|
|
20
|
+
# or busy channels.
|
|
21
|
+
sig { params(type: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(type: :automatic)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeMentionOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
# Claude replies only when it is @-mentioned.
|
|
20
|
+
sig { params(type: Symbol).returns(T.attached_class) }
|
|
21
|
+
def self.new(type: :mention_only)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
sig { override.returns({ type: Symbol }) }
|
|
25
|
+
def to_hash
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagReplyModeThread < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
# Every new top-level message in the channel gets its own reply from Claude, in a
|
|
20
|
+
# thread under it. Available where it is enabled for the channel, and only once
|
|
21
|
+
# Claude has been used in the channel.
|
|
22
|
+
sig { params(type: Symbol).returns(T.attached_class) }
|
|
23
|
+
def self.new(type: :thread)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ type: Symbol }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -64,6 +64,17 @@ module Anthropic
|
|
|
64
64
|
end
|
|
65
65
|
attr_accessor :model
|
|
66
66
|
|
|
67
|
+
# The settings level `reply_mode` comes from: the channel when it stores one. With
|
|
68
|
+
# `include_inherited=true` and no stored mode it is `default`.
|
|
69
|
+
sig do
|
|
70
|
+
returns(
|
|
71
|
+
T.nilable(
|
|
72
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingSource::Variants
|
|
73
|
+
)
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
attr_accessor :reply_mode
|
|
77
|
+
|
|
67
78
|
# For each setting, the settings level its value in `settings` comes from. Without
|
|
68
79
|
# `include_inherited`, a setting the channel or workspace stores has a source that
|
|
69
80
|
# names the channel or workspace itself, and one it does not store has null, or an
|
|
@@ -116,6 +127,17 @@ module Anthropic
|
|
|
116
127
|
)
|
|
117
128
|
],
|
|
118
129
|
model:
|
|
130
|
+
T.nilable(
|
|
131
|
+
T.any(
|
|
132
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource::OrHash,
|
|
133
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource::OrHash,
|
|
134
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource::OrHash,
|
|
135
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource::OrHash,
|
|
136
|
+
Anthropic::Beta::Organization::BetaClaudeTagDefaultSettingSource::OrHash,
|
|
137
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource::OrHash
|
|
138
|
+
)
|
|
139
|
+
),
|
|
140
|
+
reply_mode:
|
|
119
141
|
T.nilable(
|
|
120
142
|
T.any(
|
|
121
143
|
Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource::OrHash,
|
|
@@ -139,7 +161,10 @@ module Anthropic
|
|
|
139
161
|
# the order their text is joined. Empty when none does.
|
|
140
162
|
instructions:,
|
|
141
163
|
# The settings level `model` comes from.
|
|
142
|
-
model
|
|
164
|
+
model:,
|
|
165
|
+
# The settings level `reply_mode` comes from: the channel when it stores one. With
|
|
166
|
+
# `include_inherited=true` and no stored mode it is `default`.
|
|
167
|
+
reply_mode:
|
|
143
168
|
)
|
|
144
169
|
end
|
|
145
170
|
|
|
@@ -163,6 +188,10 @@ module Anthropic
|
|
|
163
188
|
Anthropic::Beta::Organization::BetaClaudeTagSettingSource::Variants
|
|
164
189
|
],
|
|
165
190
|
model:
|
|
191
|
+
T.nilable(
|
|
192
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingSource::Variants
|
|
193
|
+
),
|
|
194
|
+
reply_mode:
|
|
166
195
|
T.nilable(
|
|
167
196
|
Anthropic::Beta::Organization::BetaClaudeTagSettingSource::Variants
|
|
168
197
|
)
|
|
@@ -45,10 +45,25 @@ module Anthropic
|
|
|
45
45
|
sig { returns(T.nilable(String)) }
|
|
46
46
|
attr_accessor :model
|
|
47
47
|
|
|
48
|
+
# How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
49
|
+
# level passes one on, so it is always null on a workspace. Null on a channel
|
|
50
|
+
# means the channel stores none yet: Claude then follows the reply mode chosen in
|
|
51
|
+
# Slack, if one was, else `automatic`. A stored reply mode can be changed but
|
|
52
|
+
# never cleared.
|
|
53
|
+
sig do
|
|
54
|
+
returns(
|
|
55
|
+
T.nilable(
|
|
56
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Variants
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
attr_accessor :reply_mode
|
|
61
|
+
|
|
48
62
|
# Claude Tag settings. Without `include_inherited`, a setting that is null is not
|
|
49
63
|
# set on the settings level and is inherited. With it, `enabled` and
|
|
50
|
-
# `guest_policy` are never null,
|
|
51
|
-
#
|
|
64
|
+
# `guest_policy` are never null, `instructions`, `model` and `environment_id` are
|
|
65
|
+
# null when no settings level sets them, and `reply_mode` is null unless the
|
|
66
|
+
# channel itself stores one.
|
|
52
67
|
sig do
|
|
53
68
|
params(
|
|
54
69
|
enabled: T.nilable(T::Boolean),
|
|
@@ -62,7 +77,16 @@ module Anthropic
|
|
|
62
77
|
)
|
|
63
78
|
),
|
|
64
79
|
instructions: T.nilable(String),
|
|
65
|
-
model: T.nilable(String)
|
|
80
|
+
model: T.nilable(String),
|
|
81
|
+
reply_mode:
|
|
82
|
+
T.nilable(
|
|
83
|
+
T.any(
|
|
84
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic::OrHash,
|
|
85
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly::OrHash,
|
|
86
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake::OrHash,
|
|
87
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread::OrHash
|
|
88
|
+
)
|
|
89
|
+
)
|
|
66
90
|
).returns(T.attached_class)
|
|
67
91
|
end
|
|
68
92
|
def self.new(
|
|
@@ -81,7 +105,13 @@ module Anthropic
|
|
|
81
105
|
# The model Claude uses: a model identifier or the name of a model line. The
|
|
82
106
|
# nearest settings level that sets it decides. When none does, Claude uses the
|
|
83
107
|
# product's default model.
|
|
84
|
-
model
|
|
108
|
+
model:,
|
|
109
|
+
# How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
110
|
+
# level passes one on, so it is always null on a workspace. Null on a channel
|
|
111
|
+
# means the channel stores none yet: Claude then follows the reply mode chosen in
|
|
112
|
+
# Slack, if one was, else `automatic`. A stored reply mode can be changed but
|
|
113
|
+
# never cleared.
|
|
114
|
+
reply_mode:
|
|
85
115
|
)
|
|
86
116
|
end
|
|
87
117
|
|
|
@@ -95,7 +125,11 @@ module Anthropic
|
|
|
95
125
|
Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy::Variants
|
|
96
126
|
),
|
|
97
127
|
instructions: T.nilable(String),
|
|
98
|
-
model: T.nilable(String)
|
|
128
|
+
model: T.nilable(String),
|
|
129
|
+
reply_mode:
|
|
130
|
+
T.nilable(
|
|
131
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode::Variants
|
|
132
|
+
)
|
|
99
133
|
}
|
|
100
134
|
)
|
|
101
135
|
end
|
|
@@ -19,7 +19,9 @@ module Anthropic
|
|
|
19
19
|
attr_accessor :enabled
|
|
20
20
|
|
|
21
21
|
# The environment Claude's sessions run in: the identifier of an active
|
|
22
|
-
# environment of the organization, starting with `env_
|
|
22
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
23
|
+
# runner pool of the organization that every member may use, starting with
|
|
24
|
+
# `ccpool_`. Null clears it.
|
|
23
25
|
sig { returns(T.nilable(String)) }
|
|
24
26
|
attr_accessor :environment_id
|
|
25
27
|
|
|
@@ -47,6 +49,27 @@ module Anthropic
|
|
|
47
49
|
sig { returns(T.nilable(String)) }
|
|
48
50
|
attr_accessor :model
|
|
49
51
|
|
|
52
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
53
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
54
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
55
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
56
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
57
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
58
|
+
# `automatic`.
|
|
59
|
+
sig do
|
|
60
|
+
returns(
|
|
61
|
+
T.nilable(
|
|
62
|
+
T.any(
|
|
63
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
64
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
65
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
66
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
attr_accessor :reply_mode
|
|
72
|
+
|
|
50
73
|
# The settings in a request that sets a Slack channel up. A setting left out is
|
|
51
74
|
# not set. A setting sent as null is cleared.
|
|
52
75
|
sig do
|
|
@@ -62,7 +85,16 @@ module Anthropic
|
|
|
62
85
|
)
|
|
63
86
|
),
|
|
64
87
|
instructions: T.nilable(String),
|
|
65
|
-
model: T.nilable(String)
|
|
88
|
+
model: T.nilable(String),
|
|
89
|
+
reply_mode:
|
|
90
|
+
T.nilable(
|
|
91
|
+
T.any(
|
|
92
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic::OrHash,
|
|
93
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly::OrHash,
|
|
94
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake::OrHash,
|
|
95
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread::OrHash
|
|
96
|
+
)
|
|
97
|
+
)
|
|
66
98
|
).returns(T.attached_class)
|
|
67
99
|
end
|
|
68
100
|
def self.new(
|
|
@@ -70,7 +102,9 @@ module Anthropic
|
|
|
70
102
|
# workspace stores `false`. Null clears it.
|
|
71
103
|
enabled: nil,
|
|
72
104
|
# The environment Claude's sessions run in: the identifier of an active
|
|
73
|
-
# environment of the organization, starting with `env_
|
|
105
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
106
|
+
# runner pool of the organization that every member may use, starting with
|
|
107
|
+
# `ccpool_`. Null clears it.
|
|
74
108
|
environment_id: nil,
|
|
75
109
|
# What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
76
110
|
guest_policy: nil,
|
|
@@ -79,7 +113,15 @@ module Anthropic
|
|
|
79
113
|
instructions: nil,
|
|
80
114
|
# The model Claude uses: the identifier of a model, or the name of a model line,
|
|
81
115
|
# that the organization is entitled to for Claude Tag. Null clears it.
|
|
82
|
-
model: nil
|
|
116
|
+
model: nil,
|
|
117
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
118
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
119
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
120
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
121
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
122
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
123
|
+
# `automatic`.
|
|
124
|
+
reply_mode: nil
|
|
83
125
|
)
|
|
84
126
|
end
|
|
85
127
|
|
|
@@ -97,7 +139,16 @@ module Anthropic
|
|
|
97
139
|
)
|
|
98
140
|
),
|
|
99
141
|
instructions: T.nilable(String),
|
|
100
|
-
model: T.nilable(String)
|
|
142
|
+
model: T.nilable(String),
|
|
143
|
+
reply_mode:
|
|
144
|
+
T.nilable(
|
|
145
|
+
T.any(
|
|
146
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
147
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
148
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
149
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
150
|
+
)
|
|
151
|
+
)
|
|
101
152
|
}
|
|
102
153
|
)
|
|
103
154
|
end
|
|
@@ -19,7 +19,9 @@ module Anthropic
|
|
|
19
19
|
attr_accessor :enabled
|
|
20
20
|
|
|
21
21
|
# The environment Claude's sessions run in: the identifier of an active
|
|
22
|
-
# environment of the organization, starting with `env_
|
|
22
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
23
|
+
# runner pool of the organization that every member may use, starting with
|
|
24
|
+
# `ccpool_`. Null clears it.
|
|
23
25
|
sig { returns(T.nilable(String)) }
|
|
24
26
|
attr_accessor :environment_id
|
|
25
27
|
|
|
@@ -47,6 +49,27 @@ module Anthropic
|
|
|
47
49
|
sig { returns(T.nilable(String)) }
|
|
48
50
|
attr_accessor :model
|
|
49
51
|
|
|
52
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
53
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
54
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
55
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
56
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
57
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
58
|
+
# `automatic`.
|
|
59
|
+
sig do
|
|
60
|
+
returns(
|
|
61
|
+
T.nilable(
|
|
62
|
+
T.any(
|
|
63
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
64
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
65
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
66
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
attr_accessor :reply_mode
|
|
72
|
+
|
|
50
73
|
# The settings to change. A setting left out is unchanged. A setting sent as null
|
|
51
74
|
# is cleared, so it is inherited.
|
|
52
75
|
sig do
|
|
@@ -62,7 +85,16 @@ module Anthropic
|
|
|
62
85
|
)
|
|
63
86
|
),
|
|
64
87
|
instructions: T.nilable(String),
|
|
65
|
-
model: T.nilable(String)
|
|
88
|
+
model: T.nilable(String),
|
|
89
|
+
reply_mode:
|
|
90
|
+
T.nilable(
|
|
91
|
+
T.any(
|
|
92
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic::OrHash,
|
|
93
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly::OrHash,
|
|
94
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake::OrHash,
|
|
95
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread::OrHash
|
|
96
|
+
)
|
|
97
|
+
)
|
|
66
98
|
).returns(T.attached_class)
|
|
67
99
|
end
|
|
68
100
|
def self.new(
|
|
@@ -70,7 +102,9 @@ module Anthropic
|
|
|
70
102
|
# workspace stores `false`. Null clears it.
|
|
71
103
|
enabled: nil,
|
|
72
104
|
# The environment Claude's sessions run in: the identifier of an active
|
|
73
|
-
# environment of the organization, starting with `env_
|
|
105
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
106
|
+
# runner pool of the organization that every member may use, starting with
|
|
107
|
+
# `ccpool_`. Null clears it.
|
|
74
108
|
environment_id: nil,
|
|
75
109
|
# What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
76
110
|
guest_policy: nil,
|
|
@@ -79,7 +113,15 @@ module Anthropic
|
|
|
79
113
|
instructions: nil,
|
|
80
114
|
# The model Claude uses: the identifier of a model, or the name of a model line,
|
|
81
115
|
# that the organization is entitled to for Claude Tag. Null clears it.
|
|
82
|
-
model: nil
|
|
116
|
+
model: nil,
|
|
117
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
118
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
119
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
120
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
121
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
122
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
123
|
+
# `automatic`.
|
|
124
|
+
reply_mode: nil
|
|
83
125
|
)
|
|
84
126
|
end
|
|
85
127
|
|
|
@@ -97,7 +139,16 @@ module Anthropic
|
|
|
97
139
|
)
|
|
98
140
|
),
|
|
99
141
|
instructions: T.nilable(String),
|
|
100
|
-
model: T.nilable(String)
|
|
142
|
+
model: T.nilable(String),
|
|
143
|
+
reply_mode:
|
|
144
|
+
T.nilable(
|
|
145
|
+
T.any(
|
|
146
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic,
|
|
147
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly,
|
|
148
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake,
|
|
149
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
150
|
+
)
|
|
151
|
+
)
|
|
101
152
|
}
|
|
102
153
|
)
|
|
103
154
|
end
|
|
@@ -157,6 +157,11 @@ module Anthropic
|
|
|
157
157
|
:"user_profile.enforcement_action_resolved",
|
|
158
158
|
Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
159
159
|
)
|
|
160
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
161
|
+
T.let(
|
|
162
|
+
:"user_profile.program_status_updated",
|
|
163
|
+
Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
164
|
+
)
|
|
160
165
|
|
|
161
166
|
sig do
|
|
162
167
|
override.returns(
|
|
@@ -146,6 +146,11 @@ module Anthropic
|
|
|
146
146
|
:"user_profile.enforcement_action_resolved",
|
|
147
147
|
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
148
148
|
)
|
|
149
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
150
|
+
T.let(
|
|
151
|
+
:"user_profile.program_status_updated",
|
|
152
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent::TaggedSymbol
|
|
153
|
+
)
|
|
149
154
|
|
|
150
155
|
sig do
|
|
151
156
|
override.returns(
|