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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/bedrock/client.rb +17 -5
  5. data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
  6. data/lib/anthropic/helpers/vertex/client.rb +26 -12
  7. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
  8. data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
  9. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
  10. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
  11. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
  12. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
  13. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
  14. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
  15. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
  16. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
  17. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
  18. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
  19. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
  20. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +4 -4
  21. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +7 -5
  22. data/lib/anthropic/models/model.rb +2 -2
  23. data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
  24. data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
  25. data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
  26. data/lib/anthropic/models/organization/external_key_create_params.rb +7 -5
  27. data/lib/anthropic/models/organization/rbac_role.rb +4 -4
  28. data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
  29. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
  30. data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
  31. data/lib/anthropic/resources/organization/external_keys.rb +1 -1
  32. data/lib/anthropic/version.rb +1 -1
  33. data/lib/anthropic.rb +7 -0
  34. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
  35. data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
  36. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
  37. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
  38. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
  39. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
  40. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
  41. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
  42. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
  43. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
  44. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
  45. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
  46. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
  47. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +6 -6
  48. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +12 -8
  49. data/rbi/anthropic/models/model.rbi +2 -2
  50. data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
  51. data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
  52. data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
  53. data/rbi/anthropic/models/organization/external_key_create_params.rbi +12 -8
  54. data/rbi/anthropic/models/organization/rbac_role.rbi +6 -6
  55. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +6 -4
  56. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +4 -5
  57. data/rbi/anthropic/resources/beta/organization/plugins.rbi +13 -12
  58. data/rbi/anthropic/resources/organization/external_keys.rbi +6 -4
  59. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
  60. data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
  61. data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
  62. data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
  63. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
  64. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
  65. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
  66. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
  67. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
  68. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
  69. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
  70. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
  71. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
  72. data/sig/anthropic/models/model.rbs +2 -2
  73. data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
  74. data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
  75. data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
  76. metadata +23 -2
@@ -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 name can differ
23
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
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 name can differ fro
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. Omit this field for a key that isn't
33
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
34
- # user profile. The binding cannot be changed later. A key bound to a user profile
35
- # can only be attached to a Workspace that has the same user profile.
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. Omit this field for a key that isn't bo
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
 
@@ -64,10 +64,10 @@ module Anthropic
64
64
 
65
65
  # @!group
66
66
 
67
- # Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
67
+ # Built for the most ambitious work in coding, enterprise workflows, and the sciences
68
68
  CLAUDE_FABLE_5_2 = :"claude-fable-5-2"
69
69
 
70
- # Frontier intelligence for cybersecurity and life sciences research, available through verification programs
70
+ # Built for the most demanding cybersecurity and life sciences research, available through verification programs
71
71
  CLAUDE_MYTHOS_5_2 = :"claude-mythos-5-2"
72
72
 
73
73
  # Fastest model for high-volume, real-time tasks
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ class AnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute active_day_count
8
+ # 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
9
+ # the window in date-range mode, so it is the number of active days; on grouped
10
+ # rows, the total of each member's active days. Null when Claude Tag data cannot
11
+ # be read for the request. Otherwise, 0 on a row filtered by project, and null on
12
+ # any other row when no covered day was measured.
13
+ #
14
+ # @return [Integer, nil]
15
+ required :active_day_count, Integer, nil?: true
16
+
17
+ # @!attribute active_message_count
18
+ # Number of the user's Slack messages that made them active: @-mentions, direct
19
+ # messages, group direct message asks, and thread posts Claude answered. Other
20
+ # messages are not counted. Null when Claude Tag data cannot be read for the
21
+ # request. Otherwise, 0 on a row filtered by project, and null on any other row
22
+ # when no covered day was measured.
23
+ #
24
+ # @return [Integer, nil]
25
+ required :active_message_count, Integer, nil?: true
26
+
27
+ # @!method initialize(active_day_count:, active_message_count:)
28
+ # Claude Tag activity metrics for a single linked user on a given day.
29
+ #
30
+ # Some parameter documentations has been truncated, see
31
+ # {Anthropic::Models::Organization::AnalyticsClaudeTagMetrics} for more details.
32
+ #
33
+ # @param active_day_count [Integer, nil] 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
34
+ #
35
+ # @param active_message_count [Integer, nil] Number of the user's Slack messages that made them active: @-mentions, direct me
36
+ end
37
+ end
38
+ end
39
+ end
@@ -186,6 +186,42 @@ module Anthropic
186
186
  # @return [Integer, nil]
187
187
  optional :claude_design_weekly_active_user_count, Integer, nil?: true
188
188
 
189
+ # @!attribute claude_tag_daily_active_user_count
190
+ # Number of Slack users active in Claude Tag on the requested day. Counts distinct
191
+ # Slack users, including users who have not linked a Claude account, so it can
192
+ # exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
193
+ # no measured value, when Claude Tag data cannot be read for the request, and when
194
+ # the response is scoped to an RBAC group, because an unlinked user belongs to no
195
+ # group. Omitted from the response on deployments that do not offer Claude Tag
196
+ # reporting.
197
+ #
198
+ # @return [Integer, nil]
199
+ optional :claude_tag_daily_active_user_count, Integer, nil?: true
200
+
201
+ # @!attribute claude_tag_monthly_active_user_count
202
+ # Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
203
+ # distinct Slack users, including users who have not linked a Claude account, so
204
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
205
+ # with no measured value, when Claude Tag data cannot be read for the request, and
206
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
207
+ # to no group. Omitted from the response on deployments that do not offer Claude
208
+ # Tag reporting.
209
+ #
210
+ # @return [Integer, nil]
211
+ optional :claude_tag_monthly_active_user_count, Integer, nil?: true
212
+
213
+ # @!attribute claude_tag_weekly_active_user_count
214
+ # Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
215
+ # distinct Slack users, including users who have not linked a Claude account, so
216
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
217
+ # with no measured value, when Claude Tag data cannot be read for the request, and
218
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
219
+ # to no group. Omitted from the response on deployments that do not offer Claude
220
+ # Tag reporting.
221
+ #
222
+ # @return [Integer, nil]
223
+ optional :claude_tag_weekly_active_user_count, Integer, nil?: true
224
+
189
225
  # @!attribute office_agent_daily_active_user_count
190
226
  # Number of users with Claude in Office activity on the requested day. Omitted
191
227
  # from the response while the per-product breakdown is not enabled for this
@@ -244,7 +280,7 @@ module Anthropic
244
280
  # @return [Integer, nil]
245
281
  optional :science_weekly_active_user_count, Integer, nil?: true
246
282
 
247
- # @!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)
283
+ # @!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)
248
284
  # Per-day entry in the /summaries response.
249
285
  #
250
286
  # Some parameter documentations has been truncated, see
@@ -301,6 +337,12 @@ module Anthropic
301
337
  #
302
338
  # @param claude_design_weekly_active_user_count [Integer, nil] Number of users with Claude Design activity in the 7-day rolling window. Omitted
303
339
  #
340
+ # @param claude_tag_daily_active_user_count [Integer, nil] Number of Slack users active in Claude Tag on the requested day. Counts distinct
341
+ #
342
+ # @param claude_tag_monthly_active_user_count [Integer, nil] Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
343
+ #
344
+ # @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
345
+ #
304
346
  # @param office_agent_daily_active_user_count [Integer, nil] Number of users with Claude in Office activity on the requested day. Omitted fro
305
347
  #
306
348
  # @param office_agent_monthly_active_user_count [Integer, nil] Number of users with Claude in Office activity in the 30-day rolling window. Omi
@@ -73,6 +73,15 @@ module Anthropic
73
73
  -> { Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics },
74
74
  nil?: true
75
75
 
76
+ # @!attribute claude_tag_metrics
77
+ # Claude Tag activity in Slack by a user who has linked a Claude account. Activity
78
+ # by Slack users who have not linked an account appears only in the `/summaries`
79
+ # Claude Tag counts, so these rows do not add up to those counts. Omitted from the
80
+ # response on deployments that do not offer Claude Tag reporting.
81
+ #
82
+ # @return [Anthropic::Models::Organization::AnalyticsClaudeTagMetrics, nil]
83
+ optional :claude_tag_metrics, -> { Anthropic::Organization::AnalyticsClaudeTagMetrics }, nil?: true
84
+
76
85
  # @!attribute last_activity_date
77
86
  # Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
78
87
  # within the requested window: equal to the requested `date` in single-day mode,
@@ -103,7 +112,7 @@ module Anthropic
103
112
  # @return [String, nil]
104
113
  optional :rbac_group_name, String, nil?: true
105
114
 
106
- # @!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)
115
+ # @!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)
107
116
  # Per-user activity data for a given day.
108
117
  #
109
118
  # Some parameter documentations has been truncated, see
@@ -129,6 +138,8 @@ module Anthropic
129
138
  #
130
139
  # @param chat_cowork_unified_metrics [Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedMetrics, nil] Activity recorded while the member had Chat and Cowork unified (Cowork's feature
131
140
  #
141
+ # @param claude_tag_metrics [Anthropic::Models::Organization::AnalyticsClaudeTagMetrics, nil] Claude Tag activity in Slack by a user who has linked a Claude account. Activity
142
+ #
132
143
  # @param last_activity_date [Date, nil] Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, wit
133
144
  #
134
145
  # @param rbac_group_id [String, nil] Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API s
@@ -27,10 +27,12 @@ module Anthropic
27
27
  optional :geo, enum: -> { Anthropic::Organization::ExternalKeyCreateParams::Geo }
28
28
 
29
29
  # @!attribute user_profile_id
30
- # ID of a user profile to bind the key to. Omit this field for a key that isn't
31
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
32
- # user profile. The binding cannot be changed later. A key bound to a user profile
33
- # can only be attached to a Workspace that has the same user profile.
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
  #
35
37
  # @return [String, nil]
36
38
  optional :user_profile_id, String, nil?: true
@@ -45,7 +47,7 @@ module Anthropic
45
47
  #
46
48
  # @param geo [Symbol, Anthropic::Models::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
47
49
  #
48
- # @param user_profile_id [String, nil] ID of a user profile to bind the key to. Omit this field for a key that isn't bo
50
+ # @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
49
51
  #
50
52
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
51
53
 
@@ -18,9 +18,9 @@ module Anthropic
18
18
  required :created_at, Time
19
19
 
20
20
  # @!attribute display_name
21
- # Name of the RBAC Role. For a role created by Anthropic, this name can differ
22
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
23
- # lasting reference to a role, store its `id`.
21
+ # Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
22
+ # for the access that the role grants. Anthropic may change this name, so to keep
23
+ # a lasting reference to a role, store its `id`.
24
24
  #
25
25
  # @return [String]
26
26
  required :display_name, String
@@ -47,7 +47,7 @@ module Anthropic
47
47
  #
48
48
  # @param created_at [Time] RFC 3339 datetime string indicating when the RBAC Role was created.
49
49
  #
50
- # @param display_name [String] Name of the RBAC Role. For a role created by Anthropic, this name can differ fro
50
+ # @param display_name [String] Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
51
51
  #
52
52
  # @param updated_at [Time] RFC 3339 datetime string indicating when the RBAC Role was last updated.
53
53
  #
@@ -19,7 +19,7 @@ module Anthropic
19
19
  #
20
20
  # @param geo [Symbol, Anthropic::Models::Beta::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
21
21
  #
22
- # @param user_profile_id [String, nil] ID of a user profile to bind the key to. Omit this field for a key that isn't bo
22
+ # @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
23
23
  #
24
24
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
25
25
  #
@@ -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 (a skill an administrator uploaded for the whole
22
- # organization in claude.ai) is refused with a 409: `error_code`
23
- # `skill_name_taken`, with that name in `details.skill_name`. A 503 with
24
- # `error_code` `registration_pending` means the version was stored but is not yet
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
@@ -30,13 +30,13 @@ module Anthropic
30
30
  # 409 with `error_code` `plugin_name_taken` and, when a Plugin holds it, that
31
31
  # Plugin's ID in `details.plugin_id`. A Plugin going into the organization's
32
32
  # library marketplace is also refused with a 409 when one of its skills has the
33
- # name of an organization skill (a skill an administrator uploaded for the whole
34
- # organization in claude.ai): `error_code` `skill_name_taken`, with that name in
35
- # `details.skill_name`; rename the skill, or remove the organization skill in
36
- # claude.ai. A 503 with `error_code` `registration_pending` means the Plugin and
37
- # its version were stored (their IDs are in `details`) but are not yet usable in
38
- # claude.ai: do not retry the create (the retry would return `plugin_name_taken`);
39
- # create a version on the stored Plugin instead, which completes it.
33
+ # name of an organization skill that this API does not list: `error_code`
34
+ # `skill_name_taken`, with that name in `details.skill_name`; rename the skill, or
35
+ # remove the organization skill in claude.ai. A 503 with `error_code`
36
+ # `registration_pending` means the Plugin and its version were stored (their IDs
37
+ # are in `details`) but are not yet usable in claude.ai: do not retry the create
38
+ # (the retry would return `plugin_name_taken`); create a version on the stored
39
+ # Plugin instead, which completes it.
40
40
  #
41
41
  # For a worked example, see
42
42
  # [Create a plugin](/docs/en/manage-claude/plugins-api#create-a-plugin) in the
@@ -164,10 +164,9 @@ module Anthropic
164
164
  # accepted. If the scan outcome cannot be read at that moment, the request fails
165
165
  # with a retryable 503 instead. When the Plugin is in the organization's library
166
166
  # marketplace, a version other than the one served is also refused with a 409 when
167
- # one of its skills has a name that an organization skill (one an administrator
168
- # uploaded for the whole organization in claude.ai) has since taken: `error_code`
169
- # `skill_name_taken`, with that name in `details.skill_name`. A member-owned
170
- # Plugin cannot be updated here (403).
167
+ # an organization skill that this API does not list has since taken the name of
168
+ # one of its skills: `error_code` `skill_name_taken`, with that name in
169
+ # `details.skill_name`. A member-owned Plugin cannot be updated here (403).
171
170
  #
172
171
  # This endpoint does not write installation settings; they are written at
173
172
  # `/v1/organizations/plugins/{plugin_id}/installation_settings/{target}`.
@@ -321,7 +320,9 @@ module Anthropic
321
320
 
322
321
  # Permanently delete a Plugin and every version it holds, exactly as when an
323
322
  # administrator deletes it in claude.ai. The Plugin may belong to the organization
324
- # or to a member, including a member who has since left the organization.
323
+ # or to a member, including a member who has since left the organization. Do not
324
+ # delete a Plugin only because your pipeline did not create it: a member or an
325
+ # administrator might have added it in claude.ai.
325
326
  #
326
327
  # An organization-owned Plugin's installation settings go with it; a member-owned
327
328
  # Plugin's shares are withdrawn and its owner no longer has it.
@@ -17,7 +17,7 @@ module Anthropic
17
17
  #
18
18
  # @param geo [Symbol, Anthropic::Models::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
19
19
  #
20
- # @param user_profile_id [String, nil] ID of a user profile to bind the key to. Omit this field for a key that isn't bo
20
+ # @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
21
21
  #
22
22
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
23
23
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "2.7.0"
4
+ VERSION = "2.8.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -1104,6 +1104,7 @@ require_relative "anthropic/models/beta/organization/beta_analytics_chat_cowork_
1104
1104
  require_relative "anthropic/models/beta/organization/beta_analytics_chat_metrics"
1105
1105
  require_relative "anthropic/models/beta/organization/beta_analytics_claude_code_metrics"
1106
1106
  require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_category"
1107
+ require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_metrics"
1107
1108
  require_relative "anthropic/models/beta/organization/beta_analytics_connector_activity"
1108
1109
  require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics"
1109
1110
  require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics"
@@ -1194,6 +1195,11 @@ require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_polic
1194
1195
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
1195
1196
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only"
1196
1197
  require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict"
1198
+ require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode"
1199
+ require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake"
1200
+ require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic"
1201
+ require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only"
1202
+ require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread"
1197
1203
  require_relative "anthropic/models/beta/organization/beta_claude_tag_settings"
1198
1204
  require_relative "anthropic/models/beta/organization/beta_claude_tag_settings_create"
1199
1205
  require_relative "anthropic/models/beta/organization/beta_claude_tag_setting_source"
@@ -2043,6 +2049,7 @@ require_relative "anthropic/models/organization/analytics_chat_cowork_unified_me
2043
2049
  require_relative "anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics"
2044
2050
  require_relative "anthropic/models/organization/analytics_chat_metrics"
2045
2051
  require_relative "anthropic/models/organization/analytics_claude_code_metrics"
2052
+ require_relative "anthropic/models/organization/analytics_claude_tag_metrics"
2046
2053
  require_relative "anthropic/models/organization/analytics_connector_activity"
2047
2054
  require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics"
2048
2055
  require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics"
@@ -31,7 +31,7 @@ module Anthropic
31
31
  end
32
32
  OrSymbol = T.type_alias { T.any(Symbol, String) }
33
33
 
34
- # Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
34
+ # Built for the most ambitious work in coding, enterprise workflows, and the sciences
35
35
  CLAUDE_FABLE_5_2 =
36
36
  T.let(
37
37
  :"claude-fable-5-2",
@@ -0,0 +1,69 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaAnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics,
12
+ Anthropic::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ # 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
17
+ # the window in date-range mode, so it is the number of active days; on grouped
18
+ # rows, the total of each member's active days. Null when Claude Tag data cannot
19
+ # be read for the request. Otherwise, 0 on a row filtered by project, and null on
20
+ # any other row when no covered day was measured.
21
+ sig { returns(T.nilable(Integer)) }
22
+ attr_accessor :active_day_count
23
+
24
+ # Number of the user's Slack messages that made them active: @-mentions, direct
25
+ # messages, group direct message asks, and thread posts Claude answered. Other
26
+ # messages are not counted. Null when Claude Tag data cannot be read for the
27
+ # request. Otherwise, 0 on a row filtered by project, and null on any other row
28
+ # when no covered day was measured.
29
+ sig { returns(T.nilable(Integer)) }
30
+ attr_accessor :active_message_count
31
+
32
+ # Claude Tag activity metrics for a single linked user on a given day.
33
+ sig do
34
+ params(
35
+ active_day_count: T.nilable(Integer),
36
+ active_message_count: T.nilable(Integer)
37
+ ).returns(T.attached_class)
38
+ end
39
+ def self.new(
40
+ # 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
41
+ # the window in date-range mode, so it is the number of active days; on grouped
42
+ # rows, the total of each member's active days. Null when Claude Tag data cannot
43
+ # be read for the request. Otherwise, 0 on a row filtered by project, and null on
44
+ # any other row when no covered day was measured.
45
+ active_day_count:,
46
+ # Number of the user's Slack messages that made them active: @-mentions, direct
47
+ # messages, group direct message asks, and thread posts Claude answered. Other
48
+ # messages are not counted. Null when Claude Tag data cannot be read for the
49
+ # request. Otherwise, 0 on a row filtered by project, and null on any other row
50
+ # when no covered day was measured.
51
+ active_message_count:
52
+ )
53
+ end
54
+
55
+ sig do
56
+ override.returns(
57
+ {
58
+ active_day_count: T.nilable(Integer),
59
+ active_message_count: T.nilable(Integer)
60
+ }
61
+ )
62
+ end
63
+ def to_hash
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -145,6 +145,36 @@ module Anthropic
145
145
  sig { returns(T.nilable(Integer)) }
146
146
  attr_accessor :claude_design_weekly_active_user_count
147
147
 
148
+ # Number of Slack users active in Claude Tag on the requested day. Counts distinct
149
+ # Slack users, including users who have not linked a Claude account, so it can
150
+ # exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
151
+ # no measured value, when Claude Tag data cannot be read for the request, and when
152
+ # the response is scoped to an RBAC group, because an unlinked user belongs to no
153
+ # group. Omitted from the response on deployments that do not offer Claude Tag
154
+ # reporting.
155
+ sig { returns(T.nilable(Integer)) }
156
+ attr_accessor :claude_tag_daily_active_user_count
157
+
158
+ # Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
159
+ # distinct Slack users, including users who have not linked a Claude account, so
160
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
161
+ # with no measured value, when Claude Tag data cannot be read for the request, and
162
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
163
+ # to no group. Omitted from the response on deployments that do not offer Claude
164
+ # Tag reporting.
165
+ sig { returns(T.nilable(Integer)) }
166
+ attr_accessor :claude_tag_monthly_active_user_count
167
+
168
+ # Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
169
+ # distinct Slack users, including users who have not linked a Claude account, so
170
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
171
+ # with no measured value, when Claude Tag data cannot be read for the request, and
172
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
173
+ # to no group. Omitted from the response on deployments that do not offer Claude
174
+ # Tag reporting.
175
+ sig { returns(T.nilable(Integer)) }
176
+ attr_accessor :claude_tag_weekly_active_user_count
177
+
148
178
  # Number of users with Claude in Office activity on the requested day. Omitted
149
179
  # from the response while the per-product breakdown is not enabled for this
150
180
  # organization.
@@ -217,6 +247,9 @@ module Anthropic
217
247
  claude_design_daily_active_user_count: T.nilable(Integer),
218
248
  claude_design_monthly_active_user_count: T.nilable(Integer),
219
249
  claude_design_weekly_active_user_count: T.nilable(Integer),
250
+ claude_tag_daily_active_user_count: T.nilable(Integer),
251
+ claude_tag_monthly_active_user_count: T.nilable(Integer),
252
+ claude_tag_weekly_active_user_count: T.nilable(Integer),
220
253
  office_agent_daily_active_user_count: T.nilable(Integer),
221
254
  office_agent_monthly_active_user_count: T.nilable(Integer),
222
255
  office_agent_weekly_active_user_count: T.nilable(Integer),
@@ -309,6 +342,30 @@ module Anthropic
309
342
  # from the response while the per-product breakdown is not enabled for this
310
343
  # organization.
311
344
  claude_design_weekly_active_user_count: nil,
345
+ # Number of Slack users active in Claude Tag on the requested day. Counts distinct
346
+ # Slack users, including users who have not linked a Claude account, so it can
347
+ # exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
348
+ # no measured value, when Claude Tag data cannot be read for the request, and when
349
+ # the response is scoped to an RBAC group, because an unlinked user belongs to no
350
+ # group. Omitted from the response on deployments that do not offer Claude Tag
351
+ # reporting.
352
+ claude_tag_daily_active_user_count: nil,
353
+ # Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
354
+ # distinct Slack users, including users who have not linked a Claude account, so
355
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
356
+ # with no measured value, when Claude Tag data cannot be read for the request, and
357
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
358
+ # to no group. Omitted from the response on deployments that do not offer Claude
359
+ # Tag reporting.
360
+ claude_tag_monthly_active_user_count: nil,
361
+ # Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
362
+ # distinct Slack users, including users who have not linked a Claude account, so
363
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
364
+ # with no measured value, when Claude Tag data cannot be read for the request, and
365
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
366
+ # to no group. Omitted from the response on deployments that do not offer Claude
367
+ # Tag reporting.
368
+ claude_tag_weekly_active_user_count: nil,
312
369
  # Number of users with Claude in Office activity on the requested day. Omitted
313
370
  # from the response while the per-product breakdown is not enabled for this
314
371
  # organization.
@@ -372,6 +429,9 @@ module Anthropic
372
429
  claude_design_daily_active_user_count: T.nilable(Integer),
373
430
  claude_design_monthly_active_user_count: T.nilable(Integer),
374
431
  claude_design_weekly_active_user_count: T.nilable(Integer),
432
+ claude_tag_daily_active_user_count: T.nilable(Integer),
433
+ claude_tag_monthly_active_user_count: T.nilable(Integer),
434
+ claude_tag_weekly_active_user_count: T.nilable(Integer),
375
435
  office_agent_daily_active_user_count: T.nilable(Integer),
376
436
  office_agent_monthly_active_user_count: T.nilable(Integer),
377
437
  office_agent_weekly_active_user_count: T.nilable(Integer),
@@ -150,6 +150,29 @@ module Anthropic
150
150
  end
151
151
  attr_writer :chat_cowork_unified_metrics
152
152
 
153
+ # Claude Tag activity in Slack by a user who has linked a Claude account. Activity
154
+ # by Slack users who have not linked an account appears only in the `/summaries`
155
+ # Claude Tag counts, so these rows do not add up to those counts. Omitted from the
156
+ # response on deployments that do not offer Claude Tag reporting.
157
+ sig do
158
+ returns(
159
+ T.nilable(
160
+ Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
161
+ )
162
+ )
163
+ end
164
+ attr_reader :claude_tag_metrics
165
+
166
+ sig do
167
+ params(
168
+ claude_tag_metrics:
169
+ T.nilable(
170
+ Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
171
+ )
172
+ ).void
173
+ end
174
+ attr_writer :claude_tag_metrics
175
+
153
176
  # Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
154
177
  # within the requested window: equal to the requested `date` in single-day mode,
155
178
  # and to the latest active day from `starting_date` (inclusive) to `ending_date`
@@ -199,6 +222,10 @@ module Anthropic
199
222
  T.nilable(
200
223
  Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics::OrHash
201
224
  ),
225
+ claude_tag_metrics:
226
+ T.nilable(
227
+ Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics::OrHash
228
+ ),
202
229
  last_activity_date: T.nilable(Date),
203
230
  rbac_group_id: T.nilable(String),
204
231
  rbac_group_name: T.nilable(String)
@@ -232,6 +259,11 @@ module Anthropic
232
259
  # `sessions` (Cowork activity). Omitted from the response where Chat and Cowork
233
260
  # unified is not available.
234
261
  chat_cowork_unified_metrics: nil,
262
+ # Claude Tag activity in Slack by a user who has linked a Claude account. Activity
263
+ # by Slack users who have not linked an account appears only in the `/summaries`
264
+ # Claude Tag counts, so these rows do not add up to those counts. Omitted from the
265
+ # response on deployments that do not offer Claude Tag reporting.
266
+ claude_tag_metrics: nil,
235
267
  # Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
236
268
  # within the requested window: equal to the requested `date` in single-day mode,
237
269
  # and to the latest active day from `starting_date` (inclusive) to `ending_date`
@@ -276,6 +308,10 @@ module Anthropic
276
308
  T.nilable(
277
309
  Anthropic::Beta::Organization::BetaAnalyticsChatCoworkUnifiedMetrics
278
310
  ),
311
+ claude_tag_metrics:
312
+ T.nilable(
313
+ Anthropic::Beta::Organization::BetaAnalyticsClaudeTagMetrics
314
+ ),
279
315
  last_activity_date: T.nilable(Date),
280
316
  rbac_group_id: T.nilable(String),
281
317
  rbac_group_name: T.nilable(String)