anthropic 2.7.0 → 2.9.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 (228) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +4 -0
  5. data/lib/anthropic/helpers/bedrock/client.rb +17 -5
  6. data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
  7. data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
  8. data/lib/anthropic/helpers/tools/runner.rb +21 -4
  9. data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
  10. data/lib/anthropic/helpers/vertex/client.rb +26 -12
  11. data/lib/anthropic/internal/tracing.rb +1 -0
  12. data/lib/anthropic/internal/type/file_input.rb +11 -0
  13. data/lib/anthropic/internal/util.rb +43 -11
  14. data/lib/anthropic/models/anthropic_beta.rb +44 -30
  15. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
  16. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
  17. data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
  18. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
  20. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
  21. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
  22. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
  23. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
  24. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
  25. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
  26. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
  27. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
  28. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
  29. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
  30. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
  31. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
  32. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
  33. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
  34. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
  35. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
  36. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
  37. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
  38. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
  39. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
  40. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
  41. data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
  42. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
  43. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
  44. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
  45. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
  46. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
  47. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
  48. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
  49. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
  50. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
  51. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
  52. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
  53. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
  54. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
  55. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
  56. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
  57. data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
  58. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +13 -4
  59. data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
  60. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
  61. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
  62. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
  63. data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
  64. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +8 -5
  65. data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
  66. data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
  67. data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
  68. data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
  69. data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
  70. data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
  71. data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
  72. data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
  73. data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
  74. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +2 -1
  75. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
  76. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
  77. data/lib/anthropic/models/error_details.rb +28 -3
  78. data/lib/anthropic/models/model.rb +2 -2
  79. data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
  80. data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
  81. data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
  82. data/lib/anthropic/models/organization/external_key.rb +2 -2
  83. data/lib/anthropic/models/organization/external_key_create_params.rb +8 -5
  84. data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
  85. data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
  86. data/lib/anthropic/models/organization/rbac_role.rb +13 -4
  87. data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
  88. data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
  89. data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
  90. data/lib/anthropic/models/organization/workspace_update_params.rb +2 -1
  91. data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
  92. data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
  93. data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
  94. data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
  95. data/lib/anthropic/models.rb +8 -0
  96. data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
  97. data/lib/anthropic/resources/beta/messages.rb +5 -1
  98. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
  99. data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
  100. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
  101. data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
  102. data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
  103. data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
  104. data/lib/anthropic/resources/organization/external_keys.rb +1 -1
  105. data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
  106. data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
  107. data/lib/anthropic/version.rb +1 -1
  108. data/lib/anthropic.rb +22 -0
  109. data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
  110. data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
  111. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
  112. data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
  113. data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
  114. data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
  115. data/rbi/anthropic/internal/tracing.rbi +2 -0
  116. data/rbi/anthropic/internal/util.rbi +2 -2
  117. data/rbi/anthropic/models/anthropic_beta.rbi +41 -41
  118. data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
  119. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
  120. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
  121. data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
  122. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
  123. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
  124. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
  125. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
  126. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
  127. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
  128. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
  129. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
  130. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
  131. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
  132. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
  133. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
  134. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
  135. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
  136. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
  137. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
  138. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +21 -4
  139. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
  140. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
  141. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
  142. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
  143. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
  144. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +14 -8
  145. data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
  146. data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
  147. data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
  148. data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
  149. data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
  150. data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
  151. data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
  152. data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
  153. data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
  154. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +4 -2
  155. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
  156. data/rbi/anthropic/models/error_details.rbi +25 -1
  157. data/rbi/anthropic/models/model.rbi +2 -2
  158. data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
  159. data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
  160. data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
  161. data/rbi/anthropic/models/organization/external_key.rbi +4 -4
  162. data/rbi/anthropic/models/organization/external_key_create_params.rbi +14 -8
  163. data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
  164. data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
  165. data/rbi/anthropic/models/organization/rbac_role.rbi +18 -4
  166. data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
  167. data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
  168. data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
  169. data/rbi/anthropic/models/organization/workspace_update_params.rbi +4 -2
  170. data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
  171. data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
  172. data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
  173. data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
  174. data/rbi/anthropic/models.rbi +10 -0
  175. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
  176. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +7 -4
  177. data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
  178. data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
  179. data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
  180. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +10 -8
  181. data/rbi/anthropic/resources/beta/organization/plugins.rbi +17 -14
  182. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +2 -1
  183. data/rbi/anthropic/resources/organization/external_keys.rbi +7 -4
  184. data/rbi/anthropic/resources/organization/workspaces.rbi +2 -1
  185. data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
  186. data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
  187. data/sig/anthropic/internal/tracing.rbs +1 -0
  188. data/sig/anthropic/internal/util.rbs +1 -1
  189. data/sig/anthropic/models/anthropic_beta.rbs +21 -21
  190. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
  191. data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
  192. data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
  193. data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
  194. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
  195. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
  196. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
  197. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
  198. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
  199. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
  200. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
  201. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
  202. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
  203. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
  204. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
  205. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
  206. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
  207. data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
  208. data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
  209. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
  210. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
  211. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
  212. data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
  213. data/sig/anthropic/models/error_details.rbs +26 -0
  214. data/sig/anthropic/models/model.rbs +2 -2
  215. data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
  216. data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
  217. data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
  218. data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
  219. data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
  220. data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
  221. data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
  222. data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
  223. data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
  224. data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
  225. data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
  226. data/sig/anthropic/models.rbs +8 -0
  227. data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
  228. metadata +68 -2
@@ -35,6 +35,36 @@ module Anthropic
35
35
  )
36
36
  end
37
37
 
38
+ # Change a Bundle's instructions. The update is partial: a field left out is
39
+ # unchanged, and `instructions` sent as null or as an empty string clears them.
40
+ # The later of two updates wins. Sessions that start after the change use the new
41
+ # instructions; sessions already running keep the ones they started with. Some
42
+ # Bundles are managed in claude.ai, and an update of one returns 400.
43
+ sig do
44
+ params(
45
+ bundle_id: String,
46
+ instructions: T.nilable(String),
47
+ betas:
48
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
49
+ request_options: Anthropic::RequestOptions::OrHash
50
+ ).returns(
51
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle
52
+ )
53
+ end
54
+ def update(
55
+ # Path param: The Bundle's identifier, starting with `capp_`.
56
+ bundle_id,
57
+ # Body param: Instructions for Claude, up to 10,000 bytes (UTF-8), added to the
58
+ # instructions of every session that can use the Bundle. Null or an empty string
59
+ # clears them.
60
+ instructions: nil,
61
+ # Header param: This endpoint is in beta: requests must send
62
+ # `experimental-claude-tag-2026-10-21` in this header.
63
+ betas: nil,
64
+ request_options: {}
65
+ )
66
+ end
67
+
38
68
  # List the organization's Bundles, newest first by `created_at`. A Bundle that
39
69
  # Claude Tag manages for itself is not listed.
40
70
  sig do
@@ -28,10 +28,13 @@ 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, never a customer's. A key created without a user profile
36
+ # ID can't be attached to a Workspace that has a user profile, and you can't add
37
+ # one to the key later.
35
38
  user_profile_id: nil,
36
39
  request_options: {}
37
40
  )
@@ -35,7 +35,8 @@ module Anthropic
35
35
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
36
36
  # returns a 400; an organization that is not a child of the key's parent, or where
37
37
  # the Plugins API is not available, returns a 404. Any other key may pass only its
38
- # own organization's ID here; another organization returns a 404.
38
+ # own organization's ID here; another organization returns a 404. A key with no
39
+ # organization of its own must always pass `organization_id`.
39
40
  organization_id: nil,
40
41
  # Header param: This endpoint is in beta: requests must send
41
42
  # `ce-plugins-2026-09-01` in this header.
@@ -135,7 +136,8 @@ module Anthropic
135
136
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
136
137
  # returns a 400; an organization that is not a child of the key's parent, or where
137
138
  # the Plugins API is not available, returns a 404. Any other key may pass only its
138
- # own organization's ID here; another organization returns a 404.
139
+ # own organization's ID here; another organization returns a 404. A key with no
140
+ # organization of its own must always pass `organization_id`.
139
141
  organization_id: nil,
140
142
  # Query param: `organization` for the organization's plugin marketplaces, `user`
141
143
  # for members' personal plugin marketplaces.
@@ -55,7 +55,8 @@ module Anthropic
55
55
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
56
56
  # returns a 400; an organization that is not a child of the key's parent, or where
57
57
  # the Plugins API is not available, returns a 404. Any other key may pass only its
58
- # own organization's ID here; another organization returns a 404.
58
+ # own organization's ID here; another organization returns a 404. A key with no
59
+ # organization of its own must always pass `organization_id`.
59
60
  organization_id: nil,
60
61
  # Query param: Optionally set to the `next_page` token from the previous response.
61
62
  page: nil,
@@ -57,7 +57,8 @@ module Anthropic
57
57
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
58
58
  # returns a 400; an organization that is not a child of the key's parent, or where
59
59
  # the Plugins API is not available, returns a 404. Any other key may pass only its
60
- # own organization's ID here; another organization returns a 404.
60
+ # own organization's ID here; another organization returns a 404. A key with no
61
+ # organization of its own must always pass `organization_id`.
61
62
  organization_id: nil,
62
63
  # Query param: Optionally set to the `next_page` token from the previous response.
63
64
  page: nil,
@@ -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
@@ -104,7 +103,8 @@ module Anthropic
104
103
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
105
104
  # returns a 400; an organization that is not a child of the key's parent, or where
106
105
  # the Plugins API is not available, returns a 404. Any other key may pass only its
107
- # own organization's ID here; another organization returns a 404.
106
+ # own organization's ID here; another organization returns a 404. A key with no
107
+ # organization of its own must always pass `organization_id`.
108
108
  organization_id: nil,
109
109
  # Header param: This endpoint is in beta: requests must send
110
110
  # `ce-plugins-2026-09-01` in this header.
@@ -156,7 +156,8 @@ module Anthropic
156
156
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
157
157
  # returns a 400; an organization that is not a child of the key's parent, or where
158
158
  # the Plugins API is not available, returns a 404. Any other key may pass only its
159
- # own organization's ID here; another organization returns a 404.
159
+ # own organization's ID here; another organization returns a 404. A key with no
160
+ # organization of its own must always pass `organization_id`.
160
161
  organization_id: nil,
161
162
  # Query param: Optionally set to the `next_page` token from the previous response.
162
163
  page: nil,
@@ -217,7 +218,8 @@ module Anthropic
217
218
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
218
219
  # returns a 400; an organization that is not a child of the key's parent, or where
219
220
  # the Plugins API is not available, returns a 404. Any other key may pass only its
220
- # own organization's ID here; another organization returns a 404.
221
+ # own organization's ID here; another organization returns a 404. A key with no
222
+ # organization of its own must always pass `organization_id`.
221
223
  organization_id: nil,
222
224
  # Header param: This endpoint is in beta: requests must send
223
225
  # `ce-plugins-2026-09-01` in this header.
@@ -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
@@ -122,7 +122,8 @@ module Anthropic
122
122
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
123
123
  # returns a 400; an organization that is not a child of the key's parent, or where
124
124
  # the Plugins API is not available, returns a 404. Any other key may pass only its
125
- # own organization's ID here; another organization returns a 404.
125
+ # own organization's ID here; another organization returns a 404. A key with no
126
+ # organization of its own must always pass `organization_id`.
126
127
  organization_id: nil,
127
128
  # Header param: This endpoint is in beta: requests must send
128
129
  # `ce-plugins-2026-09-01` in this header.
@@ -149,10 +150,9 @@ module Anthropic
149
150
  # accepted. If the scan outcome cannot be read at that moment, the request fails
150
151
  # with a retryable 503 instead. When the Plugin is in the organization's library
151
152
  # 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).
153
+ # an organization skill that this API does not list has since taken the name of
154
+ # one of its skills: `error_code` `skill_name_taken`, with that name in
155
+ # `details.skill_name`. A member-owned Plugin cannot be updated here (403).
156
156
  #
157
157
  # This endpoint does not write installation settings; they are written at
158
158
  # `/v1/organizations/plugins/{plugin_id}/installation_settings/{target}`.
@@ -251,7 +251,8 @@ module Anthropic
251
251
  # the organization's UUID or its `org_`-prefixed ID. A value that is neither
252
252
  # returns a 400; an organization that is not a child of the key's parent, or where
253
253
  # the Plugins API is not available, returns a 404. Any other key may pass only its
254
- # own organization's ID here; another organization returns a 404.
254
+ # own organization's ID here; another organization returns a 404. A key with no
255
+ # organization of its own must always pass `organization_id`.
255
256
  organization_id: nil,
256
257
  # Query param: `organization` for Plugins in the organization's plugin
257
258
  # marketplaces, `user` for Plugins in members' personal plugin marketplaces.
@@ -270,7 +271,9 @@ module Anthropic
270
271
 
271
272
  # Permanently delete a Plugin and every version it holds, exactly as when an
272
273
  # 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.
274
+ # or to a member, including a member who has since left the organization. Do not
275
+ # delete a Plugin only because your pipeline did not create it: a member or an
276
+ # administrator might have added it in claude.ai.
274
277
  #
275
278
  # An organization-owned Plugin's installation settings go with it; a member-owned
276
279
  # Plugin's shares are withdrawn and its owner no longer has it.
@@ -135,7 +135,8 @@ module Anthropic
135
135
  # the Workspace must then name this user profile; the API rejects a request that
136
136
  # names none or a different one. Once set, it can't be replaced or removed
137
137
  # (sending the same ID again changes nothing); only deleting the user profile
138
- # clears it. The default Workspace can't have a user profile.
138
+ # clears it. It can't be set on a Workspace whose External Key isn't bound to this
139
+ # user profile. The default Workspace can't have a user profile.
139
140
  user_profile_id: nil,
140
141
  request_options: {}
141
142
  )
@@ -27,10 +27,13 @@ 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. 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, never a customer's. A key created without a user profile
35
+ # ID can't be attached to a Workspace that has a user profile, and you can't add
36
+ # one to the key later.
34
37
  user_profile_id: nil,
35
38
  request_options: {}
36
39
  )
@@ -124,7 +124,8 @@ module Anthropic
124
124
  # the Workspace must then name this user profile; the API rejects a request that
125
125
  # names none or a different one. Once set, it can't be replaced or removed
126
126
  # (sending the same ID again changes nothing); only deleting the user profile
127
- # clears it. The default Workspace can't have a user profile.
127
+ # clears it. It can't be set on a Workspace whose External Key isn't bound to this
128
+ # user profile. The default Workspace can't have a user profile.
128
129
  user_profile_id: nil,
129
130
  request_options: {}
130
131
  )
@@ -12,7 +12,12 @@ module Anthropic
12
12
  MESSAGE_THREAD = T.let("message-thread", String)
13
13
 
14
14
  class << self
15
- sig { params(headers: T::Hash[T.any(String, Symbol), T.untyped], value: String).returns(String) }
15
+ sig do
16
+ params(
17
+ headers: T::Hash[T.any(String, Symbol), T.untyped],
18
+ value: String
19
+ ).returns(String)
20
+ end
16
21
  def merged_value(headers, value)
17
22
  end
18
23
  end
@@ -21,9 +21,13 @@ module Anthropic
21
21
 
22
22
  private
23
23
 
24
- def on_event_start: (Anthropic::Beta::BetaManagedAgentsStartEvent event) -> void
24
+ def on_event_start: (
25
+ Anthropic::Beta::BetaManagedAgentsStartEvent event
26
+ ) -> void
25
27
 
26
- def on_event_delta: (Anthropic::Beta::BetaManagedAgentsDeltaEvent event) -> void
28
+ def on_event_delta: (
29
+ Anthropic::Beta::BetaManagedAgentsDeltaEvent event
30
+ ) -> void
27
31
  end
28
32
  end
29
33
  end
@@ -315,6 +315,7 @@ module Anthropic
315
315
  ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_UPDATE: "anthropic.organization.claude_tag.slack_workspaces.update"
316
316
  ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_LIST: "anthropic.organization.claude_tag.slack_workspaces.list"
317
317
  ORGANIZATION_CLAUDE_TAG_BUNDLES_RETRIEVE: "anthropic.organization.claude_tag.bundles.retrieve"
318
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE: "anthropic.organization.claude_tag.bundles.update"
318
319
  ORGANIZATION_CLAUDE_TAG_BUNDLES_LIST: "anthropic.organization.claude_tag.bundles.list"
319
320
  ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_CREATE: "anthropic.organization.claude_tag.bundles.targets.create"
320
321
  ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_RETRIEVE: "anthropic.organization.claude_tag.bundles.targets.retrieve"
@@ -94,7 +94,7 @@ module Anthropic
94
94
 
95
95
  def close: -> void
96
96
 
97
- private def read_enum: (Integer? max_len) -> String
97
+ private def read_enum: (Integer? max_len) -> String?
98
98
 
99
99
  def read: (?Integer? max_len, ?String? out_string) -> String?
100
100
 
@@ -1,25 +1,17 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type anthropic_beta =
4
- :"message-batches-2024-09-24"
5
- | :"prompt-caching-2024-07-31"
6
- | :"computer-use-2024-10-22"
4
+ :"computer-use-2024-10-22"
7
5
  | :"computer-use-2025-01-24"
8
- | :"pdfs-2024-09-25"
9
- | :"token-counting-2024-11-01"
10
- | :"token-efficient-tools-2025-02-19"
11
6
  | :"output-128k-2025-02-19"
12
- | :"files-api-2025-04-14"
13
7
  | :"mcp-client-2025-04-04"
14
8
  | :"mcp-client-2025-11-20"
15
9
  | :"dev-full-thinking-2025-05-14"
16
10
  | :"interleaved-thinking-2025-05-14"
17
11
  | :"code-execution-2025-05-22"
18
- | :"extended-cache-ttl-2025-04-11"
19
12
  | :"context-1m-2025-08-07"
20
13
  | :"context-management-2025-06-27"
21
14
  | :"model-context-window-exceeded-2025-08-26"
22
- | :"skills-2025-10-02"
23
15
  | :"fast-mode-2026-02-01"
24
16
  | :"output-300k-2026-03-24"
25
17
  | :"user-profiles-2026-03-24"
@@ -27,7 +19,6 @@ module Anthropic
27
19
  | :"user-profiles-2026-09-04"
28
20
  | :"advisor-tool-2026-03-01"
29
21
  | :"managed-agents-2026-04-01"
30
- | :"cache-diagnosis-2026-04-07"
31
22
  | :"dreaming-2026-04-21"
32
23
  | :"thinking-token-count-2026-05-13"
33
24
  | :"server-side-fallback-2026-06-01"
@@ -42,7 +33,6 @@ module Anthropic
42
33
  | :"structured-outputs-2025-11-13"
43
34
  | :"task-budgets-2026-03-13"
44
35
  | :"thinking-display-updates-2026-08-18"
45
- | :"ce-user-management-2026-07-13"
46
36
  | :"mid-conversation-output-config-2026-07-01"
47
37
  | :"thinking-binding-controls-2026-08-01"
48
38
  | :"mid-conversation-system-clear-at-2026-08-21"
@@ -57,6 +47,16 @@ module Anthropic
57
47
  | :"message-threads-2026-08-12"
58
48
  | :"analytics-usage-cost-2026-08-24"
59
49
  | :"experimental-claude-tag-2026-10-21"
50
+ | :"message-batches-2024-09-24"
51
+ | :"prompt-caching-2024-07-31"
52
+ | :"pdfs-2024-09-25"
53
+ | :"token-counting-2024-11-01"
54
+ | :"token-efficient-tools-2025-02-19"
55
+ | :"files-api-2025-04-14"
56
+ | :"extended-cache-ttl-2025-04-11"
57
+ | :"skills-2025-10-02"
58
+ | :"cache-diagnosis-2026-04-07"
59
+ | :"ce-user-management-2026-07-13"
60
60
  | String
61
61
 
62
62
  module AnthropicBeta
@@ -64,25 +64,17 @@ module Anthropic
64
64
 
65
65
  def self?.variants: -> ::Array[Anthropic::Models::anthropic_beta]
66
66
 
67
- MESSAGE_BATCHES_2024_09_24: :"message-batches-2024-09-24"
68
- PROMPT_CACHING_2024_07_31: :"prompt-caching-2024-07-31"
69
67
  COMPUTER_USE_2024_10_22: :"computer-use-2024-10-22"
70
68
  COMPUTER_USE_2025_01_24: :"computer-use-2025-01-24"
71
- PDFS_2024_09_25: :"pdfs-2024-09-25"
72
- TOKEN_COUNTING_2024_11_01: :"token-counting-2024-11-01"
73
- TOKEN_EFFICIENT_TOOLS_2025_02_19: :"token-efficient-tools-2025-02-19"
74
69
  OUTPUT_128K_2025_02_19: :"output-128k-2025-02-19"
75
- FILES_API_2025_04_14: :"files-api-2025-04-14"
76
70
  MCP_CLIENT_2025_04_04: :"mcp-client-2025-04-04"
77
71
  MCP_CLIENT_2025_11_20: :"mcp-client-2025-11-20"
78
72
  DEV_FULL_THINKING_2025_05_14: :"dev-full-thinking-2025-05-14"
79
73
  INTERLEAVED_THINKING_2025_05_14: :"interleaved-thinking-2025-05-14"
80
74
  CODE_EXECUTION_2025_05_22: :"code-execution-2025-05-22"
81
- EXTENDED_CACHE_TTL_2025_04_11: :"extended-cache-ttl-2025-04-11"
82
75
  CONTEXT_1M_2025_08_07: :"context-1m-2025-08-07"
83
76
  CONTEXT_MANAGEMENT_2025_06_27: :"context-management-2025-06-27"
84
77
  MODEL_CONTEXT_WINDOW_EXCEEDED_2025_08_26: :"model-context-window-exceeded-2025-08-26"
85
- SKILLS_2025_10_02: :"skills-2025-10-02"
86
78
  FAST_MODE_2026_02_01: :"fast-mode-2026-02-01"
87
79
  OUTPUT_300K_2026_03_24: :"output-300k-2026-03-24"
88
80
  USER_PROFILES_2026_03_24: :"user-profiles-2026-03-24"
@@ -90,7 +82,6 @@ module Anthropic
90
82
  USER_PROFILES_2026_09_04: :"user-profiles-2026-09-04"
91
83
  ADVISOR_TOOL_2026_03_01: :"advisor-tool-2026-03-01"
92
84
  MANAGED_AGENTS_2026_04_01: :"managed-agents-2026-04-01"
93
- CACHE_DIAGNOSIS_2026_04_07: :"cache-diagnosis-2026-04-07"
94
85
  DREAMING_2026_04_21: :"dreaming-2026-04-21"
95
86
  THINKING_TOKEN_COUNT_2026_05_13: :"thinking-token-count-2026-05-13"
96
87
  SERVER_SIDE_FALLBACK_2026_06_01: :"server-side-fallback-2026-06-01"
@@ -105,7 +96,6 @@ module Anthropic
105
96
  STRUCTURED_OUTPUTS_2025_11_13: :"structured-outputs-2025-11-13"
106
97
  TASK_BUDGETS_2026_03_13: :"task-budgets-2026-03-13"
107
98
  THINKING_DISPLAY_UPDATES_2026_08_18: :"thinking-display-updates-2026-08-18"
108
- CE_USER_MANAGEMENT_2026_07_13: :"ce-user-management-2026-07-13"
109
99
  MID_CONVERSATION_OUTPUT_CONFIG_2026_07_01: :"mid-conversation-output-config-2026-07-01"
110
100
  THINKING_BINDING_CONTROLS_2026_08_01: :"thinking-binding-controls-2026-08-01"
111
101
  MID_CONVERSATION_SYSTEM_CLEAR_AT_2026_08_21: :"mid-conversation-system-clear-at-2026-08-21"
@@ -120,6 +110,16 @@ module Anthropic
120
110
  MESSAGE_THREADS_2026_08_12: :"message-threads-2026-08-12"
121
111
  ANALYTICS_USAGE_COST_2026_08_24: :"analytics-usage-cost-2026-08-24"
122
112
  EXPERIMENTAL_CLAUDE_TAG_2026_10_21: :"experimental-claude-tag-2026-10-21"
113
+ MESSAGE_BATCHES_2024_09_24: :"message-batches-2024-09-24"
114
+ PROMPT_CACHING_2024_07_31: :"prompt-caching-2024-07-31"
115
+ PDFS_2024_09_25: :"pdfs-2024-09-25"
116
+ TOKEN_COUNTING_2024_11_01: :"token-counting-2024-11-01"
117
+ TOKEN_EFFICIENT_TOOLS_2025_02_19: :"token-efficient-tools-2025-02-19"
118
+ FILES_API_2025_04_14: :"files-api-2025-04-14"
119
+ EXTENDED_CACHE_TTL_2025_04_11: :"extended-cache-ttl-2025-04-11"
120
+ SKILLS_2025_10_02: :"skills-2025-10-02"
121
+ CACHE_DIAGNOSIS_2026_04_07: :"cache-diagnosis-2026-04-07"
122
+ CE_USER_MANAGEMENT_2026_07_13: :"ce-user-management-2026-07-13"
123
123
  end
124
124
  end
125
125
  end
@@ -29,7 +29,7 @@ module Anthropic
29
29
 
30
30
  def self?.variants: -> ::Array[Anthropic::Models::Beta::beta_managed_agents_model]
31
31
 
32
- # Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
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,13 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ class BetaBundleAttachmentNotSupportedError < Anthropic::Errors::BadRequestError
6
+ def error_code: -> :bundle_attachment_not_supported
7
+
8
+ def details: -> Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,20 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_bundle_attachment_not_supported_error_details =
6
+ { error_code: :bundle_attachment_not_supported }
7
+
8
+ class BetaBundleAttachmentNotSupportedErrorDetails < Anthropic::Internal::Type::BaseModel
9
+ attr_accessor error_code: :bundle_attachment_not_supported
10
+
11
+ def initialize: (
12
+ ?error_code: :bundle_attachment_not_supported
13
+ ) -> void
14
+
15
+ def to_hash: -> { error_code: :bundle_attachment_not_supported }
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,13 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ class BetaBundleOnCallError < Anthropic::Errors::BadRequestError
6
+ def error_code: -> :bundle_on_call
7
+
8
+ def details: -> Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_bundle_on_call_error_details = { error_code: :bundle_on_call }
6
+
7
+ class BetaBundleOnCallErrorDetails < Anthropic::Internal::Type::BaseModel
8
+ attr_accessor error_code: :bundle_on_call
9
+
10
+ def initialize: (?error_code: :bundle_on_call) -> void
11
+
12
+ def to_hash: -> { error_code: :bundle_on_call }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end