anthropic 2.2.0 → 2.3.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 (275) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +2 -2
  4. data/lib/anthropic/client.rb +1 -1
  5. data/lib/anthropic/helpers/bedrock/client.rb +6 -3
  6. data/lib/anthropic/helpers/google_cloud/client.rb +9 -25
  7. data/lib/anthropic/helpers/refusal_fallback.rb +1 -2
  8. data/lib/anthropic/helpers/stainless_helper_header.rb +3 -2
  9. data/lib/anthropic/internal/tracing.rb +20 -0
  10. data/lib/anthropic/internal/transport/base_client.rb +16 -2
  11. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  12. data/lib/anthropic/models/beta/beta_code_execution_tool_20260120.rb +10 -2
  13. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +5 -1
  14. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb +1 -1
  15. data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block.rb +9 -1
  16. data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rb +2 -1
  17. data/lib/anthropic/models/beta/beta_response_tool_union.rb +5 -1
  18. data/lib/anthropic/models/beta/beta_skill_params.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_tool_union.rb +5 -1
  20. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rb +7 -2
  21. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +2 -4
  22. data/lib/anthropic/models/beta/message_count_tokens_params.rb +5 -1
  23. data/lib/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rb +21 -0
  24. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rb +63 -0
  25. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rb +21 -0
  26. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rb +21 -0
  27. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rb +21 -0
  28. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_source.rb +87 -0
  29. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +72 -0
  30. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +70 -0
  31. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +67 -0
  32. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +67 -0
  33. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rb +37 -0
  34. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rb +29 -0
  35. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rb +22 -0
  36. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rb +31 -0
  37. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rb +30 -0
  38. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rb +23 -0
  39. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rb +29 -0
  40. data/lib/anthropic/models/beta/organization/beta_external_key.rb +3 -3
  41. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +66 -0
  42. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rb +32 -0
  43. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rb +87 -0
  44. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rb +86 -0
  45. data/lib/anthropic/models/beta/organization/claude_tag/bundle_list_params.rb +49 -0
  46. data/lib/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rb +41 -0
  47. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rb +76 -0
  48. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rb +70 -0
  49. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rb +34 -0
  50. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rb +57 -0
  51. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rb +38 -0
  52. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rb +57 -0
  53. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rb +38 -0
  54. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rb +43 -0
  55. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rb +53 -0
  56. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rb +59 -0
  57. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rb +53 -0
  58. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rb +50 -0
  59. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rb +41 -0
  60. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rb +79 -0
  61. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rb +52 -0
  62. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rb +49 -0
  63. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rb +70 -0
  64. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rb +52 -0
  65. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rb +49 -0
  66. data/lib/anthropic/models/code_execution_tool_20260120.rb +10 -2
  67. data/lib/anthropic/models/code_execution_tool_result_block_content.rb +5 -1
  68. data/lib/anthropic/models/code_execution_tool_result_block_param_content.rb +1 -1
  69. data/lib/anthropic/models/encrypted_code_execution_result_block.rb +9 -1
  70. data/lib/anthropic/models/encrypted_code_execution_result_block_param.rb +2 -1
  71. data/lib/anthropic/models/message_count_tokens_tool.rb +5 -1
  72. data/lib/anthropic/models/organization/external_key.rb +3 -3
  73. data/lib/anthropic/models/skill_params.rb +1 -1
  74. data/lib/anthropic/models/tool_union.rb +5 -1
  75. data/lib/anthropic/resources/beta/agents/versions.rb +2 -1
  76. data/lib/anthropic/resources/beta/agents.rb +10 -5
  77. data/lib/anthropic/resources/beta/deployment_runs.rb +4 -2
  78. data/lib/anthropic/resources/beta/deployments.rb +16 -8
  79. data/lib/anthropic/resources/beta/dreams.rb +10 -5
  80. data/lib/anthropic/resources/beta/environments/work.rb +16 -8
  81. data/lib/anthropic/resources/beta/environments.rb +12 -6
  82. data/lib/anthropic/resources/beta/files.rb +10 -5
  83. data/lib/anthropic/resources/beta/memory_stores/memories.rb +10 -5
  84. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -11
  85. data/lib/anthropic/resources/beta/memory_stores.rb +12 -6
  86. data/lib/anthropic/resources/beta/messages/batches.rb +12 -6
  87. data/lib/anthropic/resources/beta/messages.rb +6 -3
  88. data/lib/anthropic/resources/beta/models.rb +4 -2
  89. data/lib/anthropic/resources/beta/organization/analytics/apps/chat/projects.rb +2 -1
  90. data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +2 -1
  91. data/lib/anthropic/resources/beta/organization/analytics/connectors.rb +2 -1
  92. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +2 -1
  93. data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -1
  94. data/lib/anthropic/resources/beta/organization/analytics/plugins.rb +2 -1
  95. data/lib/anthropic/resources/beta/organization/analytics/skills.rb +2 -1
  96. data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +2 -1
  97. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +2 -1
  98. data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -1
  99. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +5 -4
  100. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +5 -4
  101. data/lib/anthropic/resources/beta/organization/analytics/users.rb +2 -1
  102. data/lib/anthropic/resources/beta/organization/api_keys.rb +6 -3
  103. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +204 -0
  104. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +102 -0
  105. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +263 -0
  106. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +162 -0
  107. data/lib/anthropic/resources/beta/organization/claude_tag.rb +31 -0
  108. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +4 -2
  109. data/lib/anthropic/resources/beta/organization/external_keys.rb +12 -6
  110. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +10 -5
  111. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +6 -3
  112. data/lib/anthropic/resources/beta/organization/federation/rules.rb +10 -5
  113. data/lib/anthropic/resources/beta/organization/invites.rb +8 -4
  114. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +10 -5
  115. data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +6 -11
  116. data/lib/anthropic/resources/beta/organization/plugins/shares.rb +2 -1
  117. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +8 -4
  118. data/lib/anthropic/resources/beta/organization/plugins.rb +10 -5
  119. data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -1
  120. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -3
  121. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +10 -5
  122. data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +2 -1
  123. data/lib/anthropic/resources/beta/organization/rbac_roles.rb +4 -2
  124. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +6 -3
  125. data/lib/anthropic/resources/beta/organization/service_accounts.rb +10 -5
  126. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +2 -1
  127. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +8 -4
  128. data/lib/anthropic/resources/beta/organization/spend_limits.rb +8 -4
  129. data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +6 -3
  130. data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +12 -6
  131. data/lib/anthropic/resources/beta/organization/users.rb +8 -4
  132. data/lib/anthropic/resources/beta/organization/webhooks.rb +12 -9
  133. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +10 -5
  134. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +4 -6
  135. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +10 -5
  136. data/lib/anthropic/resources/beta/organization/workspaces.rb +10 -5
  137. data/lib/anthropic/resources/beta/organization.rb +6 -1
  138. data/lib/anthropic/resources/beta/sessions/events.rb +6 -3
  139. data/lib/anthropic/resources/beta/sessions/resources.rb +10 -5
  140. data/lib/anthropic/resources/beta/sessions/threads/events.rb +4 -2
  141. data/lib/anthropic/resources/beta/sessions/threads.rb +6 -3
  142. data/lib/anthropic/resources/beta/sessions.rb +12 -6
  143. data/lib/anthropic/resources/beta/skills/versions.rb +10 -5
  144. data/lib/anthropic/resources/beta/skills.rb +8 -4
  145. data/lib/anthropic/resources/beta/tunnels/certificates.rb +8 -4
  146. data/lib/anthropic/resources/beta/tunnels.rb +12 -6
  147. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +2 -1
  148. data/lib/anthropic/resources/beta/user_profiles.rb +12 -6
  149. data/lib/anthropic/resources/beta/vaults/credentials.rb +14 -7
  150. data/lib/anthropic/resources/beta/vaults.rb +12 -6
  151. data/lib/anthropic/version.rb +1 -1
  152. data/lib/anthropic.rb +47 -0
  153. data/rbi/anthropic/helpers/google_cloud/client.rbi +0 -4
  154. data/rbi/anthropic/internal/tracing.rbi +28 -0
  155. data/rbi/anthropic/internal/transport/base_client.rbi +5 -1
  156. data/rbi/anthropic/internal/type/base_page.rbi +2 -0
  157. data/rbi/anthropic/internal/type/base_stream.rbi +2 -0
  158. data/rbi/anthropic/internal/type/request_parameters.rbi +4 -0
  159. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  160. data/rbi/anthropic/models/beta/beta_code_execution_tool_20260120.rbi +10 -2
  161. data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block.rbi +9 -1
  162. data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rbi +2 -1
  163. data/rbi/anthropic/models/beta/beta_skill_params.rbi +1 -1
  164. data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rbi +4 -2
  165. data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rbi +2 -4
  166. data/rbi/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbi +31 -0
  167. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbi +87 -0
  168. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbi +31 -0
  169. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbi +31 -0
  170. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbi +31 -0
  171. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbi +115 -0
  172. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +178 -0
  173. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +108 -0
  174. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +110 -0
  175. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +110 -0
  176. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbi +50 -0
  177. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbi +43 -0
  178. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbi +32 -0
  179. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbi +67 -0
  180. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbi +44 -0
  181. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbi +36 -0
  182. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbi +43 -0
  183. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
  184. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +87 -0
  185. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbi +41 -0
  186. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbi +154 -0
  187. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbi +151 -0
  188. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbi +92 -0
  189. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbi +78 -0
  190. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbi +102 -0
  191. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbi +92 -0
  192. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbi +43 -0
  193. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbi +78 -0
  194. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbi +51 -0
  195. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbi +78 -0
  196. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbi +51 -0
  197. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbi +82 -0
  198. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbi +94 -0
  199. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbi +104 -0
  200. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbi +94 -0
  201. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbi +118 -0
  202. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbi +78 -0
  203. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbi +134 -0
  204. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbi +95 -0
  205. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbi +100 -0
  206. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbi +124 -0
  207. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbi +95 -0
  208. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbi +100 -0
  209. data/rbi/anthropic/models/code_execution_tool_20260120.rbi +10 -2
  210. data/rbi/anthropic/models/encrypted_code_execution_result_block.rbi +9 -1
  211. data/rbi/anthropic/models/encrypted_code_execution_result_block_param.rbi +2 -1
  212. data/rbi/anthropic/models/organization/external_key.rbi +4 -4
  213. data/rbi/anthropic/models/skill_params.rbi +1 -1
  214. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +3 -3
  215. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +3 -3
  216. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbi +140 -0
  217. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +75 -0
  218. data/rbi/anthropic/resources/beta/organization/claude_tag/slack_channels.rbi +203 -0
  219. data/rbi/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbi +123 -0
  220. data/rbi/anthropic/resources/beta/organization/claude_tag.rbi +37 -0
  221. data/rbi/anthropic/resources/beta/organization.rbi +3 -0
  222. data/sig/anthropic/helpers/google_cloud/client.rbs +0 -2
  223. data/sig/anthropic/internal/tracing.rbs +14 -0
  224. data/sig/anthropic/internal/transport/base_client.rbs +3 -0
  225. data/sig/anthropic/internal/type/request_parameters.rbs +2 -0
  226. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  227. data/sig/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbs +17 -0
  228. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbs +45 -0
  229. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbs +17 -0
  230. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbs +17 -0
  231. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbs +17 -0
  232. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbs +73 -0
  233. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +44 -0
  234. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +44 -0
  235. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +44 -0
  236. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +44 -0
  237. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbs +20 -0
  238. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbs +23 -0
  239. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbs +18 -0
  240. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbs +29 -0
  241. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbs +26 -0
  242. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbs +18 -0
  243. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbs +23 -0
  244. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +51 -0
  245. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbs +22 -0
  246. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbs +56 -0
  247. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbs +56 -0
  248. data/sig/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbs +50 -0
  249. data/sig/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbs +41 -0
  250. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbs +54 -0
  251. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbs +48 -0
  252. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbs +27 -0
  253. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbs +43 -0
  254. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbs +27 -0
  255. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbs +43 -0
  256. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbs +30 -0
  257. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbs +43 -0
  258. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbs +48 -0
  259. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbs +57 -0
  260. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbs +48 -0
  261. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbs +50 -0
  262. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbs +38 -0
  263. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbs +69 -0
  264. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbs +48 -0
  265. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbs +46 -0
  266. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbs +64 -0
  267. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbs +48 -0
  268. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbs +46 -0
  269. data/sig/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbs +44 -0
  270. data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +28 -0
  271. data/sig/anthropic/resources/beta/organization/claude_tag/slack_channels.rbs +50 -0
  272. data/sig/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbs +36 -0
  273. data/sig/anthropic/resources/beta/organization/claude_tag.rbs +17 -0
  274. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  275. metadata +142 -1
@@ -0,0 +1,75 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeTag
8
+ class Bundles
9
+ sig do
10
+ returns(
11
+ Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles::Targets
12
+ )
13
+ end
14
+ attr_reader :targets
15
+
16
+ # Get one Bundle. What the Bundle grants (connectors, repositories and
17
+ # credentials) is never returned.
18
+ sig do
19
+ params(
20
+ bundle_id: String,
21
+ betas:
22
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
23
+ request_options: Anthropic::RequestOptions::OrHash
24
+ ).returns(
25
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle
26
+ )
27
+ end
28
+ def retrieve(
29
+ # The Bundle's identifier, starting with `capp_`.
30
+ bundle_id,
31
+ # This endpoint is in beta: requests must send
32
+ # `experimental-claude-tag-2026-10-21` in this header.
33
+ betas: nil,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ # List the organization's Bundles, newest first by `created_at`. A Bundle that
39
+ # Claude Tag manages for itself is not listed.
40
+ sig do
41
+ params(
42
+ limit: Integer,
43
+ page: String,
44
+ betas:
45
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
46
+ request_options: Anthropic::RequestOptions::OrHash
47
+ ).returns(
48
+ Anthropic::Internal::PageCursor[
49
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle
50
+ ]
51
+ )
52
+ end
53
+ def list(
54
+ # Query param: Number of items to return per page, between 1 and 100. Defaults
55
+ # to 20.
56
+ limit: nil,
57
+ # Query param: Opaque cursor from a previous response's `next_page`.
58
+ page: nil,
59
+ # Header param: This endpoint is in beta: requests must send
60
+ # `experimental-claude-tag-2026-10-21` in this header.
61
+ betas: nil,
62
+ request_options: {}
63
+ )
64
+ end
65
+
66
+ # @api private
67
+ sig { params(client: Anthropic::Client).returns(T.attached_class) }
68
+ def self.new(client:)
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,203 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeTag
8
+ class SlackChannels
9
+ # Set a Slack channel up for Claude Tag and return it with its identifier. If the
10
+ # channel is already set up, whether in claude.ai, by Claude's first use in it or
11
+ # by an earlier request, the existing channel is returned, so the request can be
12
+ # repeated. `settings`, when sent, is applied as an update applies it. Before a
13
+ # channel is set up, Claude's Slack app confirms with Slack that the channel is in
14
+ # the workspace, is not archived and is visible to the app; a channel that fails
15
+ # the confirmation returns 404. Setting the channel up and applying `settings` are
16
+ # two steps: when the second is refused, the response is the refusal, the channel
17
+ # stays set up with every setting unset, and the error's
18
+ # `details.slack_channel_id` holds the channel's identifier.
19
+ sig do
20
+ params(
21
+ slack:
22
+ Anthropic::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers::OrHash,
23
+ settings:
24
+ Anthropic::Beta::Organization::BetaClaudeTagSettingsCreate::OrHash,
25
+ betas:
26
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
27
+ request_options: Anthropic::RequestOptions::OrHash
28
+ ).returns(
29
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
30
+ )
31
+ end
32
+ def create(
33
+ # Body param: Slack's own identifiers for the channel to set up. The organization
34
+ # must own the workspace.
35
+ slack:,
36
+ # Body param: Settings to store on the channel, applied as Update Slack Channel
37
+ # applies them.
38
+ settings: nil,
39
+ # Header param: This endpoint is in beta: requests must send
40
+ # `experimental-claude-tag-2026-10-21` in this header.
41
+ betas: nil,
42
+ request_options: {}
43
+ )
44
+ end
45
+
46
+ # Get one Slack channel and its settings. By default `settings` holds what the
47
+ # channel itself stores: a setting that is null there is not set on the channel
48
+ # and is inherited. With `include_inherited=true`, `settings` holds what applies
49
+ # in the channel once the settings levels above it are taken into account, and the
50
+ # request fails with 503 rather than resolve against a settings level that could
51
+ # not be read. Either way `sources` names the settings level each value comes
52
+ # from, so a caller tells the channel's own value from an inherited one by its
53
+ # source, not by whether it is null.
54
+ sig do
55
+ params(
56
+ id: String,
57
+ include_inherited: T::Boolean,
58
+ betas:
59
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
60
+ request_options: Anthropic::RequestOptions::OrHash
61
+ ).returns(
62
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
63
+ )
64
+ end
65
+ def retrieve(
66
+ # Path param: The channel's identifier, starting with `slch_`.
67
+ id,
68
+ # Query param: When `true`, `settings` holds what applies in the channel once the
69
+ # settings levels above it are taken into account, and every member of `sources`
70
+ # names the level a value comes from. When `false` or left out, `settings` holds
71
+ # what the channel itself stores.
72
+ include_inherited: nil,
73
+ # Header param: This endpoint is in beta: requests must send
74
+ # `experimental-claude-tag-2026-10-21` in this header.
75
+ betas: nil,
76
+ request_options: {}
77
+ )
78
+ end
79
+
80
+ # Change the settings a Slack channel stores. The update is partial: a setting
81
+ # left out is unchanged, and a setting sent as null is cleared, so the channel
82
+ # inherits it. If any value is refused, no setting in the request is stored. A
83
+ # group direct message takes no settings and returns 400.
84
+ sig do
85
+ params(
86
+ id: String,
87
+ settings:
88
+ Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
89
+ betas:
90
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
91
+ request_options: Anthropic::RequestOptions::OrHash
92
+ ).returns(
93
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
94
+ )
95
+ end
96
+ def update(
97
+ # Path param: The channel's identifier, starting with `slch_`.
98
+ id,
99
+ # Body param: The settings to change.
100
+ settings:,
101
+ # Header param: This endpoint is in beta: requests must send
102
+ # `experimental-claude-tag-2026-10-21` in this header.
103
+ betas: nil,
104
+ request_options: {}
105
+ )
106
+ end
107
+
108
+ # List the set-up Slack channels of one Slack workspace, newest first by
109
+ # `created_at`. A channel that is not set up is not listed: Slack holds the full
110
+ # list of a workspace's channels. Pass `slack_channel_id` as well to look one
111
+ # channel up by its Slack identifiers: `data` then holds that channel, or is empty
112
+ # when it is not set up, and `limit` and `page` are ignored. A workspace that the
113
+ # organization owns only through a Slack Enterprise Grid returns 404 until it is
114
+ # set up. With `include_inherited=true` each channel's `settings` holds what
115
+ # applies in it, and the request fails with 503 rather than resolve against a
116
+ # settings level that could not be read. A `page` cursor resumes only a request
117
+ # with the same `include_inherited`.
118
+ sig do
119
+ params(
120
+ slack_workspace_id: String,
121
+ include_inherited: T::Boolean,
122
+ limit: Integer,
123
+ page: String,
124
+ slack_channel_id: String,
125
+ betas:
126
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
127
+ request_options: Anthropic::RequestOptions::OrHash
128
+ ).returns(
129
+ Anthropic::Internal::PageCursor[
130
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
131
+ ]
132
+ )
133
+ end
134
+ def list(
135
+ # Query param: The Slack workspace whose channels to list: Slack's identifier for
136
+ # it, as in the channel object's `slack.workspace_id`, not the workspace object's
137
+ # `id`.
138
+ slack_workspace_id:,
139
+ # Query param: When `true`, `settings` holds what applies in each channel once the
140
+ # settings levels above it are taken into account, and every member of `sources`
141
+ # names the level a value comes from. When `false` or left out, `settings` holds
142
+ # what each channel itself stores.
143
+ include_inherited: nil,
144
+ # Query param: Number of items to return per page, between 1 and 100. Defaults
145
+ # to 20.
146
+ limit: nil,
147
+ # Query param: Opaque cursor from a previous response's `next_page`.
148
+ page: nil,
149
+ # Query param: Slack's identifier for one channel of that workspace, as in the
150
+ # channel object's `slack.channel_id`. It is not the channel object's `id`. With
151
+ # it `data` holds that channel alone, or nothing when the channel is not set up.
152
+ slack_channel_id: nil,
153
+ # Header param: This endpoint is in beta: requests must send
154
+ # `experimental-claude-tag-2026-10-21` in this header.
155
+ betas: nil,
156
+ request_options: {}
157
+ )
158
+ end
159
+
160
+ # Remove a Slack channel from Claude Tag. This deletes the channel's stored
161
+ # settings and its Bundle Targets at once, and then, in the background, the
162
+ # channel's sessions and their transcripts, its memory, its routines and the
163
+ # artifacts published from it. None of it can be restored. The channel in Slack
164
+ # and its messages are unchanged. The request is refused with 400 and
165
+ # `error.details.error_code` `slack_channel_enabled` while `enabled` resolves to
166
+ # `true` for the channel, as a read with `include_inherited=true` returns it: set
167
+ # `enabled` to `false` on the channel first. This guards against removing a
168
+ # channel in use by mistake; it is not a way to keep Claude out, because the
169
+ # removal deletes the channel's own `enabled: false` with its other settings,
170
+ # after which the channel inherits again and Claude's next use of it can set it up
171
+ # anew with a new identifier. The identifier returns 404 as soon as the request
172
+ # returns, so a repeated removal returns 404. A group direct message returns 400,
173
+ # and so does a channel that holds configuration this API does not manage.
174
+ sig do
175
+ params(
176
+ id: String,
177
+ betas:
178
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
179
+ request_options: Anthropic::RequestOptions::OrHash
180
+ ).returns(
181
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagDeletedSlackChannel
182
+ )
183
+ end
184
+ def delete(
185
+ # The channel's identifier, starting with `slch_`.
186
+ id,
187
+ # This endpoint is in beta: requests must send
188
+ # `experimental-claude-tag-2026-10-21` in this header.
189
+ betas: nil,
190
+ request_options: {}
191
+ )
192
+ end
193
+
194
+ # @api private
195
+ sig { params(client: Anthropic::Client).returns(T.attached_class) }
196
+ def self.new(client:)
197
+ end
198
+ end
199
+ end
200
+ end
201
+ end
202
+ end
203
+ end
@@ -0,0 +1,123 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeTag
8
+ class SlackWorkspaces
9
+ # Get one Slack workspace and its settings. By default `settings` holds what the
10
+ # workspace itself stores: a setting that is null there is not set on the
11
+ # workspace and is inherited. With `include_inherited=true`, `settings` holds what
12
+ # applies in the workspace once the organization's Slack defaults are taken into
13
+ # account, and the request fails with 503 rather than resolve against a settings
14
+ # level that could not be read. Either way `sources` names the settings level each
15
+ # value comes from.
16
+ sig do
17
+ params(
18
+ id: String,
19
+ include_inherited: T::Boolean,
20
+ betas:
21
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
22
+ request_options: Anthropic::RequestOptions::OrHash
23
+ ).returns(
24
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
25
+ )
26
+ end
27
+ def retrieve(
28
+ # Path param: The workspace's identifier, starting with `slws_`.
29
+ id,
30
+ # Query param: When `true`, `settings` holds what applies in the workspace once
31
+ # the organization's Slack defaults are taken into account, and every member of
32
+ # `sources` names the level a value comes from. When `false` or left out,
33
+ # `settings` holds what the workspace itself stores.
34
+ include_inherited: nil,
35
+ # Header param: This endpoint is in beta: requests must send
36
+ # `experimental-claude-tag-2026-10-21` in this header.
37
+ betas: nil,
38
+ request_options: {}
39
+ )
40
+ end
41
+
42
+ # Change the settings a Slack workspace stores. The update is partial: a setting
43
+ # left out is unchanged, and a setting sent as null is cleared, so the workspace
44
+ # inherits it. If any value is refused, no setting in the request is stored.
45
+ sig do
46
+ params(
47
+ id: String,
48
+ settings:
49
+ Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
50
+ betas:
51
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
52
+ request_options: Anthropic::RequestOptions::OrHash
53
+ ).returns(
54
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
55
+ )
56
+ end
57
+ def update(
58
+ # Path param: The workspace's identifier, starting with `slws_`.
59
+ id,
60
+ # Body param: The settings to change.
61
+ settings:,
62
+ # Header param: This endpoint is in beta: requests must send
63
+ # `experimental-claude-tag-2026-10-21` in this header.
64
+ betas: nil,
65
+ request_options: {}
66
+ )
67
+ end
68
+
69
+ # List the set-up Slack workspaces the organization owns, newest first by
70
+ # `created_at`. Pass `slack_workspace_id` to look one workspace up by its Slack
71
+ # identifier: `data` then holds that workspace, or is empty when it is not set up.
72
+ # A workspace of a Slack Enterprise Grid the organization has connected returns
73
+ # 404 until it is set up. With `include_inherited=true` each workspace's
74
+ # `settings` holds what applies in it, and the request fails with 503 rather than
75
+ # resolve against a settings level that could not be read. A `page` cursor resumes
76
+ # only a request with the same `include_inherited`.
77
+ sig do
78
+ params(
79
+ include_inherited: T::Boolean,
80
+ limit: Integer,
81
+ page: String,
82
+ slack_workspace_id: String,
83
+ betas:
84
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
85
+ request_options: Anthropic::RequestOptions::OrHash
86
+ ).returns(
87
+ Anthropic::Internal::PageCursor[
88
+ Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
89
+ ]
90
+ )
91
+ end
92
+ def list(
93
+ # Query param: When `true`, `settings` holds what applies in each workspace once
94
+ # the organization's Slack defaults are taken into account, and every member of
95
+ # `sources` names the level a value comes from. When `false` or left out,
96
+ # `settings` holds what each workspace itself stores.
97
+ include_inherited: nil,
98
+ # Query param: Number of items to return per page, between 1 and 100. Defaults
99
+ # to 20.
100
+ limit: nil,
101
+ # Query param: Opaque cursor from a previous response's `next_page`.
102
+ page: nil,
103
+ # Query param: Slack's identifier for one workspace, as in the workspace object's
104
+ # `slack.workspace_id`, not its `id`. With it `data` holds that workspace alone,
105
+ # or nothing when it is not set up.
106
+ slack_workspace_id: nil,
107
+ # Header param: This endpoint is in beta: requests must send
108
+ # `experimental-claude-tag-2026-10-21` in this header.
109
+ betas: nil,
110
+ request_options: {}
111
+ )
112
+ end
113
+
114
+ # @api private
115
+ sig { params(client: Anthropic::Client).returns(T.attached_class) }
116
+ def self.new(client:)
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,37 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeTag
8
+ sig do
9
+ returns(
10
+ Anthropic::Resources::Beta::Organization::ClaudeTag::SlackChannels
11
+ )
12
+ end
13
+ attr_reader :slack_channels
14
+
15
+ sig do
16
+ returns(
17
+ Anthropic::Resources::Beta::Organization::ClaudeTag::SlackWorkspaces
18
+ )
19
+ end
20
+ attr_reader :slack_workspaces
21
+
22
+ sig do
23
+ returns(
24
+ Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles
25
+ )
26
+ end
27
+ attr_reader :bundles
28
+
29
+ # @api private
30
+ sig { params(client: Anthropic::Client).returns(T.attached_class) }
31
+ def self.new(client:)
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -65,6 +65,9 @@ module Anthropic
65
65
  sig { returns(Anthropic::Resources::Beta::Organization::Webhooks) }
66
66
  attr_reader :webhooks
67
67
 
68
+ sig { returns(Anthropic::Resources::Beta::Organization::ClaudeTag) }
69
+ attr_reader :claude_tag
70
+
68
71
  # Retrieve information about the organization associated with the authenticated
69
72
  # API key.
70
73
  sig do
@@ -14,8 +14,6 @@ module Anthropic
14
14
 
15
15
  attr_reader workspace_id: String?
16
16
 
17
- def user_profiles: -> bot
18
-
19
17
  private def build_request: (
20
18
  Anthropic::Internal::Transport::BaseClient::request_components req,
21
19
  Anthropic::request_options opts
@@ -305,6 +305,20 @@ module Anthropic
305
305
  ORGANIZATION_WEBHOOKS_LIST: "anthropic.organization.webhooks.list"
306
306
  ORGANIZATION_WEBHOOKS_DELETE: "anthropic.organization.webhooks.delete"
307
307
  ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET: "anthropic.organization.webhooks.regenerate_signing_secret"
308
+ ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_CREATE: "anthropic.organization.claude_tag.slack_channels.create"
309
+ ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_RETRIEVE: "anthropic.organization.claude_tag.slack_channels.retrieve"
310
+ ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_UPDATE: "anthropic.organization.claude_tag.slack_channels.update"
311
+ ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_LIST: "anthropic.organization.claude_tag.slack_channels.list"
312
+ ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_DELETE: "anthropic.organization.claude_tag.slack_channels.delete"
313
+ ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_RETRIEVE: "anthropic.organization.claude_tag.slack_workspaces.retrieve"
314
+ ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_UPDATE: "anthropic.organization.claude_tag.slack_workspaces.update"
315
+ ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_LIST: "anthropic.organization.claude_tag.slack_workspaces.list"
316
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_RETRIEVE: "anthropic.organization.claude_tag.bundles.retrieve"
317
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_LIST: "anthropic.organization.claude_tag.bundles.list"
318
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_CREATE: "anthropic.organization.claude_tag.bundles.targets.create"
319
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_RETRIEVE: "anthropic.organization.claude_tag.bundles.targets.retrieve"
320
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_LIST: "anthropic.organization.claude_tag.bundles.targets.list"
321
+ ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_DELETE: "anthropic.organization.claude_tag.bundles.targets.delete"
308
322
  end
309
323
 
310
324
  CLIENT_ATTRIBUTES: ::Hash[String, String]
@@ -20,6 +20,7 @@ module Anthropic
20
20
  page: Class?,
21
21
  stream: Class?,
22
22
  model: Anthropic::Internal::Type::Converter::input?,
23
+ qualifiers: ::Hash[Symbol, String]?,
23
24
  span_name: String?,
24
25
  span_attributes: ::Hash[String, top]?,
25
26
  span_created_id: (String | ::Hash[String, Symbol])?,
@@ -36,6 +37,7 @@ module Anthropic
36
37
  body: top,
37
38
  max_retries: Integer,
38
39
  timeout: Float,
40
+ qualifiers: ::Hash[Symbol, String]?,
39
41
  user_header_keys: ::Array[String],
40
42
  cast_to: Anthropic::Internal::Type::Converter::input?,
41
43
  stream: Class?,
@@ -167,6 +169,7 @@ module Anthropic
167
169
  ?page: Class?,
168
170
  ?stream: Class?,
169
171
  ?model: Anthropic::Internal::Type::Converter::input?,
172
+ ?qualifiers: ::Hash[Symbol, String]?,
170
173
  ?span_name: String?,
171
174
  ?span_attributes: ::Hash[String, top]?,
172
175
  ?span_created_id: (String | ::Hash[String, Symbol])?,
@@ -10,6 +10,8 @@ module Anthropic
10
10
  Anthropic::request_opts
11
11
  ) -> Anthropic::request_opts
12
12
 
13
+ def self.included: (Module mod) -> void
14
+
13
15
  module Converter
14
16
  def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
15
17
  end
@@ -55,6 +55,7 @@ module Anthropic
55
55
  | :"webhooks-2026-10-07"
56
56
  | :"message-threads-2026-08-12"
57
57
  | :"analytics-usage-cost-2026-08-24"
58
+ | :"experimental-claude-tag-2026-10-21"
58
59
  | String
59
60
 
60
61
  module AnthropicBeta
@@ -116,6 +117,7 @@ module Anthropic
116
117
  WEBHOOKS_2026_10_07: :"webhooks-2026-10-07"
117
118
  MESSAGE_THREADS_2026_08_12: :"message-threads-2026-08-12"
118
119
  ANALYTICS_USAGE_COST_2026_08_24: :"analytics-usage-cost-2026-08-24"
120
+ EXPERIMENTAL_CLAUDE_TAG_2026_10_21: :"experimental-claude-tag-2026-10-21"
119
121
  end
120
122
  end
121
123
  end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_claude_tag_default_setting_source = { type: :default }
6
+
7
+ class BetaClaudeTagDefaultSettingSource < Anthropic::Internal::Type::BaseModel
8
+ attr_accessor type: :default
9
+
10
+ def initialize: (?type: :default) -> void
11
+
12
+ def to_hash: -> { type: :default }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,45 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_claude_tag_guest_policy =
6
+ Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyAllow
7
+ | Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyRestrict
8
+ | Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly
9
+
10
+ module BetaClaudeTagGuestPolicy
11
+ extend Anthropic::Internal::Type::Union
12
+
13
+ type type_ = :allow | :restrict | :channel_only
14
+
15
+ module Type
16
+ extend Anthropic::Internal::Type::Enum
17
+
18
+ ALLOW: :allow
19
+ RESTRICT: :restrict
20
+ CHANNEL_ONLY: :channel_only
21
+
22
+ def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicy::type_]
23
+ end
24
+
25
+ def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::beta_claude_tag_guest_policy]
26
+
27
+ def self.new:
28
+ (
29
+ type: :allow | "allow"
30
+ ) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyAllow
31
+ | (
32
+ type: :restrict | "restrict"
33
+ ) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyRestrict
34
+ | (
35
+ type: :channel_only | "channel_only"
36
+ ) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly
37
+ | (
38
+ type: Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicy::type_
39
+ | String
40
+ ) -> Anthropic::Models::Beta::Organization::beta_claude_tag_guest_policy
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_claude_tag_guest_policy_allow = { type: :allow }
6
+
7
+ class BetaClaudeTagGuestPolicyAllow < Anthropic::Internal::Type::BaseModel
8
+ attr_accessor type: :allow
9
+
10
+ def initialize: (?type: :allow) -> void
11
+
12
+ def to_hash: -> { type: :allow }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_claude_tag_guest_policy_channel_only = { type: :channel_only }
6
+
7
+ class BetaClaudeTagGuestPolicyChannelOnly < Anthropic::Internal::Type::BaseModel
8
+ attr_accessor type: :channel_only
9
+
10
+ def initialize: (?type: :channel_only) -> void
11
+
12
+ def to_hash: -> { type: :channel_only }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type beta_claude_tag_guest_policy_restrict = { type: :restrict }
6
+
7
+ class BetaClaudeTagGuestPolicyRestrict < Anthropic::Internal::Type::BaseModel
8
+ attr_accessor type: :restrict
9
+
10
+ def initialize: (?type: :restrict) -> void
11
+
12
+ def to_hash: -> { type: :restrict }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end