anthropic 2.12.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 (360) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/client.rb +3 -0
  5. data/lib/anthropic/error_classes.rb +25 -0
  6. data/lib/anthropic/internal/tracing.rb +6 -0
  7. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  8. data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
  9. data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
  10. data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
  11. data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
  12. data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
  13. data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
  14. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
  15. data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
  16. data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
  17. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  18. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
  19. data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
  20. data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
  21. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
  22. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
  23. data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
  24. data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
  25. data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
  26. data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
  27. data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
  28. data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
  29. data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
  30. data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
  31. data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
  32. data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
  33. data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
  34. data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
  35. data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
  36. data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
  37. data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
  38. data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
  39. data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
  40. data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
  41. data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
  42. data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
  43. data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
  44. data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
  45. data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
  46. data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
  47. data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
  48. data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
  49. data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
  50. data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
  51. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
  52. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
  53. data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
  54. data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
  55. data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
  56. data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
  57. data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
  58. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
  59. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
  60. data/lib/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rb +21 -0
  61. data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
  62. data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
  63. data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
  64. data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
  65. data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
  66. data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
  67. data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
  68. data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
  69. data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
  70. data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
  71. data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
  72. data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
  73. data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
  74. data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
  75. data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
  76. data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
  77. data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
  78. data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
  79. data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
  80. data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
  81. data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
  82. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
  83. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
  84. data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
  85. data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
  86. data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
  87. data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
  88. data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
  89. data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
  90. data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
  91. data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
  92. data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
  93. data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
  94. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
  95. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
  96. data/lib/anthropic/models/beta/organization/workspace_archive_params.rb +15 -1
  97. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
  98. data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
  99. data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
  100. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
  101. data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
  102. data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
  103. data/lib/anthropic/models/error_details.rb +172 -3
  104. data/lib/anthropic/models/model.rb +6 -0
  105. data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
  106. data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
  107. data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
  108. data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
  109. data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
  110. data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
  111. data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
  112. data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
  113. data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
  114. data/lib/anthropic/models.rb +8 -0
  115. data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
  116. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
  117. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
  118. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
  119. data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
  120. data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
  121. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
  122. data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
  123. data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
  124. data/lib/anthropic/resources/beta/organization.rb +4 -0
  125. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
  126. data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
  127. data/lib/anthropic/resources/beta.rb +3 -0
  128. data/lib/anthropic/resources/messages/batches.rb +1 -0
  129. data/lib/anthropic/resources/organization/workspaces.rb +4 -0
  130. data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
  131. data/lib/anthropic/resources/user_profiles.rb +30 -5
  132. data/lib/anthropic/version.rb +1 -1
  133. data/lib/anthropic.rb +83 -0
  134. data/rbi/anthropic/client.rbi +3 -0
  135. data/rbi/anthropic/internal/tracing.rbi +12 -0
  136. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  137. data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
  138. data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
  139. data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
  140. data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
  141. data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
  142. data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
  143. data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
  144. data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -0
  145. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
  146. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
  147. data/rbi/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbi +53 -0
  148. data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
  149. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
  150. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
  151. data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
  152. data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
  153. data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
  154. data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
  155. data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
  156. data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
  157. data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
  158. data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
  159. data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
  160. data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
  161. data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
  162. data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
  163. data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
  164. data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
  165. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
  166. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
  167. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
  168. data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
  169. data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
  170. data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
  171. data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
  172. data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
  173. data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
  174. data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
  175. data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
  176. data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
  177. data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
  178. data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
  179. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
  180. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
  181. data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
  182. data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
  183. data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
  184. data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
  185. data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
  186. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
  187. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
  188. data/rbi/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbi +31 -0
  189. data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
  190. data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
  191. data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
  192. data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
  193. data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
  194. data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
  195. data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
  196. data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
  197. data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
  198. data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
  199. data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
  200. data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
  201. data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
  202. data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
  203. data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
  204. data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
  205. data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
  206. data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
  207. data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
  208. data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
  209. data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
  210. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
  211. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
  212. data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
  213. data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
  214. data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
  215. data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
  216. data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
  217. data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
  218. data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
  219. data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
  220. data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
  221. data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -2
  222. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
  223. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
  224. data/rbi/anthropic/models/beta/organization/workspace_archive_params.rbi +29 -1
  225. data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
  226. data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
  227. data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
  228. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
  229. data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
  230. data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
  231. data/rbi/anthropic/models/error_details.rbi +167 -2
  232. data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
  233. data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
  234. data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
  235. data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
  236. data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
  237. data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
  238. data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
  239. data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
  240. data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
  241. data/rbi/anthropic/models.rbi +11 -0
  242. data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
  243. data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
  244. data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
  245. data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
  246. data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
  247. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
  248. data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
  249. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
  250. data/rbi/anthropic/resources/beta/organization.rbi +5 -0
  251. data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
  252. data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
  253. data/rbi/anthropic/resources/beta.rbi +3 -0
  254. data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
  255. data/rbi/anthropic/resources/user_profiles.rbi +30 -5
  256. data/sig/anthropic/internal/tracing.rbs +6 -0
  257. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  258. data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
  259. data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
  260. data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
  261. data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
  262. data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
  263. data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
  264. data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
  265. data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
  266. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
  267. data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
  268. data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
  269. data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
  270. data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
  271. data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
  272. data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
  273. data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
  274. data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
  275. data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
  276. data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
  277. data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
  278. data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
  279. data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
  280. data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
  281. data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
  282. data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
  283. data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
  284. data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
  285. data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
  286. data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
  287. data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
  288. data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
  289. data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
  290. data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
  291. data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
  292. data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
  293. data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
  294. data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
  295. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
  296. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
  297. data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
  298. data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
  299. data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
  300. data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
  301. data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
  302. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
  303. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
  304. data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
  305. data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
  306. data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
  307. data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
  308. data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
  309. data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
  310. data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
  311. data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
  312. data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
  313. data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
  314. data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
  315. data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
  316. data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
  317. data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
  318. data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
  319. data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
  320. data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
  321. data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
  322. data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
  323. data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
  324. data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
  325. data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
  326. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
  327. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
  328. data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
  329. data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
  330. data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
  331. data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
  332. data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
  333. data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
  334. data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
  335. data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
  336. data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
  337. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
  338. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
  339. data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
  340. data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
  341. data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
  342. data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
  343. data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
  344. data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
  345. data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
  346. data/sig/anthropic/models/error_details.rbs +177 -1
  347. data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
  348. data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
  349. data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
  350. data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
  351. data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
  352. data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
  353. data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
  354. data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
  355. data/sig/anthropic/models.rbs +8 -0
  356. data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
  357. data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
  358. data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
  359. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  360. metadata +251 -2
@@ -5,7 +5,11 @@ module Anthropic
5
5
  class Beta
6
6
  class UserProfiles
7
7
  class ActionURLs
8
- # Create Action URL
8
+ # Create a link that sends the profile's end customer to the Verification Portal.
9
+ #
10
+ # See
11
+ # [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
12
+ # for when to create the link and what the end customer sees.
9
13
  #
10
14
  # Some parameter documentations has been truncated, see
11
15
  # {Anthropic::Models::Beta::UserProfiles::ActionURLCreateParams} for more details.
@@ -3,11 +3,19 @@
3
3
  module Anthropic
4
4
  module Resources
5
5
  class Beta
6
+ # Register the end customers that your platform serves, so each request can name
7
+ # who it's for. To get started, see the
8
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
6
9
  class UserProfiles
7
10
  # @return [Anthropic::Resources::Beta::UserProfiles::ActionURLs]
8
11
  attr_reader :action_urls
9
12
 
10
- # Create User Profile
13
+ # Register one of your end customers and get the ID to send on the requests you
14
+ # make for them.
15
+ #
16
+ # See the
17
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#create-a-profile-for-each-end-customer)
18
+ # for what to send.
11
19
  #
12
20
  # Some parameter documentations has been truncated, see
13
21
  # {Anthropic::Models::Beta::UserProfileCreateParams} for more details.
@@ -52,7 +60,11 @@ module Anthropic
52
60
  )
53
61
  end
54
62
 
55
- # Get User Profile
63
+ # Get a user profile by ID to check the details stored for it.
64
+ #
65
+ # See the
66
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
67
+ # for how to set up and manage profiles.
56
68
  #
57
69
  # Some parameter documentations has been truncated, see
58
70
  # {Anthropic::Models::Beta::UserProfileRetrieveParams} for more details.
@@ -85,7 +97,12 @@ module Anthropic
85
97
  )
86
98
  end
87
99
 
88
- # Update User Profile
100
+ # Change the details of a user profile, leaving the fields that you don't send as
101
+ # they are.
102
+ #
103
+ # See the
104
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#update-a-profile)
105
+ # for how each field is updated.
89
106
  #
90
107
  # Some parameter documentations has been truncated, see
91
108
  # {Anthropic::Models::Beta::UserProfileUpdateParams} for more details.
@@ -132,7 +149,11 @@ module Anthropic
132
149
  )
133
150
  end
134
151
 
135
- # List User Profiles
152
+ # List the user profiles in your organization, newest first by default.
153
+ #
154
+ # See the
155
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
156
+ # for how to set up and manage profiles.
136
157
  #
137
158
  # Some parameter documentations has been truncated, see
138
159
  # {Anthropic::Models::Beta::UserProfileListParams} for more details.
@@ -178,7 +199,11 @@ module Anthropic
178
199
  )
179
200
  end
180
201
 
181
- # Delete User Profile
202
+ # Delete a user profile, for example when the end customer closes their account.
203
+ #
204
+ # Stop sending the profile's ID first. See the
205
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#delete-a-profile)
206
+ # for what happens after a delete.
182
207
  #
183
208
  # Some parameter documentations has been truncated, see
184
209
  # {Anthropic::Models::Beta::UserProfileDeleteParams} for more details.
@@ -211,7 +236,12 @@ module Anthropic
211
236
  )
212
237
  end
213
238
 
214
- # Create Enrollment URL
239
+ # Create a link that sends the profile's end customer to the Verification Portal
240
+ # from Claude Platform on AWS.
241
+ #
242
+ # On the Claude API, create an action URL instead. See
243
+ # [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
244
+ # for when to create the link and what the end customer sees.
215
245
  #
216
246
  # Some parameter documentations has been truncated, see
217
247
  # {Anthropic::Models::Beta::UserProfileCreateEnrollmentURLParams} for more
@@ -39,6 +39,9 @@ module Anthropic
39
39
  # @return [Anthropic::Resources::Beta::Webhooks]
40
40
  attr_reader :webhooks
41
41
 
42
+ # Register the end customers that your platform serves, so each request can name
43
+ # who it's for. To get started, see the
44
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
42
45
  # @return [Anthropic::Resources::Beta::UserProfiles]
43
46
  attr_reader :user_profiles
44
47
 
@@ -29,6 +29,7 @@ module Anthropic
29
29
  # @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
30
30
  # @raise [Anthropic::Models::CMEKKeyDisabledError]
31
31
  # @raise [Anthropic::Models::OrganizationOnHoldError]
32
+ # @raise [Anthropic::Models::WorkspaceHumanReviewDisabledError]
32
33
  # @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
33
34
  #
34
35
  # @return [Anthropic::Models::Messages::MessageBatch]
@@ -41,6 +41,7 @@ module Anthropic
41
41
  # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
42
42
  # @raise [Anthropic::Models::SandboxEgressRestrictedError]
43
43
  # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
44
+ # @raise [Anthropic::Models::Organization::WorkspaceCreatedIncompleteError]
44
45
  #
45
46
  # @return [Anthropic::Models::Organization::Workspace]
46
47
  #
@@ -108,10 +109,12 @@ module Anthropic
108
109
  # @raise [Anthropic::Models::Organization::ExternalKeyValidationFailedError]
109
110
  # @raise [Anthropic::Models::Organization::ExternalKeyValidationTimedOutError]
110
111
  # @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
112
+ # @raise [Anthropic::Models::Organization::StorageProfileMismatchError]
111
113
  # @raise [Anthropic::Models::UserProfileNotFoundError]
112
114
  # @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
113
115
  # @raise [Anthropic::Models::SandboxEgressRestrictedError]
114
116
  # @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
117
+ # @raise [Anthropic::Models::ChangeOutcomeUnknownError]
115
118
  #
116
119
  # @return [Anthropic::Models::Organization::Workspace]
117
120
  #
@@ -178,6 +181,7 @@ module Anthropic
178
181
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
179
182
  #
180
183
  # @raise [Anthropic::Models::SandboxEgressRestrictedError]
184
+ # @raise [Anthropic::Models::Organization::StorageAttachedDuringArchiveError]
181
185
  #
182
186
  # @return [Anthropic::Models::Organization::Workspace]
183
187
  #
@@ -4,7 +4,11 @@ module Anthropic
4
4
  module Resources
5
5
  class UserProfiles
6
6
  class ActionURLs
7
- # Create Action URL
7
+ # Create a link that sends the profile's end customer to the Verification Portal.
8
+ #
9
+ # See
10
+ # [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
11
+ # for when to create the link and what the end customer sees.
8
12
  #
9
13
  # Some parameter documentations has been truncated, see
10
14
  # {Anthropic::Models::UserProfiles::ActionURLCreateParams} for more details.
@@ -2,11 +2,19 @@
2
2
 
3
3
  module Anthropic
4
4
  module Resources
5
+ # Register the end customers that your platform serves, so each request can name
6
+ # who it's for. To get started, see the
7
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
5
8
  class UserProfiles
6
9
  # @return [Anthropic::Resources::UserProfiles::ActionURLs]
7
10
  attr_reader :action_urls
8
11
 
9
- # Create User Profile
12
+ # Register one of your end customers and get the ID to send on the requests you
13
+ # make for them.
14
+ #
15
+ # See the
16
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#create-a-profile-for-each-end-customer)
17
+ # for what to send.
10
18
  #
11
19
  # Some parameter documentations has been truncated, see
12
20
  # {Anthropic::Models::UserProfileCreateParams} for more details.
@@ -44,7 +52,11 @@ module Anthropic
44
52
  )
45
53
  end
46
54
 
47
- # Get User Profile
55
+ # Get a user profile by ID to check the details stored for it.
56
+ #
57
+ # See the
58
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
59
+ # for how to set up and manage profiles.
48
60
  #
49
61
  # Some parameter documentations has been truncated, see
50
62
  # {Anthropic::Models::UserProfileRetrieveParams} for more details.
@@ -74,7 +86,12 @@ module Anthropic
74
86
  )
75
87
  end
76
88
 
77
- # Update User Profile
89
+ # Change the details of a user profile, leaving the fields that you don't send as
90
+ # they are.
91
+ #
92
+ # See the
93
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#update-a-profile)
94
+ # for how each field is updated.
78
95
  #
79
96
  # Some parameter documentations has been truncated, see
80
97
  # {Anthropic::Models::UserProfileUpdateParams} for more details.
@@ -114,7 +131,11 @@ module Anthropic
114
131
  )
115
132
  end
116
133
 
117
- # List User Profiles
134
+ # List the user profiles in your organization, newest first by default.
135
+ #
136
+ # See the
137
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
138
+ # for how to set up and manage profiles.
118
139
  #
119
140
  # Some parameter documentations has been truncated, see
120
141
  # {Anthropic::Models::UserProfileListParams} for more details.
@@ -156,7 +177,11 @@ module Anthropic
156
177
  )
157
178
  end
158
179
 
159
- # Delete User Profile
180
+ # Delete a user profile, for example when the end customer closes their account.
181
+ #
182
+ # Stop sending the profile's ID first. See the
183
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#delete-a-profile)
184
+ # for what happens after a delete.
160
185
  #
161
186
  # Some parameter documentations has been truncated, see
162
187
  # {Anthropic::Models::UserProfileDeleteParams} for more details.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "2.12.0"
4
+ VERSION = "2.13.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -111,12 +111,16 @@ require_relative "anthropic/internal/page_cursor"
111
111
  require_relative "anthropic/internal/report_page_cursor"
112
112
  require_relative "anthropic/internal/token_page"
113
113
  require_relative "anthropic/models/available_tools_limit_exceeded_error"
114
+ require_relative "anthropic/models/beta/beta_approval_required_error"
115
+ require_relative "anthropic/models/beta/beta_authorization_check_unavailable_error"
114
116
  require_relative "anthropic/models/beta/beta_environment_archived_error"
115
117
  require_relative "anthropic/models/beta/beta_environment_create_disabled_error"
116
118
  require_relative "anthropic/models/beta/beta_environment_not_found_error"
117
119
  require_relative "anthropic/models/beta/beta_environment_update_disabled_error"
120
+ require_relative "anthropic/models/beta/beta_human_review_not_available_error"
118
121
  require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
119
122
  require_relative "anthropic/models/beta/beta_invalid_metadata_error"
123
+ require_relative "anthropic/models/beta/beta_organization_not_eligible_error"
120
124
  require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
121
125
  require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
122
126
  require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error"
@@ -129,8 +133,15 @@ require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_privil
129
133
  require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_self_error"
130
134
  require_relative "anthropic/models/beta/organization/beta_claude_tag_writes_not_enabled_error"
131
135
  require_relative "anthropic/models/beta/organization/beta_compliance_configuration_restricted_error"
136
+ require_relative "anthropic/models/beta/organization/beta_external_storage_in_use_error"
137
+ require_relative "anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error"
138
+ require_relative "anthropic/models/beta/organization/beta_external_storage_not_available_error"
139
+ require_relative "anthropic/models/beta/organization/beta_grant_required_error"
140
+ require_relative "anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error"
141
+ require_relative "anthropic/models/beta/organization/beta_invalid_storage_arn_error"
132
142
  require_relative "anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error"
133
143
  require_relative "anthropic/models/beta/organization/beta_plugin_name_taken_error"
144
+ require_relative "anthropic/models/beta/organization/beta_provider_not_allowed_error"
134
145
  require_relative "anthropic/models/beta/organization/beta_rbac_group_not_found_error"
135
146
  require_relative "anthropic/models/beta/organization/beta_registration_pending_error"
136
147
  require_relative "anthropic/models/beta/organization/beta_scan_failed_error"
@@ -140,6 +151,15 @@ require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_e
140
151
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error"
141
152
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error"
142
153
  require_relative "anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error"
154
+ require_relative "anthropic/models/beta/organization/beta_storage_already_registered_error"
155
+ require_relative "anthropic/models/beta/organization/beta_storage_attach_limit_reached_error"
156
+ require_relative "anthropic/models/beta/organization/beta_storage_changed_concurrently_error"
157
+ require_relative "anthropic/models/beta/organization/beta_storage_not_attachable_error"
158
+ require_relative "anthropic/models/beta/organization/beta_storage_profile_still_required_error"
159
+ require_relative "anthropic/models/beta/organization/beta_storage_verification_failed_error"
160
+ require_relative "anthropic/models/beta/organization/beta_transcripts_storage_required_error"
161
+ require_relative "anthropic/models/beta/organization/beta_unsupported_region_error"
162
+ require_relative "anthropic/models/beta/organization/beta_workspace_changed_concurrently_error"
143
163
  require_relative "anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error"
144
164
  require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error"
145
165
  require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error"
@@ -148,6 +168,7 @@ require_relative "anthropic/models/beta/organization/claude_code/beta_settings_h
148
168
  require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error"
149
169
  require_relative "anthropic/models/beta_request_body_timeout_error"
150
170
  require_relative "anthropic/models/beta_unsupported_charset_error"
171
+ require_relative "anthropic/models/change_outcome_unknown_error"
151
172
  require_relative "anthropic/models/claude_code_key_creator_not_member_error"
152
173
  require_relative "anthropic/models/claude_code_version_too_old_error"
153
174
  require_relative "anthropic/models/cmek_context_unavailable_error"
@@ -184,7 +205,10 @@ require_relative "anthropic/models/organization/key_profile_mismatch_error"
184
205
  require_relative "anthropic/models/organization/org_api_key_limit_exceeded_error"
185
206
  require_relative "anthropic/models/organization/rbac_group_grants_owner_access_error"
186
207
  require_relative "anthropic/models/organization/rbac_group_owner_access_unconfirmed_error"
208
+ require_relative "anthropic/models/organization/storage_attached_during_archive_error"
209
+ require_relative "anthropic/models/organization/storage_profile_mismatch_error"
187
210
  require_relative "anthropic/models/organization/workspace_api_key_limit_exceeded_error"
211
+ require_relative "anthropic/models/organization/workspace_created_incomplete_error"
188
212
  require_relative "anthropic/models/organization/workspace_member_limit_exceeded_error"
189
213
  require_relative "anthropic/models/organization/workspace_policy_violation_error"
190
214
  require_relative "anthropic/models/organization_on_hold_error"
@@ -210,6 +234,7 @@ require_relative "anthropic/models/user_profile_billing_not_authorized_error"
210
234
  require_relative "anthropic/models/user_profile_not_billable_error"
211
235
  require_relative "anthropic/models/user_profile_not_found_error"
212
236
  require_relative "anthropic/models/user_profile_required_error"
237
+ require_relative "anthropic/models/workspace_human_review_disabled_error"
213
238
  require_relative "anthropic/models/authentication_error_object"
214
239
  require_relative "anthropic/models/bash_code_execution_tool_result_error_object"
215
240
  require_relative "anthropic/models/beta/beta_advisor_tool_result_error_object"
@@ -341,7 +366,9 @@ require_relative "anthropic/models/beta/beta_advisor_tool_result_block_param"
341
366
  require_relative "anthropic/models/beta/beta_advisor_tool_result_error"
342
367
  require_relative "anthropic/models/beta/beta_advisor_tool_result_error_param"
343
368
  require_relative "anthropic/models/beta/beta_all_thinking_turns"
369
+ require_relative "anthropic/models/beta/beta_approval_required_error_details"
344
370
  require_relative "anthropic/models/beta/beta_assistant_message_param"
371
+ require_relative "anthropic/models/beta/beta_authorization_check_unavailable_error_details"
345
372
  require_relative "anthropic/models/beta/beta_base64_image_source"
346
373
  require_relative "anthropic/models/beta/beta_base64_pdf_block"
347
374
  require_relative "anthropic/models/beta/beta_base64_pdf_source"
@@ -627,6 +654,7 @@ require_relative "anthropic/models/beta/beta_file_document_source"
627
654
  require_relative "anthropic/models/beta/beta_file_image_source"
628
655
  require_relative "anthropic/models/beta/beta_file_metadata"
629
656
  require_relative "anthropic/models/beta/beta_file_scope"
657
+ require_relative "anthropic/models/beta/beta_human_review_not_available_error_details"
630
658
  require_relative "anthropic/models/beta/beta_image_block_param"
631
659
  require_relative "anthropic/models/beta/beta_image_transformations_param"
632
660
  require_relative "anthropic/models/beta/beta_input_json_delta"
@@ -874,6 +902,7 @@ require_relative "anthropic/models/beta/beta_model_capabilities"
874
902
  require_relative "anthropic/models/beta/beta_model_info"
875
903
  require_relative "anthropic/models/beta/beta_model_line"
876
904
  require_relative "anthropic/models/beta/beta_organization"
905
+ require_relative "anthropic/models/beta/beta_organization_not_eligible_error_details"
877
906
  require_relative "anthropic/models/beta/beta_organization_role"
878
907
  require_relative "anthropic/models/beta/beta_output_behavior"
879
908
  require_relative "anthropic/models/beta/beta_output_behavior_create_new"
@@ -1046,6 +1075,8 @@ require_relative "anthropic/models/beta/beta_webhook_environment_updated_event_d
1046
1075
  require_relative "anthropic/models/beta/beta_webhook_event_data"
1047
1076
  require_relative "anthropic/models/beta/beta_webhook_external_key_failed_event_data"
1048
1077
  require_relative "anthropic/models/beta/beta_webhook_external_key_recovered_event_data"
1078
+ require_relative "anthropic/models/beta/beta_webhook_external_storage_failed_event_data"
1079
+ require_relative "anthropic/models/beta/beta_webhook_external_storage_recovered_event_data"
1049
1080
  require_relative "anthropic/models/beta/beta_webhook_memory_store_archived_event_data"
1050
1081
  require_relative "anthropic/models/beta/beta_webhook_memory_store_created_event_data"
1051
1082
  require_relative "anthropic/models/beta/beta_webhook_memory_store_deleted_event_data"
@@ -1206,6 +1237,8 @@ require_relative "anthropic/models/beta/organization/analytics/user_usage_report
1206
1237
  require_relative "anthropic/models/beta/organization/api_key_list_params"
1207
1238
  require_relative "anthropic/models/beta/organization/api_key_retrieve_params"
1208
1239
  require_relative "anthropic/models/beta/organization/api_key_update_params"
1240
+ require_relative "anthropic/models/beta/organization/beta_access_transparency"
1241
+ require_relative "anthropic/models/beta/organization/beta_active_external_storage_status"
1209
1242
  require_relative "anthropic/models/beta/organization/beta_allowed_inference_geo"
1210
1243
  require_relative "anthropic/models/beta/organization/beta_analytics_actor"
1211
1244
  require_relative "anthropic/models/beta/organization/beta_analytics_actor_type"
@@ -1288,6 +1321,8 @@ require_relative "anthropic/models/beta/organization/beta_analytics_user"
1288
1321
  require_relative "anthropic/models/beta/organization/beta_analytics_user_activity"
1289
1322
  require_relative "anthropic/models/beta/organization/beta_analytics_user_actor"
1290
1323
  require_relative "anthropic/models/beta/organization/beta_analytics_user_group_by"
1324
+ require_relative "anthropic/models/beta/organization/beta_anthropic_human_review"
1325
+ require_relative "anthropic/models/beta/organization/beta_anthropic_human_review_param"
1291
1326
  require_relative "anthropic/models/beta/organization/beta_api_key"
1292
1327
  require_relative "anthropic/models/beta/organization/beta_api_key_created_by"
1293
1328
  require_relative "anthropic/models/beta/organization/beta_api_key_organization_scope"
@@ -1295,7 +1330,10 @@ require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_
1295
1330
  require_relative "anthropic/models/beta/organization/beta_api_key_service_account_actor"
1296
1331
  require_relative "anthropic/models/beta/organization/beta_api_key_user_actor"
1297
1332
  require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scope"
1333
+ require_relative "anthropic/models/beta/organization/beta_available_external_storage_status"
1298
1334
  require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
1335
+ require_relative "anthropic/models/beta/organization/beta_aws_external_storage_config"
1336
+ require_relative "anthropic/models/beta/organization/beta_aws_external_storage_config_param"
1299
1337
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
1300
1338
  require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
1301
1339
  require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details"
@@ -1340,14 +1378,33 @@ require_relative "anthropic/models/beta/organization/beta_compliance_settings_st
1340
1378
  require_relative "anthropic/models/beta/organization/beta_data_residency"
1341
1379
  require_relative "anthropic/models/beta/organization/beta_data_residency_create_config"
1342
1380
  require_relative "anthropic/models/beta/organization/beta_data_residency_update_config"
1381
+ require_relative "anthropic/models/beta/organization/beta_deleted_external_storage"
1343
1382
  require_relative "anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint"
1344
1383
  require_relative "anthropic/models/beta/organization/beta_deleted_plugin"
1345
1384
  require_relative "anthropic/models/beta/organization/beta_deleted_rbac_group"
1346
1385
  require_relative "anthropic/models/beta/organization/beta_deleted_telemetry_destination"
1386
+ require_relative "anthropic/models/beta/organization/beta_draining_external_storage_status"
1347
1387
  require_relative "anthropic/models/beta/organization/beta_external_key"
1348
1388
  require_relative "anthropic/models/beta/organization/beta_external_key_attached_attachment"
1349
1389
  require_relative "anthropic/models/beta/organization/beta_external_key_unattached_attachment"
1390
+ require_relative "anthropic/models/beta/organization/beta_external_storage"
1391
+ require_relative "anthropic/models/beta/organization/beta_external_storage_failed_check"
1392
+ require_relative "anthropic/models/beta/organization/beta_external_storage_in_use_error_details"
1393
+ require_relative "anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details"
1394
+ require_relative "anthropic/models/beta/organization/beta_external_storage_member"
1395
+ require_relative "anthropic/models/beta/organization/beta_external_storage_member_param"
1396
+ require_relative "anthropic/models/beta/organization/beta_external_storage_not_available_error_details"
1350
1397
  require_relative "anthropic/models/beta/organization/beta_gcp_external_key_config"
1398
+ require_relative "anthropic/models/beta/organization/beta_gcp_external_storage_config"
1399
+ require_relative "anthropic/models/beta/organization/beta_gcp_external_storage_config_param"
1400
+ require_relative "anthropic/models/beta/organization/beta_grant_required_error_details"
1401
+ require_relative "anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details"
1402
+ require_relative "anthropic/models/beta/organization/beta_inference_data_privacy"
1403
+ require_relative "anthropic/models/beta/organization/beta_inference_data_privacy_create_param"
1404
+ require_relative "anthropic/models/beta/organization/beta_inference_data_privacy_update_param"
1405
+ require_relative "anthropic/models/beta/organization/beta_internal_storage"
1406
+ require_relative "anthropic/models/beta/organization/beta_internal_storage_param"
1407
+ require_relative "anthropic/models/beta/organization/beta_invalid_storage_arn_error_details"
1351
1408
  require_relative "anthropic/models/beta/organization/beta_new_organization_webhook_endpoint"
1352
1409
  require_relative "anthropic/models/beta/organization/beta_no_billing_workspace_role"
1353
1410
  require_relative "anthropic/models/beta/organization/beta_organization_invite"
@@ -1364,6 +1421,7 @@ require_relative "anthropic/models/beta/organization/beta_organization_user"
1364
1421
  require_relative "anthropic/models/beta/organization/beta_organization_webhook_endpoint"
1365
1422
  require_relative "anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret"
1366
1423
  require_relative "anthropic/models/beta/organization/beta_organization_webhook_endpoint_state"
1424
+ require_relative "anthropic/models/beta/organization/beta_pending_configuration_external_storage_status"
1367
1425
  require_relative "anthropic/models/beta/organization/beta_plugin"
1368
1426
  require_relative "anthropic/models/beta/organization/beta_plugin_api_actor"
1369
1427
  require_relative "anthropic/models/beta/organization/beta_plugin_component"
@@ -1380,6 +1438,7 @@ require_relative "anthropic/models/beta/organization/beta_plugin_target_organiza
1380
1438
  require_relative "anthropic/models/beta/organization/beta_plugin_target_organization_member"
1381
1439
  require_relative "anthropic/models/beta/organization/beta_plugin_target_rbac_group"
1382
1440
  require_relative "anthropic/models/beta/organization/beta_plugin_user_actor"
1441
+ require_relative "anthropic/models/beta/organization/beta_provider_not_allowed_error_details"
1383
1442
  require_relative "anthropic/models/beta/organization/beta_rbac_group"
1384
1443
  require_relative "anthropic/models/beta/organization/beta_rbac_group_not_found_error_details"
1385
1444
  require_relative "anthropic/models/beta/organization/beta_rbac_role"
@@ -1408,6 +1467,14 @@ require_relative "anthropic/models/beta/organization/beta_spend_limit_user_actor
1408
1467
  require_relative "anthropic/models/beta/organization/beta_spend_limit_user_scope"
1409
1468
  require_relative "anthropic/models/beta/organization/beta_spend_limit_workspace_scope"
1410
1469
  require_relative "anthropic/models/beta/organization/beta_spend_summary"
1470
+ require_relative "anthropic/models/beta/organization/beta_storage_already_registered_error_details"
1471
+ require_relative "anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details"
1472
+ require_relative "anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details"
1473
+ require_relative "anthropic/models/beta/organization/beta_storage_member"
1474
+ require_relative "anthropic/models/beta/organization/beta_storage_member_param"
1475
+ require_relative "anthropic/models/beta/organization/beta_storage_not_attachable_error_details"
1476
+ require_relative "anthropic/models/beta/organization/beta_storage_profile_still_required_error_details"
1477
+ require_relative "anthropic/models/beta/organization/beta_storage_verification_failed_error_details"
1411
1478
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination"
1412
1479
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination_content_mode"
1413
1480
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination_delivery_health"
@@ -1436,7 +1503,11 @@ require_relative "anthropic/models/beta/organization/beta_telemetry_destination_
1436
1503
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include"
1437
1504
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params"
1438
1505
  require_relative "anthropic/models/beta/organization/beta_telemetry_destination_workspaces_params"
1506
+ require_relative "anthropic/models/beta/organization/beta_transcripts_storage_required_error_details"
1507
+ require_relative "anthropic/models/beta/organization/beta_unsupported_region_error_details"
1439
1508
  require_relative "anthropic/models/beta/organization/beta_workspace"
1509
+ require_relative "anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details"
1510
+ require_relative "anthropic/models/beta/organization/beta_workspace_changed_concurrently_field"
1440
1511
  require_relative "anthropic/models/beta/organization/beta_workspace_member"
1441
1512
  require_relative "anthropic/models/beta/organization/beta_workspace_role"
1442
1513
  require_relative "anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details"
@@ -1502,6 +1573,12 @@ require_relative "anthropic/models/beta/organization/external_key_retrieve_param
1502
1573
  require_relative "anthropic/models/beta/organization/external_key_update_params"
1503
1574
  require_relative "anthropic/models/beta/organization/external_key_validate_params"
1504
1575
  require_relative "anthropic/models/beta/organization/external_key_validate_response"
1576
+ require_relative "anthropic/models/beta/organization/external_storage_activate_params"
1577
+ require_relative "anthropic/models/beta/organization/external_storage_create_params"
1578
+ require_relative "anthropic/models/beta/organization/external_storage_delete_params"
1579
+ require_relative "anthropic/models/beta/organization/external_storage_list_params"
1580
+ require_relative "anthropic/models/beta/organization/external_storage_retrieve_params"
1581
+ require_relative "anthropic/models/beta/organization/external_storage_update_params"
1505
1582
  require_relative "anthropic/models/beta/organization/federation/beta_federation_issuer"
1506
1583
  require_relative "anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status"
1507
1584
  require_relative "anthropic/models/beta/organization/federation/beta_federation_rule"
@@ -2009,6 +2086,7 @@ require_relative "anthropic/models/cache_miss_system_changed"
2009
2086
  require_relative "anthropic/models/cache_miss_tools_changed"
2010
2087
  require_relative "anthropic/models/cache_miss_unavailable"
2011
2088
  require_relative "anthropic/models/capability_support"
2089
+ require_relative "anthropic/models/change_outcome_unknown_error_details"
2012
2090
  require_relative "anthropic/models/citation_char_location"
2013
2091
  require_relative "anthropic/models/citation_char_location_param"
2014
2092
  require_relative "anthropic/models/citation_content_block_location"
@@ -2391,6 +2469,8 @@ require_relative "anthropic/models/organization/spend_limit_user_actor"
2391
2469
  require_relative "anthropic/models/organization/spend_limit_user_scope"
2392
2470
  require_relative "anthropic/models/organization/spend_limit_workspace_scope"
2393
2471
  require_relative "anthropic/models/organization/spend_summary"
2472
+ require_relative "anthropic/models/organization/storage_attached_during_archive_error_details"
2473
+ require_relative "anthropic/models/organization/storage_profile_mismatch_error_details"
2394
2474
  require_relative "anthropic/models/organization/user_list_params"
2395
2475
  require_relative "anthropic/models/organization/user_remove_params"
2396
2476
  require_relative "anthropic/models/organization/user_remove_response"
@@ -2399,6 +2479,7 @@ require_relative "anthropic/models/organization/user_update_params"
2399
2479
  require_relative "anthropic/models/organization/workspace"
2400
2480
  require_relative "anthropic/models/organization/workspace_api_key_limit_exceeded_error_details"
2401
2481
  require_relative "anthropic/models/organization/workspace_archive_params"
2482
+ require_relative "anthropic/models/organization/workspace_created_incomplete_error_details"
2402
2483
  require_relative "anthropic/models/organization/workspace_create_params"
2403
2484
  require_relative "anthropic/models/organization/workspace_list_params"
2404
2485
  require_relative "anthropic/models/organization/workspace_member"
@@ -2611,6 +2692,7 @@ require_relative "anthropic/models/web_search_tool_result_block_param"
2611
2692
  require_relative "anthropic/models/web_search_tool_result_block_param_content"
2612
2693
  require_relative "anthropic/models/web_search_tool_result_error"
2613
2694
  require_relative "anthropic/models/web_search_tool_result_error_code"
2695
+ require_relative "anthropic/models/workspace_human_review_disabled_error_details"
2614
2696
  require_relative "anthropic/helpers/streaming/events"
2615
2697
  require_relative "anthropic/helpers/streaming/message_stream"
2616
2698
  require_relative "anthropic/helpers/streaming"
@@ -2663,6 +2745,7 @@ require_relative "anthropic/resources/beta/organization/claude_tag/slack_channel
2663
2745
  require_relative "anthropic/resources/beta/organization/claude_tag/slack_workspaces"
2664
2746
  require_relative "anthropic/resources/beta/organization/compliance_settings"
2665
2747
  require_relative "anthropic/resources/beta/organization/external_keys"
2748
+ require_relative "anthropic/resources/beta/organization/external_storage"
2666
2749
  require_relative "anthropic/resources/beta/organization/federation"
2667
2750
  require_relative "anthropic/resources/beta/organization/federation/issuers"
2668
2751
  require_relative "anthropic/resources/beta/organization/federation/rules"
@@ -34,6 +34,9 @@ module Anthropic
34
34
  sig { returns(Anthropic::Resources::Skills) }
35
35
  attr_reader :skills
36
36
 
37
+ # Register the end customers that your platform serves, so each request can name
38
+ # who it's for. To get started, see the
39
+ # [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
37
40
  sig { returns(Anthropic::Resources::UserProfiles) }
38
41
  attr_reader :user_profiles
39
42
 
@@ -380,6 +380,18 @@ module Anthropic
380
380
  "anthropic.tunnels.certificates.retrieve"
381
381
  TUNNELS_CERTIFICATES_LIST = "anthropic.tunnels.certificates.list"
382
382
  TUNNELS_CERTIFICATES_ARCHIVE = "anthropic.tunnels.certificates.archive"
383
+ ORGANIZATION_EXTERNAL_STORAGE_CREATE =
384
+ "anthropic.organization.external_storage.create"
385
+ ORGANIZATION_EXTERNAL_STORAGE_RETRIEVE =
386
+ "anthropic.organization.external_storage.retrieve"
387
+ ORGANIZATION_EXTERNAL_STORAGE_UPDATE =
388
+ "anthropic.organization.external_storage.update"
389
+ ORGANIZATION_EXTERNAL_STORAGE_LIST =
390
+ "anthropic.organization.external_storage.list"
391
+ ORGANIZATION_EXTERNAL_STORAGE_DELETE =
392
+ "anthropic.organization.external_storage.delete"
393
+ ORGANIZATION_EXTERNAL_STORAGE_ACTIVATE =
394
+ "anthropic.organization.external_storage.activate"
383
395
  ORGANIZATION_USERS_SIGN_OUT = "anthropic.organization.users.sign_out"
384
396
  ORGANIZATION_ANALYTICS_USAGE_LIST =
385
397
  "anthropic.organization.analytics.usage.list"
@@ -256,6 +256,8 @@ module Anthropic
256
256
  :"ce-claude-code-managed-settings-2026-10-06",
257
257
  Anthropic::AnthropicBeta::TaggedSymbol
258
258
  )
259
+ EFS_2026_10_01 =
260
+ T.let(:"efs-2026-10-01", Anthropic::AnthropicBeta::TaggedSymbol)
259
261
  USER_PROFILES_BILLING_2026_10_01 =
260
262
  T.let(
261
263
  :"user-profiles-billing-2026-10-01",
@@ -0,0 +1,19 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ # Turning human review off needs Anthropic's approval for the organization, and
7
+ # the organization doesn't have it. Contact Anthropic support to request approval.
8
+ class BetaApprovalRequiredError < Anthropic::Errors::BadRequestError
9
+ sig { returns(Symbol) }
10
+ def error_code
11
+ end
12
+
13
+ sig { returns(Anthropic::Beta::BetaApprovalRequiredErrorDetails) }
14
+ def details
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,42 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ BetaApprovalRequiredErrorDetails = Beta::BetaApprovalRequiredErrorDetails
6
+
7
+ module Beta
8
+ class BetaApprovalRequiredErrorDetails < Anthropic::Internal::Type::BaseModel
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Anthropic::Beta::BetaApprovalRequiredErrorDetails,
13
+ Anthropic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(Symbol) }
18
+ attr_accessor :error_code
19
+
20
+ # The request field that needs the approval.
21
+ sig { returns(String) }
22
+ attr_accessor :field
23
+
24
+ # Turning human review off needs Anthropic's approval for the organization, and
25
+ # the organization doesn't have it. Contact Anthropic support to request approval.
26
+ sig do
27
+ params(field: String, error_code: Symbol).returns(T.attached_class)
28
+ end
29
+ def self.new(
30
+ # The request field that needs the approval.
31
+ field:,
32
+ error_code: :approval_required
33
+ )
34
+ end
35
+
36
+ sig { override.returns({ error_code: Symbol, field: String }) }
37
+ def to_hash
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end