anthropic 2.7.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 +26 -0
- data/README.md +1 -1
- data/lib/anthropic/helpers/bedrock/client.rb +17 -5
- data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
- data/lib/anthropic/helpers/vertex/client.rb +26 -12
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
- data/lib/anthropic/models/beta/organization/beta_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_rbac_role.rb +4 -4
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +7 -5
- data/lib/anthropic/models/model.rb +2 -2
- data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
- data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
- data/lib/anthropic/models/organization/external_key_create_params.rb +7 -5
- data/lib/anthropic/models/organization/rbac_role.rb +4 -4
- data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
- data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
- data/lib/anthropic/resources/organization/external_keys.rb +1 -1
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +7 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
- 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_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_rbac_role.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +12 -8
- data/rbi/anthropic/models/model.rbi +2 -2
- data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
- data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
- data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +12 -8
- data/rbi/anthropic/models/organization/rbac_role.rbi +6 -6
- 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/organization/external_keys.rbi +6 -4
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
- data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_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/model.rbs +2 -2
- data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
- data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
- metadata +23 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Anthropic::Organization::AnalyticsClaudeTagMetrics,
|
|
11
|
+
Anthropic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
16
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
17
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
18
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
19
|
+
# any other row when no covered day was measured.
|
|
20
|
+
sig { returns(T.nilable(Integer)) }
|
|
21
|
+
attr_accessor :active_day_count
|
|
22
|
+
|
|
23
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
24
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
25
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
26
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
27
|
+
# when no covered day was measured.
|
|
28
|
+
sig { returns(T.nilable(Integer)) }
|
|
29
|
+
attr_accessor :active_message_count
|
|
30
|
+
|
|
31
|
+
# Claude Tag activity metrics for a single linked user on a given day.
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
active_day_count: T.nilable(Integer),
|
|
35
|
+
active_message_count: T.nilable(Integer)
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
|
|
40
|
+
# the window in date-range mode, so it is the number of active days; on grouped
|
|
41
|
+
# rows, the total of each member's active days. Null when Claude Tag data cannot
|
|
42
|
+
# be read for the request. Otherwise, 0 on a row filtered by project, and null on
|
|
43
|
+
# any other row when no covered day was measured.
|
|
44
|
+
active_day_count:,
|
|
45
|
+
# Number of the user's Slack messages that made them active: @-mentions, direct
|
|
46
|
+
# messages, group direct message asks, and thread posts Claude answered. Other
|
|
47
|
+
# messages are not counted. Null when Claude Tag data cannot be read for the
|
|
48
|
+
# request. Otherwise, 0 on a row filtered by project, and null on any other row
|
|
49
|
+
# when no covered day was measured.
|
|
50
|
+
active_message_count:
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
active_day_count: T.nilable(Integer),
|
|
58
|
+
active_message_count: T.nilable(Integer)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
def to_hash
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -144,6 +144,36 @@ module Anthropic
|
|
|
144
144
|
sig { returns(T.nilable(Integer)) }
|
|
145
145
|
attr_accessor :claude_design_weekly_active_user_count
|
|
146
146
|
|
|
147
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
148
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
149
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
150
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
151
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
152
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
153
|
+
# reporting.
|
|
154
|
+
sig { returns(T.nilable(Integer)) }
|
|
155
|
+
attr_accessor :claude_tag_daily_active_user_count
|
|
156
|
+
|
|
157
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
158
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
159
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
160
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
161
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
162
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
163
|
+
# Tag reporting.
|
|
164
|
+
sig { returns(T.nilable(Integer)) }
|
|
165
|
+
attr_accessor :claude_tag_monthly_active_user_count
|
|
166
|
+
|
|
167
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
168
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
169
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
170
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
171
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
172
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
173
|
+
# Tag reporting.
|
|
174
|
+
sig { returns(T.nilable(Integer)) }
|
|
175
|
+
attr_accessor :claude_tag_weekly_active_user_count
|
|
176
|
+
|
|
147
177
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
148
178
|
# from the response while the per-product breakdown is not enabled for this
|
|
149
179
|
# organization.
|
|
@@ -216,6 +246,9 @@ module Anthropic
|
|
|
216
246
|
claude_design_daily_active_user_count: T.nilable(Integer),
|
|
217
247
|
claude_design_monthly_active_user_count: T.nilable(Integer),
|
|
218
248
|
claude_design_weekly_active_user_count: T.nilable(Integer),
|
|
249
|
+
claude_tag_daily_active_user_count: T.nilable(Integer),
|
|
250
|
+
claude_tag_monthly_active_user_count: T.nilable(Integer),
|
|
251
|
+
claude_tag_weekly_active_user_count: T.nilable(Integer),
|
|
219
252
|
office_agent_daily_active_user_count: T.nilable(Integer),
|
|
220
253
|
office_agent_monthly_active_user_count: T.nilable(Integer),
|
|
221
254
|
office_agent_weekly_active_user_count: T.nilable(Integer),
|
|
@@ -308,6 +341,30 @@ module Anthropic
|
|
|
308
341
|
# from the response while the per-product breakdown is not enabled for this
|
|
309
342
|
# organization.
|
|
310
343
|
claude_design_weekly_active_user_count: nil,
|
|
344
|
+
# Number of Slack users active in Claude Tag on the requested day. Counts distinct
|
|
345
|
+
# Slack users, including users who have not linked a Claude account, so it can
|
|
346
|
+
# exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
|
|
347
|
+
# no measured value, when Claude Tag data cannot be read for the request, and when
|
|
348
|
+
# the response is scoped to an RBAC group, because an unlinked user belongs to no
|
|
349
|
+
# group. Omitted from the response on deployments that do not offer Claude Tag
|
|
350
|
+
# reporting.
|
|
351
|
+
claude_tag_daily_active_user_count: nil,
|
|
352
|
+
# Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
|
|
353
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
354
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
355
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
356
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
357
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
358
|
+
# Tag reporting.
|
|
359
|
+
claude_tag_monthly_active_user_count: nil,
|
|
360
|
+
# Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
|
|
361
|
+
# distinct Slack users, including users who have not linked a Claude account, so
|
|
362
|
+
# it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
|
|
363
|
+
# with no measured value, when Claude Tag data cannot be read for the request, and
|
|
364
|
+
# when the response is scoped to an RBAC group, because an unlinked user belongs
|
|
365
|
+
# to no group. Omitted from the response on deployments that do not offer Claude
|
|
366
|
+
# Tag reporting.
|
|
367
|
+
claude_tag_weekly_active_user_count: nil,
|
|
311
368
|
# Number of users with Claude in Office activity on the requested day. Omitted
|
|
312
369
|
# from the response while the per-product breakdown is not enabled for this
|
|
313
370
|
# organization.
|
|
@@ -369,6 +426,9 @@ module Anthropic
|
|
|
369
426
|
claude_design_daily_active_user_count: T.nilable(Integer),
|
|
370
427
|
claude_design_monthly_active_user_count: T.nilable(Integer),
|
|
371
428
|
claude_design_weekly_active_user_count: T.nilable(Integer),
|
|
429
|
+
claude_tag_daily_active_user_count: T.nilable(Integer),
|
|
430
|
+
claude_tag_monthly_active_user_count: T.nilable(Integer),
|
|
431
|
+
claude_tag_weekly_active_user_count: T.nilable(Integer),
|
|
372
432
|
office_agent_daily_active_user_count: T.nilable(Integer),
|
|
373
433
|
office_agent_monthly_active_user_count: T.nilable(Integer),
|
|
374
434
|
office_agent_weekly_active_user_count: T.nilable(Integer),
|
|
@@ -129,6 +129,25 @@ module Anthropic
|
|
|
129
129
|
end
|
|
130
130
|
attr_writer :chat_cowork_unified_metrics
|
|
131
131
|
|
|
132
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
133
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
134
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
135
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
136
|
+
sig do
|
|
137
|
+
returns(T.nilable(Anthropic::Organization::AnalyticsClaudeTagMetrics))
|
|
138
|
+
end
|
|
139
|
+
attr_reader :claude_tag_metrics
|
|
140
|
+
|
|
141
|
+
sig do
|
|
142
|
+
params(
|
|
143
|
+
claude_tag_metrics:
|
|
144
|
+
T.nilable(
|
|
145
|
+
Anthropic::Organization::AnalyticsClaudeTagMetrics::OrHash
|
|
146
|
+
)
|
|
147
|
+
).void
|
|
148
|
+
end
|
|
149
|
+
attr_writer :claude_tag_metrics
|
|
150
|
+
|
|
132
151
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
133
152
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
134
153
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -174,6 +193,10 @@ module Anthropic
|
|
|
174
193
|
T.nilable(
|
|
175
194
|
Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics::OrHash
|
|
176
195
|
),
|
|
196
|
+
claude_tag_metrics:
|
|
197
|
+
T.nilable(
|
|
198
|
+
Anthropic::Organization::AnalyticsClaudeTagMetrics::OrHash
|
|
199
|
+
),
|
|
177
200
|
last_activity_date: T.nilable(Date),
|
|
178
201
|
rbac_group_id: T.nilable(String),
|
|
179
202
|
rbac_group_name: T.nilable(String)
|
|
@@ -207,6 +230,11 @@ module Anthropic
|
|
|
207
230
|
# `sessions` (Cowork activity). Omitted from the response where Chat and Cowork
|
|
208
231
|
# unified is not available.
|
|
209
232
|
chat_cowork_unified_metrics: nil,
|
|
233
|
+
# Claude Tag activity in Slack by a user who has linked a Claude account. Activity
|
|
234
|
+
# by Slack users who have not linked an account appears only in the `/summaries`
|
|
235
|
+
# Claude Tag counts, so these rows do not add up to those counts. Omitted from the
|
|
236
|
+
# response on deployments that do not offer Claude Tag reporting.
|
|
237
|
+
claude_tag_metrics: nil,
|
|
210
238
|
# Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
|
|
211
239
|
# within the requested window: equal to the requested `date` in single-day mode,
|
|
212
240
|
# and to the latest active day from `starting_date` (inclusive) to `ending_date`
|
|
@@ -245,6 +273,8 @@ module Anthropic
|
|
|
245
273
|
T.nilable(
|
|
246
274
|
Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics
|
|
247
275
|
),
|
|
276
|
+
claude_tag_metrics:
|
|
277
|
+
T.nilable(Anthropic::Organization::AnalyticsClaudeTagMetrics),
|
|
248
278
|
last_activity_date: T.nilable(Date),
|
|
249
279
|
rbac_group_id: T.nilable(String),
|
|
250
280
|
rbac_group_name: T.nilable(String)
|
|
@@ -48,10 +48,12 @@ module Anthropic
|
|
|
48
48
|
end
|
|
49
49
|
attr_writer :geo
|
|
50
50
|
|
|
51
|
-
# ID of a user profile to bind the key to.
|
|
52
|
-
#
|
|
53
|
-
# user profile
|
|
54
|
-
#
|
|
51
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
52
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
53
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
54
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
55
|
+
# organization's own key, because a key created without a user profile ID can be
|
|
56
|
+
# attached to any Workspace, including another customer's.
|
|
55
57
|
sig { returns(T.nilable(String)) }
|
|
56
58
|
attr_accessor :user_profile_id
|
|
57
59
|
|
|
@@ -77,10 +79,12 @@ module Anthropic
|
|
|
77
79
|
display_name: nil,
|
|
78
80
|
# Data residency geo. Only `us` is supported.
|
|
79
81
|
geo: nil,
|
|
80
|
-
# ID of a user profile to bind the key to.
|
|
81
|
-
#
|
|
82
|
-
# user profile
|
|
83
|
-
#
|
|
82
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
83
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
84
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
85
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
86
|
+
# organization's own key, because a key created without a user profile ID can be
|
|
87
|
+
# attached to any Workspace, including another customer's.
|
|
84
88
|
user_profile_id: nil,
|
|
85
89
|
request_options: {}
|
|
86
90
|
)
|
|
@@ -20,9 +20,9 @@ module Anthropic
|
|
|
20
20
|
sig { returns(Time) }
|
|
21
21
|
attr_accessor :created_at
|
|
22
22
|
|
|
23
|
-
# Name of the RBAC Role. For a role created by Anthropic, this
|
|
24
|
-
#
|
|
25
|
-
# lasting reference to a role, store its `id`.
|
|
23
|
+
# Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
|
|
24
|
+
# for the access that the role grants. Anthropic may change this name, so to keep
|
|
25
|
+
# a lasting reference to a role, store its `id`.
|
|
26
26
|
sig { returns(String) }
|
|
27
27
|
attr_accessor :display_name
|
|
28
28
|
|
|
@@ -50,9 +50,9 @@ module Anthropic
|
|
|
50
50
|
id:,
|
|
51
51
|
# RFC 3339 datetime string indicating when the RBAC Role was created.
|
|
52
52
|
created_at:,
|
|
53
|
-
# Name of the RBAC Role. For a role created by Anthropic, this
|
|
54
|
-
#
|
|
55
|
-
# lasting reference to a role, store its `id`.
|
|
53
|
+
# Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
|
|
54
|
+
# for the access that the role grants. Anthropic may change this name, so to keep
|
|
55
|
+
# a lasting reference to a role, store its `id`.
|
|
56
56
|
display_name:,
|
|
57
57
|
# RFC 3339 datetime string indicating when the RBAC Role was last updated.
|
|
58
58
|
updated_at:,
|
|
@@ -28,10 +28,12 @@ module Anthropic
|
|
|
28
28
|
display_name: nil,
|
|
29
29
|
# Data residency geo. Only `us` is supported.
|
|
30
30
|
geo: nil,
|
|
31
|
-
# ID of a user profile to bind the key to.
|
|
32
|
-
#
|
|
33
|
-
# user profile
|
|
34
|
-
#
|
|
31
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
32
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
33
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
34
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
35
|
+
# organization's own key, because a key created without a user profile ID can be
|
|
36
|
+
# attached to any Workspace, including another customer's.
|
|
35
37
|
user_profile_id: nil,
|
|
36
38
|
request_options: {}
|
|
37
39
|
)
|
|
@@ -18,11 +18,10 @@ module Anthropic
|
|
|
18
18
|
# Only a Plugin in a `manual` marketplace takes uploads; a Plugin synchronized
|
|
19
19
|
# from a repository gets its versions from the repository. When the Plugin is in
|
|
20
20
|
# the organization's library marketplace, a version that adds a skill with the
|
|
21
|
-
# name of an organization skill
|
|
22
|
-
#
|
|
23
|
-
# `
|
|
24
|
-
#
|
|
25
|
-
# usable; a later version create on the Plugin completes it.
|
|
21
|
+
# name of an organization skill that this API does not list is refused with a 409:
|
|
22
|
+
# `error_code` `skill_name_taken`, with that name in `details.skill_name`. A 503
|
|
23
|
+
# with `error_code` `registration_pending` means the version was stored but is not
|
|
24
|
+
# yet usable; a later version create on the Plugin completes it.
|
|
26
25
|
#
|
|
27
26
|
# For a worked example, see
|
|
28
27
|
# [Create a version](/docs/en/manage-claude/plugins-api#create-a-version) in the
|
|
@@ -38,13 +38,13 @@ module Anthropic
|
|
|
38
38
|
# 409 with `error_code` `plugin_name_taken` and, when a Plugin holds it, that
|
|
39
39
|
# Plugin's ID in `details.plugin_id`. A Plugin going into the organization's
|
|
40
40
|
# library marketplace is also refused with a 409 when one of its skills has the
|
|
41
|
-
# name of an organization skill
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
41
|
+
# name of an organization skill that this API does not list: `error_code`
|
|
42
|
+
# `skill_name_taken`, with that name in `details.skill_name`; rename the skill, or
|
|
43
|
+
# remove the organization skill in claude.ai. A 503 with `error_code`
|
|
44
|
+
# `registration_pending` means the Plugin and its version were stored (their IDs
|
|
45
|
+
# are in `details`) but are not yet usable in claude.ai: do not retry the create
|
|
46
|
+
# (the retry would return `plugin_name_taken`); create a version on the stored
|
|
47
|
+
# Plugin instead, which completes it.
|
|
48
48
|
#
|
|
49
49
|
# For a worked example, see
|
|
50
50
|
# [Create a plugin](/docs/en/manage-claude/plugins-api#create-a-plugin) in the
|
|
@@ -149,10 +149,9 @@ module Anthropic
|
|
|
149
149
|
# accepted. If the scan outcome cannot be read at that moment, the request fails
|
|
150
150
|
# with a retryable 503 instead. When the Plugin is in the organization's library
|
|
151
151
|
# marketplace, a version other than the one served is also refused with a 409 when
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
# `
|
|
155
|
-
# Plugin cannot be updated here (403).
|
|
152
|
+
# an organization skill that this API does not list has since taken the name of
|
|
153
|
+
# one of its skills: `error_code` `skill_name_taken`, with that name in
|
|
154
|
+
# `details.skill_name`. A member-owned Plugin cannot be updated here (403).
|
|
156
155
|
#
|
|
157
156
|
# This endpoint does not write installation settings; they are written at
|
|
158
157
|
# `/v1/organizations/plugins/{plugin_id}/installation_settings/{target}`.
|
|
@@ -270,7 +269,9 @@ module Anthropic
|
|
|
270
269
|
|
|
271
270
|
# Permanently delete a Plugin and every version it holds, exactly as when an
|
|
272
271
|
# administrator deletes it in claude.ai. The Plugin may belong to the organization
|
|
273
|
-
# or to a member, including a member who has since left the organization.
|
|
272
|
+
# or to a member, including a member who has since left the organization. Do not
|
|
273
|
+
# delete a Plugin only because your pipeline did not create it: a member or an
|
|
274
|
+
# administrator might have added it in claude.ai.
|
|
274
275
|
#
|
|
275
276
|
# An organization-owned Plugin's installation settings go with it; a member-owned
|
|
276
277
|
# Plugin's shares are withdrawn and its owner no longer has it.
|
|
@@ -27,10 +27,12 @@ module Anthropic
|
|
|
27
27
|
display_name: nil,
|
|
28
28
|
# Data residency geo. Only `us` is supported.
|
|
29
29
|
geo: nil,
|
|
30
|
-
# ID of a user profile to bind the key to.
|
|
31
|
-
#
|
|
32
|
-
# user profile
|
|
33
|
-
#
|
|
30
|
+
# ID of a user profile to bind the key to. A user profile represents one of your
|
|
31
|
+
# customers: bind a customer's key to that customer's user profile. A key bound to
|
|
32
|
+
# a user profile can only be attached to a Workspace that has the same user
|
|
33
|
+
# profile, and the binding cannot be changed later. Omit this field only for your
|
|
34
|
+
# organization's own key, because a key created without a user profile ID can be
|
|
35
|
+
# attached to any Workspace, including another customer's.
|
|
34
36
|
user_profile_id: nil,
|
|
35
37
|
request_options: {}
|
|
36
38
|
)
|
|
@@ -29,7 +29,7 @@ module Anthropic
|
|
|
29
29
|
|
|
30
30
|
def self?.variants: -> ::Array[Anthropic::Models::Beta::beta_managed_agents_model]
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# Built for the most ambitious work in coding, enterprise workflows, and the sciences
|
|
33
33
|
CLAUDE_FABLE_5_2: :"claude-fable-5-2"
|
|
34
34
|
|
|
35
35
|
# Fastest model for high-volume, real-time tasks
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_claude_tag_metrics =
|
|
6
|
+
{ active_day_count: Integer?, active_message_count: Integer? }
|
|
7
|
+
|
|
8
|
+
class BetaAnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor active_day_count: Integer?
|
|
10
|
+
|
|
11
|
+
attr_accessor active_message_count: Integer?
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
active_day_count: Integer?,
|
|
15
|
+
active_message_count: Integer?
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
active_day_count: Integer?,
|
|
20
|
+
active_message_count: Integer?
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -29,6 +29,9 @@ module Anthropic
|
|
|
29
29
|
claude_design_daily_active_user_count: Integer?,
|
|
30
30
|
claude_design_monthly_active_user_count: Integer?,
|
|
31
31
|
claude_design_weekly_active_user_count: Integer?,
|
|
32
|
+
claude_tag_daily_active_user_count: Integer?,
|
|
33
|
+
claude_tag_monthly_active_user_count: Integer?,
|
|
34
|
+
claude_tag_weekly_active_user_count: Integer?,
|
|
32
35
|
office_agent_daily_active_user_count: Integer?,
|
|
33
36
|
office_agent_monthly_active_user_count: Integer?,
|
|
34
37
|
office_agent_weekly_active_user_count: Integer?,
|
|
@@ -89,6 +92,12 @@ module Anthropic
|
|
|
89
92
|
|
|
90
93
|
attr_accessor claude_design_weekly_active_user_count: Integer?
|
|
91
94
|
|
|
95
|
+
attr_accessor claude_tag_daily_active_user_count: Integer?
|
|
96
|
+
|
|
97
|
+
attr_accessor claude_tag_monthly_active_user_count: Integer?
|
|
98
|
+
|
|
99
|
+
attr_accessor claude_tag_weekly_active_user_count: Integer?
|
|
100
|
+
|
|
92
101
|
attr_accessor office_agent_daily_active_user_count: Integer?
|
|
93
102
|
|
|
94
103
|
attr_accessor office_agent_monthly_active_user_count: Integer?
|
|
@@ -129,6 +138,9 @@ module Anthropic
|
|
|
129
138
|
?claude_design_daily_active_user_count: Integer?,
|
|
130
139
|
?claude_design_monthly_active_user_count: Integer?,
|
|
131
140
|
?claude_design_weekly_active_user_count: Integer?,
|
|
141
|
+
?claude_tag_daily_active_user_count: Integer?,
|
|
142
|
+
?claude_tag_monthly_active_user_count: Integer?,
|
|
143
|
+
?claude_tag_weekly_active_user_count: Integer?,
|
|
132
144
|
?office_agent_daily_active_user_count: Integer?,
|
|
133
145
|
?office_agent_monthly_active_user_count: Integer?,
|
|
134
146
|
?office_agent_weekly_active_user_count: Integer?,
|
|
@@ -164,6 +176,9 @@ module Anthropic
|
|
|
164
176
|
claude_design_daily_active_user_count: Integer?,
|
|
165
177
|
claude_design_monthly_active_user_count: Integer?,
|
|
166
178
|
claude_design_weekly_active_user_count: Integer?,
|
|
179
|
+
claude_tag_daily_active_user_count: Integer?,
|
|
180
|
+
claude_tag_monthly_active_user_count: Integer?,
|
|
181
|
+
claude_tag_weekly_active_user_count: Integer?,
|
|
167
182
|
office_agent_daily_active_user_count: Integer?,
|
|
168
183
|
office_agent_monthly_active_user_count: Integer?,
|
|
169
184
|
office_agent_weekly_active_user_count: Integer?,
|
|
@@ -14,6 +14,7 @@ module Anthropic
|
|
|
14
14
|
user: Anthropic::Beta::Organization::BetaAnalyticsUser?,
|
|
15
15
|
web_search_count: Integer,
|
|
16
16
|
chat_cowork_unified_metrics: Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics?,
|
|
17
|
+
claude_tag_metrics: Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics?,
|
|
17
18
|
last_activity_date: Date?,
|
|
18
19
|
rbac_group_id: String?,
|
|
19
20
|
rbac_group_name: String?
|
|
@@ -40,6 +41,8 @@ module Anthropic
|
|
|
40
41
|
|
|
41
42
|
attr_accessor chat_cowork_unified_metrics: Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics?
|
|
42
43
|
|
|
44
|
+
attr_accessor claude_tag_metrics: Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics?
|
|
45
|
+
|
|
43
46
|
attr_accessor last_activity_date: Date?
|
|
44
47
|
|
|
45
48
|
attr_accessor rbac_group_id: String?
|
|
@@ -57,6 +60,7 @@ module Anthropic
|
|
|
57
60
|
user: Anthropic::Beta::Organization::BetaAnalyticsUser?,
|
|
58
61
|
web_search_count: Integer,
|
|
59
62
|
?chat_cowork_unified_metrics: Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics?,
|
|
63
|
+
?claude_tag_metrics: Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics?,
|
|
60
64
|
?last_activity_date: Date?,
|
|
61
65
|
?rbac_group_id: String?,
|
|
62
66
|
?rbac_group_name: String?
|
|
@@ -73,6 +77,7 @@ module Anthropic
|
|
|
73
77
|
user: Anthropic::Beta::Organization::BetaAnalyticsUser?,
|
|
74
78
|
web_search_count: Integer,
|
|
75
79
|
chat_cowork_unified_metrics: Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics?,
|
|
80
|
+
claude_tag_metrics: Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics?,
|
|
76
81
|
last_activity_date: Date?,
|
|
77
82
|
rbac_group_id: String?,
|
|
78
83
|
rbac_group_name: String?
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_reply_mode =
|
|
6
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic
|
|
7
|
+
| Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly
|
|
8
|
+
| Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake
|
|
9
|
+
| Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
10
|
+
|
|
11
|
+
module BetaClaudeTagReplyMode
|
|
12
|
+
extend Anthropic::Internal::Type::Union
|
|
13
|
+
|
|
14
|
+
type type_ = :automatic | :mention_only | :always_awake | :thread
|
|
15
|
+
|
|
16
|
+
module Type
|
|
17
|
+
extend Anthropic::Internal::Type::Enum
|
|
18
|
+
|
|
19
|
+
AUTOMATIC: :automatic
|
|
20
|
+
MENTION_ONLY: :mention_only
|
|
21
|
+
ALWAYS_AWAKE: :always_awake
|
|
22
|
+
THREAD: :thread
|
|
23
|
+
|
|
24
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode::type_]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::beta_claude_tag_reply_mode]
|
|
28
|
+
|
|
29
|
+
def self.new:
|
|
30
|
+
(
|
|
31
|
+
type: :automatic | "automatic"
|
|
32
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic
|
|
33
|
+
| (
|
|
34
|
+
type: :mention_only | "mention_only"
|
|
35
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly
|
|
36
|
+
| (
|
|
37
|
+
type: :always_awake | "always_awake"
|
|
38
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake
|
|
39
|
+
| (
|
|
40
|
+
type: :thread | "thread"
|
|
41
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread
|
|
42
|
+
| (
|
|
43
|
+
type: Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode::type_
|
|
44
|
+
| String
|
|
45
|
+
) -> Anthropic::Models::Beta::Organization::beta_claude_tag_reply_mode
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_reply_mode_always_awake = { type: :always_awake }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagReplyModeAlwaysAwake < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :always_awake
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :always_awake) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :always_awake }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_reply_mode_automatic = { type: :automatic }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagReplyModeAutomatic < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :automatic
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :automatic) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :automatic }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_reply_mode_mention_only = { type: :mention_only }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagReplyModeMentionOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :mention_only
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :mention_only) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :mention_only }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_reply_mode_thread = { type: :thread }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagReplyModeThread < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :thread
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :thread) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :thread }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|