anthropic 1.80.0 → 1.82.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 (412) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/client.rb +4 -0
  5. data/lib/anthropic/helpers/aws/client.rb +20 -3
  6. data/lib/anthropic/helpers/bedrock/client.rb +6 -0
  7. data/lib/anthropic/helpers/bedrock/mantle_client.rb +41 -2
  8. data/lib/anthropic/helpers/google_cloud/client.rb +113 -31
  9. data/lib/anthropic/helpers/vertex/client.rb +7 -0
  10. data/lib/anthropic/internal/report_page_cursor.rb +98 -0
  11. data/lib/anthropic/internal/stream.rb +6 -13
  12. data/lib/anthropic/internal/tracing.rb +14 -4
  13. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  14. data/lib/anthropic/models/beta/beta_cache_miss_messages_changed.rb +8 -0
  15. data/lib/anthropic/models/beta/beta_cache_miss_model_changed.rb +7 -0
  16. data/lib/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rb +9 -0
  17. data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +22 -0
  18. data/lib/anthropic/models/beta/beta_cache_miss_system_changed.rb +7 -0
  19. data/lib/anthropic/models/beta/beta_cache_miss_tools_changed.rb +7 -0
  20. data/lib/anthropic/models/beta/beta_cache_miss_unavailable.rb +11 -0
  21. data/lib/anthropic/models/beta/beta_deleted_user_profile.rb +29 -0
  22. data/lib/anthropic/models/beta/beta_fallback_param.rb +74 -10
  23. data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +2 -2
  24. data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +28 -19
  25. data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
  26. data/lib/anthropic/models/beta/beta_user_profile.rb +31 -28
  27. data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +1 -1
  28. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  29. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +16 -2
  30. data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rb +43 -0
  31. data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rb +43 -0
  32. data/lib/anthropic/models/beta/memory_store_archive_params.rb +5 -4
  33. data/lib/anthropic/models/beta/memory_store_create_params.rb +20 -11
  34. data/lib/anthropic/models/beta/memory_store_delete_params.rb +5 -4
  35. data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -9
  36. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -3
  37. data/lib/anthropic/models/beta/memory_store_update_params.rb +19 -14
  38. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +6 -6
  39. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +13 -6
  40. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +1 -1
  41. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +38 -26
  42. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +17 -10
  43. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +3 -2
  44. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +7 -6
  45. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +40 -26
  46. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +4 -2
  47. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +5 -5
  48. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +18 -15
  49. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +27 -19
  50. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +6 -6
  51. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +19 -18
  52. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +13 -10
  53. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +6 -6
  54. data/lib/anthropic/models/beta/message_count_tokens_params.rb +1 -1
  55. data/lib/anthropic/models/beta/message_create_params.rb +1 -1
  56. data/lib/anthropic/models/beta/messages/batch_create_params.rb +3 -3
  57. data/lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb +31 -0
  58. data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +113 -0
  59. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -1
  60. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +104 -0
  61. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rb +28 -0
  62. data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rb +20 -0
  63. data/lib/anthropic/models/beta/organization/beta_plugin.rb +34 -9
  64. data/lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb +9 -4
  65. data/lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb +13 -7
  66. data/lib/anthropic/models/beta/organization/webhook_create_params.rb +73 -0
  67. data/lib/anthropic/models/beta/organization/webhook_delete_params.rb +38 -0
  68. data/lib/anthropic/models/beta/organization/webhook_list_params.rb +75 -0
  69. data/lib/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rb +39 -0
  70. data/lib/anthropic/models/beta/organization/webhook_retrieve_params.rb +38 -0
  71. data/lib/anthropic/models/beta/organization/webhook_update_params.rb +105 -0
  72. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +1 -1
  73. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +29 -0
  74. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +35 -0
  75. data/lib/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rb +45 -0
  76. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +2 -3
  77. data/lib/anthropic/models/beta/user_profile_create_params.rb +12 -11
  78. data/lib/anthropic/models/beta/user_profile_delete_params.rb +48 -0
  79. data/lib/anthropic/models/beta/user_profile_list_params.rb +2 -3
  80. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +2 -3
  81. data/lib/anthropic/models/beta/user_profile_update_params.rb +11 -11
  82. data/lib/anthropic/models/beta/user_profiles/action_url_create_params.rb +58 -0
  83. data/lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb +44 -0
  84. data/lib/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rb +21 -0
  85. data/lib/anthropic/models/beta/vault_list_params.rb +6 -4
  86. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +7 -3
  87. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -1
  88. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +3 -2
  89. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +2 -2
  90. data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +2 -2
  91. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
  92. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +7 -2
  93. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +4 -4
  94. data/lib/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rb +8 -1
  95. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +7 -5
  96. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +6 -4
  97. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +7 -2
  98. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +10 -4
  99. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +15 -5
  100. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +2 -2
  101. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +14 -5
  102. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +14 -4
  103. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +4 -3
  104. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +7 -2
  105. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +2 -2
  106. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +7 -2
  107. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +10 -2
  108. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +2 -2
  109. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +10 -2
  110. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +8 -4
  111. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +6 -4
  112. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +14 -10
  113. data/lib/anthropic/models/cache_miss_messages_changed.rb +8 -0
  114. data/lib/anthropic/models/cache_miss_model_changed.rb +7 -0
  115. data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +9 -0
  116. data/lib/anthropic/models/cache_miss_reason.rb +22 -0
  117. data/lib/anthropic/models/cache_miss_system_changed.rb +7 -0
  118. data/lib/anthropic/models/cache_miss_tools_changed.rb +7 -0
  119. data/lib/anthropic/models/cache_miss_unavailable.rb +11 -0
  120. data/lib/anthropic/models/deleted_user_profile.rb +25 -0
  121. data/lib/anthropic/models/message_count_tokens_params.rb +1 -1
  122. data/lib/anthropic/models/message_create_params.rb +1 -1
  123. data/lib/anthropic/models/messages/batch_create_params.rb +3 -3
  124. data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -1
  125. data/lib/anthropic/models/organization/workspaces/rate_limit_update_params.rb +43 -0
  126. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +1 -1
  127. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +29 -0
  128. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +35 -0
  129. data/lib/anthropic/models/user_profile.rb +108 -0
  130. data/lib/anthropic/models/user_profile_access_type.rb +23 -0
  131. data/lib/anthropic/models/user_profile_create_params.rb +74 -0
  132. data/lib/anthropic/models/user_profile_cyber_program.rb +52 -0
  133. data/lib/anthropic/models/user_profile_cyber_requirements.rb +35 -0
  134. data/lib/anthropic/models/user_profile_cyber_tier.rb +38 -0
  135. data/lib/anthropic/models/user_profile_delete_params.rb +38 -0
  136. data/lib/anthropic/models/user_profile_efs_feature.rb +38 -0
  137. data/lib/anthropic/models/user_profile_efs_program.rb +40 -0
  138. data/lib/anthropic/models/user_profile_external_user_account_status.rb +27 -0
  139. data/lib/anthropic/models/user_profile_external_user_details.rb +78 -0
  140. data/lib/anthropic/models/user_profile_external_user_details_params.rb +79 -0
  141. data/lib/anthropic/models/user_profile_external_user_entity_type.rb +19 -0
  142. data/lib/anthropic/models/user_profile_list_order.rb +19 -0
  143. data/lib/anthropic/models/user_profile_list_order_by.rb +20 -0
  144. data/lib/anthropic/models/user_profile_list_params.rb +67 -0
  145. data/lib/anthropic/models/user_profile_program_status.rb +23 -0
  146. data/lib/anthropic/models/user_profile_programs.rb +41 -0
  147. data/lib/anthropic/models/user_profile_retrieve_params.rb +38 -0
  148. data/lib/anthropic/models/user_profile_update_params.rb +78 -0
  149. data/lib/anthropic/models/user_profiles/action_url_create_params.rb +48 -0
  150. data/lib/anthropic/models/user_profiles/user_profile_action_url.rb +43 -0
  151. data/lib/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rb +21 -0
  152. data/lib/anthropic/models.rb +44 -0
  153. data/lib/anthropic/resources/beta/memory_stores/memories.rb +17 -17
  154. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -6
  155. data/lib/anthropic/resources/beta/memory_stores.rb +19 -19
  156. data/lib/anthropic/resources/beta/messages.rb +63 -111
  157. data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -2
  158. data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -2
  159. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +2 -2
  160. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +2 -2
  161. data/lib/anthropic/resources/beta/organization/webhooks.rb +287 -0
  162. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +53 -0
  163. data/lib/anthropic/resources/beta/organization.rb +4 -0
  164. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +54 -0
  165. data/lib/anthropic/resources/beta/user_profiles.rb +41 -5
  166. data/lib/anthropic/resources/beta/vaults/credentials.rb +9 -9
  167. data/lib/anthropic/resources/beta/vaults.rb +7 -7
  168. data/lib/anthropic/resources/messages.rb +58 -92
  169. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +49 -0
  170. data/lib/anthropic/resources/user_profiles/action_urls.rb +50 -0
  171. data/lib/anthropic/resources/user_profiles.rb +196 -0
  172. data/lib/anthropic/version.rb +1 -1
  173. data/lib/anthropic.rb +53 -0
  174. data/rbi/anthropic/client.rbi +3 -0
  175. data/rbi/anthropic/helpers/aws/client.rbi +13 -0
  176. data/rbi/anthropic/helpers/bedrock/client.rbi +4 -0
  177. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +9 -0
  178. data/rbi/anthropic/helpers/google_cloud/client.rbi +19 -2
  179. data/rbi/anthropic/helpers/vertex/client.rbi +4 -0
  180. data/rbi/anthropic/internal/report_page_cursor.rbi +28 -0
  181. data/rbi/anthropic/internal/tracing.rbi +17 -4
  182. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  183. data/rbi/anthropic/models/beta/beta_cache_miss_messages_changed.rbi +7 -0
  184. data/rbi/anthropic/models/beta/beta_cache_miss_model_changed.rbi +6 -0
  185. data/rbi/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rbi +8 -0
  186. data/rbi/anthropic/models/beta/beta_cache_miss_system_changed.rbi +6 -0
  187. data/rbi/anthropic/models/beta/beta_cache_miss_tools_changed.rbi +6 -0
  188. data/rbi/anthropic/models/beta/beta_cache_miss_unavailable.rbi +10 -0
  189. data/rbi/anthropic/models/beta/beta_deleted_user_profile.rbi +40 -0
  190. data/rbi/anthropic/models/beta/beta_fallback_param.rbi +116 -9
  191. data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +2 -2
  192. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +44 -26
  193. data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
  194. data/rbi/anthropic/models/beta/beta_user_profile.rbi +50 -43
  195. data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +1 -1
  196. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
  197. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +19 -4
  198. data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbi +65 -0
  199. data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbi +65 -0
  200. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +8 -6
  201. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +34 -16
  202. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +8 -6
  203. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +8 -12
  204. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +2 -4
  205. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +30 -20
  206. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +6 -6
  207. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +13 -6
  208. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +54 -36
  209. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +25 -18
  210. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -2
  211. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +7 -6
  212. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +60 -38
  213. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +4 -2
  214. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +5 -5
  215. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +30 -24
  216. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +44 -28
  217. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +10 -10
  218. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +32 -30
  219. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +22 -16
  220. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +10 -10
  221. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +2 -2
  222. data/rbi/anthropic/models/beta/message_create_params.rbi +2 -2
  223. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -6
  224. data/rbi/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbi +41 -0
  225. data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +175 -0
  226. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +4 -2
  227. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +164 -0
  228. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbi +37 -0
  229. data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbi +44 -0
  230. data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +49 -11
  231. data/rbi/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rbi +18 -8
  232. data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_version.rbi +20 -8
  233. data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +151 -0
  234. data/rbi/anthropic/models/beta/organization/webhook_delete_params.rbi +75 -0
  235. data/rbi/anthropic/models/beta/organization/webhook_list_params.rbi +153 -0
  236. data/rbi/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbi +75 -0
  237. data/rbi/anthropic/models/beta/organization/webhook_retrieve_params.rbi +75 -0
  238. data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +241 -0
  239. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +81 -0
  240. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +62 -0
  241. data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbi +80 -0
  242. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +2 -4
  243. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +22 -20
  244. data/rbi/anthropic/models/beta/user_profile_delete_params.rbi +91 -0
  245. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +2 -4
  246. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +2 -4
  247. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +20 -20
  248. data/rbi/anthropic/models/beta/user_profiles/action_url_create_params.rbi +116 -0
  249. data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbi +55 -0
  250. data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbi +31 -0
  251. data/rbi/anthropic/models/beta/vault_list_params.rbi +8 -4
  252. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +4 -3
  253. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +6 -4
  254. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +4 -2
  255. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +2 -2
  256. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +2 -2
  257. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +5 -3
  258. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +4 -2
  259. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +4 -4
  260. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rbi +8 -1
  261. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +12 -8
  262. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +10 -6
  263. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +4 -2
  264. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +8 -4
  265. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +10 -5
  266. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +2 -2
  267. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +11 -5
  268. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +16 -4
  269. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +6 -4
  270. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +4 -2
  271. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +2 -2
  272. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +4 -2
  273. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +10 -2
  274. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +2 -2
  275. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +10 -2
  276. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +8 -4
  277. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +8 -4
  278. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +17 -11
  279. data/rbi/anthropic/models/cache_miss_messages_changed.rbi +7 -0
  280. data/rbi/anthropic/models/cache_miss_model_changed.rbi +6 -0
  281. data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +8 -0
  282. data/rbi/anthropic/models/cache_miss_system_changed.rbi +6 -0
  283. data/rbi/anthropic/models/cache_miss_tools_changed.rbi +6 -0
  284. data/rbi/anthropic/models/cache_miss_unavailable.rbi +10 -0
  285. data/rbi/anthropic/models/deleted_user_profile.rbi +33 -0
  286. data/rbi/anthropic/models/message_count_tokens_params.rbi +2 -2
  287. data/rbi/anthropic/models/message_create_params.rbi +2 -2
  288. data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -6
  289. data/rbi/anthropic/models/organization/organization_rate_limit.rbi +4 -2
  290. data/rbi/anthropic/models/organization/workspaces/rate_limit_update_params.rbi +78 -0
  291. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +81 -0
  292. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +62 -0
  293. data/rbi/anthropic/models/user_profile.rbi +152 -0
  294. data/rbi/anthropic/models/user_profile_access_type.rbi +34 -0
  295. data/rbi/anthropic/models/user_profile_create_params.rbi +135 -0
  296. data/rbi/anthropic/models/user_profile_cyber_program.rbi +95 -0
  297. data/rbi/anthropic/models/user_profile_cyber_requirements.rbi +52 -0
  298. data/rbi/anthropic/models/user_profile_cyber_tier.rbi +69 -0
  299. data/rbi/anthropic/models/user_profile_delete_params.rbi +67 -0
  300. data/rbi/anthropic/models/user_profile_efs_feature.rbi +69 -0
  301. data/rbi/anthropic/models/user_profile_efs_program.rbi +66 -0
  302. data/rbi/anthropic/models/user_profile_external_user_account_status.rbi +52 -0
  303. data/rbi/anthropic/models/user_profile_external_user_details.rbi +125 -0
  304. data/rbi/anthropic/models/user_profile_external_user_details_params.rbi +131 -0
  305. data/rbi/anthropic/models/user_profile_external_user_entity_type.rbi +46 -0
  306. data/rbi/anthropic/models/user_profile_list_order.rbi +28 -0
  307. data/rbi/anthropic/models/user_profile_list_order_by.rbi +30 -0
  308. data/rbi/anthropic/models/user_profile_list_params.rbi +110 -0
  309. data/rbi/anthropic/models/user_profile_program_status.rbi +34 -0
  310. data/rbi/anthropic/models/user_profile_programs.rbi +77 -0
  311. data/rbi/anthropic/models/user_profile_retrieve_params.rbi +67 -0
  312. data/rbi/anthropic/models/user_profile_update_params.rbi +130 -0
  313. data/rbi/anthropic/models/user_profiles/action_url_create_params.rbi +86 -0
  314. data/rbi/anthropic/models/user_profiles/user_profile_action_url.rbi +55 -0
  315. data/rbi/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbi +32 -0
  316. data/rbi/anthropic/models.rbi +48 -0
  317. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +65 -51
  318. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +19 -16
  319. data/rbi/anthropic/resources/beta/memory_stores.rbi +53 -38
  320. data/rbi/anthropic/resources/beta/messages/batches.rbi +3 -4
  321. data/rbi/anthropic/resources/beta/messages.rbi +192 -198
  322. data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +1 -1
  323. data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +1 -1
  324. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +1 -1
  325. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +1 -1
  326. data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +9 -4
  327. data/rbi/anthropic/resources/beta/organization/webhooks.rbi +248 -0
  328. data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +35 -0
  329. data/rbi/anthropic/resources/beta/organization.rbi +3 -0
  330. data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +46 -0
  331. data/rbi/anthropic/resources/beta/user_profiles.rbi +51 -28
  332. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +13 -11
  333. data/rbi/anthropic/resources/beta/vaults.rbi +10 -7
  334. data/rbi/anthropic/resources/messages/batches.rbi +3 -4
  335. data/rbi/anthropic/resources/messages.rbi +122 -132
  336. data/rbi/anthropic/resources/organization/workspaces/rate_limits.rbi +33 -0
  337. data/rbi/anthropic/resources/user_profiles/action_urls.rbi +40 -0
  338. data/rbi/anthropic/resources/user_profiles.rbi +184 -0
  339. data/sig/anthropic/client.rbs +2 -0
  340. data/sig/anthropic/helpers/bedrock/client.rbs +2 -0
  341. data/sig/anthropic/helpers/google_cloud/client.rbs +10 -1
  342. data/sig/anthropic/helpers/vertex/client.rbs +2 -0
  343. data/sig/anthropic/internal/report_page_cursor.rbs +17 -0
  344. data/sig/anthropic/internal/tracing.rbs +13 -4
  345. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  346. data/sig/anthropic/models/beta/beta_deleted_user_profile.rbs +20 -0
  347. data/sig/anthropic/models/beta/beta_user_profile.rbs +8 -8
  348. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +23 -2
  349. data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbs +39 -0
  350. data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbs +39 -0
  351. data/sig/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbs +20 -0
  352. data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +82 -0
  353. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +77 -0
  354. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbs +18 -0
  355. data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbs +18 -0
  356. data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +71 -0
  357. data/sig/anthropic/models/beta/organization/webhook_delete_params.rbs +39 -0
  358. data/sig/anthropic/models/beta/organization/webhook_list_params.rbs +67 -0
  359. data/sig/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbs +39 -0
  360. data/sig/anthropic/models/beta/organization/webhook_retrieve_params.rbs +39 -0
  361. data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +102 -0
  362. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbs +36 -0
  363. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbs +31 -0
  364. data/sig/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbs +42 -0
  365. data/sig/anthropic/models/beta/user_profile_delete_params.rbs +44 -0
  366. data/sig/anthropic/models/beta/user_profiles/action_url_create_params.rbs +51 -0
  367. data/sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs +30 -0
  368. data/sig/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbs +18 -0
  369. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +2 -2
  370. data/sig/anthropic/models/deleted_user_profile.rbs +15 -0
  371. data/sig/anthropic/models/organization/workspaces/rate_limit_update_params.rbs +40 -0
  372. data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbs +36 -0
  373. data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs +31 -0
  374. data/sig/anthropic/models/user_profile.rbs +60 -0
  375. data/sig/anthropic/models/user_profile_access_type.rbs +17 -0
  376. data/sig/anthropic/models/user_profile_create_params.rbs +58 -0
  377. data/sig/anthropic/models/user_profile_cyber_program.rbs +30 -0
  378. data/sig/anthropic/models/user_profile_cyber_requirements.rbs +16 -0
  379. data/sig/anthropic/models/user_profile_cyber_tier.rbs +29 -0
  380. data/sig/anthropic/models/user_profile_delete_params.rbs +30 -0
  381. data/sig/anthropic/models/user_profile_efs_feature.rbs +29 -0
  382. data/sig/anthropic/models/user_profile_efs_program.rbs +25 -0
  383. data/sig/anthropic/models/user_profile_external_user_account_status.rbs +21 -0
  384. data/sig/anthropic/models/user_profile_external_user_details.rbs +50 -0
  385. data/sig/anthropic/models/user_profile_external_user_details_params.rbs +52 -0
  386. data/sig/anthropic/models/user_profile_external_user_entity_type.rbs +17 -0
  387. data/sig/anthropic/models/user_profile_list_order.rbs +17 -0
  388. data/sig/anthropic/models/user_profile_list_order_by.rbs +17 -0
  389. data/sig/anthropic/models/user_profile_list_params.rbs +60 -0
  390. data/sig/anthropic/models/user_profile_program_status.rbs +20 -0
  391. data/sig/anthropic/models/user_profile_programs.rbs +25 -0
  392. data/sig/anthropic/models/user_profile_retrieve_params.rbs +30 -0
  393. data/sig/anthropic/models/user_profile_update_params.rbs +59 -0
  394. data/sig/anthropic/models/user_profiles/action_url_create_params.rbs +40 -0
  395. data/sig/anthropic/models/user_profiles/user_profile_action_url.rbs +30 -0
  396. data/sig/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbs +17 -0
  397. data/sig/anthropic/models.rbs +44 -0
  398. data/sig/anthropic/resources/beta/messages.rbs +24 -24
  399. data/sig/anthropic/resources/beta/organization/analytics/cost_report.rbs +1 -1
  400. data/sig/anthropic/resources/beta/organization/analytics/usage_report.rbs +1 -1
  401. data/sig/anthropic/resources/beta/organization/analytics/user_cost_report.rbs +1 -1
  402. data/sig/anthropic/resources/beta/organization/analytics/user_usage_report.rbs +1 -1
  403. data/sig/anthropic/resources/beta/organization/webhooks.rbs +58 -0
  404. data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +7 -0
  405. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  406. data/sig/anthropic/resources/beta/user_profiles/action_urls.rbs +19 -0
  407. data/sig/anthropic/resources/beta/user_profiles.rbs +9 -0
  408. data/sig/anthropic/resources/messages.rbs +19 -19
  409. data/sig/anthropic/resources/organization/workspaces/rate_limits.rbs +7 -0
  410. data/sig/anthropic/resources/user_profiles/action_urls.rbs +16 -0
  411. data/sig/anthropic/resources/user_profiles.rbs +49 -0
  412. metadata +161 -2
@@ -6,7 +6,7 @@ module Anthropic
6
6
  module Vaults
7
7
  class BetaManagedAgentsTokenEndpointAuthPostParam < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute client_secret
9
- # OAuth client secret.
9
+ # The OAuth client secret, sent to `token_endpoint` in the POST body.
10
10
  #
11
11
  # @return [String]
12
12
  required :client_secret, String
@@ -19,7 +19,7 @@ module Anthropic
19
19
  # @!method initialize(client_secret:, type:)
20
20
  # Token endpoint uses POST body authentication with client credentials.
21
21
  #
22
- # @param client_secret [String] OAuth client secret.
22
+ # @param client_secret [String] The OAuth client secret, sent to `token_endpoint` in the POST body.
23
23
  #
24
24
  # @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostParam::Type]
25
25
 
@@ -12,7 +12,11 @@ module Anthropic
12
12
  enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam::Type }
13
13
 
14
14
  # @!attribute client_secret
15
- # Updated OAuth client secret.
15
+ # A new OAuth client secret to replace the stored one.
16
+ #
17
+ # The credential must already use `client_secret_basic` or `client_secret_post`.
18
+ # It keeps its current `token_endpoint_auth` type, even if the `type` sent with
19
+ # this secret is the other one.
16
20
  #
17
21
  # @return [String, nil]
18
22
  optional :client_secret, String, nil?: true
@@ -20,9 +24,13 @@ module Anthropic
20
24
  # @!method initialize(type:, client_secret: nil)
21
25
  # Updated POST body authentication parameters for the token endpoint.
22
26
  #
27
+ # Some parameter documentations has been truncated, see
28
+ # {Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam}
29
+ # for more details.
30
+ #
23
31
  # @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam::Type]
24
32
  #
25
- # @param client_secret [String, nil] Updated OAuth client secret.
33
+ # @param client_secret [String, nil] A new OAuth client secret to replace the stored one.
26
34
 
27
35
  # @see Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam#type
28
36
  module Type
@@ -103,25 +103,29 @@ module Anthropic
103
103
  # Creates a new instance of the variant class whose `type` matches the given
104
104
  # value, passing the remaining arguments to its constructor.
105
105
  #
106
+ # Some parameter documentations has been truncated, see
107
+ # {Anthropic::Models::Beta::Vaults::CredentialCreateParams::Auth} for more
108
+ # details.
109
+ #
106
110
  # @param type [Symbol, Anthropic::Models::Beta::Vaults::CredentialCreateParams::Auth::Type, String]
107
111
  #
108
112
  # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
109
113
  #
110
- # @option args [String] :access_token OAuth access token.
114
+ # @option args [String] :access_token The OAuth access token to send to the MCP server.
111
115
  #
112
116
  # @option args [String] :mcp_server_url URL of the MCP server this credential authenticates against.
113
117
  #
114
- # @option args [Time, nil] :expires_at A timestamp in RFC 3339 format
118
+ # @option args [Time, nil] :expires_at When `access_token` expires, in RFC 3339.
115
119
  #
116
120
  # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshParams, nil] :refresh Refresh token configuration, if the credential supports token refresh.
117
121
  #
118
- # @option args [String] :token Static bearer token value.
122
+ # @option args [String] :token The static bearer token to send to the MCP server, such as an API key or persona
119
123
  #
120
124
  # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams] :networking Outbound hosts the secret value is substituted on.
121
125
  #
122
126
  # @option args [String] :secret_name Name of the environment variable. Immutable after create.
123
127
  #
124
- # @option args [String] :secret_value Secret value. Write-only; never returned in responses.
128
+ # @option args [String] :secret_value The secret to substitute into the agent's outbound requests. It's write-only and
125
129
  #
126
130
  # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsInjectionLocationParams] :injection_location Where in the outbound request the secret value may be substituted.
127
131
  #
@@ -16,7 +16,7 @@ module Anthropic
16
16
  required :vault_id, String
17
17
 
18
18
  # @!attribute include_archived
19
- # Whether to include archived credentials in the results.
19
+ # Whether to include archived credentials in the results. Defaults to `false`.
20
20
  #
21
21
  # @return [Boolean, nil]
22
22
  optional :include_archived, Anthropic::Internal::Type::Boolean
@@ -28,7 +28,9 @@ module Anthropic
28
28
  optional :limit, Integer
29
29
 
30
30
  # @!attribute page
31
- # Opaque pagination token from a previous `list_credentials` response.
31
+ # The `next_page` value from a previous
32
+ # [List Credentials](https://platform.claude.com/docs/en/api/beta/vaults/credentials/list)
33
+ # response, to get the next page. Leave it out to get the first page.
32
34
  #
33
35
  # @return [String, nil]
34
36
  optional :page, String
@@ -57,11 +59,11 @@ module Anthropic
57
59
  #
58
60
  # @param vault_id [String] Identifier of the vault to list credentials for.
59
61
  #
60
- # @param include_archived [Boolean] Whether to include archived credentials in the results.
62
+ # @param include_archived [Boolean] Whether to include archived credentials in the results. Defaults to `false`.
61
63
  #
62
64
  # @param limit [Integer] Maximum number of credentials to return per page. Defaults to 20, maximum 100.
63
65
  #
64
- # @param page [String] Opaque pagination token from a previous `list_credentials` response.
66
+ # @param page [String] The `next_page` value from a previous [List Credentials](https://platform.claude
65
67
  #
66
68
  # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
67
69
  #
@@ -22,8 +22,8 @@ module Anthropic
22
22
  required :credential_id, String
23
23
 
24
24
  # @!attribute auth
25
- # Updated authentication configuration. The `type` is immutable; the variant sent
26
- # must match the stored credential's type.
25
+ # New authentication settings for the credential. The `type` must match the
26
+ # credential's current type, which can't be changed.
27
27
  #
28
28
  # @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams, nil]
29
29
  optional :auth, union: -> { Anthropic::Beta::Vaults::CredentialUpdateParams::Auth }
@@ -67,7 +67,7 @@ module Anthropic
67
67
  #
68
68
  # @param credential_id [String] Unique identifier of the credential to update.
69
69
  #
70
- # @param auth [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams] Updated authentication configuration. The `type` is immutable; the variant sent
70
+ # @param auth [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams] New authentication settings for the credential. The `type` must match the creden
71
71
  #
72
72
  # @param display_name [String, nil] Updated human-readable name for the credential. 1-255 characters.
73
73
  #
@@ -79,8 +79,8 @@ module Anthropic
79
79
  #
80
80
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
81
81
 
82
- # Updated authentication configuration. The `type` is immutable; the variant sent
83
- # must match the stored credential's type.
82
+ # New authentication settings for the credential. The `type` must match the
83
+ # credential's current type, which can't be changed.
84
84
  module Auth
85
85
  extend Anthropic::Internal::Type::Union
86
86
 
@@ -113,23 +113,27 @@ module Anthropic
113
113
  # Creates a new instance of the variant class whose `type` matches the given
114
114
  # value, passing the remaining arguments to its constructor.
115
115
  #
116
+ # Some parameter documentations has been truncated, see
117
+ # {Anthropic::Models::Beta::Vaults::CredentialUpdateParams::Auth} for more
118
+ # details.
119
+ #
116
120
  # @param type [Symbol, Anthropic::Models::Beta::Vaults::CredentialUpdateParams::Auth::Type, String]
117
121
  #
118
122
  # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
119
123
  #
120
- # @option args [String, nil] :access_token Updated OAuth access token.
124
+ # @option args [String, nil] :access_token The new OAuth access token to replace the stored one.
121
125
  #
122
- # @option args [Time, nil] :expires_at A timestamp in RFC 3339 format
126
+ # @option args [Time, nil] :expires_at When the credential's access token expires, in RFC 3339. Leave it out to keep th
123
127
  #
124
128
  # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshUpdateParams, nil] :refresh Updated refresh token configuration.
125
129
  #
126
- # @option args [String, nil] :token Updated static bearer token value.
130
+ # @option args [String, nil] :token The new static bearer token to replace the stored one.
127
131
  #
128
132
  # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams] :injection_location Updated injection location.
129
133
  #
130
- # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams, nil] :networking Updated networking scope. Full replacement.
134
+ # @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams, nil] :networking The new networking scope, which replaces the stored one as a whole.
131
135
  #
132
- # @option args [String, nil] :secret_value Updated secret value.
136
+ # @option args [String, nil] :secret_value The new secret value to replace the stored one.
133
137
  #
134
138
  # @raise [ArgumentError]
135
139
  # @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams]
@@ -16,6 +16,14 @@ module Anthropic
16
16
  required :type, const: :messages_changed
17
17
 
18
18
  # @!method initialize(cache_missed_input_tokens:, type: :messages_changed)
19
+ # A `cache_miss_reason` for a request whose `messages` differ from the previous
20
+ # request's in an earlier entry, instead of only having entries appended. The
21
+ # `model`, `system`, and `tools` match.
22
+ #
23
+ # See the
24
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
25
+ # to learn what to change for each reason.
26
+ #
19
27
  # Some parameter documentations has been truncated, see
20
28
  # {Anthropic::Models::CacheMissMessagesChanged} for more details.
21
29
  #
@@ -16,6 +16,13 @@ module Anthropic
16
16
  required :type, const: :model_changed
17
17
 
18
18
  # @!method initialize(cache_missed_input_tokens:, type: :model_changed)
19
+ # A `cache_miss_reason` for a request whose `model` or `speed` differs from the
20
+ # previous request's.
21
+ #
22
+ # See the
23
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
24
+ # to learn what to change for each reason.
25
+ #
19
26
  # Some parameter documentations has been truncated, see
20
27
  # {Anthropic::Models::CacheMissModelChanged} for more details.
21
28
  #
@@ -9,6 +9,15 @@ module Anthropic
9
9
  required :type, const: :previous_message_not_found
10
10
 
11
11
  # @!method initialize(type: :previous_message_not_found)
12
+ # A `cache_miss_reason` for when the API doesn't have a stored record of the
13
+ # request that `diagnostics.previous_message_id` references.
14
+ #
15
+ # This doesn't mean that this request changed.
16
+ #
17
+ # See the
18
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
19
+ # to learn what to change for each reason.
20
+ #
12
21
  # @param type [Symbol, :previous_message_not_found]
13
22
  end
14
23
  end
@@ -7,16 +7,38 @@ module Anthropic
7
7
 
8
8
  discriminator :type
9
9
 
10
+ # A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
11
+ #
12
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
10
13
  variant :model_changed, -> { Anthropic::CacheMissModelChanged }
11
14
 
15
+ # A `cache_miss_reason` for a request whose `system` differs from the previous request's.
16
+ #
17
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
12
18
  variant :system_changed, -> { Anthropic::CacheMissSystemChanged }
13
19
 
20
+ # A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
21
+ #
22
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
14
23
  variant :tools_changed, -> { Anthropic::CacheMissToolsChanged }
15
24
 
25
+ # A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
26
+ #
27
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
16
28
  variant :messages_changed, -> { Anthropic::CacheMissMessagesChanged }
17
29
 
30
+ # A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
31
+ #
32
+ # This doesn't mean that this request changed.
33
+ #
34
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
18
35
  variant :previous_message_not_found, -> { Anthropic::CacheMissPreviousMessageNotFound }
19
36
 
37
+ # A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
38
+ #
39
+ # This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
40
+ #
41
+ # See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
20
42
  variant :unavailable, -> { Anthropic::CacheMissUnavailable }
21
43
 
22
44
  module Type
@@ -16,6 +16,13 @@ module Anthropic
16
16
  required :type, const: :system_changed
17
17
 
18
18
  # @!method initialize(cache_missed_input_tokens:, type: :system_changed)
19
+ # A `cache_miss_reason` for a request whose `system` differs from the previous
20
+ # request's.
21
+ #
22
+ # See the
23
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
24
+ # to learn what to change for each reason.
25
+ #
19
26
  # Some parameter documentations has been truncated, see
20
27
  # {Anthropic::Models::CacheMissSystemChanged} for more details.
21
28
  #
@@ -16,6 +16,13 @@ module Anthropic
16
16
  required :type, const: :tools_changed
17
17
 
18
18
  # @!method initialize(cache_missed_input_tokens:, type: :tools_changed)
19
+ # A `cache_miss_reason` for a request whose `tools` differ from the previous
20
+ # request's, for example because tools were added, removed, or reordered.
21
+ #
22
+ # See the
23
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
24
+ # to learn what to change for each reason.
25
+ #
19
26
  # Some parameter documentations has been truncated, see
20
27
  # {Anthropic::Models::CacheMissToolsChanged} for more details.
21
28
  #
@@ -9,6 +9,17 @@ module Anthropic
9
9
  required :type, const: :unavailable
10
10
 
11
11
  # @!method initialize(type: :unavailable)
12
+ # A `cache_miss_reason` for when the API can't give a diagnosis. The request
13
+ # itself was processed normally.
14
+ #
15
+ # This includes a request whose `model`, `system`, and `tools` match the previous
16
+ # request's but whose other prompt-affecting parameters, such as `thinking` or
17
+ # `tool_choice`, differ.
18
+ #
19
+ # See the
20
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
21
+ # to learn what to change for each reason.
22
+ #
12
23
  # @param type [Symbol, :unavailable]
13
24
  end
14
25
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # @see Anthropic::Resources::UserProfiles#delete
6
+ class DeletedUserProfile < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # Identifier of the deleted user profile, prefixed `uprof_`.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute type
14
+ # Object type. Always `user_profile_deleted`.
15
+ #
16
+ # @return [Symbol, :user_profile_deleted]
17
+ required :type, const: :user_profile_deleted
18
+
19
+ # @!method initialize(id:, type: :user_profile_deleted)
20
+ # @param id [String] Identifier of the deleted user profile, prefixed `uprof_`.
21
+ #
22
+ # @param type [Symbol, :user_profile_deleted] Object type. Always `user_profile_deleted`.
23
+ end
24
+ end
25
+ end
@@ -232,7 +232,7 @@ module Anthropic
232
232
 
233
233
  # @!attribute user_profile_id
234
234
  # The user profile ID to attribute this request to. Use when acting on behalf of a
235
- # party other than your organization. Requires the `user-profiles` beta header.
235
+ # party other than your organization.
236
236
  #
237
237
  # @return [String, nil]
238
238
  optional :user_profile_id, String
@@ -350,7 +350,7 @@ module Anthropic
350
350
 
351
351
  # @!attribute user_profile_id
352
352
  # The user profile ID to attribute this request to. Use when acting on behalf of a
353
- # party other than your organization. Requires the `user-profiles` beta header.
353
+ # party other than your organization.
354
354
  #
355
355
  # @return [String, nil]
356
356
  optional :user_profile_id, String
@@ -18,9 +18,9 @@ module Anthropic
18
18
 
19
19
  # @!attribute user_profile_id
20
20
  # The user profile ID to attribute the requests in this batch to. Use when acting
21
- # on behalf of a party other than your organization. Requires the `user-profiles`
22
- # beta header. Applies to every request in the batch; an individual request whose
23
- # `user_profile_id` body field conflicts with this header is errored.
21
+ # on behalf of a party other than your organization. Applies to every request in
22
+ # the batch; an individual request whose `user_profile_id` body field conflicts
23
+ # with this header is errored.
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :user_profile_id, String
@@ -7,7 +7,8 @@ module Anthropic
7
7
  class OrganizationRateLimit < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute id
9
9
  # Identifier of this rate-limit entry. It is stable within the organization and
10
- # differs between organizations; the group's own identifier is `group.id`.
10
+ # differs between organizations; the group's own identifier is `group.id`. Pass it
11
+ # as `rate_limit_id` to set a workspace's overrides for this group.
11
12
  #
12
13
  # @return [String]
13
14
  required :id, String
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ module Workspaces
7
+ # @see Anthropic::Resources::Organization::Workspaces::RateLimits#update
8
+ class RateLimitUpdateParams < Anthropic::Internal::Type::BaseModel
9
+ extend Anthropic::Internal::Type::RequestParameters::Converter
10
+ include Anthropic::Internal::Type::RequestParameters
11
+
12
+ # @!attribute workspace_id
13
+ # The ID of the workspace.
14
+ #
15
+ # @return [String]
16
+ required :workspace_id, String
17
+
18
+ # @!attribute rate_limit_id
19
+ # The `id` of the organization's rate-limit entry to set overrides for.
20
+ #
21
+ # @return [String]
22
+ required :rate_limit_id, String
23
+
24
+ # @!attribute limits
25
+ # Limits to set or clear. Unspecified limit types are unchanged.
26
+ #
27
+ # @return [Array<Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitUpdateValue>]
28
+ required :limits,
29
+ -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Organization::Workspaces::WorkspaceRateLimitUpdateValue] }
30
+
31
+ # @!method initialize(workspace_id:, rate_limit_id:, limits:, request_options: {})
32
+ # @param workspace_id [String] The ID of the workspace.
33
+ #
34
+ # @param rate_limit_id [String] The `id` of the organization's rate-limit entry to set overrides for.
35
+ #
36
+ # @param limits [Array<Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitUpdateValue>] Limits to set or clear. Unspecified limit types are unchanged.
37
+ #
38
+ # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -4,7 +4,7 @@ module Anthropic
4
4
  module Models
5
5
  module Organization
6
6
  module Workspaces
7
- # @see Anthropic::Resources::Organization::Workspaces::RateLimits#list
7
+ # @see Anthropic::Resources::Organization::Workspaces::RateLimits#update
8
8
  class WorkspaceRateLimit < Anthropic::Internal::Type::BaseModel
9
9
  # @!attribute group
10
10
  # The rate-limit group this entry's limits apply to. Its `type` equals
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ module Workspaces
7
+ # Rate limiter type.
8
+ module WorkspaceRateLimitType
9
+ extend Anthropic::Internal::Type::Enum
10
+
11
+ FAST_ITPMCA = :fast_itpmca
12
+ FAST_OTPM = :fast_otpm
13
+ INPUT_TOKENS_PER_MINUTE = :input_tokens_per_minute
14
+ INPUT_TOKENS_PER_MINUTE_CACHE_AWARE = :input_tokens_per_minute_cache_aware
15
+ OUTPUT_TOKENS_PER_MINUTE = :output_tokens_per_minute
16
+ REQUESTS_PER_MINUTE = :requests_per_minute
17
+ TOKENS_PER_DAY = :tokens_per_day
18
+ TOKENS_PER_MINUTE = :tokens_per_minute
19
+ TOOL_USES_PER_SECOND = :tool_uses_per_second
20
+
21
+ # @!method self.values
22
+ # @return [Array<Symbol>]
23
+ end
24
+ end
25
+
26
+ WorkspaceRateLimitType = Workspaces::WorkspaceRateLimitType
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ module Workspaces
7
+ class WorkspaceRateLimitUpdateValue < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ # Rate limiter type.
10
+ #
11
+ # @return [Symbol, Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitType]
12
+ required :type, enum: -> { Anthropic::Organization::Workspaces::WorkspaceRateLimitType }
13
+
14
+ # @!attribute value
15
+ # New limit value. Set to null to clear the workspace override and fall back to
16
+ # the organization limit.
17
+ #
18
+ # @return [Integer, nil]
19
+ required :value, Integer, nil?: true
20
+
21
+ # @!method initialize(type:, value:)
22
+ # Some parameter documentations has been truncated, see
23
+ # {Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitUpdateValue} for
24
+ # more details.
25
+ #
26
+ # @param type [Symbol, Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitType] Rate limiter type.
27
+ #
28
+ # @param value [Integer, nil] New limit value. Set to null to clear the workspace override and fall back to th
29
+ end
30
+ end
31
+
32
+ WorkspaceRateLimitUpdateValue = Workspaces::WorkspaceRateLimitUpdateValue
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # @see Anthropic::Resources::UserProfiles#create
6
+ class UserProfile < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # Unique identifier for this user profile, prefixed `uprof_`.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute access_type
14
+ # How the platform uses the API for this entity: `application` (default) or
15
+ # `passthrough`. Absent under the legacy `user-profiles-2026-03-24` beta header.
16
+ #
17
+ # @return [Symbol, Anthropic::Models::UserProfileAccessType]
18
+ required :access_type, enum: -> { Anthropic::UserProfileAccessType }
19
+
20
+ # @!attribute created_at
21
+ # When this user profile was created, in RFC 3339 format.
22
+ #
23
+ # @return [Time]
24
+ required :created_at, Time
25
+
26
+ # @!attribute external_user_details
27
+ # Details about the entity this profile represents, as the platform states them;
28
+ # not verified by Anthropic. Every field is present, `null` until the platform
29
+ # supplies a value. Absent under the legacy `user-profiles-2026-03-24` and
30
+ # `user-profiles-2026-08-18` beta headers, which serve `reference_id` as the
31
+ # top-level `external_id` and, under `user-profiles-2026-08-18`, `onboarded_at` as
32
+ # `external_user_onboarded_at`.
33
+ #
34
+ # @return [Anthropic::Models::UserProfileExternalUserDetails]
35
+ required :external_user_details, -> { Anthropic::UserProfileExternalUserDetails }
36
+
37
+ # @!attribute metadata
38
+ # Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up
39
+ # to 512 chars.
40
+ #
41
+ # @return [Hash{Symbol=>String}]
42
+ required :metadata, Anthropic::Internal::Type::HashOf[String]
43
+
44
+ # @!attribute name
45
+ # Real-world name of the entity this profile represents (company or individual).
46
+ # For a company the platform resells Claude access to (`access_type`
47
+ # `passthrough`) this is that company's name. `null` until the platform supplies
48
+ # one.
49
+ #
50
+ # @return [String, nil]
51
+ required :name, String, nil?: true
52
+
53
+ # @!attribute programs
54
+ # The profile's standing in each Anthropic program, such as the Cyber Verification
55
+ # Program. Present when the request sends no user-profiles beta header; absent
56
+ # under the `user-profiles-2026-09-04` and earlier beta headers, which serve
57
+ # `trust_grants` instead.
58
+ #
59
+ # @return [Anthropic::Models::UserProfilePrograms]
60
+ required :programs, -> { Anthropic::UserProfilePrograms }
61
+
62
+ # @!attribute type
63
+ # Object type. Always `user_profile`.
64
+ #
65
+ # @return [Symbol, :user_profile]
66
+ required :type, const: :user_profile
67
+
68
+ # @!attribute updated_at
69
+ # When this user profile was last modified, in RFC 3339 format. It normally also
70
+ # updates shortly after Anthropic gives the profile an approval or withdraws one.
71
+ # Other changes to the statuses that Anthropic reports do not always update it, so
72
+ # read the status itself rather than watching this timestamp.
73
+ #
74
+ # @return [Time]
75
+ required :updated_at, Time
76
+
77
+ # @!method initialize(id:, access_type:, created_at:, external_user_details:, metadata:, name:, programs:, updated_at:, type: :user_profile)
78
+ # A record of an entity that the platform serves through the API, such as an
79
+ # end-user of the platform's product or a company that the platform resells Claude
80
+ # access to.
81
+ #
82
+ # A Messages, Message Batches or token counting request can send a profile's `id`
83
+ # in the `anthropic-user-profile-id` header to attribute the request to that
84
+ # entity.
85
+ #
86
+ # Some parameter documentations has been truncated, see
87
+ # {Anthropic::Models::UserProfile} for more details.
88
+ #
89
+ # @param id [String] Unique identifier for this user profile, prefixed `uprof_`.
90
+ #
91
+ # @param access_type [Symbol, Anthropic::Models::UserProfileAccessType] How the platform uses the API for this entity: `application` (default) or `passt
92
+ #
93
+ # @param created_at [Time] When this user profile was created, in RFC 3339 format.
94
+ #
95
+ # @param external_user_details [Anthropic::Models::UserProfileExternalUserDetails] Details about the entity this profile represents, as the platform states them; n
96
+ #
97
+ # @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up t
98
+ #
99
+ # @param name [String, nil] Real-world name of the entity this profile represents (company or individual). F
100
+ #
101
+ # @param programs [Anthropic::Models::UserProfilePrograms] The profile's standing in each Anthropic program, such as the Cyber Verification
102
+ #
103
+ # @param updated_at [Time] When this user profile was last modified, in RFC 3339 format. It normally also u
104
+ #
105
+ # @param type [Symbol, :user_profile] Object type. Always `user_profile`.
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # How the platform uses the API on behalf of the entity this profile represents.
6
+ # `application`: the platform sells a product that uses the API behind the scenes,
7
+ # and the profile represents an individual end-user of that product.
8
+ # `passthrough`: the platform resells raw inference, and the profile identifies
9
+ # the resold-to company.
10
+ module UserProfileAccessType
11
+ extend Anthropic::Internal::Type::Enum
12
+
13
+ # The user profile represents an individual end-user of a product that the platform builds on the API. New profiles get this value by default.
14
+ APPLICATION = :application
15
+
16
+ # The user profile represents a company that the platform resells Claude access to.
17
+ PASSTHROUGH = :passthrough
18
+
19
+ # @!method self.values
20
+ # @return [Array<Symbol>]
21
+ end
22
+ end
23
+ end