anthropic 2.5.0 → 2.7.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 (269) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +11 -1
  5. data/lib/anthropic/errors.rb +11 -0
  6. data/lib/anthropic/helpers/aws/client.rb +6 -0
  7. data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
  8. data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
  9. data/lib/anthropic/internal/tracing.rb +1 -0
  10. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  11. data/lib/anthropic/models/api_error_object.rb +9 -2
  12. data/lib/anthropic/models/authentication_error.rb +9 -2
  13. data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
  14. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  15. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
  16. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  17. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
  18. data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
  19. data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
  20. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
  21. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
  22. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
  23. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
  24. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
  25. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
  26. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
  27. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
  28. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
  29. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
  30. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
  31. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
  32. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
  33. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
  34. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
  35. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
  36. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
  37. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
  38. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
  39. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
  40. data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
  41. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
  42. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
  43. data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
  44. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
  45. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
  46. data/lib/anthropic/models/beta_api_error.rb +9 -2
  47. data/lib/anthropic/models/beta_authentication_error.rb +9 -2
  48. data/lib/anthropic/models/beta_billing_error.rb +9 -2
  49. data/lib/anthropic/models/beta_error.rb +4 -1
  50. data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
  51. data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
  52. data/lib/anthropic/models/beta_not_found_error.rb +9 -2
  53. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
  54. data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
  55. data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
  56. data/lib/anthropic/models/beta_permission_error.rb +9 -2
  57. data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
  58. data/lib/anthropic/models/billing_error.rb +9 -2
  59. data/lib/anthropic/models/error_details.rb +74 -7
  60. data/lib/anthropic/models/error_object.rb +4 -1
  61. data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
  62. data/lib/anthropic/models/invalid_request_error.rb +9 -2
  63. data/lib/anthropic/models/model.rb +10 -0
  64. data/lib/anthropic/models/not_found_error.rb +9 -2
  65. data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
  66. data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
  67. data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
  68. data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
  69. data/lib/anthropic/models/overloaded_error.rb +9 -2
  70. data/lib/anthropic/models/permission_error.rb +9 -2
  71. data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
  72. data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
  73. data/lib/anthropic/models/rate_limit_error.rb +9 -2
  74. data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
  75. data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
  76. data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
  77. data/lib/anthropic/models.rb +13 -0
  78. data/lib/anthropic/resources/beta/environments/work.rb +10 -24
  79. data/lib/anthropic/resources/beta/environments.rb +16 -37
  80. data/lib/anthropic/resources/beta/files.rb +23 -50
  81. data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
  82. data/lib/anthropic/resources/beta/messages.rb +74 -139
  83. data/lib/anthropic/resources/beta/models.rb +4 -10
  84. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
  85. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
  86. data/lib/anthropic/resources/beta/organization/api_keys.rb +3 -2
  87. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
  88. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
  89. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
  90. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
  91. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
  92. data/lib/anthropic/resources/beta/organization/external_keys.rb +8 -7
  93. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
  94. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
  95. data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
  96. data/lib/anthropic/resources/beta/organization/invites.rb +10 -17
  97. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
  98. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
  99. data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
  100. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -14
  101. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +7 -7
  102. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
  103. data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
  104. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
  105. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
  106. data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
  107. data/lib/anthropic/resources/beta/organization/users.rb +69 -4
  108. data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
  109. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +6 -2
  110. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
  111. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
  112. data/lib/anthropic/resources/beta/organization/workspaces.rb +16 -22
  113. data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
  114. data/lib/anthropic/resources/beta/skills.rb +11 -26
  115. data/lib/anthropic/resources/files.rb +23 -50
  116. data/lib/anthropic/resources/messages/batches.rb +15 -35
  117. data/lib/anthropic/resources/messages.rb +74 -139
  118. data/lib/anthropic/resources/models.rb +4 -10
  119. data/lib/anthropic/resources/organization/api_keys.rb +3 -2
  120. data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
  121. data/lib/anthropic/resources/organization/external_keys.rb +8 -7
  122. data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
  123. data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
  124. data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
  125. data/lib/anthropic/resources/organization/invites.rb +10 -17
  126. data/lib/anthropic/resources/organization/rbac_groups/members.rb +6 -14
  127. data/lib/anthropic/resources/organization/rbac_groups.rb +7 -7
  128. data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
  129. data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
  130. data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
  131. data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
  132. data/lib/anthropic/resources/organization/users.rb +5 -4
  133. data/lib/anthropic/resources/organization/workspaces/members.rb +6 -2
  134. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
  135. data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
  136. data/lib/anthropic/resources/organization/workspaces.rb +16 -22
  137. data/lib/anthropic/resources/skills/versions.rb +11 -26
  138. data/lib/anthropic/resources/skills.rb +11 -26
  139. data/lib/anthropic/version.rb +1 -1
  140. data/lib/anthropic.rb +25 -2
  141. data/manifest.yaml +1 -0
  142. data/rbi/anthropic/errors.rbi +14 -0
  143. data/rbi/anthropic/helpers/aws/client.rbi +5 -0
  144. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
  145. data/rbi/anthropic/internal/tracing.rbi +1 -0
  146. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  147. data/rbi/anthropic/models/api_error_object.rbi +10 -1
  148. data/rbi/anthropic/models/authentication_error.rbi +10 -1
  149. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
  150. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  151. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
  152. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
  153. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
  154. data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
  155. data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
  156. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
  157. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
  158. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
  159. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
  160. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
  161. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
  162. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
  163. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
  164. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
  165. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
  166. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
  167. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
  168. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
  169. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
  170. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
  171. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
  172. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
  173. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
  174. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
  175. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
  176. data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
  177. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
  178. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
  179. data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
  180. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
  181. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
  182. data/rbi/anthropic/models/beta_api_error.rbi +10 -1
  183. data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
  184. data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
  185. data/rbi/anthropic/models/beta_error.rbi +6 -1
  186. data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
  187. data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
  188. data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
  189. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
  190. data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
  191. data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
  192. data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
  193. data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
  194. data/rbi/anthropic/models/billing_error.rbi +10 -1
  195. data/rbi/anthropic/models/error_details.rbi +63 -3
  196. data/rbi/anthropic/models/error_object.rbi +6 -1
  197. data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
  198. data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
  199. data/rbi/anthropic/models/model.rbi +8 -0
  200. data/rbi/anthropic/models/not_found_error.rbi +10 -1
  201. data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
  202. data/rbi/anthropic/models/{beta/beta_billing_frozen_error_details.rbi → organization/external_key_validation_failed_error_details.rbi} +6 -8
  203. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
  204. data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
  205. data/rbi/anthropic/models/overloaded_error.rbi +10 -1
  206. data/rbi/anthropic/models/permission_error.rbi +10 -1
  207. data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
  208. data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
  209. data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
  210. data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
  211. data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
  212. data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
  213. data/rbi/anthropic/models.rbi +16 -0
  214. data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
  215. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
  216. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
  217. data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
  218. data/sig/anthropic/errors.rbs +3 -0
  219. data/sig/anthropic/internal/tracing.rbs +1 -0
  220. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  221. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  222. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
  223. data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
  224. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
  225. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
  226. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
  227. data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
  228. data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
  229. data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
  230. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
  231. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
  232. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
  233. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
  234. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
  235. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
  236. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
  237. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
  238. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
  239. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
  240. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
  241. data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
  242. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
  243. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
  244. data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
  245. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
  246. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
  247. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
  248. data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
  249. data/sig/anthropic/models/error_details.rbs +72 -5
  250. data/sig/anthropic/models/model.rbs +9 -1
  251. data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
  252. data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
  253. data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
  254. data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
  255. data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
  256. data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
  257. data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
  258. data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
  259. data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
  260. data/sig/anthropic/models.rbs +12 -0
  261. data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
  262. data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
  263. data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
  264. metadata +74 -8
  265. data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
  266. data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
  267. data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
  268. data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
  269. data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
@@ -132,62 +132,35 @@ module Anthropic
132
132
  #
133
133
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
134
134
  #
135
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
136
- # size.
137
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
138
- # no longer a member of the organization or of that workspace.
139
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
140
- # requested model or the organization requires. Update Claude Code, then retry.
141
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
142
- # Re-enable the key, then retry.
143
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
144
- # workspace's customer-managed encryption key. The key itself may be healthy.
145
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
146
- # block the conversation returned last.
147
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
148
- # `system` message.
149
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
150
- # recorded.
151
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
152
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
153
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
154
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
155
- # record.
156
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
157
- # block.
158
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
159
- # organization disabled for any other reason, such as billing, does not get this
160
- # code. `appeal_url`, when present, is where the organization can appeal.
161
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
162
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
163
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
164
- # each response can be continued only once. Continue from the Thread's most recent
165
- # response `id`.
166
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
167
- # for it to complete and continue from its response `id`, or replay the full
168
- # conversation with `thread: {"type": "create"}`.
169
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
170
- # stored with the Thread; the message names each such field. Send the stored
171
- # values, or replay the full conversation with `thread: {"type": "create"}` to
172
- # change them.
173
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
174
- # that Threads do not support; `unsupported`, when present, names it. Send the
175
- # full conversation without `thread`, or change that field.
176
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
177
- # another kind, or of another MCP server, already holds.
178
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
179
- # defined at that position in the conversation.
180
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
181
- # conversation with `thread: {"type": "create"}` to start a new Thread.
182
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
183
- # workspace cannot currently decrypt.
184
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
185
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
186
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
187
- # request; if this continues, check that the key is available in your key
188
- # management service, or contact Anthropic support.
189
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
190
- # request.
135
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
136
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
137
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
138
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
139
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
140
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
141
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
142
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
143
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
144
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
145
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
146
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
147
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
148
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
149
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
150
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
151
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
152
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
153
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
154
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
155
+ # @raise [Anthropic::Models::ToolNameConflictError]
156
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
157
+ # @raise [Anthropic::Models::ThreadNotFoundError]
158
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
159
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
160
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
161
+ # @raise [Anthropic::Models::RampLimitExceededError]
162
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
163
+ # @raise [Anthropic::Models::CompactionUnavailableError]
191
164
  #
192
165
  # @return [Anthropic::Models::Beta::BetaMessage]
193
166
  #
@@ -309,62 +282,35 @@ module Anthropic
309
282
  #
310
283
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
311
284
  #
312
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
313
- # size.
314
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
315
- # no longer a member of the organization or of that workspace.
316
- # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError] The request comes from a Claude Code version older than the minimum that the
317
- # requested model or the organization requires. Update Claude Code, then retry.
318
- # @raise [Anthropic::Models::CMEKKeyDisabledError] The workspace's customer-managed encryption key is disabled or revoked.
319
- # Re-enable the key, then retry.
320
- # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError] The key management service's network access controls blocked the request to the
321
- # workspace's customer-managed encryption key. The key itself may be healthy.
322
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
323
- # block the conversation returned last.
324
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
325
- # `system` message.
326
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
327
- # recorded.
328
- # @raise [Anthropic::Models::CompactionIncompleteTurnError] The compaction request ends on an `assistant` turn that is not finished.
329
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
330
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
331
- # @raise [Anthropic::Models::CompactionTooManyToolReferencesError] The conversation references more distinct tools than a `compaction` block can
332
- # record.
333
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
334
- # block.
335
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
336
- # organization disabled for any other reason, such as billing, does not get this
337
- # code. `appeal_url`, when present, is where the organization can appeal.
338
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
339
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
340
- # @raise [Anthropic::Models::ThreadAlreadyContinuedError] The response that `previous_message_id` names has already been continued, and
341
- # each response can be continued only once. Continue from the Thread's most recent
342
- # response `id`.
343
- # @raise [Anthropic::Models::ThreadContinueInFlightError] Another request is still continuing from the same `previous_message_id`. Wait
344
- # for it to complete and continue from its response `id`, or replay the full
345
- # conversation with `thread: {"type": "create"}`.
346
- # @raise [Anthropic::Models::ThreadFingerprintMismatchError] A field that must stay the same across a Thread's turns differs from the value
347
- # stored with the Thread; the message names each such field. Send the stored
348
- # values, or replay the full conversation with `thread: {"type": "create"}` to
349
- # change them.
350
- # @raise [Anthropic::Models::ThreadUnsupportedRequestError] The request combines `thread` with a request field or an organization setting
351
- # that Threads do not support; `unsupported`, when present, names it. Send the
352
- # full conversation without `thread`, or change that field.
353
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
354
- # another kind, or of another MCP server, already holds.
355
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
356
- # defined at that position in the conversation.
357
- # @raise [Anthropic::Models::ThreadNotFoundError] No usable Thread state was found for `previous_message_id`. Replay the full
358
- # conversation with `thread: {"type": "create"}` to start a new Thread.
359
- # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError] A custom skill the request names is stored under an encryption key state the
360
- # workspace cannot currently decrypt.
361
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
362
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
363
- # @raise [Anthropic::Models::CMEKKeyUnreachableError] The workspace's customer-managed encryption key could not be reached. Retry the
364
- # request; if this continues, check that the key is available in your key
365
- # management service, or contact Anthropic support.
366
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
367
- # request.
285
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
286
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
287
+ # @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
288
+ # @raise [Anthropic::Models::CMEKKeyDisabledError]
289
+ # @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
290
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
291
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
292
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
293
+ # @raise [Anthropic::Models::CompactionIncompleteTurnError]
294
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
295
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
296
+ # @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
297
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
298
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
299
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
300
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
301
+ # @raise [Anthropic::Models::ThreadAlreadyContinuedError]
302
+ # @raise [Anthropic::Models::ThreadContinueInFlightError]
303
+ # @raise [Anthropic::Models::ThreadFingerprintMismatchError]
304
+ # @raise [Anthropic::Models::ThreadUnsupportedRequestError]
305
+ # @raise [Anthropic::Models::ToolNameConflictError]
306
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
307
+ # @raise [Anthropic::Models::ThreadNotFoundError]
308
+ # @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
309
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
310
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
311
+ # @raise [Anthropic::Models::RampLimitExceededError]
312
+ # @raise [Anthropic::Models::CMEKKeyUnreachableError]
313
+ # @raise [Anthropic::Models::CompactionUnavailableError]
368
314
  #
369
315
  # @return [Anthropic::Internal::Type::BaseStream<Anthropic::Models::Beta::BetaRawMessageStartEvent, Anthropic::Models::Beta::BetaRawMessageDeltaEvent, Anthropic::Models::Beta::BetaRawMessageStopEvent, Anthropic::Models::Beta::BetaRawContentBlockStartEvent, Anthropic::Models::Beta::BetaRawContentBlockDeltaEvent, Anthropic::Models::Beta::BetaRawContentBlockStopEvent>]
370
316
  #
@@ -452,33 +398,22 @@ module Anthropic
452
398
  #
453
399
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
454
400
  #
455
- # @raise [Anthropic::Models::AvailableToolsLimitExceededError] The tools available after a message exceed a limit on their number or their
456
- # size.
457
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
458
- # no longer a member of the organization or of that workspace.
459
- # @raise [Anthropic::Models::CompactionBlockAmbiguousError] `messages` holds more than one `compaction` block with content. Send only the
460
- # block the conversation returned last.
461
- # @raise [Anthropic::Models::CompactionBlockMisplacedError] The `compaction` block is not the first block of the conversation, or is in a
462
- # `system` message.
463
- # @raise [Anthropic::Models::CompactionContentMismatchError] The `compaction` block's `content` differs from the text its `signature`
464
- # recorded.
465
- # @raise [Anthropic::Models::CompactionNothingToSummarizeError] `messages` holds no `user` or `assistant` content to summarize or adopt.
466
- # @raise [Anthropic::Models::CompactionSignatureInvalidError] The `compaction` block's `signature` does not verify.
467
- # @raise [Anthropic::Models::CompactionToolChangesMismatchError] The `compaction` block's `tool_changes` differs from what was returned with the
468
- # block.
469
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
470
- # organization disabled for any other reason, such as billing, does not get this
471
- # code. `appeal_url`, when present, is where the organization can appeal.
472
- # @raise [Anthropic::Models::RequestBodyEncodingInvalidError] The request body is not valid for its `Content-Encoding`.
473
- # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError] The request's `Content-Encoding` is not supported.
474
- # @raise [Anthropic::Models::ToolNameConflictError] A tool made available in `messages` takes a name that an available tool of
475
- # another kind, or of another MCP server, already holds.
476
- # @raise [Anthropic::Models::ToolReferenceUnresolvedError] A tool change or MCP tool listing references a tool or MCP server that is not
477
- # defined at that position in the conversation.
478
- # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError] The compressed request body exceeds the request size limit once decoded.
479
- # @raise [Anthropic::Models::EnforcedSpendLimitReachedError] The organization has crossed the monthly API usage threshold of its API tier.
480
- # @raise [Anthropic::Models::CompactionUnavailableError] The compaction could not be completed for a transient server reason. Retry the
481
- # request.
401
+ # @raise [Anthropic::Models::AvailableToolsLimitExceededError]
402
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
403
+ # @raise [Anthropic::Models::CompactionBlockAmbiguousError]
404
+ # @raise [Anthropic::Models::CompactionBlockMisplacedError]
405
+ # @raise [Anthropic::Models::CompactionContentMismatchError]
406
+ # @raise [Anthropic::Models::CompactionNothingToSummarizeError]
407
+ # @raise [Anthropic::Models::CompactionSignatureInvalidError]
408
+ # @raise [Anthropic::Models::CompactionToolChangesMismatchError]
409
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
410
+ # @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
411
+ # @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
412
+ # @raise [Anthropic::Models::ToolNameConflictError]
413
+ # @raise [Anthropic::Models::ToolReferenceUnresolvedError]
414
+ # @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
415
+ # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
416
+ # @raise [Anthropic::Models::CompactionUnavailableError]
482
417
  #
483
418
  # @return [Anthropic::Models::Beta::BetaMessageTokensCount]
484
419
  #
@@ -22,11 +22,8 @@ module Anthropic
22
22
  #
23
23
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
24
24
  #
25
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
26
- # no longer a member of the organization or of that workspace.
27
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
28
- # organization disabled for any other reason, such as billing, does not get this
29
- # code. `appeal_url`, when present, is where the organization can appeal.
25
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
26
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
30
27
  #
31
28
  # @return [Anthropic::Models::Beta::BetaModelInfo]
32
29
  #
@@ -70,11 +67,8 @@ module Anthropic
70
67
  #
71
68
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
72
69
  #
73
- # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError] The API key belongs to the Claude Code workspace, and the user who created it is
74
- # no longer a member of the organization or of that workspace.
75
- # @raise [Anthropic::Models::OrganizationOnHoldError] Anthropic has disabled the organization for trust and safety reasons. An
76
- # organization disabled for any other reason, such as billing, does not get this
77
- # code. `appeal_url`, when present, is where the organization can appeal.
70
+ # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
71
+ # @raise [Anthropic::Models::OrganizationOnHoldError]
78
72
  #
79
73
  # @return [Anthropic::Internal::Page<Anthropic::Models::Beta::BetaModelInfo>]
80
74
  #
@@ -19,7 +19,7 @@ module Anthropic
19
19
  # {Anthropic::Models::Beta::Organization::Analytics::CostListParams} for more
20
20
  # details.
21
21
  #
22
- # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
22
+ # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
23
23
  #
24
24
  # @param starting_at [Time] Query param: Start of range, inclusive. RFC 3339 tz-aware. Must be within the la
25
25
  #
@@ -57,6 +57,8 @@ module Anthropic
57
57
  #
58
58
  # @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostOrderBy] Query param: Row order. A metric ranks rows by that metric in the `order` direct
59
59
  #
60
+ # @param organization_ids [Array<String>, nil] Query param: Filter a parent organization's report to specific child organizatio
61
+ #
60
62
  # @param page [String, nil] Query param: Opaque cursor from a previous response's `next_page` field.
61
63
  #
62
64
  # @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Query param: Product surfaces to include. Defaults to all products.
@@ -105,6 +107,7 @@ module Anthropic
105
107
  :models,
106
108
  :order,
107
109
  :order_by,
110
+ :organization_ids,
108
111
  :page,
109
112
  :products,
110
113
  :rbac_group_ids,
@@ -140,6 +143,7 @@ module Anthropic
140
143
  models
141
144
  order
142
145
  order_by
146
+ organization_ids
143
147
  page
144
148
  products
145
149
  rbac_group_ids
@@ -20,7 +20,7 @@ module Anthropic
20
20
  # {Anthropic::Models::Beta::Organization::Analytics::UsageListParams} for more
21
21
  # details.
22
22
  #
23
- # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
23
+ # @overload list(starting_at:, actor_ids: nil, actor_types: nil, agent_ids: nil, api_key_ids: nil, claude_tag_categories: nil, claude_tag_user_ids: nil, context_windows: nil, deployment_ids: nil, ending_at: nil, environment_ids: nil, exclude_deleted_users: nil, group_by: nil, inference_geos: nil, limit: nil, models: nil, order: nil, order_by: nil, organization_ids: nil, page: nil, products: nil, rbac_group_ids: nil, service_tiers: nil, session_ids: nil, slack_channel_ids: nil, speeds: nil, time_bucket_width: nil, user_profile_ids: nil, workspace_ids: nil, betas: nil, request_options: {})
24
24
  #
25
25
  # @param starting_at [Time] Query param: Start of range, inclusive. RFC 3339 tz-aware. Must be within the la
26
26
  #
@@ -58,6 +58,8 @@ module Anthropic
58
58
  #
59
59
  # @param order_by [Symbol, Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsUsageOrderBy] Query param: Row order. A metric ranks rows by that metric in the `order` direct
60
60
  #
61
+ # @param organization_ids [Array<String>, nil] Query param: Filter a parent organization's report to specific child organizatio
62
+ #
61
63
  # @param page [String, nil] Query param: Opaque cursor from a previous response's `next_page` field.
62
64
  #
63
65
  # @param products [Array<Symbol, Anthropic::Models::Beta::Organization::BetaAnalyticsUsageCostProductFilter>, nil] Query param: Product surfaces to include. Defaults to all products.
@@ -106,6 +108,7 @@ module Anthropic
106
108
  :models,
107
109
  :order,
108
110
  :order_by,
111
+ :organization_ids,
109
112
  :page,
110
113
  :products,
111
114
  :rbac_group_ids,
@@ -141,6 +144,7 @@ module Anthropic
141
144
  models
142
145
  order
143
146
  order_by
147
+ organization_ids
144
148
  page
145
149
  products
146
150
  rbac_group_ids
@@ -41,8 +41,9 @@ module Anthropic
41
41
  #
42
42
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
43
43
  #
44
- # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError] The organization has reached its limit of active API keys.
45
- # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError] The workspace has reached its limit of active API keys.
44
+ # @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError]
45
+ # @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError]
46
+ # @raise [Anthropic::Models::SandboxEgressRestrictedError]
46
47
  #
47
48
  # @return [Anthropic::Models::Beta::Organization::BetaAPIKey]
48
49
  #
@@ -27,12 +27,10 @@ module Anthropic
27
27
  #
28
28
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
29
29
  #
30
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
31
- # `write:claude_tag` for a change.
32
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
33
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
34
- # anything new.
35
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
30
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
31
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
32
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
33
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
36
34
  #
37
35
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget]
38
36
  #
@@ -74,12 +72,10 @@ module Anthropic
74
72
  #
75
73
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
76
74
  #
77
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
78
- # `write:claude_tag` for a change.
79
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
80
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
81
- # anything new.
82
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
75
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
76
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
77
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
78
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
83
79
  #
84
80
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget]
85
81
  #
@@ -130,12 +126,10 @@ module Anthropic
130
126
  #
131
127
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
132
128
  #
133
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
134
- # `write:claude_tag` for a change.
135
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
136
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
137
- # anything new.
138
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
129
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
130
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
131
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
132
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
139
133
  #
140
134
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget>]
141
135
  #
@@ -181,12 +175,10 @@ module Anthropic
181
175
  #
182
176
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
183
177
  #
184
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
185
- # `write:claude_tag` for a change.
186
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
187
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
188
- # anything new.
189
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
178
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
179
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
180
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
181
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
190
182
  #
191
183
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagDeletedBundleTarget]
192
184
  #
@@ -24,12 +24,10 @@ module Anthropic
24
24
  #
25
25
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
26
26
  #
27
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
28
- # `write:claude_tag` for a change.
29
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
30
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
31
- # anything new.
32
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
27
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
28
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
29
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
30
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
33
31
  #
34
32
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle]
35
33
  #
@@ -69,12 +67,10 @@ module Anthropic
69
67
  #
70
68
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
71
69
  #
72
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
73
- # `write:claude_tag` for a change.
74
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
75
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
76
- # anything new.
77
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
70
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
71
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
72
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
73
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
78
74
  #
79
75
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle>]
80
76
  #
@@ -31,20 +31,14 @@ module Anthropic
31
31
  #
32
32
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
33
33
  #
34
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedError] The request set the channel up, and `settings` was then refused. The channel
35
- # stays set up with every setting unset.
36
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
37
- # `write:claude_tag` for a change.
38
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
39
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
40
- # anything new.
41
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
42
- # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach.
43
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach,
44
- # and the request had set the channel up by then. The channel stays set up with
45
- # every setting unset.
46
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
47
- # removed it. Nothing of `settings` was stored.
34
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedError]
35
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
36
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
37
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
38
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
39
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError]
40
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError]
41
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
48
42
  #
49
43
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
50
44
  #
@@ -92,12 +86,10 @@ module Anthropic
92
86
  #
93
87
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
94
88
  #
95
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
96
- # `write:claude_tag` for a change.
97
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
98
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
99
- # anything new.
100
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
89
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
90
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
91
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
92
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
101
93
  #
102
94
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
103
95
  #
@@ -144,18 +136,13 @@ module Anthropic
144
136
  #
145
137
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
146
138
  #
147
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
148
- # `write:claude_tag` for a change.
149
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
150
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
151
- # anything new.
152
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
153
- # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach.
154
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError] `settings.environment_id` names no Environment within the organization's reach,
155
- # and the request had set the channel up by then. The channel stays set up with
156
- # every setting unset.
157
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
158
- # removed it. Nothing of `settings` was stored.
139
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
140
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
141
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
142
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
143
+ # @raise [Anthropic::Models::Beta::BetaEnvironmentNotFoundError]
144
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundError]
145
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
159
146
  #
160
147
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel]
161
148
  #
@@ -211,12 +198,10 @@ module Anthropic
211
198
  #
212
199
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
213
200
  #
214
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
215
- # `write:claude_tag` for a change.
216
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
217
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
218
- # anything new.
219
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
201
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
202
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
203
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
204
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
220
205
  #
221
206
  # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel>]
222
207
  #
@@ -270,14 +255,11 @@ module Anthropic
270
255
  #
271
256
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
272
257
  #
273
- # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError] The API key lacks the scope the request needs: `read:claude_tag` for a read,
274
- # `write:claude_tag` for a change.
275
- # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError] Changes through the Claude Tag API are not enabled for the organization.
276
- # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError] The organization's compliance configuration does not let Claude Tag store
277
- # anything new.
278
- # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError] The credential is not a scoped API key that is bound at the organization level.
279
- # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError] The request set the channel up, and something else then changed the channel or
280
- # removed it. Nothing of `settings` was stored.
258
+ # @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
259
+ # @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
260
+ # @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
261
+ # @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
262
+ # @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
281
263
  #
282
264
  # @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagDeletedSlackChannel]
283
265
  #