anthropic 1.79.0 → 1.80.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 (268) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -1
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/refusal_fallback.rb +52 -21
  5. data/lib/anthropic/models/beta/agent_archive_params.rb +3 -2
  6. data/lib/anthropic/models/beta/agent_create_params.rb +3 -2
  7. data/lib/anthropic/models/beta/agent_list_params.rb +3 -2
  8. data/lib/anthropic/models/beta/agent_retrieve_params.rb +3 -2
  9. data/lib/anthropic/models/beta/agent_update_params.rb +3 -2
  10. data/lib/anthropic/models/beta/agents/version_list_params.rb +3 -2
  11. data/lib/anthropic/models/beta/beta_thinking_types.rb +17 -2
  12. data/lib/anthropic/models/beta/deployment_archive_params.rb +3 -2
  13. data/lib/anthropic/models/beta/deployment_create_params.rb +3 -2
  14. data/lib/anthropic/models/beta/deployment_list_params.rb +3 -2
  15. data/lib/anthropic/models/beta/deployment_pause_params.rb +3 -2
  16. data/lib/anthropic/models/beta/deployment_retrieve_params.rb +3 -2
  17. data/lib/anthropic/models/beta/deployment_run_list_params.rb +3 -2
  18. data/lib/anthropic/models/beta/deployment_run_params.rb +3 -2
  19. data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +3 -2
  20. data/lib/anthropic/models/beta/deployment_unpause_params.rb +3 -2
  21. data/lib/anthropic/models/beta/deployment_update_params.rb +3 -2
  22. data/lib/anthropic/models/beta/dream_archive_params.rb +3 -2
  23. data/lib/anthropic/models/beta/dream_cancel_params.rb +3 -2
  24. data/lib/anthropic/models/beta/dream_create_params.rb +3 -2
  25. data/lib/anthropic/models/beta/dream_list_params.rb +3 -2
  26. data/lib/anthropic/models/beta/dream_retrieve_params.rb +3 -2
  27. data/lib/anthropic/models/beta/memory_store_archive_params.rb +3 -2
  28. data/lib/anthropic/models/beta/memory_store_create_params.rb +3 -2
  29. data/lib/anthropic/models/beta/memory_store_delete_params.rb +3 -2
  30. data/lib/anthropic/models/beta/memory_store_list_params.rb +3 -2
  31. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +3 -2
  32. data/lib/anthropic/models/beta/memory_store_update_params.rb +3 -2
  33. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +3 -2
  34. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +3 -2
  35. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +3 -2
  36. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +3 -2
  37. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +3 -2
  38. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +3 -2
  39. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +3 -2
  40. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +3 -2
  41. data/lib/anthropic/models/beta/message_count_tokens_params.rb +10 -0
  42. data/lib/anthropic/models/beta/message_create_params.rb +10 -0
  43. data/lib/anthropic/models/beta/messages/batch_create_params.rb +10 -0
  44. data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +14 -4
  45. data/lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb +25 -0
  46. data/lib/anthropic/models/beta/organization/beta_spend_summary.rb +28 -8
  47. data/lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb +3 -2
  48. data/lib/anthropic/models/beta/organization/telemetry_destination_delete_params.rb +7 -2
  49. data/lib/anthropic/models/beta/organization/telemetry_destination_list_params.rb +3 -2
  50. data/lib/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rb +7 -2
  51. data/lib/anthropic/models/beta/organization/telemetry_destination_test_params.rb +7 -2
  52. data/lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb +3 -2
  53. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rb +7 -2
  54. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rb +3 -2
  55. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rb +7 -2
  56. data/lib/anthropic/models/beta/session_archive_params.rb +3 -2
  57. data/lib/anthropic/models/beta/session_create_params.rb +3 -2
  58. data/lib/anthropic/models/beta/session_delete_params.rb +3 -2
  59. data/lib/anthropic/models/beta/session_list_params.rb +3 -2
  60. data/lib/anthropic/models/beta/session_retrieve_params.rb +3 -2
  61. data/lib/anthropic/models/beta/session_update_params.rb +3 -2
  62. data/lib/anthropic/models/beta/sessions/event_list_params.rb +3 -2
  63. data/lib/anthropic/models/beta/sessions/event_send_params.rb +3 -2
  64. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +3 -2
  65. data/lib/anthropic/models/beta/sessions/resource_add_params.rb +3 -2
  66. data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +3 -2
  67. data/lib/anthropic/models/beta/sessions/resource_list_params.rb +3 -2
  68. data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +3 -2
  69. data/lib/anthropic/models/beta/sessions/resource_update_params.rb +3 -2
  70. data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +3 -2
  71. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +3 -2
  72. data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +3 -2
  73. data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +3 -2
  74. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +3 -2
  75. data/lib/anthropic/models/beta/tunnel_archive_params.rb +3 -2
  76. data/lib/anthropic/models/beta/tunnel_create_params.rb +3 -2
  77. data/lib/anthropic/models/beta/tunnel_list_params.rb +3 -2
  78. data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +3 -2
  79. data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +3 -2
  80. data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +3 -2
  81. data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +3 -2
  82. data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +3 -2
  83. data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +3 -2
  84. data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +3 -2
  85. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +3 -2
  86. data/lib/anthropic/models/beta/user_profile_create_params.rb +3 -2
  87. data/lib/anthropic/models/beta/user_profile_list_params.rb +3 -2
  88. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +3 -2
  89. data/lib/anthropic/models/beta/user_profile_update_params.rb +3 -2
  90. data/lib/anthropic/models/beta/vault_archive_params.rb +3 -2
  91. data/lib/anthropic/models/beta/vault_create_params.rb +3 -2
  92. data/lib/anthropic/models/beta/vault_delete_params.rb +3 -2
  93. data/lib/anthropic/models/beta/vault_list_params.rb +3 -2
  94. data/lib/anthropic/models/beta/vault_retrieve_params.rb +3 -2
  95. data/lib/anthropic/models/beta/vault_update_params.rb +3 -2
  96. data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +3 -2
  97. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -2
  98. data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +3 -2
  99. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +3 -2
  100. data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +3 -2
  101. data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +3 -2
  102. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -2
  103. data/lib/anthropic/models/message_count_tokens_params.rb +32 -1
  104. data/lib/anthropic/models/message_create_params.rb +32 -1
  105. data/lib/anthropic/models/messages/batch_create_params.rb +38 -1
  106. data/lib/anthropic/models/thinking_types.rb +17 -2
  107. data/lib/anthropic/models/usage.rb +22 -1
  108. data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
  109. data/lib/anthropic/resources/beta/agents.rb +5 -5
  110. data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
  111. data/lib/anthropic/resources/beta/deployments.rb +8 -8
  112. data/lib/anthropic/resources/beta/dreams.rb +5 -5
  113. data/lib/anthropic/resources/beta/memory_stores/memories.rb +5 -5
  114. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +3 -3
  115. data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
  116. data/lib/anthropic/resources/beta/organization/spend_limits.rb +3 -2
  117. data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +11 -3
  118. data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +18 -6
  119. data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
  120. data/lib/anthropic/resources/beta/sessions/resources.rb +5 -5
  121. data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
  122. data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
  123. data/lib/anthropic/resources/beta/sessions.rb +6 -6
  124. data/lib/anthropic/resources/beta/tunnels/certificates.rb +4 -4
  125. data/lib/anthropic/resources/beta/tunnels.rb +6 -6
  126. data/lib/anthropic/resources/beta/user_profiles.rb +5 -5
  127. data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
  128. data/lib/anthropic/resources/beta/vaults.rb +6 -6
  129. data/lib/anthropic/resources/messages.rb +12 -4
  130. data/lib/anthropic/version.rb +1 -1
  131. data/lib/anthropic.rb +1 -0
  132. data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -2
  133. data/rbi/anthropic/models/beta/agent_create_params.rbi +4 -2
  134. data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -2
  135. data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -2
  136. data/rbi/anthropic/models/beta/agent_update_params.rbi +4 -2
  137. data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -2
  138. data/rbi/anthropic/models/beta/beta_thinking_types.rbi +31 -2
  139. data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -2
  140. data/rbi/anthropic/models/beta/deployment_create_params.rbi +4 -2
  141. data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -2
  142. data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -2
  143. data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -2
  144. data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -2
  145. data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -2
  146. data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -2
  147. data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -2
  148. data/rbi/anthropic/models/beta/deployment_update_params.rbi +4 -2
  149. data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -2
  150. data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -2
  151. data/rbi/anthropic/models/beta/dream_create_params.rbi +4 -2
  152. data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -2
  153. data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -2
  154. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -2
  155. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -2
  156. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -2
  157. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -2
  158. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -2
  159. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -2
  160. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -2
  161. data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -2
  162. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -2
  163. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -2
  164. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -2
  165. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -2
  166. data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -2
  167. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -2
  168. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +15 -0
  169. data/rbi/anthropic/models/beta/message_create_params.rbi +15 -0
  170. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +15 -0
  171. data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +9 -2
  172. data/rbi/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbi +38 -0
  173. data/rbi/anthropic/models/beta/organization/beta_spend_summary.rbi +18 -4
  174. data/rbi/anthropic/models/beta/organization/telemetry_destination_create_params.rbi +4 -2
  175. data/rbi/anthropic/models/beta/organization/telemetry_destination_delete_params.rbi +4 -2
  176. data/rbi/anthropic/models/beta/organization/telemetry_destination_list_params.rbi +4 -2
  177. data/rbi/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rbi +4 -2
  178. data/rbi/anthropic/models/beta/organization/telemetry_destination_test_params.rbi +4 -2
  179. data/rbi/anthropic/models/beta/organization/telemetry_destination_update_params.rbi +4 -2
  180. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rbi +4 -2
  181. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rbi +4 -2
  182. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rbi +4 -2
  183. data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -2
  184. data/rbi/anthropic/models/beta/session_create_params.rbi +4 -2
  185. data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -2
  186. data/rbi/anthropic/models/beta/session_list_params.rbi +4 -2
  187. data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -2
  188. data/rbi/anthropic/models/beta/session_update_params.rbi +4 -2
  189. data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -2
  190. data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -2
  191. data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -2
  192. data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -2
  193. data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -2
  194. data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -2
  195. data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -2
  196. data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -2
  197. data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -2
  198. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -2
  199. data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -2
  200. data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -2
  201. data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -2
  202. data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -2
  203. data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -2
  204. data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -2
  205. data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -2
  206. data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -2
  207. data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -2
  208. data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -2
  209. data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -2
  210. data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -2
  211. data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -2
  212. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +4 -2
  213. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +4 -2
  214. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +4 -2
  215. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +4 -2
  216. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +4 -2
  217. data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -2
  218. data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -2
  219. data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -2
  220. data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -2
  221. data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -2
  222. data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -2
  223. data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -2
  224. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -2
  225. data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -2
  226. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -2
  227. data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -2
  228. data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -2
  229. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +4 -2
  230. data/rbi/anthropic/models/message_count_tokens_params.rbi +57 -0
  231. data/rbi/anthropic/models/message_create_params.rbi +49 -0
  232. data/rbi/anthropic/models/messages/batch_create_params.rbi +73 -0
  233. data/rbi/anthropic/models/thinking_types.rbi +27 -2
  234. data/rbi/anthropic/models/usage.rbi +29 -3
  235. data/rbi/anthropic/resources/beta/agents/versions.rbi +2 -1
  236. data/rbi/anthropic/resources/beta/agents.rbi +10 -5
  237. data/rbi/anthropic/resources/beta/deployment_runs.rbi +4 -2
  238. data/rbi/anthropic/resources/beta/deployments.rbi +16 -8
  239. data/rbi/anthropic/resources/beta/dreams.rbi +10 -5
  240. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +10 -5
  241. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +6 -3
  242. data/rbi/anthropic/resources/beta/memory_stores.rbi +12 -6
  243. data/rbi/anthropic/resources/beta/messages.rbi +15 -0
  244. data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +3 -2
  245. data/rbi/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rbi +6 -3
  246. data/rbi/anthropic/resources/beta/organization/telemetry_destinations.rbi +12 -6
  247. data/rbi/anthropic/resources/beta/sessions/events.rbi +6 -3
  248. data/rbi/anthropic/resources/beta/sessions/resources.rbi +10 -5
  249. data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +4 -2
  250. data/rbi/anthropic/resources/beta/sessions/threads.rbi +6 -3
  251. data/rbi/anthropic/resources/beta/sessions.rbi +12 -6
  252. data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +8 -4
  253. data/rbi/anthropic/resources/beta/tunnels.rbi +12 -6
  254. data/rbi/anthropic/resources/beta/user_profiles.rbi +13 -5
  255. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +14 -7
  256. data/rbi/anthropic/resources/beta/vaults.rbi +12 -6
  257. data/rbi/anthropic/resources/messages.rbi +32 -0
  258. data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
  259. data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +6 -0
  260. data/sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs +17 -0
  261. data/sig/anthropic/models/beta/organization/beta_spend_summary.rbs +12 -0
  262. data/sig/anthropic/models/message_count_tokens_params.rbs +16 -0
  263. data/sig/anthropic/models/message_create_params.rbs +16 -0
  264. data/sig/anthropic/models/messages/batch_create_params.rbs +16 -0
  265. data/sig/anthropic/models/thinking_types.rbs +5 -0
  266. data/sig/anthropic/models/usage.rbs +19 -3
  267. data/sig/anthropic/resources/messages.rbs +4 -0
  268. metadata +5 -2
@@ -44,12 +44,12 @@ module Anthropic
44
44
 
45
45
  # @!attribute scope
46
46
  #
47
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
47
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
48
48
  required :scope, union: -> { Anthropic::Beta::Organization::BetaSpendSummary::Scope }
49
49
 
50
50
  # @!attribute source
51
51
  #
52
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
52
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
53
53
  required :source, union: -> { Anthropic::Beta::Organization::BetaSpendSummary::Source }
54
54
 
55
55
  # @!attribute spend_limit_id
@@ -73,9 +73,9 @@ module Anthropic
73
73
  #
74
74
  # @param period_to_date_spend [String] The member's spend so far in the current period, as a non-negative decimal strin
75
75
  #
76
- # @param scope [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
76
+ # @param scope [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
77
77
  #
78
- # @param source [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
78
+ # @param source [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
79
79
  #
80
80
  # @param spend_limit_id [String]
81
81
 
@@ -162,6 +162,13 @@ module Anthropic
162
162
  # Scope selecting one workspace of a Claude Console organization.
163
163
  variant :workspace, -> { Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope }
164
164
 
165
+ # Scope of the monthly spend cap Anthropic sets for a Claude Console
166
+ # organization from its usage tier, or a higher cap Anthropic granted the
167
+ # organization. Read-only; its `created_at` and `updated_at` are the
168
+ # organization's creation time, so `amount` can change while `updated_at` stays
169
+ # the same.
170
+ variant :usage_tier, -> { Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope }
171
+
165
172
  module Type
166
173
  extend Anthropic::Internal::Type::Enum
167
174
 
@@ -171,13 +178,14 @@ module Anthropic
171
178
  ORGANIZATION_SERVICE = :organization_service
172
179
  ORGANIZATION = :organization
173
180
  WORKSPACE = :workspace
181
+ USAGE_TIER = :usage_tier
174
182
 
175
183
  # @!method self.values
176
184
  # @return [Array<Symbol>]
177
185
  end
178
186
 
179
187
  # @!method self.variants
180
- # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope)]
188
+ # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope)]
181
189
 
182
190
  # Creates a new instance of the variant class whose `type` matches the given
183
191
  # value, passing the remaining arguments to its constructor.
@@ -197,7 +205,7 @@ module Anthropic
197
205
  # @option args [String] :workspace_id Tagged ID of the workspace the spend limit applies to.
198
206
  #
199
207
  # @raise [ArgumentError]
200
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
208
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
201
209
  def self.new(type:, **args)
202
210
  case type.to_sym
203
211
  when :user
@@ -212,6 +220,8 @@ module Anthropic
212
220
  Anthropic::Beta::Organization::BetaSpendLimitOrganizationScope.new(**args)
213
221
  when :workspace
214
222
  Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope.new(**args)
223
+ when :usage_tier
224
+ Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope.new(**args)
215
225
  else
216
226
  raise ArgumentError, "unknown type: #{type}"
217
227
  end
@@ -239,6 +249,13 @@ module Anthropic
239
249
  # Scope selecting one workspace of a Claude Console organization.
240
250
  variant :workspace, -> { Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope }
241
251
 
252
+ # Scope of the monthly spend cap Anthropic sets for a Claude Console
253
+ # organization from its usage tier, or a higher cap Anthropic granted the
254
+ # organization. Read-only; its `created_at` and `updated_at` are the
255
+ # organization's creation time, so `amount` can change while `updated_at` stays
256
+ # the same.
257
+ variant :usage_tier, -> { Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope }
258
+
242
259
  module Type
243
260
  extend Anthropic::Internal::Type::Enum
244
261
 
@@ -248,13 +265,14 @@ module Anthropic
248
265
  ORGANIZATION_SERVICE = :organization_service
249
266
  ORGANIZATION = :organization
250
267
  WORKSPACE = :workspace
268
+ USAGE_TIER = :usage_tier
251
269
 
252
270
  # @!method self.values
253
271
  # @return [Array<Symbol>]
254
272
  end
255
273
 
256
274
  # @!method self.variants
257
- # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope)]
275
+ # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope)]
258
276
 
259
277
  # Creates a new instance of the variant class whose `type` matches the given
260
278
  # value, passing the remaining arguments to its constructor.
@@ -274,7 +292,7 @@ module Anthropic
274
292
  # @option args [String] :workspace_id Tagged ID of the workspace the spend limit applies to.
275
293
  #
276
294
  # @raise [ArgumentError]
277
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
295
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
278
296
  def self.new(type:, **args)
279
297
  case type.to_sym
280
298
  when :user
@@ -289,6 +307,8 @@ module Anthropic
289
307
  Anthropic::Beta::Organization::BetaSpendLimitOrganizationScope.new(**args)
290
308
  when :workspace
291
309
  Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope.new(**args)
310
+ when :usage_tier
311
+ Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope.new(**args)
292
312
  else
293
313
  raise ArgumentError, "unknown type: #{type}"
294
314
  end
@@ -63,7 +63,8 @@ module Anthropic
63
63
  optional :traces, -> { Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams }
64
64
 
65
65
  # @!attribute betas
66
- # Optional header to specify the beta version(s) you want to use.
66
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
67
+ # in this header.
67
68
  #
68
69
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
69
70
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -83,7 +84,7 @@ module Anthropic
83
84
  #
84
85
  # @param traces [Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTracesParams] The settings for the traces that the destination receives. If you leave it out,
85
86
  #
86
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
87
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
87
88
  #
88
89
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
89
90
  end
@@ -16,15 +16,20 @@ module Anthropic
16
16
  required :destination_id, String
17
17
 
18
18
  # @!attribute betas
19
- # Optional header to specify the beta version(s) you want to use.
19
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
20
+ # in this header.
20
21
  #
21
22
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
22
23
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
23
24
 
24
25
  # @!method initialize(destination_id:, betas: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {Anthropic::Models::Beta::Organization::TelemetryDestinationDeleteParams} for
28
+ # more details.
29
+ #
25
30
  # @param destination_id [String] ID of the destination (`tdst_...`).
26
31
  #
27
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
32
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
28
33
  #
29
34
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
30
35
  end
@@ -36,7 +36,8 @@ module Anthropic
36
36
  optional :workspace_ids, Anthropic::Internal::Type::ArrayOf[String]
37
37
 
38
38
  # @!attribute betas
39
- # Optional header to specify the beta version(s) you want to use.
39
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
40
+ # in this header.
40
41
  #
41
42
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
42
43
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -52,7 +53,7 @@ module Anthropic
52
53
  #
53
54
  # @param workspace_ids [Array<String>] Return only the destinations that cover at least one of these workspaces (`wrksp
54
55
  #
55
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
56
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
56
57
  #
57
58
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
58
59
  end
@@ -16,15 +16,20 @@ module Anthropic
16
16
  required :destination_id, String
17
17
 
18
18
  # @!attribute betas
19
- # Optional header to specify the beta version(s) you want to use.
19
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
20
+ # in this header.
20
21
  #
21
22
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
22
23
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
23
24
 
24
25
  # @!method initialize(destination_id:, betas: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {Anthropic::Models::Beta::Organization::TelemetryDestinationRetrieveParams} for
28
+ # more details.
29
+ #
25
30
  # @param destination_id [String] ID of the destination (`tdst_...`).
26
31
  #
27
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
32
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
28
33
  #
29
34
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
30
35
  end
@@ -16,15 +16,20 @@ module Anthropic
16
16
  required :destination_id, String
17
17
 
18
18
  # @!attribute betas
19
- # Optional header to specify the beta version(s) you want to use.
19
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
20
+ # in this header.
20
21
  #
21
22
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
22
23
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
23
24
 
24
25
  # @!method initialize(destination_id:, betas: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {Anthropic::Models::Beta::Organization::TelemetryDestinationTestParams} for more
28
+ # details.
29
+ #
25
30
  # @param destination_id [String] ID of the destination to test (starts with `tdst_`).
26
31
  #
27
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
32
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
28
33
  #
29
34
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
30
35
  end
@@ -86,7 +86,8 @@ module Anthropic
86
86
  union: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesParams }
87
87
 
88
88
  # @!attribute betas
89
- # Optional header to specify the beta version(s) you want to use.
89
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
90
+ # in this header.
90
91
  #
91
92
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
92
93
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -110,7 +111,7 @@ module Anthropic
110
111
  #
111
112
  # @param workspaces [Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesAllParams, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesIncludeParams, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesExcludeParams] The new workspace scope, in the same form as on create. The field can't be `null
112
113
  #
113
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
114
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
114
115
  #
115
116
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
116
117
  end
@@ -23,17 +23,22 @@ module Anthropic
23
23
  required :workspace_id, String
24
24
 
25
25
  # @!attribute betas
26
- # Optional header to specify the beta version(s) you want to use.
26
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
27
+ # in this header.
27
28
  #
28
29
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
29
30
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
30
31
 
31
32
  # @!method initialize(destination_id:, workspace_id:, betas: nil, request_options: {})
33
+ # Some parameter documentations has been truncated, see
34
+ # {Anthropic::Models::Beta::Organization::TelemetryDestinations::WorkspaceAddParams}
35
+ # for more details.
36
+ #
32
37
  # @param destination_id [String] ID of the destination (`tdst_...`).
33
38
  #
34
39
  # @param workspace_id [String] ID of the workspace to add (`wrkspc_...`).
35
40
  #
36
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
37
42
  #
38
43
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
39
44
  end
@@ -30,7 +30,8 @@ module Anthropic
30
30
  optional :page, String
31
31
 
32
32
  # @!attribute betas
33
- # Optional header to specify the beta version(s) you want to use.
33
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
34
+ # in this header.
34
35
  #
35
36
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
36
37
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -46,7 +47,7 @@ module Anthropic
46
47
  #
47
48
  # @param page [String] Opaque cursor from a previous response's `next_page`. Leave it out to get the fi
48
49
  #
49
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
50
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
50
51
  #
51
52
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
52
53
  end
@@ -23,17 +23,22 @@ module Anthropic
23
23
  required :workspace_id, String
24
24
 
25
25
  # @!attribute betas
26
- # Optional header to specify the beta version(s) you want to use.
26
+ # This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
27
+ # in this header.
27
28
  #
28
29
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
29
30
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
30
31
 
31
32
  # @!method initialize(destination_id:, workspace_id:, betas: nil, request_options: {})
33
+ # Some parameter documentations has been truncated, see
34
+ # {Anthropic::Models::Beta::Organization::TelemetryDestinations::WorkspaceRemoveParams}
35
+ # for more details.
36
+ #
32
37
  # @param destination_id [String] ID of the destination (`tdst_...`).
33
38
  #
34
39
  # @param workspace_id [String] ID of the workspace to remove (`wrkspc_...`).
35
40
  #
36
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `telemetry-destinations-2026-08-11`
37
42
  #
38
43
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
39
44
  end
@@ -14,7 +14,8 @@ module Anthropic
14
14
  required :session_id, String
15
15
 
16
16
  # @!attribute betas
17
- # Optional header to specify the beta version(s) you want to use.
17
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
18
+ # header.
18
19
  #
19
20
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
20
21
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -36,7 +37,7 @@ module Anthropic
36
37
  #
37
38
  # @param session_id [String]
38
39
  #
39
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
40
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
40
41
  #
41
42
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
42
43
  #
@@ -65,7 +65,8 @@ module Anthropic
65
65
  optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]
66
66
 
67
67
  # @!attribute betas
68
- # Optional header to specify the beta version(s) you want to use.
68
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
69
+ # header.
69
70
  #
70
71
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
71
72
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -101,7 +102,7 @@ module Anthropic
101
102
  #
102
103
  # @param vault_ids [Array<String>] Vault IDs for stored credentials the agent can use during the session.
103
104
  #
104
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
105
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
105
106
  #
106
107
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
107
108
  #
@@ -14,7 +14,8 @@ module Anthropic
14
14
  required :session_id, String
15
15
 
16
16
  # @!attribute betas
17
- # Optional header to specify the beta version(s) you want to use.
17
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
18
+ # header.
18
19
  #
19
20
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
20
21
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -36,7 +37,7 @@ module Anthropic
36
37
  #
37
38
  # @param session_id [String]
38
39
  #
39
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
40
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
40
41
  #
41
42
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
42
43
  #
@@ -91,7 +91,8 @@ module Anthropic
91
91
  -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::SessionListParams::Status] }
92
92
 
93
93
  # @!attribute betas
94
- # Optional header to specify the beta version(s) you want to use.
94
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
95
+ # header.
95
96
  #
96
97
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
97
98
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -137,7 +138,7 @@ module Anthropic
137
138
  #
138
139
  # @param statuses [Array<Symbol, Anthropic::Models::Beta::SessionListParams::Status>] Filter by session status. Repeat the parameter to match any of multiple statuses
139
140
  #
140
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
141
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
141
142
  #
142
143
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
143
144
  #
@@ -14,7 +14,8 @@ module Anthropic
14
14
  required :session_id, String
15
15
 
16
16
  # @!attribute betas
17
- # Optional header to specify the beta version(s) you want to use.
17
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
18
+ # header.
18
19
  #
19
20
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
20
21
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -36,7 +37,7 @@ module Anthropic
36
37
  #
37
38
  # @param session_id [String]
38
39
  #
39
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
40
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
40
41
  #
41
42
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
42
43
  #
@@ -55,7 +55,8 @@ module Anthropic
55
55
  optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]
56
56
 
57
57
  # @!attribute betas
58
- # Optional header to specify the beta version(s) you want to use.
58
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
59
+ # header.
59
60
  #
60
61
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
61
62
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -87,7 +88,7 @@ module Anthropic
87
88
  #
88
89
  # @param vault_ids [Array<String>] Vault IDs (`vlt_*`) to attach to the session. Not yet supported; requests settin
89
90
  #
90
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
91
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
91
92
  #
92
93
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
93
94
  #
@@ -69,7 +69,8 @@ module Anthropic
69
69
  -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Sessions::BetaManagedAgentsSessionEventType] }
70
70
 
71
71
  # @!attribute betas
72
- # Optional header to specify the beta version(s) you want to use.
72
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
73
+ # header.
73
74
  #
74
75
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
75
76
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -107,7 +108,7 @@ module Anthropic
107
108
  #
108
109
  # @param types [Array<Symbol, Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionEventType>] Filter by event type. Values match the `type` field on returned events (for exam
109
110
  #
110
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
111
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
111
112
  #
112
113
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
113
114
  #
@@ -22,7 +22,8 @@ module Anthropic
22
22
  -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Sessions::BetaManagedAgentsEventParams] }
23
23
 
24
24
  # @!attribute betas
25
- # Optional header to specify the beta version(s) you want to use.
25
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
26
+ # header.
26
27
  #
27
28
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
28
29
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -46,7 +47,7 @@ module Anthropic
46
47
  #
47
48
  # @param events [Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserMessageEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserInterruptEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserToolConfirmationEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserCustomToolResultEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserDefineOutcomeEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserToolResultEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsSystemMessageEventParams>] Events to send to the `session`.
48
49
  #
49
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
50
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
50
51
  #
51
52
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
52
53
  #
@@ -31,7 +31,8 @@ module Anthropic
31
31
  -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::BetaManagedAgentsDeltaType] }
32
32
 
33
33
  # @!attribute betas
34
- # Optional header to specify the beta version(s) you want to use.
34
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
35
+ # header.
35
36
  #
36
37
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
37
38
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -56,7 +57,7 @@ module Anthropic
56
57
  # @param event_deltas [Array<Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeltaType>] When set, this connection also receives streaming deltas (`event_start`,
57
58
  # `event\_
58
59
  #
59
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
60
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
60
61
  #
61
62
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
62
63
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :session_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param session_id [String]
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -20,7 +20,8 @@ module Anthropic
20
20
  required :resource_id, String
21
21
 
22
22
  # @!attribute betas
23
- # Optional header to specify the beta version(s) you want to use.
23
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
24
+ # header.
24
25
  #
25
26
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
26
27
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -44,7 +45,7 @@ module Anthropic
44
45
  #
45
46
  # @param resource_id [String]
46
47
  #
47
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
48
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
48
49
  #
49
50
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
50
51
  #
@@ -28,7 +28,8 @@ module Anthropic
28
28
  optional :page, String
29
29
 
30
30
  # @!attribute betas
31
- # Optional header to specify the beta version(s) you want to use.
31
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
32
+ # header.
32
33
  #
33
34
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
34
35
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -54,7 +55,7 @@ module Anthropic
54
55
  #
55
56
  # @param page [String] Opaque cursor from a previous response's `next_page` field.
56
57
  #
57
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
58
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
58
59
  #
59
60
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
60
61
  #
@@ -20,7 +20,8 @@ module Anthropic
20
20
  required :resource_id, String
21
21
 
22
22
  # @!attribute betas
23
- # Optional header to specify the beta version(s) you want to use.
23
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
24
+ # header.
24
25
  #
25
26
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
26
27
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -44,7 +45,7 @@ module Anthropic
44
45
  #
45
46
  # @param resource_id [String]
46
47
  #
47
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
48
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
48
49
  #
49
50
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
50
51
  #