anthropic 2.11.0 → 2.13.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 (382) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/client.rb +3 -0
  5. data/lib/anthropic/error_classes.rb +26 -0
  6. data/lib/anthropic/helpers/bedrock/client.rb +12 -2
  7. data/lib/anthropic/internal/tracing.rb +6 -0
  8. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  9. data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
  10. data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
  11. data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
  12. data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
  13. data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
  14. data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
  15. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
  16. data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
  17. data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
  18. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  19. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
  20. data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
  21. data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
  22. data/lib/anthropic/models/beta/message_create_params.rb +6 -0
  23. data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
  24. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
  25. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
  26. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
  27. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
  28. data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
  29. data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
  30. data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
  31. data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
  32. data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
  33. data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
  34. data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
  35. data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
  36. data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
  37. data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
  38. data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
  39. data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
  40. data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
  41. data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
  42. data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
  43. data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
  44. data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
  45. data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
  46. data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
  47. data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
  48. data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
  49. data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
  50. data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
  51. data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
  52. data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
  53. data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
  54. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
  55. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
  56. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
  57. data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
  58. data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
  59. data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
  60. data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
  61. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
  62. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
  63. data/lib/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rb +21 -0
  64. data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
  65. data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
  66. data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
  67. data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
  68. data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
  69. data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
  70. data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
  71. data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
  72. data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
  73. data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
  74. data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
  75. data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
  76. data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
  77. data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
  78. data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
  79. data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
  80. data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
  81. data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
  82. data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
  83. data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
  84. data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
  85. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
  86. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
  87. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
  88. data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
  89. data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
  90. data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
  91. data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
  92. data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
  93. data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
  94. data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
  95. data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
  96. data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
  97. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
  98. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
  99. data/lib/anthropic/models/beta/organization/workspace_archive_params.rb +15 -1
  100. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
  101. data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
  102. data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
  103. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
  104. data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
  105. data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
  106. data/lib/anthropic/models/error_details.rb +184 -5
  107. data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
  108. data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
  109. data/lib/anthropic/models/model.rb +6 -0
  110. data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
  111. data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
  112. data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
  113. data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
  114. data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
  115. data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
  116. data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
  117. data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
  118. data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
  119. data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
  120. data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
  121. data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
  122. data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
  123. data/lib/anthropic/models.rb +12 -0
  124. data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
  125. data/lib/anthropic/resources/beta/messages.rb +3 -0
  126. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
  127. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
  128. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
  129. data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
  130. data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
  131. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
  132. data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
  133. data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
  134. data/lib/anthropic/resources/beta/organization.rb +4 -0
  135. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
  136. data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
  137. data/lib/anthropic/resources/beta.rb +3 -0
  138. data/lib/anthropic/resources/messages/batches.rb +1 -0
  139. data/lib/anthropic/resources/messages.rb +3 -0
  140. data/lib/anthropic/resources/organization/workspaces.rb +4 -0
  141. data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
  142. data/lib/anthropic/resources/user_profiles.rb +30 -5
  143. data/lib/anthropic/version.rb +1 -1
  144. data/lib/anthropic.rb +85 -0
  145. data/rbi/anthropic/client.rbi +3 -0
  146. data/rbi/anthropic/internal/tracing.rbi +12 -0
  147. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  148. data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
  149. data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
  150. data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
  151. data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
  152. data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
  153. data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
  154. data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
  155. data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -0
  156. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
  157. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
  158. data/rbi/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbi +53 -0
  159. data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
  160. data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
  161. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
  162. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
  163. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
  164. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
  165. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
  166. data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
  167. data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
  168. data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
  169. data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
  170. data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
  171. data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
  172. data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
  173. data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
  174. data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
  175. data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
  176. data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
  177. data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
  178. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
  179. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
  180. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
  181. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
  182. data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
  183. data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
  184. data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
  185. data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
  186. data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
  187. data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
  188. data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
  189. data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
  190. data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
  191. data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
  192. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
  193. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
  194. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
  195. data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
  196. data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
  197. data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
  198. data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
  199. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
  200. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
  201. data/rbi/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbi +31 -0
  202. data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
  203. data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
  204. data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
  205. data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
  206. data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
  207. data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
  208. data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
  209. data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
  210. data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
  211. data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
  212. data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
  213. data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
  214. data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
  215. data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
  216. data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
  217. data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
  218. data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
  219. data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
  220. data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
  221. data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
  222. data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
  223. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
  224. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
  225. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
  226. data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
  227. data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
  228. data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
  229. data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
  230. data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
  231. data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
  232. data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
  233. data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
  234. data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -2
  235. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
  236. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
  237. data/rbi/anthropic/models/beta/organization/workspace_archive_params.rbi +29 -1
  238. data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
  239. data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
  240. data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
  241. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
  242. data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
  243. data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
  244. data/rbi/anthropic/models/error_details.rbi +182 -2
  245. data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
  246. data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
  247. data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
  248. data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
  249. data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
  250. data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
  251. data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
  252. data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
  253. data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
  254. data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
  255. data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
  256. data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
  257. data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
  258. data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
  259. data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
  260. data/rbi/anthropic/models.rbi +16 -0
  261. data/rbi/anthropic/resources/beta/messages.rbi +18 -0
  262. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
  263. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
  264. data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
  265. data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
  266. data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
  267. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
  268. data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
  269. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
  270. data/rbi/anthropic/resources/beta/organization.rbi +5 -0
  271. data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
  272. data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
  273. data/rbi/anthropic/resources/beta.rbi +3 -0
  274. data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
  275. data/rbi/anthropic/resources/user_profiles.rbi +30 -5
  276. data/sig/anthropic/internal/tracing.rbs +6 -0
  277. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  278. data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
  279. data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
  280. data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
  281. data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
  282. data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
  283. data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
  284. data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
  285. data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
  286. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
  287. data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
  288. data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
  289. data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
  290. data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
  291. data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
  292. data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
  293. data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
  294. data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
  295. data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
  296. data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
  297. data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
  298. data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
  299. data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
  300. data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
  301. data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
  302. data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
  303. data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
  304. data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
  305. data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
  306. data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
  307. data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
  308. data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
  309. data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
  310. data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
  311. data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
  312. data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
  313. data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
  314. data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
  315. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
  316. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
  317. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
  318. data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
  319. data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
  320. data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
  321. data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
  322. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
  323. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
  324. data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
  325. data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
  326. data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
  327. data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
  328. data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
  329. data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
  330. data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
  331. data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
  332. data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
  333. data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
  334. data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
  335. data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
  336. data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
  337. data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
  338. data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
  339. data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
  340. data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
  341. data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
  342. data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
  343. data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
  344. data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
  345. data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
  346. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
  347. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
  348. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
  349. data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
  350. data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
  351. data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
  352. data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
  353. data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
  354. data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
  355. data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
  356. data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
  357. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
  358. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
  359. data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
  360. data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
  361. data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
  362. data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
  363. data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
  364. data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
  365. data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
  366. data/sig/anthropic/models/error_details.rbs +188 -1
  367. data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
  368. data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
  369. data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
  370. data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
  371. data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
  372. data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
  373. data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
  374. data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
  375. data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
  376. data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
  377. data/sig/anthropic/models.rbs +12 -0
  378. data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
  379. data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
  380. data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
  381. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  382. metadata +257 -2
@@ -0,0 +1,53 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ BetaWebhookExternalStorageFailedEventData =
6
+ Beta::BetaWebhookExternalStorageFailedEventData
7
+
8
+ module Beta
9
+ class BetaWebhookExternalStorageFailedEventData < Anthropic::Internal::Type::BaseModel
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Anthropic::Beta::BetaWebhookExternalStorageFailedEventData,
14
+ Anthropic::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
19
+ # or passes it again.
20
+ sig { returns(String) }
21
+ attr_accessor :id
22
+
23
+ sig { returns(String) }
24
+ attr_accessor :organization_id
25
+
26
+ sig { returns(Symbol) }
27
+ attr_accessor :type
28
+
29
+ sig do
30
+ params(id: String, organization_id: String, type: Symbol).returns(
31
+ T.attached_class
32
+ )
33
+ end
34
+ def self.new(
35
+ # ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
36
+ # or passes it again.
37
+ id:,
38
+ organization_id:,
39
+ type: :"external_storage.failed"
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ { id: String, organization_id: String, type: Symbol }
46
+ )
47
+ end
48
+ def to_hash
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,53 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ BetaWebhookExternalStorageRecoveredEventData =
6
+ Beta::BetaWebhookExternalStorageRecoveredEventData
7
+
8
+ module Beta
9
+ class BetaWebhookExternalStorageRecoveredEventData < Anthropic::Internal::Type::BaseModel
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Anthropic::Beta::BetaWebhookExternalStorageRecoveredEventData,
14
+ Anthropic::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
19
+ # or passes it again.
20
+ sig { returns(String) }
21
+ attr_accessor :id
22
+
23
+ sig { returns(String) }
24
+ attr_accessor :organization_id
25
+
26
+ sig { returns(Symbol) }
27
+ attr_accessor :type
28
+
29
+ sig do
30
+ params(id: String, organization_id: String, type: Symbol).returns(
31
+ T.attached_class
32
+ )
33
+ end
34
+ def self.new(
35
+ # ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
36
+ # or passes it again.
37
+ id:,
38
+ organization_id:,
39
+ type: :"external_storage.recovered"
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ { id: String, organization_id: String, type: Symbol }
46
+ )
47
+ end
48
+ def to_hash
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -126,6 +126,12 @@ module Anthropic
126
126
  # to the profile, or has not allowed your organization to bill it, the request is
127
127
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
128
128
  # (the default), to be billed as usual.
129
+ #
130
+ # Message Batches does not currently support billing the customer behind a user
131
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
132
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
133
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
134
+ # run as usual.
129
135
  sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
130
136
  attr_reader :billing_policy
131
137
 
@@ -866,6 +872,12 @@ module Anthropic
866
872
  # to the profile, or has not allowed your organization to bill it, the request is
867
873
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
868
874
  # (the default), to be billed as usual.
875
+ #
876
+ # Message Batches does not currently support billing the customer behind a user
877
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
878
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
879
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
880
+ # run as usual.
869
881
  billing_policy: nil,
870
882
  # Top-level cache control automatically applies a cache_control marker to the last
871
883
  # cacheable block in the request.
@@ -307,6 +307,12 @@ module Anthropic
307
307
  # to the profile, or has not allowed your organization to bill it, the request is
308
308
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
309
309
  # (the default), to be billed as usual.
310
+ #
311
+ # Message Batches does not currently support billing the customer behind a user
312
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
313
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
314
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
315
+ # run as usual.
310
316
  sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
311
317
  attr_reader :billing_policy
312
318
 
@@ -1054,6 +1060,12 @@ module Anthropic
1054
1060
  # to the profile, or has not allowed your organization to bill it, the request is
1055
1061
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1056
1062
  # (the default), to be billed as usual.
1063
+ #
1064
+ # Message Batches does not currently support billing the customer behind a user
1065
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
1066
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
1067
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
1068
+ # run as usual.
1057
1069
  billing_policy: nil,
1058
1070
  # Top-level cache control automatically applies a cache_control marker to the last
1059
1071
  # cacheable block in the request.
@@ -160,8 +160,7 @@ module Anthropic
160
160
  attr_accessor :rbac_group_id
161
161
 
162
162
  # Service tier the usage was served at. Populated only when `service_tier` is in
163
- # `group_by[]`; null for usage with no service tier (for example, code execution)
164
- # and for Claude Enterprise usage.
163
+ # `group_by[]`; null for usage with no service tier (for example, code execution).
165
164
  sig do
166
165
  returns(
167
166
  T.nilable(
@@ -206,13 +205,14 @@ module Anthropic
206
205
 
207
206
  # User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
208
207
  # only when `user_profile_id` is in `group_by[]`; null for usage that named no
209
- # profile and for Claude Enterprise usage.
208
+ # profile.
210
209
  sig { returns(T.nilable(String)) }
211
210
  attr_accessor :user_profile_id
212
211
 
213
- # Workspace the usage occurred in, as a tagged workspace ID, including the
214
- # organization's default workspace. Populated only when `workspace_id` is in
215
- # `group_by[]`; null for Claude Enterprise usage.
212
+ # Workspace the usage occurred in, as a tagged workspace ID, including a Claude
213
+ # Platform organization's default workspace. Populated only when `workspace_id` is
214
+ # in `group_by[]`; null for usage in a Claude Enterprise organization's default
215
+ # workspace, which is its only workspace.
216
216
  sig { returns(T.nilable(String)) }
217
217
  attr_accessor :workspace_id
218
218
 
@@ -357,8 +357,7 @@ module Anthropic
357
357
  # query without `group_by[]`.
358
358
  rbac_group_id:,
359
359
  # Service tier the usage was served at. Populated only when `service_tier` is in
360
- # `group_by[]`; null for usage with no service tier (for example, code execution)
361
- # and for Claude Enterprise usage.
360
+ # `group_by[]`; null for usage with no service tier (for example, code execution).
362
361
  service_tier:,
363
362
  # Claude Managed Agents session that incurred the usage. Populated only when
364
363
  # `session_id` is in `group_by[]`; null for usage outside a managed session.
@@ -375,11 +374,12 @@ module Anthropic
375
374
  token_type:,
376
375
  # User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
377
376
  # only when `user_profile_id` is in `group_by[]`; null for usage that named no
378
- # profile and for Claude Enterprise usage.
377
+ # profile.
379
378
  user_profile_id:,
380
- # Workspace the usage occurred in, as a tagged workspace ID, including the
381
- # organization's default workspace. Populated only when `workspace_id` is in
382
- # `group_by[]`; null for Claude Enterprise usage.
379
+ # Workspace the usage occurred in, as a tagged workspace ID, including a Claude
380
+ # Platform organization's default workspace. Populated only when `workspace_id` is
381
+ # in `group_by[]`; null for usage in a Claude Enterprise organization's default
382
+ # workspace, which is its only workspace.
383
383
  workspace_id:
384
384
  )
385
385
  end
@@ -150,8 +150,7 @@ module Anthropic
150
150
  attr_accessor :rbac_group_id
151
151
 
152
152
  # Service tier the usage was served at. Populated only when `service_tier` is in
153
- # `group_by[]`; null for usage with no service tier (for example, code execution)
154
- # and for Claude Enterprise usage.
153
+ # `group_by[]`; null for usage with no service tier (for example, code execution).
155
154
  sig do
156
155
  returns(
157
156
  T.nilable(
@@ -186,13 +185,14 @@ module Anthropic
186
185
 
187
186
  # User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
188
187
  # only when `user_profile_id` is in `group_by[]`; null for usage that named no
189
- # profile and for Claude Enterprise usage.
188
+ # profile.
190
189
  sig { returns(T.nilable(String)) }
191
190
  attr_accessor :user_profile_id
192
191
 
193
- # Workspace the usage occurred in, as a tagged workspace ID, including the
194
- # organization's default workspace. Populated only when `workspace_id` is in
195
- # `group_by[]`; null for Claude Enterprise usage.
192
+ # Workspace the usage occurred in, as a tagged workspace ID, including a Claude
193
+ # Platform organization's default workspace. Populated only when `workspace_id` is
194
+ # in `group_by[]`; null for usage in a Claude Enterprise organization's default
195
+ # workspace, which is its only workspace.
196
196
  sig { returns(T.nilable(String)) }
197
197
  attr_accessor :workspace_id
198
198
 
@@ -327,8 +327,7 @@ module Anthropic
327
327
  # query without `group_by[]`.
328
328
  rbac_group_id:,
329
329
  # Service tier the usage was served at. Populated only when `service_tier` is in
330
- # `group_by[]`; null for usage with no service tier (for example, code execution)
331
- # and for Claude Enterprise usage.
330
+ # `group_by[]`; null for usage with no service tier (for example, code execution).
332
331
  service_tier:,
333
332
  # Claude Managed Agents session that incurred the usage. Populated only when
334
333
  # `session_id` is in `group_by[]`; null for usage outside a managed session.
@@ -343,11 +342,12 @@ module Anthropic
343
342
  speed:,
344
343
  # User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
345
344
  # only when `user_profile_id` is in `group_by[]`; null for usage that named no
346
- # profile and for Claude Enterprise usage.
345
+ # profile.
347
346
  user_profile_id:,
348
- # Workspace the usage occurred in, as a tagged workspace ID, including the
349
- # organization's default workspace. Populated only when `workspace_id` is in
350
- # `group_by[]`; null for Claude Enterprise usage.
347
+ # Workspace the usage occurred in, as a tagged workspace ID, including a Claude
348
+ # Platform organization's default workspace. Populated only when `workspace_id` is
349
+ # in `group_by[]`; null for usage in a Claude Enterprise organization's default
350
+ # workspace, which is its only workspace.
351
351
  workspace_id:
352
352
  )
353
353
  end
@@ -45,8 +45,7 @@ module Anthropic
45
45
  attr_accessor :actor_types
46
46
 
47
47
  # Filter to usage incurred by sessions of specific Claude Managed Agents agents.
48
- # Use `group_by[]=agent_id` to break out per-agent values. Claude Platform
49
- # organizations only.
48
+ # Use `group_by[]=agent_id` to break out per-agent values.
50
49
  sig { returns(T.nilable(T::Array[String])) }
51
50
  attr_accessor :agent_ids
52
51
 
@@ -54,7 +53,7 @@ module Anthropic
54
53
  # (`apikey_...`), whichever identity the usage is attributed to. Include an empty
55
54
  # entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
56
55
  # `group_by[]=api_key_id` to break out per-key values; usage without a key has a
57
- # null `api_key_id`. Claude Platform organizations only.
56
+ # null `api_key_id`.
58
57
  sig { returns(T.nilable(T::Array[String])) }
59
58
  attr_accessor :api_key_ids
60
59
 
@@ -94,7 +93,7 @@ module Anthropic
94
93
 
95
94
  # Filter to usage incurred by Claude Managed Agents sessions that specific
96
95
  # deployments started. Use `group_by[]=deployment_id` to break out per-deployment
97
- # values. Claude Platform organizations only.
96
+ # values.
98
97
  sig { returns(T.nilable(T::Array[String])) }
99
98
  attr_accessor :deployment_ids
100
99
 
@@ -106,7 +105,7 @@ module Anthropic
106
105
 
107
106
  # Filter to usage incurred by Claude Managed Agents sessions that ran in specific
108
107
  # environments. Use `group_by[]=environment_id` to break out per-environment
109
- # values. Claude Platform organizations only.
108
+ # values.
110
109
  sig { returns(T.nilable(T::Array[String])) }
111
110
  attr_accessor :environment_ids
112
111
 
@@ -211,8 +210,10 @@ module Anthropic
211
210
 
212
211
  # Filter a parent organization's report to specific child organizations, by
213
212
  # organization UUID or `org_` ID; an ID that is not one of its child organizations
214
- # matches nothing. Requires an API key created at the parent organization level.
215
- # Use `group_by[]=organization_id` to break out per-organization values.
213
+ # matches nothing. The report leaves out child organizations with HIPAA readiness
214
+ # enabled, and naming one returns a 400 error. Requires an API key created at the
215
+ # parent organization level. Use `group_by[]=organization_id` to break out
216
+ # per-organization values.
216
217
  sig { returns(T.nilable(T::Array[String])) }
217
218
  attr_accessor :organization_ids
218
219
 
@@ -240,8 +241,7 @@ module Anthropic
240
241
  attr_accessor :rbac_group_ids
241
242
 
242
243
  # Filter to specific service tiers. Use `group_by[]=service_tier` to break out
243
- # per-tier values. Claude Platform organizations only; matches nothing for a
244
- # Claude Enterprise organization.
244
+ # per-tier values.
245
245
  sig do
246
246
  returns(
247
247
  T.nilable(
@@ -255,7 +255,7 @@ module Anthropic
255
255
 
256
256
  # Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
257
257
  # session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
258
- # values. Claude Platform organizations only.
258
+ # values.
259
259
  sig { returns(T.nilable(T::Array[String])) }
260
260
  attr_accessor :session_ids
261
261
 
@@ -295,13 +295,11 @@ module Anthropic
295
295
 
296
296
  # Filter to usage attributed to specific user profiles, by tagged user profile ID
297
297
  # (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
298
- # Claude Platform organizations only.
299
298
  sig { returns(T.nilable(T::Array[String])) }
300
299
  attr_accessor :user_profile_ids
301
300
 
302
301
  # Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
303
- # Use `group_by[]=workspace_id` to break out per-workspace values. Claude Platform
304
- # organizations only; matches nothing for a Claude Enterprise organization.
302
+ # Use `group_by[]=workspace_id` to break out per-workspace values.
305
303
  sig { returns(T.nilable(T::Array[String])) }
306
304
  attr_accessor :workspace_ids
307
305
 
@@ -420,14 +418,13 @@ module Anthropic
420
418
  # `group_by[]=actor_type` to break out per-kind values.
421
419
  actor_types: nil,
422
420
  # Filter to usage incurred by sessions of specific Claude Managed Agents agents.
423
- # Use `group_by[]=agent_id` to break out per-agent values. Claude Platform
424
- # organizations only.
421
+ # Use `group_by[]=agent_id` to break out per-agent values.
425
422
  agent_ids: nil,
426
423
  # Filter to usage authenticated by specific API keys, by tagged API key ID
427
424
  # (`apikey_...`), whichever identity the usage is attributed to. Include an empty
428
425
  # entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
429
426
  # `group_by[]=api_key_id` to break out per-key values; usage without a key has a
430
- # null `api_key_id`. Claude Platform organizations only.
427
+ # null `api_key_id`.
431
428
  api_key_ids: nil,
432
429
  # Filter to Claude Tag (Claude in Slack) usage in specific spend categories. Usage
433
430
  # with no category never matches. Use `group_by[]=claude_tag_category` to break
@@ -443,7 +440,7 @@ module Anthropic
443
440
  context_windows: nil,
444
441
  # Filter to usage incurred by Claude Managed Agents sessions that specific
445
442
  # deployments started. Use `group_by[]=deployment_id` to break out per-deployment
446
- # values. Claude Platform organizations only.
443
+ # values.
447
444
  deployment_ids: nil,
448
445
  # End of range, exclusive. Required when `time_bucket_width` is set. Without
449
446
  # `time_bucket_width`, defaults to the earlier of now and `starting_at` + 31 days.
@@ -451,7 +448,7 @@ module Anthropic
451
448
  ending_at: nil,
452
449
  # Filter to usage incurred by Claude Managed Agents sessions that ran in specific
453
450
  # environments. Use `group_by[]=environment_id` to break out per-environment
454
- # values. Claude Platform organizations only.
451
+ # values.
455
452
  environment_ids: nil,
456
453
  # If true, omit rows whose `actor` is a `user_actor` with `deleted: true`.
457
454
  # Requires `group_by[]=actor`. Rows for other actor types, and rows whose `actor`
@@ -490,8 +487,10 @@ module Anthropic
490
487
  order_by: nil,
491
488
  # Filter a parent organization's report to specific child organizations, by
492
489
  # organization UUID or `org_` ID; an ID that is not one of its child organizations
493
- # matches nothing. Requires an API key created at the parent organization level.
494
- # Use `group_by[]=organization_id` to break out per-organization values.
490
+ # matches nothing. The report leaves out child organizations with HIPAA readiness
491
+ # enabled, and naming one returns a 400 error. Requires an API key created at the
492
+ # parent organization level. Use `group_by[]=organization_id` to break out
493
+ # per-organization values.
495
494
  organization_ids: nil,
496
495
  # Opaque cursor from a previous response's `next_page` field.
497
496
  page: nil,
@@ -503,12 +502,11 @@ module Anthropic
503
502
  # group attribution never matches.
504
503
  rbac_group_ids: nil,
505
504
  # Filter to specific service tiers. Use `group_by[]=service_tier` to break out
506
- # per-tier values. Claude Platform organizations only; matches nothing for a
507
- # Claude Enterprise organization.
505
+ # per-tier values.
508
506
  service_tiers: nil,
509
507
  # Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
510
508
  # session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
511
- # values. Claude Platform organizations only.
509
+ # values.
512
510
  session_ids: nil,
513
511
  # Filter to usage originating from specific Slack channels. Use
514
512
  # `group_by[]=slack_channel_id` to break out per-channel values.
@@ -526,11 +524,9 @@ module Anthropic
526
524
  time_bucket_width: nil,
527
525
  # Filter to usage attributed to specific user profiles, by tagged user profile ID
528
526
  # (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
529
- # Claude Platform organizations only.
530
527
  user_profile_ids: nil,
531
528
  # Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
532
- # Use `group_by[]=workspace_id` to break out per-workspace values. Claude Platform
533
- # organizations only; matches nothing for a Claude Enterprise organization.
529
+ # Use `group_by[]=workspace_id` to break out per-workspace values.
534
530
  workspace_ids: nil,
535
531
  # This endpoint is in beta: requests must send `analytics-usage-cost-2026-08-24`
536
532
  # in this header.
@@ -45,8 +45,7 @@ module Anthropic
45
45
  attr_accessor :actor_types
46
46
 
47
47
  # Filter to usage incurred by sessions of specific Claude Managed Agents agents.
48
- # Use `group_by[]=agent_id` to break out per-agent values. Claude Platform
49
- # organizations only.
48
+ # Use `group_by[]=agent_id` to break out per-agent values.
50
49
  sig { returns(T.nilable(T::Array[String])) }
51
50
  attr_accessor :agent_ids
52
51
 
@@ -54,7 +53,7 @@ module Anthropic
54
53
  # (`apikey_...`), whichever identity the usage is attributed to. Include an empty
55
54
  # entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
56
55
  # `group_by[]=api_key_id` to break out per-key values; usage without a key has a
57
- # null `api_key_id`. Claude Platform organizations only.
56
+ # null `api_key_id`.
58
57
  sig { returns(T.nilable(T::Array[String])) }
59
58
  attr_accessor :api_key_ids
60
59
 
@@ -94,7 +93,7 @@ module Anthropic
94
93
 
95
94
  # Filter to usage incurred by Claude Managed Agents sessions that specific
96
95
  # deployments started. Use `group_by[]=deployment_id` to break out per-deployment
97
- # values. Claude Platform organizations only.
96
+ # values.
98
97
  sig { returns(T.nilable(T::Array[String])) }
99
98
  attr_accessor :deployment_ids
100
99
 
@@ -106,7 +105,7 @@ module Anthropic
106
105
 
107
106
  # Filter to usage incurred by Claude Managed Agents sessions that ran in specific
108
107
  # environments. Use `group_by[]=environment_id` to break out per-environment
109
- # values. Claude Platform organizations only.
108
+ # values.
110
109
  sig { returns(T.nilable(T::Array[String])) }
111
110
  attr_accessor :environment_ids
112
111
 
@@ -205,8 +204,10 @@ module Anthropic
205
204
 
206
205
  # Filter a parent organization's report to specific child organizations, by
207
206
  # organization UUID or `org_` ID; an ID that is not one of its child organizations
208
- # matches nothing. Requires an API key created at the parent organization level.
209
- # Use `group_by[]=organization_id` to break out per-organization values.
207
+ # matches nothing. The report leaves out child organizations with HIPAA readiness
208
+ # enabled, and naming one returns a 400 error. Requires an API key created at the
209
+ # parent organization level. Use `group_by[]=organization_id` to break out
210
+ # per-organization values.
210
211
  sig { returns(T.nilable(T::Array[String])) }
211
212
  attr_accessor :organization_ids
212
213
 
@@ -234,8 +235,7 @@ module Anthropic
234
235
  attr_accessor :rbac_group_ids
235
236
 
236
237
  # Filter to specific service tiers. Use `group_by[]=service_tier` to break out
237
- # per-tier values. Claude Platform organizations only; matches nothing for a
238
- # Claude Enterprise organization.
238
+ # per-tier values.
239
239
  sig do
240
240
  returns(
241
241
  T.nilable(
@@ -249,7 +249,7 @@ module Anthropic
249
249
 
250
250
  # Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
251
251
  # session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
252
- # values. Claude Platform organizations only.
252
+ # values.
253
253
  sig { returns(T.nilable(T::Array[String])) }
254
254
  attr_accessor :session_ids
255
255
 
@@ -289,13 +289,11 @@ module Anthropic
289
289
 
290
290
  # Filter to usage attributed to specific user profiles, by tagged user profile ID
291
291
  # (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
292
- # Claude Platform organizations only.
293
292
  sig { returns(T.nilable(T::Array[String])) }
294
293
  attr_accessor :user_profile_ids
295
294
 
296
295
  # Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
297
- # Use `group_by[]=workspace_id` to break out per-workspace values. Claude Platform
298
- # organizations only; matches nothing for a Claude Enterprise organization.
296
+ # Use `group_by[]=workspace_id` to break out per-workspace values.
299
297
  sig { returns(T.nilable(T::Array[String])) }
300
298
  attr_accessor :workspace_ids
301
299
 
@@ -414,14 +412,13 @@ module Anthropic
414
412
  # `group_by[]=actor_type` to break out per-kind values.
415
413
  actor_types: nil,
416
414
  # Filter to usage incurred by sessions of specific Claude Managed Agents agents.
417
- # Use `group_by[]=agent_id` to break out per-agent values. Claude Platform
418
- # organizations only.
415
+ # Use `group_by[]=agent_id` to break out per-agent values.
419
416
  agent_ids: nil,
420
417
  # Filter to usage authenticated by specific API keys, by tagged API key ID
421
418
  # (`apikey_...`), whichever identity the usage is attributed to. Include an empty
422
419
  # entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
423
420
  # `group_by[]=api_key_id` to break out per-key values; usage without a key has a
424
- # null `api_key_id`. Claude Platform organizations only.
421
+ # null `api_key_id`.
425
422
  api_key_ids: nil,
426
423
  # Filter to Claude Tag (Claude in Slack) usage in specific spend categories. Usage
427
424
  # with no category never matches. Use `group_by[]=claude_tag_category` to break
@@ -437,7 +434,7 @@ module Anthropic
437
434
  context_windows: nil,
438
435
  # Filter to usage incurred by Claude Managed Agents sessions that specific
439
436
  # deployments started. Use `group_by[]=deployment_id` to break out per-deployment
440
- # values. Claude Platform organizations only.
437
+ # values.
441
438
  deployment_ids: nil,
442
439
  # End of range, exclusive. Required when `time_bucket_width` is set. Without
443
440
  # `time_bucket_width`, defaults to the earlier of now and `starting_at` + 31 days.
@@ -445,7 +442,7 @@ module Anthropic
445
442
  ending_at: nil,
446
443
  # Filter to usage incurred by Claude Managed Agents sessions that ran in specific
447
444
  # environments. Use `group_by[]=environment_id` to break out per-environment
448
- # values. Claude Platform organizations only.
445
+ # values.
449
446
  environment_ids: nil,
450
447
  # If true, omit rows whose `actor` is a `user_actor` with `deleted: true`.
451
448
  # Requires `group_by[]=actor`. Rows for other actor types, and rows whose `actor`
@@ -478,8 +475,10 @@ module Anthropic
478
475
  order_by: nil,
479
476
  # Filter a parent organization's report to specific child organizations, by
480
477
  # organization UUID or `org_` ID; an ID that is not one of its child organizations
481
- # matches nothing. Requires an API key created at the parent organization level.
482
- # Use `group_by[]=organization_id` to break out per-organization values.
478
+ # matches nothing. The report leaves out child organizations with HIPAA readiness
479
+ # enabled, and naming one returns a 400 error. Requires an API key created at the
480
+ # parent organization level. Use `group_by[]=organization_id` to break out
481
+ # per-organization values.
483
482
  organization_ids: nil,
484
483
  # Opaque cursor from a previous response's `next_page` field.
485
484
  page: nil,
@@ -491,12 +490,11 @@ module Anthropic
491
490
  # group attribution never matches.
492
491
  rbac_group_ids: nil,
493
492
  # Filter to specific service tiers. Use `group_by[]=service_tier` to break out
494
- # per-tier values. Claude Platform organizations only; matches nothing for a
495
- # Claude Enterprise organization.
493
+ # per-tier values.
496
494
  service_tiers: nil,
497
495
  # Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
498
496
  # session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
499
- # values. Claude Platform organizations only.
497
+ # values.
500
498
  session_ids: nil,
501
499
  # Filter to usage originating from specific Slack channels. Use
502
500
  # `group_by[]=slack_channel_id` to break out per-channel values.
@@ -514,11 +512,9 @@ module Anthropic
514
512
  time_bucket_width: nil,
515
513
  # Filter to usage attributed to specific user profiles, by tagged user profile ID
516
514
  # (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
517
- # Claude Platform organizations only.
518
515
  user_profile_ids: nil,
519
516
  # Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
520
- # Use `group_by[]=workspace_id` to break out per-workspace values. Claude Platform
521
- # organizations only; matches nothing for a Claude Enterprise organization.
517
+ # Use `group_by[]=workspace_id` to break out per-workspace values.
522
518
  workspace_ids: nil,
523
519
  # This endpoint is in beta: requests must send `analytics-usage-cost-2026-08-24`
524
520
  # in this header.