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.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +1 -1
  5. data/lib/anthropic/helpers/aws/client.rb +6 -0
  6. data/lib/anthropic/helpers/bedrock/client.rb +17 -5
  7. data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
  8. data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
  9. data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
  10. data/lib/anthropic/helpers/vertex/client.rb +26 -12
  11. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  12. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  13. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
  14. data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
  15. data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
  16. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
  17. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
  18. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
  19. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
  20. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
  21. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
  22. data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
  23. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
  24. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
  25. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +2 -2
  26. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +2 -2
  27. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
  28. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
  29. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
  30. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
  31. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
  32. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
  33. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
  34. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
  35. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
  36. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
  37. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
  38. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +4 -4
  39. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +7 -5
  40. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
  41. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
  42. data/lib/anthropic/models/error_details.rb +9 -9
  43. data/lib/anthropic/models/model.rb +10 -0
  44. data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
  45. data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
  46. data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
  47. data/lib/anthropic/models/organization/external_key_create_params.rb +7 -5
  48. data/lib/anthropic/models/organization/rbac_role.rb +4 -4
  49. data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
  50. data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
  51. data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
  52. data/lib/anthropic/models.rb +4 -0
  53. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
  54. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
  55. data/lib/anthropic/resources/beta/organization/api_keys.rb +1 -0
  56. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
  57. data/lib/anthropic/resources/beta/organization/external_keys.rb +6 -1
  58. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
  59. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
  60. data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
  61. data/lib/anthropic/resources/beta/organization/invites.rb +3 -0
  62. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
  63. data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
  64. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +2 -0
  65. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +5 -0
  66. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
  67. data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
  68. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
  69. data/lib/anthropic/resources/beta/organization/spend_limits.rb +2 -2
  70. data/lib/anthropic/resources/beta/organization/users.rb +8 -4
  71. data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
  72. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +4 -0
  73. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
  74. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
  75. data/lib/anthropic/resources/beta/organization/workspaces.rb +4 -0
  76. data/lib/anthropic/resources/organization/api_keys.rb +1 -0
  77. data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
  78. data/lib/anthropic/resources/organization/external_keys.rb +6 -1
  79. data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
  80. data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
  81. data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
  82. data/lib/anthropic/resources/organization/invites.rb +3 -0
  83. data/lib/anthropic/resources/organization/rbac_groups/members.rb +2 -0
  84. data/lib/anthropic/resources/organization/rbac_groups.rb +5 -0
  85. data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
  86. data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
  87. data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
  88. data/lib/anthropic/resources/organization/users.rb +3 -0
  89. data/lib/anthropic/resources/organization/workspaces/members.rb +4 -0
  90. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
  91. data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
  92. data/lib/anthropic/resources/organization/workspaces.rb +4 -0
  93. data/lib/anthropic/version.rb +1 -1
  94. data/lib/anthropic.rb +10 -2
  95. data/rbi/anthropic/helpers/aws/client.rbi +5 -0
  96. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
  97. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  98. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
  99. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
  100. data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
  101. data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
  102. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
  103. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
  104. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
  105. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
  106. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
  107. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
  108. data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
  109. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
  110. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
  111. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +2 -2
  112. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +2 -2
  113. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
  114. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
  115. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
  116. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
  117. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
  118. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
  119. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
  120. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
  121. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
  122. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
  123. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
  124. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +6 -6
  125. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +12 -8
  126. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
  127. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
  128. data/rbi/anthropic/models/error_details.rbi +6 -6
  129. data/rbi/anthropic/models/model.rbi +8 -0
  130. data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
  131. data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
  132. data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
  133. data/rbi/anthropic/models/organization/external_key_create_params.rbi +12 -8
  134. data/rbi/anthropic/models/organization/rbac_role.rbi +6 -6
  135. data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
  136. data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
  137. data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
  138. data/rbi/anthropic/models.rbi +5 -0
  139. data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
  140. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
  141. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
  142. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +6 -4
  143. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +4 -5
  144. data/rbi/anthropic/resources/beta/organization/plugins.rbi +13 -12
  145. data/rbi/anthropic/resources/beta/organization/users.rbi +4 -4
  146. data/rbi/anthropic/resources/organization/external_keys.rbi +6 -4
  147. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  148. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
  149. data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
  150. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
  151. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
  152. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
  153. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
  154. data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
  155. data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
  156. data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
  157. data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
  158. data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
  159. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
  160. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
  161. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
  162. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
  163. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
  164. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
  165. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
  166. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
  167. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
  168. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
  169. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
  170. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
  171. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
  172. data/sig/anthropic/models/error_details.rbs +6 -6
  173. data/sig/anthropic/models/model.rbs +9 -1
  174. data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
  175. data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
  176. data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
  177. data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
  178. data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
  179. data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
  180. data/sig/anthropic/models.rbs +4 -0
  181. data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
  182. data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
  183. metadata +32 -8
  184. data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
  185. data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
  186. data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
  187. data/rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi +0 -32
  188. data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
  189. data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
@@ -21,9 +21,9 @@ module Anthropic
21
21
  sig { returns(Time) }
22
22
  attr_accessor :created_at
23
23
 
24
- # Name of the RBAC Role. For a role created by Anthropic, this name can differ
25
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
26
- # lasting reference to a role, store its `id`.
24
+ # Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
25
+ # for the access that the role grants. Anthropic may change this name, so to keep
26
+ # a lasting reference to a role, store its `id`.
27
27
  sig { returns(String) }
28
28
  attr_accessor :display_name
29
29
 
@@ -51,9 +51,9 @@ module Anthropic
51
51
  id:,
52
52
  # RFC 3339 datetime string indicating when the RBAC Role was created.
53
53
  created_at:,
54
- # Name of the RBAC Role. For a role created by Anthropic, this name can differ
55
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
56
- # lasting reference to a role, store its `id`.
54
+ # Name of the RBAC Role. For a role created by Anthropic, this is Anthropic's name
55
+ # for the access that the role grants. Anthropic may change this name, so to keep
56
+ # a lasting reference to a role, store its `id`.
57
57
  display_name:,
58
58
  # RFC 3339 datetime string indicating when the RBAC Role was last updated.
59
59
  updated_at:,
@@ -50,10 +50,12 @@ module Anthropic
50
50
  end
51
51
  attr_writer :geo
52
52
 
53
- # ID of a user profile to bind the key to. Omit this field for a key that isn't
54
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
55
- # user profile. The binding cannot be changed later. A key bound to a user profile
56
- # can only be attached to a Workspace that has the same user profile.
53
+ # ID of a user profile to bind the key to. A user profile represents one of your
54
+ # customers: bind a customer's key to that customer's user profile. A key bound to
55
+ # a user profile can only be attached to a Workspace that has the same user
56
+ # profile, and the binding cannot be changed later. Omit this field only for your
57
+ # organization's own key, because a key created without a user profile ID can be
58
+ # attached to any Workspace, including another customer's.
57
59
  sig { returns(T.nilable(String)) }
58
60
  attr_accessor :user_profile_id
59
61
 
@@ -79,10 +81,12 @@ module Anthropic
79
81
  display_name: nil,
80
82
  # Data residency geo. Only `us` is supported.
81
83
  geo: nil,
82
- # ID of a user profile to bind the key to. Omit this field for a key that isn't
83
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
84
- # user profile. The binding cannot be changed later. A key bound to a user profile
85
- # can only be attached to a Workspace that has the same user profile.
84
+ # ID of a user profile to bind the key to. A user profile represents one of your
85
+ # customers: bind a customer's key to that customer's user profile. A key bound to
86
+ # a user profile can only be attached to a Workspace that has the same user
87
+ # profile, and the binding cannot be changed later. Omit this field only for your
88
+ # organization's own key, because a key created without a user profile ID can be
89
+ # attached to any Workspace, including another customer's.
86
90
  user_profile_id: nil,
87
91
  request_options: {}
88
92
  )
@@ -133,6 +133,11 @@ module Anthropic
133
133
  :"user_profile.enforcement_action_resolved",
134
134
  Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent::TaggedSymbol
135
135
  )
136
+ USER_PROFILE_PROGRAM_STATUS_UPDATED =
137
+ T.let(
138
+ :"user_profile.program_status_updated",
139
+ Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent::TaggedSymbol
140
+ )
136
141
 
137
142
  sig do
138
143
  override.returns(
@@ -186,6 +186,11 @@ module Anthropic
186
186
  :"user_profile.enforcement_action_resolved",
187
187
  Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent::TaggedSymbol
188
188
  )
189
+ USER_PROFILE_PROGRAM_STATUS_UPDATED =
190
+ T.let(
191
+ :"user_profile.program_status_updated",
192
+ Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent::TaggedSymbol
193
+ )
189
194
 
190
195
  sig do
191
196
  override.returns(
@@ -43,6 +43,7 @@ module Anthropic
43
43
  Anthropic::CMEKContextUnavailableErrorDetails,
44
44
  Anthropic::Organization::OrgAPIKeyLimitExceededErrorDetails,
45
45
  Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails,
46
+ Anthropic::SandboxEgressRestrictedErrorDetails,
46
47
  Anthropic::UserProfileNotFoundErrorDetails,
47
48
  Anthropic::Organization::ExternalKeyInWorkspacePolicyErrorDetails,
48
49
  Anthropic::Organization::AlreadyMemberErrorDetails,
@@ -74,7 +75,6 @@ module Anthropic
74
75
  Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails,
75
76
  Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails,
76
77
  Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails,
77
- Anthropic::Beta::BetaBillingFrozenErrorDetails,
78
78
  Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails,
79
79
  Anthropic::BetaUnsupportedCharsetErrorDetails,
80
80
  Anthropic::Beta::Organization::BetaPluginNameTakenErrorDetails,
@@ -272,6 +272,11 @@ module Anthropic
272
272
  :workspace_api_key_limit_exceeded,
273
273
  Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
274
274
  )
275
+ SANDBOX_EGRESS_RESTRICTED =
276
+ T.let(
277
+ :sandbox_egress_restricted,
278
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
279
+ )
275
280
  USER_PROFILE_NOT_FOUND =
276
281
  T.let(
277
282
  :user_profile_not_found,
@@ -427,11 +432,6 @@ module Anthropic
427
432
  :cannot_sign_out_privileged_member,
428
433
  Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
429
434
  )
430
- BILLING_FROZEN =
431
- T.let(
432
- :billing_frozen,
433
- Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
434
- )
435
435
  SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED =
436
436
  T.let(
437
437
  :spend_limits_admin_api_writes_not_enabled,
@@ -18,6 +18,14 @@ module Anthropic
18
18
  TaggedSymbol = T.type_alias { T.all(Symbol, Anthropic::Model) }
19
19
  OrSymbol = T.type_alias { T.any(Symbol, String) }
20
20
 
21
+ # Built for the most ambitious work in coding, enterprise workflows, and the sciences
22
+ CLAUDE_FABLE_5_2 =
23
+ T.let(:"claude-fable-5-2", Anthropic::Model::TaggedSymbol)
24
+
25
+ # Built for the most demanding cybersecurity and life sciences research, available through verification programs
26
+ CLAUDE_MYTHOS_5_2 =
27
+ T.let(:"claude-mythos-5-2", Anthropic::Model::TaggedSymbol)
28
+
21
29
  # Fastest model for high-volume, real-time tasks
22
30
  CLAUDE_HAIKU_5_5 =
23
31
  T.let(:"claude-haiku-5-5", Anthropic::Model::TaggedSymbol)
@@ -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. Omit this field for a key that isn't
52
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
53
- # user profile. The binding cannot be changed later. A key bound to a user profile
54
- # can only be attached to a Workspace that has the same user profile.
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. Omit this field for a key that isn't
81
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
82
- # user profile. The binding cannot be changed later. A key bound to a user profile
83
- # can only be attached to a Workspace that has the same user profile.
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 name can differ
24
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
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 name can differ
54
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
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:,
@@ -0,0 +1,18 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The request came from a Claude sandbox with restricted network access, which is
6
+ # not allowed to make this change. Send it from outside the sandbox, or from a
7
+ # sandbox with unrestricted network access.
8
+ class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
9
+ sig { returns(Symbol) }
10
+ def error_code
11
+ end
12
+
13
+ sig { returns(Anthropic::SandboxEgressRestrictedErrorDetails) }
14
+ def details
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,29 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Anthropic::SandboxEgressRestrictedErrorDetails,
10
+ Anthropic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :error_code
16
+
17
+ # The request came from a Claude sandbox with restricted network access, which is
18
+ # not allowed to make this change. Send it from outside the sandbox, or from a
19
+ # sandbox with unrestricted network access.
20
+ sig { params(error_code: Symbol).returns(T.attached_class) }
21
+ def self.new(error_code: :sandbox_egress_restricted)
22
+ end
23
+
24
+ sig { override.returns({ error_code: Symbol }) }
25
+ def to_hash
26
+ end
27
+ end
28
+ end
29
+ end
@@ -30,7 +30,6 @@ module Anthropic
30
30
  )
31
31
  THINKING =
32
32
  T.let(:thinking, Anthropic::ThreadUnsupportedFeatureName::TaggedSymbol)
33
- ZDR = T.let(:zdr, Anthropic::ThreadUnsupportedFeatureName::TaggedSymbol)
34
33
 
35
34
  sig do
36
35
  override.returns(
@@ -832,6 +832,11 @@ module Anthropic
832
832
  RequestBodyTooLargeAfterDecodingErrorDetails =
833
833
  Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
834
834
 
835
+ SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
836
+
837
+ SandboxEgressRestrictedErrorDetails =
838
+ Anthropic::Models::SandboxEgressRestrictedErrorDetails
839
+
835
840
  SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
836
841
 
837
842
  ServerToolCaller = Anthropic::Models::ServerToolCaller
@@ -167,7 +167,8 @@ module Anthropic
167
167
  # concurrency). Use literal 'NO_HEARTBEAT' to claim an unclaimed lease (first
168
168
  # heartbeat). For subsequent heartbeats, echo the server's previous last_heartbeat
169
169
  # value exactly. Returns 412 Precondition Failed if the actual value doesn't
170
- # match.
170
+ # match. The server does not compare the value when the work item is 'stopping' or
171
+ # 'stopped'.
171
172
  expected_last_heartbeat: nil,
172
173
  # Header param: Optional header to specify the beta version(s) you want to use.
173
174
  betas: nil,
@@ -61,6 +61,7 @@ module Anthropic
61
61
  Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
62
62
  order_by:
63
63
  Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy::OrSymbol,
64
+ organization_ids: T.nilable(T::Array[String]),
64
65
  page: T.nilable(String),
65
66
  products:
66
67
  T.nilable(
@@ -183,6 +184,12 @@ module Anthropic
183
184
  # effect only with `time_bucket_width`; without it, `time` is the same as
184
185
  # `amount`. Defaults to `amount`.
185
186
  order_by: nil,
187
+ # Query param: Filter a parent organization's report to specific child
188
+ # organizations, by organization UUID or `org_` ID; an ID that is not one of its
189
+ # child organizations matches nothing. Requires an API key created at the parent
190
+ # organization level. Use `group_by[]=organization_id` to break out
191
+ # per-organization values.
192
+ organization_ids: nil,
186
193
  # Query param: Opaque cursor from a previous response's `next_page` field.
187
194
  page: nil,
188
195
  # Query param: Product surfaces to include. Defaults to all products.
@@ -62,6 +62,7 @@ module Anthropic
62
62
  Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::OrSymbol,
63
63
  order_by:
64
64
  Anthropic::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy::OrSymbol,
65
+ organization_ids: T.nilable(T::Array[String]),
65
66
  page: T.nilable(String),
66
67
  products:
67
68
  T.nilable(
@@ -178,6 +179,12 @@ module Anthropic
178
179
  # takes effect only with `time_bucket_width`; without it, `time` is the same as
179
180
  # `total_tokens`. Defaults to `total_tokens`.
180
181
  order_by: nil,
182
+ # Query param: Filter a parent organization's report to specific child
183
+ # organizations, by organization UUID or `org_` ID; an ID that is not one of its
184
+ # child organizations matches nothing. Requires an API key created at the parent
185
+ # organization level. Use `group_by[]=organization_id` to break out
186
+ # per-organization values.
187
+ organization_ids: nil,
181
188
  # Query param: Opaque cursor from a previous response's `next_page` field.
182
189
  page: nil,
183
190
  # Query param: Product surfaces to include. Defaults to all products.
@@ -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. Omit this field for a key that isn't
32
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
33
- # user profile. The binding cannot be changed later. A key bound to a user profile
34
- # can only be attached to a Workspace that has the same user profile.
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 (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
@@ -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 (a skill an administrator uploaded for the whole
42
- # organization in claude.ai): `error_code` `skill_name_taken`, with that name in
43
- # `details.skill_name`; rename the skill, or remove the organization skill in
44
- # claude.ai. A 503 with `error_code` `registration_pending` means the Plugin and
45
- # its version were stored (their IDs are in `details`) but are not yet usable in
46
- # claude.ai: do not retry the create (the retry would return `plugin_name_taken`);
47
- # create a version on the stored Plugin instead, which completes it.
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
- # one of its skills has a name that an organization skill (one an administrator
153
- # uploaded for the whole organization in claude.ai) has since taken: `error_code`
154
- # `skill_name_taken`, with that name in `details.skill_name`. A member-owned
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.