anthropic 1.80.0 → 1.81.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 (359) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -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 +7 -4
  13. data/lib/anthropic/models/beta/beta_cache_miss_messages_changed.rb +8 -0
  14. data/lib/anthropic/models/beta/beta_cache_miss_model_changed.rb +7 -0
  15. data/lib/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rb +9 -0
  16. data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +22 -0
  17. data/lib/anthropic/models/beta/beta_cache_miss_system_changed.rb +7 -0
  18. data/lib/anthropic/models/beta/beta_cache_miss_tools_changed.rb +7 -0
  19. data/lib/anthropic/models/beta/beta_cache_miss_unavailable.rb +11 -0
  20. data/lib/anthropic/models/beta/beta_deleted_user_profile.rb +29 -0
  21. data/lib/anthropic/models/beta/beta_fallback_param.rb +74 -10
  22. data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +2 -2
  23. data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +28 -19
  24. data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
  25. data/lib/anthropic/models/beta/beta_user_profile.rb +31 -28
  26. data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +1 -1
  27. data/lib/anthropic/models/beta/memory_store_archive_params.rb +5 -4
  28. data/lib/anthropic/models/beta/memory_store_create_params.rb +20 -11
  29. data/lib/anthropic/models/beta/memory_store_delete_params.rb +5 -4
  30. data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -9
  31. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -3
  32. data/lib/anthropic/models/beta/memory_store_update_params.rb +19 -14
  33. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +6 -6
  34. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +13 -6
  35. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +1 -1
  36. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +38 -26
  37. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +17 -10
  38. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +3 -2
  39. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +7 -6
  40. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +40 -26
  41. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +4 -2
  42. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +5 -5
  43. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +18 -15
  44. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +27 -19
  45. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +6 -6
  46. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +19 -18
  47. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +13 -10
  48. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +6 -6
  49. data/lib/anthropic/models/beta/message_count_tokens_params.rb +1 -1
  50. data/lib/anthropic/models/beta/message_create_params.rb +1 -1
  51. data/lib/anthropic/models/beta/messages/batch_create_params.rb +3 -3
  52. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -1
  53. data/lib/anthropic/models/beta/organization/beta_plugin.rb +34 -9
  54. data/lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb +9 -4
  55. data/lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb +13 -7
  56. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +1 -1
  57. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +29 -0
  58. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +35 -0
  59. data/lib/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rb +45 -0
  60. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +2 -3
  61. data/lib/anthropic/models/beta/user_profile_create_params.rb +12 -11
  62. data/lib/anthropic/models/beta/user_profile_delete_params.rb +48 -0
  63. data/lib/anthropic/models/beta/user_profile_list_params.rb +2 -3
  64. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +2 -3
  65. data/lib/anthropic/models/beta/user_profile_update_params.rb +11 -11
  66. data/lib/anthropic/models/beta/user_profiles/action_url_create_params.rb +58 -0
  67. data/lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb +44 -0
  68. data/lib/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rb +21 -0
  69. data/lib/anthropic/models/beta/vault_list_params.rb +6 -4
  70. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +7 -3
  71. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -1
  72. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +3 -2
  73. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +2 -2
  74. data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +2 -2
  75. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
  76. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +7 -2
  77. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +4 -4
  78. data/lib/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rb +8 -1
  79. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +7 -5
  80. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +6 -4
  81. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +7 -2
  82. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +10 -4
  83. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +15 -5
  84. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +2 -2
  85. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +14 -5
  86. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +14 -4
  87. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +4 -3
  88. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +7 -2
  89. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +2 -2
  90. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +7 -2
  91. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +10 -2
  92. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +2 -2
  93. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +10 -2
  94. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +8 -4
  95. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +6 -4
  96. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +14 -10
  97. data/lib/anthropic/models/cache_miss_messages_changed.rb +8 -0
  98. data/lib/anthropic/models/cache_miss_model_changed.rb +7 -0
  99. data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +9 -0
  100. data/lib/anthropic/models/cache_miss_reason.rb +22 -0
  101. data/lib/anthropic/models/cache_miss_system_changed.rb +7 -0
  102. data/lib/anthropic/models/cache_miss_tools_changed.rb +7 -0
  103. data/lib/anthropic/models/cache_miss_unavailable.rb +11 -0
  104. data/lib/anthropic/models/deleted_user_profile.rb +25 -0
  105. data/lib/anthropic/models/message_count_tokens_params.rb +1 -1
  106. data/lib/anthropic/models/message_create_params.rb +1 -1
  107. data/lib/anthropic/models/messages/batch_create_params.rb +3 -3
  108. data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -1
  109. data/lib/anthropic/models/organization/workspaces/rate_limit_update_params.rb +43 -0
  110. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +1 -1
  111. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +29 -0
  112. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +35 -0
  113. data/lib/anthropic/models/user_profile.rb +108 -0
  114. data/lib/anthropic/models/user_profile_access_type.rb +23 -0
  115. data/lib/anthropic/models/user_profile_create_params.rb +74 -0
  116. data/lib/anthropic/models/user_profile_cyber_program.rb +52 -0
  117. data/lib/anthropic/models/user_profile_cyber_requirements.rb +35 -0
  118. data/lib/anthropic/models/user_profile_cyber_tier.rb +38 -0
  119. data/lib/anthropic/models/user_profile_delete_params.rb +38 -0
  120. data/lib/anthropic/models/user_profile_efs_feature.rb +38 -0
  121. data/lib/anthropic/models/user_profile_efs_program.rb +40 -0
  122. data/lib/anthropic/models/user_profile_external_user_account_status.rb +27 -0
  123. data/lib/anthropic/models/user_profile_external_user_details.rb +78 -0
  124. data/lib/anthropic/models/user_profile_external_user_details_params.rb +79 -0
  125. data/lib/anthropic/models/user_profile_external_user_entity_type.rb +19 -0
  126. data/lib/anthropic/models/user_profile_list_order.rb +19 -0
  127. data/lib/anthropic/models/user_profile_list_order_by.rb +20 -0
  128. data/lib/anthropic/models/user_profile_list_params.rb +67 -0
  129. data/lib/anthropic/models/user_profile_program_status.rb +23 -0
  130. data/lib/anthropic/models/user_profile_programs.rb +41 -0
  131. data/lib/anthropic/models/user_profile_retrieve_params.rb +38 -0
  132. data/lib/anthropic/models/user_profile_update_params.rb +78 -0
  133. data/lib/anthropic/models/user_profiles/action_url_create_params.rb +48 -0
  134. data/lib/anthropic/models/user_profiles/user_profile_action_url.rb +43 -0
  135. data/lib/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rb +21 -0
  136. data/lib/anthropic/models.rb +44 -0
  137. data/lib/anthropic/resources/beta/memory_stores/memories.rb +17 -17
  138. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -6
  139. data/lib/anthropic/resources/beta/memory_stores.rb +19 -19
  140. data/lib/anthropic/resources/beta/messages.rb +63 -111
  141. data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -2
  142. data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -2
  143. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +2 -2
  144. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +2 -2
  145. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +53 -0
  146. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +54 -0
  147. data/lib/anthropic/resources/beta/user_profiles.rb +41 -5
  148. data/lib/anthropic/resources/beta/vaults/credentials.rb +9 -9
  149. data/lib/anthropic/resources/beta/vaults.rb +7 -7
  150. data/lib/anthropic/resources/messages.rb +58 -92
  151. data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +49 -0
  152. data/lib/anthropic/resources/user_profiles/action_urls.rb +50 -0
  153. data/lib/anthropic/resources/user_profiles.rb +196 -0
  154. data/lib/anthropic/version.rb +1 -1
  155. data/lib/anthropic.rb +39 -0
  156. data/rbi/anthropic/client.rbi +3 -0
  157. data/rbi/anthropic/helpers/aws/client.rbi +13 -0
  158. data/rbi/anthropic/helpers/bedrock/client.rbi +4 -0
  159. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +9 -0
  160. data/rbi/anthropic/helpers/google_cloud/client.rbi +19 -2
  161. data/rbi/anthropic/helpers/vertex/client.rbi +4 -0
  162. data/rbi/anthropic/internal/report_page_cursor.rbi +28 -0
  163. data/rbi/anthropic/internal/tracing.rbi +9 -4
  164. data/rbi/anthropic/models/beta/beta_cache_miss_messages_changed.rbi +7 -0
  165. data/rbi/anthropic/models/beta/beta_cache_miss_model_changed.rbi +6 -0
  166. data/rbi/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rbi +8 -0
  167. data/rbi/anthropic/models/beta/beta_cache_miss_system_changed.rbi +6 -0
  168. data/rbi/anthropic/models/beta/beta_cache_miss_tools_changed.rbi +6 -0
  169. data/rbi/anthropic/models/beta/beta_cache_miss_unavailable.rbi +10 -0
  170. data/rbi/anthropic/models/beta/beta_deleted_user_profile.rbi +40 -0
  171. data/rbi/anthropic/models/beta/beta_fallback_param.rbi +116 -9
  172. data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +2 -2
  173. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +44 -26
  174. data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
  175. data/rbi/anthropic/models/beta/beta_user_profile.rbi +50 -43
  176. data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +1 -1
  177. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +8 -6
  178. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +34 -16
  179. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +8 -6
  180. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +8 -12
  181. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +2 -4
  182. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +30 -20
  183. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +6 -6
  184. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +13 -6
  185. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +54 -36
  186. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +25 -18
  187. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -2
  188. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +7 -6
  189. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +60 -38
  190. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +4 -2
  191. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +5 -5
  192. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +30 -24
  193. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +44 -28
  194. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +10 -10
  195. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +32 -30
  196. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +22 -16
  197. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +10 -10
  198. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +2 -2
  199. data/rbi/anthropic/models/beta/message_create_params.rbi +2 -2
  200. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -6
  201. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +4 -2
  202. data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +49 -11
  203. data/rbi/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rbi +18 -8
  204. data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_version.rbi +20 -8
  205. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +81 -0
  206. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +62 -0
  207. data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbi +80 -0
  208. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +2 -4
  209. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +22 -20
  210. data/rbi/anthropic/models/beta/user_profile_delete_params.rbi +91 -0
  211. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +2 -4
  212. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +2 -4
  213. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +20 -20
  214. data/rbi/anthropic/models/beta/user_profiles/action_url_create_params.rbi +116 -0
  215. data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbi +55 -0
  216. data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbi +31 -0
  217. data/rbi/anthropic/models/beta/vault_list_params.rbi +8 -4
  218. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +4 -3
  219. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +6 -4
  220. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +4 -2
  221. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +2 -2
  222. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +2 -2
  223. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +5 -3
  224. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +4 -2
  225. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +4 -4
  226. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rbi +8 -1
  227. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +12 -8
  228. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +10 -6
  229. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +4 -2
  230. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +8 -4
  231. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +10 -5
  232. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +2 -2
  233. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +11 -5
  234. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +16 -4
  235. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +6 -4
  236. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +4 -2
  237. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +2 -2
  238. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +4 -2
  239. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +10 -2
  240. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +2 -2
  241. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +10 -2
  242. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +8 -4
  243. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +8 -4
  244. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +17 -11
  245. data/rbi/anthropic/models/cache_miss_messages_changed.rbi +7 -0
  246. data/rbi/anthropic/models/cache_miss_model_changed.rbi +6 -0
  247. data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +8 -0
  248. data/rbi/anthropic/models/cache_miss_system_changed.rbi +6 -0
  249. data/rbi/anthropic/models/cache_miss_tools_changed.rbi +6 -0
  250. data/rbi/anthropic/models/cache_miss_unavailable.rbi +10 -0
  251. data/rbi/anthropic/models/deleted_user_profile.rbi +33 -0
  252. data/rbi/anthropic/models/message_count_tokens_params.rbi +2 -2
  253. data/rbi/anthropic/models/message_create_params.rbi +2 -2
  254. data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -6
  255. data/rbi/anthropic/models/organization/organization_rate_limit.rbi +4 -2
  256. data/rbi/anthropic/models/organization/workspaces/rate_limit_update_params.rbi +78 -0
  257. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +81 -0
  258. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +62 -0
  259. data/rbi/anthropic/models/user_profile.rbi +152 -0
  260. data/rbi/anthropic/models/user_profile_access_type.rbi +34 -0
  261. data/rbi/anthropic/models/user_profile_create_params.rbi +135 -0
  262. data/rbi/anthropic/models/user_profile_cyber_program.rbi +95 -0
  263. data/rbi/anthropic/models/user_profile_cyber_requirements.rbi +52 -0
  264. data/rbi/anthropic/models/user_profile_cyber_tier.rbi +69 -0
  265. data/rbi/anthropic/models/user_profile_delete_params.rbi +67 -0
  266. data/rbi/anthropic/models/user_profile_efs_feature.rbi +69 -0
  267. data/rbi/anthropic/models/user_profile_efs_program.rbi +66 -0
  268. data/rbi/anthropic/models/user_profile_external_user_account_status.rbi +52 -0
  269. data/rbi/anthropic/models/user_profile_external_user_details.rbi +125 -0
  270. data/rbi/anthropic/models/user_profile_external_user_details_params.rbi +131 -0
  271. data/rbi/anthropic/models/user_profile_external_user_entity_type.rbi +46 -0
  272. data/rbi/anthropic/models/user_profile_list_order.rbi +28 -0
  273. data/rbi/anthropic/models/user_profile_list_order_by.rbi +30 -0
  274. data/rbi/anthropic/models/user_profile_list_params.rbi +110 -0
  275. data/rbi/anthropic/models/user_profile_program_status.rbi +34 -0
  276. data/rbi/anthropic/models/user_profile_programs.rbi +77 -0
  277. data/rbi/anthropic/models/user_profile_retrieve_params.rbi +67 -0
  278. data/rbi/anthropic/models/user_profile_update_params.rbi +130 -0
  279. data/rbi/anthropic/models/user_profiles/action_url_create_params.rbi +86 -0
  280. data/rbi/anthropic/models/user_profiles/user_profile_action_url.rbi +55 -0
  281. data/rbi/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbi +32 -0
  282. data/rbi/anthropic/models.rbi +48 -0
  283. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +65 -51
  284. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +19 -16
  285. data/rbi/anthropic/resources/beta/memory_stores.rbi +53 -38
  286. data/rbi/anthropic/resources/beta/messages/batches.rbi +3 -4
  287. data/rbi/anthropic/resources/beta/messages.rbi +192 -198
  288. data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +1 -1
  289. data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +1 -1
  290. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +1 -1
  291. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +1 -1
  292. data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +9 -4
  293. data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +35 -0
  294. data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +46 -0
  295. data/rbi/anthropic/resources/beta/user_profiles.rbi +51 -28
  296. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +13 -11
  297. data/rbi/anthropic/resources/beta/vaults.rbi +10 -7
  298. data/rbi/anthropic/resources/messages/batches.rbi +3 -4
  299. data/rbi/anthropic/resources/messages.rbi +122 -132
  300. data/rbi/anthropic/resources/organization/workspaces/rate_limits.rbi +33 -0
  301. data/rbi/anthropic/resources/user_profiles/action_urls.rbi +40 -0
  302. data/rbi/anthropic/resources/user_profiles.rbi +184 -0
  303. data/sig/anthropic/client.rbs +2 -0
  304. data/sig/anthropic/helpers/bedrock/client.rbs +2 -0
  305. data/sig/anthropic/helpers/google_cloud/client.rbs +10 -1
  306. data/sig/anthropic/helpers/vertex/client.rbs +2 -0
  307. data/sig/anthropic/internal/report_page_cursor.rbs +17 -0
  308. data/sig/anthropic/internal/tracing.rbs +7 -4
  309. data/sig/anthropic/models/beta/beta_deleted_user_profile.rbs +20 -0
  310. data/sig/anthropic/models/beta/beta_user_profile.rbs +8 -8
  311. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbs +36 -0
  312. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbs +31 -0
  313. data/sig/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbs +42 -0
  314. data/sig/anthropic/models/beta/user_profile_delete_params.rbs +44 -0
  315. data/sig/anthropic/models/beta/user_profiles/action_url_create_params.rbs +51 -0
  316. data/sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs +30 -0
  317. data/sig/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbs +18 -0
  318. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +2 -2
  319. data/sig/anthropic/models/deleted_user_profile.rbs +15 -0
  320. data/sig/anthropic/models/organization/workspaces/rate_limit_update_params.rbs +40 -0
  321. data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbs +36 -0
  322. data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs +31 -0
  323. data/sig/anthropic/models/user_profile.rbs +60 -0
  324. data/sig/anthropic/models/user_profile_access_type.rbs +17 -0
  325. data/sig/anthropic/models/user_profile_create_params.rbs +58 -0
  326. data/sig/anthropic/models/user_profile_cyber_program.rbs +30 -0
  327. data/sig/anthropic/models/user_profile_cyber_requirements.rbs +16 -0
  328. data/sig/anthropic/models/user_profile_cyber_tier.rbs +29 -0
  329. data/sig/anthropic/models/user_profile_delete_params.rbs +30 -0
  330. data/sig/anthropic/models/user_profile_efs_feature.rbs +29 -0
  331. data/sig/anthropic/models/user_profile_efs_program.rbs +25 -0
  332. data/sig/anthropic/models/user_profile_external_user_account_status.rbs +21 -0
  333. data/sig/anthropic/models/user_profile_external_user_details.rbs +50 -0
  334. data/sig/anthropic/models/user_profile_external_user_details_params.rbs +52 -0
  335. data/sig/anthropic/models/user_profile_external_user_entity_type.rbs +17 -0
  336. data/sig/anthropic/models/user_profile_list_order.rbs +17 -0
  337. data/sig/anthropic/models/user_profile_list_order_by.rbs +17 -0
  338. data/sig/anthropic/models/user_profile_list_params.rbs +60 -0
  339. data/sig/anthropic/models/user_profile_program_status.rbs +20 -0
  340. data/sig/anthropic/models/user_profile_programs.rbs +25 -0
  341. data/sig/anthropic/models/user_profile_retrieve_params.rbs +30 -0
  342. data/sig/anthropic/models/user_profile_update_params.rbs +59 -0
  343. data/sig/anthropic/models/user_profiles/action_url_create_params.rbs +40 -0
  344. data/sig/anthropic/models/user_profiles/user_profile_action_url.rbs +30 -0
  345. data/sig/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbs +17 -0
  346. data/sig/anthropic/models.rbs +44 -0
  347. data/sig/anthropic/resources/beta/messages.rbs +24 -24
  348. data/sig/anthropic/resources/beta/organization/analytics/cost_report.rbs +1 -1
  349. data/sig/anthropic/resources/beta/organization/analytics/usage_report.rbs +1 -1
  350. data/sig/anthropic/resources/beta/organization/analytics/user_cost_report.rbs +1 -1
  351. data/sig/anthropic/resources/beta/organization/analytics/user_usage_report.rbs +1 -1
  352. data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +7 -0
  353. data/sig/anthropic/resources/beta/user_profiles/action_urls.rbs +19 -0
  354. data/sig/anthropic/resources/beta/user_profiles.rbs +9 -0
  355. data/sig/anthropic/resources/messages.rbs +19 -19
  356. data/sig/anthropic/resources/organization/workspaces/rate_limits.rbs +7 -0
  357. data/sig/anthropic/resources/user_profiles/action_urls.rbs +16 -0
  358. data/sig/anthropic/resources/user_profiles.rbs +49 -0
  359. metadata +119 -2
@@ -8,16 +8,38 @@ module Anthropic
8
8
 
9
9
  discriminator :type
10
10
 
11
+ # A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
12
+ #
13
+ # 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.
11
14
  variant :model_changed, -> { Anthropic::Beta::BetaCacheMissModelChanged }
12
15
 
16
+ # A `cache_miss_reason` for a request whose `system` differs from the previous request's.
17
+ #
18
+ # 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.
13
19
  variant :system_changed, -> { Anthropic::Beta::BetaCacheMissSystemChanged }
14
20
 
21
+ # A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
22
+ #
23
+ # 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.
15
24
  variant :tools_changed, -> { Anthropic::Beta::BetaCacheMissToolsChanged }
16
25
 
26
+ # 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.
27
+ #
28
+ # 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.
17
29
  variant :messages_changed, -> { Anthropic::Beta::BetaCacheMissMessagesChanged }
18
30
 
31
+ # A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
32
+ #
33
+ # This doesn't mean that this request changed.
34
+ #
35
+ # 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.
19
36
  variant :previous_message_not_found, -> { Anthropic::Beta::BetaCacheMissPreviousMessageNotFound }
20
37
 
38
+ # A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
39
+ #
40
+ # 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.
41
+ #
42
+ # 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.
21
43
  variant :unavailable, -> { Anthropic::Beta::BetaCacheMissUnavailable }
22
44
 
23
45
  module Type
@@ -17,6 +17,13 @@ module Anthropic
17
17
  required :type, const: :system_changed
18
18
 
19
19
  # @!method initialize(cache_missed_input_tokens:, type: :system_changed)
20
+ # A `cache_miss_reason` for a request whose `system` differs from the previous
21
+ # request's.
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
+ #
20
27
  # Some parameter documentations has been truncated, see
21
28
  # {Anthropic::Models::Beta::BetaCacheMissSystemChanged} for more details.
22
29
  #
@@ -17,6 +17,13 @@ module Anthropic
17
17
  required :type, const: :tools_changed
18
18
 
19
19
  # @!method initialize(cache_missed_input_tokens:, type: :tools_changed)
20
+ # A `cache_miss_reason` for a request whose `tools` differ from the previous
21
+ # request's, for example because tools were added, removed, or reordered.
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
+ #
20
27
  # Some parameter documentations has been truncated, see
21
28
  # {Anthropic::Models::Beta::BetaCacheMissToolsChanged} for more details.
22
29
  #
@@ -10,6 +10,17 @@ module Anthropic
10
10
  required :type, const: :unavailable
11
11
 
12
12
  # @!method initialize(type: :unavailable)
13
+ # A `cache_miss_reason` for when the API can't give a diagnosis. The request
14
+ # itself was processed normally.
15
+ #
16
+ # This includes a request whose `model`, `system`, and `tools` match the previous
17
+ # request's but whose other prompt-affecting parameters, such as `thinking` or
18
+ # `tool_choice`, differ.
19
+ #
20
+ # See the
21
+ # [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
22
+ # to learn what to change for each reason.
23
+ #
13
24
  # @param type [Symbol, :unavailable]
14
25
  end
15
26
  end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ # @see Anthropic::Resources::Beta::UserProfiles#delete
7
+ class BetaDeletedUserProfile < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute id
9
+ # Identifier of the deleted user profile, prefixed `uprof_`.
10
+ #
11
+ # @return [String]
12
+ required :id, String
13
+
14
+ # @!attribute type
15
+ # Object type. Always `user_profile_deleted`.
16
+ #
17
+ # @return [Symbol, :user_profile_deleted]
18
+ required :type, const: :user_profile_deleted
19
+
20
+ # @!method initialize(id:, type: :user_profile_deleted)
21
+ # @param id [String] Identifier of the deleted user profile, prefixed `uprof_`.
22
+ #
23
+ # @param type [Symbol, :user_profile_deleted] Object type. Always `user_profile_deleted`.
24
+ end
25
+ end
26
+
27
+ BetaDeletedUserProfile = Beta::BetaDeletedUserProfile
28
+ end
29
+ end
@@ -14,24 +14,68 @@ module Anthropic
14
14
  required :model, union: -> { Anthropic::Model }
15
15
 
16
16
  # @!attribute max_tokens
17
+ # The `max_tokens` for the fallback attempt that uses this `fallbacks` entry's
18
+ # `model`, in place of the request's `max_tokens`. If you leave it out or set it
19
+ # to `null`, the attempt uses the request's `max_tokens`.
20
+ #
21
+ # See the
22
+ # [refusals and fallback guide](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#naming-your-own-fallback-models)
23
+ # to learn more about fallback entries.
17
24
  #
18
25
  # @return [Integer, nil]
19
26
  optional :max_tokens, Integer, nil?: true
20
27
 
21
28
  # @!attribute output_config
29
+ # Output parameters for the fallback attempt that uses this `fallbacks` entry's
30
+ # `model`, combined with the request's `output_config` one field at a time.
31
+ #
32
+ # - `format`: If you leave it out, the attempt uses the request's `format`. If you
33
+ # set it to `null`, the attempt runs without a format.
34
+ # - `effort`: If you leave it out, the attempt uses the request's `effort` when
35
+ # `model` supports that level with the attempt's `thinking`. If the request
36
+ # doesn't set `effort`, if `model` doesn't support the level, or if you set
37
+ # `effort` to `null`, the attempt runs at the default effort of `model`.
38
+ # - `task_budget`: If you leave it out, the attempt uses the request's
39
+ # `task_budget` when `model` accepts a task budget of that size. If the request
40
+ # doesn't set `task_budget`, if `model` doesn't accept it, or if you set
41
+ # `task_budget` to `null`, the attempt runs without a task budget.
42
+ #
43
+ # Set `output_config` to `null` to run the attempt without a format or a task
44
+ # budget, at the default effort of `model`.
45
+ #
46
+ # These rules apply with the `server-side-fallback-2026-07-01` beta header.
22
47
  #
23
48
  # @return [Anthropic::Models::Beta::BetaOutputConfig, nil]
24
49
  optional :output_config, -> { Anthropic::Beta::BetaOutputConfig }, nil?: true
25
50
 
26
51
  # @!attribute speed
27
- # Inference speed mode. `fast` provides significantly faster output token
28
- # generation at premium pricing. Not all models support `fast`; invalid
29
- # combinations are rejected at create time.
52
+ # The inference speed mode for the fallback attempt that uses this `fallbacks`
53
+ # entry's `model`. If you leave it out, the attempt runs at `fast` speed only when
54
+ # the request sets `speed` to `fast` and your organization can use fast mode on
55
+ # `model`.
56
+ #
57
+ # Otherwise, or when you set this field to `null`, the attempt runs at `standard`
58
+ # speed.
59
+ #
60
+ # These rules apply with the `server-side-fallback-2026-07-01` beta header.
30
61
  #
31
62
  # @return [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil]
32
63
  optional :speed, enum: -> { Anthropic::Beta::BetaFallbackParam::Speed }, nil?: true
33
64
 
34
65
  # @!attribute thinking
66
+ # The thinking configuration for the fallback attempt that uses this `fallbacks`
67
+ # entry's `model`. If you leave it out, the attempt uses the request's `thinking`
68
+ # when `model` supports that thinking `type`.
69
+ #
70
+ # If you leave it out and the request's thinking `type` is `between_tools` but
71
+ # `model` doesn't support `between_tools`, the attempt uses `disabled` if `model`
72
+ # supports it. Otherwise, if `model` doesn't support the request's thinking
73
+ # `type`, if the request doesn't set `thinking`, or if you set this field to
74
+ # `null`, the attempt uses the thinking `type` that `model` uses when a request
75
+ # leaves out `thinking`. The request's `thinking.display` still applies where
76
+ # `model` allows it.
77
+ #
78
+ # These rules apply with the `server-side-fallback-2026-07-01` beta header.
35
79
  #
36
80
  # @return [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil]
37
81
  optional :thinking, union: -> { Anthropic::Beta::BetaFallbackParam::Thinking }, nil?: true
@@ -49,17 +93,23 @@ module Anthropic
49
93
  #
50
94
  # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
51
95
  #
52
- # @param max_tokens [Integer, nil]
96
+ # @param max_tokens [Integer, nil] The `max_tokens` for the fallback attempt that uses this `fallbacks` entry's `mo
53
97
  #
54
- # @param output_config [Anthropic::Models::Beta::BetaOutputConfig, nil]
98
+ # @param output_config [Anthropic::Models::Beta::BetaOutputConfig, nil] Output parameters for the fallback attempt that uses this `fallbacks` entry's `m
55
99
  #
56
- # @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil] Inference speed mode. `fast` provides significantly faster output token generati
100
+ # @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil] The inference speed mode for the fallback attempt that uses this `fallbacks` ent
57
101
  #
58
- # @param thinking [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil]
102
+ # @param thinking [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil] The thinking configuration for the fallback attempt that uses this `fallbacks` e
59
103
 
60
- # Inference speed mode. `fast` provides significantly faster output token
61
- # generation at premium pricing. Not all models support `fast`; invalid
62
- # combinations are rejected at create time.
104
+ # The inference speed mode for the fallback attempt that uses this `fallbacks`
105
+ # entry's `model`. If you leave it out, the attempt runs at `fast` speed only when
106
+ # the request sets `speed` to `fast` and your organization can use fast mode on
107
+ # `model`.
108
+ #
109
+ # Otherwise, or when you set this field to `null`, the attempt runs at `standard`
110
+ # speed.
111
+ #
112
+ # These rules apply with the `server-side-fallback-2026-07-01` beta header.
63
113
  #
64
114
  # @see Anthropic::Models::Beta::BetaFallbackParam#speed
65
115
  module Speed
@@ -72,6 +122,20 @@ module Anthropic
72
122
  # @return [Array<Symbol>]
73
123
  end
74
124
 
125
+ # The thinking configuration for the fallback attempt that uses this `fallbacks`
126
+ # entry's `model`. If you leave it out, the attempt uses the request's `thinking`
127
+ # when `model` supports that thinking `type`.
128
+ #
129
+ # If you leave it out and the request's thinking `type` is `between_tools` but
130
+ # `model` doesn't support `between_tools`, the attempt uses `disabled` if `model`
131
+ # supports it. Otherwise, if `model` doesn't support the request's thinking
132
+ # `type`, if the request doesn't set `thinking`, or if you set this field to
133
+ # `null`, the attempt uses the thinking `type` that `model` uses when a request
134
+ # leaves out `thinking`. The request's `thinking.display` still applies where
135
+ # `model` allows it.
136
+ #
137
+ # These rules apply with the `server-side-fallback-2026-07-01` beta header.
138
+ #
75
139
  # @see Anthropic::Models::Beta::BetaFallbackParam#thinking
76
140
  module Thinking
77
141
  extend Anthropic::Internal::Type::Union
@@ -6,7 +6,7 @@ module Anthropic
6
6
  # @see Anthropic::Resources::Beta::Vaults#delete
7
7
  class BetaManagedAgentsDeletedVault < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute id
9
- # Unique identifier of the deleted vault.
9
+ # The unique ID of the deleted vault (`vlt_...`).
10
10
  #
11
11
  # @return [String]
12
12
  required :id, String
@@ -19,7 +19,7 @@ module Anthropic
19
19
  # @!method initialize(id:, type:)
20
20
  # Confirmation of a deleted vault.
21
21
  #
22
- # @param id [String] Unique identifier of the deleted vault.
22
+ # @param id [String] The unique ID of the deleted vault (`vlt_...`).
23
23
  #
24
24
  # @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeletedVault::Type]
25
25
 
@@ -6,29 +6,34 @@ module Anthropic
6
6
  # @see Anthropic::Resources::Beta::MemoryStores#create
7
7
  class BetaManagedAgentsMemoryStore < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute id
9
- # Unique identifier for the memory store (a `memstore_...` tagged ID). Use this
10
- # when attaching the store to a session, or in the `{memory_store_id}` path
11
- # parameter of subsequent calls.
9
+ # The unique ID of the memory store (`memstore_...`). Use it to attach the store
10
+ # to a session.
12
11
  #
13
12
  # @return [String]
14
13
  required :id, String
15
14
 
16
15
  # @!attribute archived_at
17
- # Timestamp when the store was archived, or `null` if active. Set once and never
18
- # cleared; archiving is one-way. Archived stores are read-only and cannot be
19
- # attached to new sessions.
16
+ # When the memory store was archived, in RFC 3339, or `null` if it hasn't been.
17
+ #
18
+ # Archiving can't be undone. An archived store can't be attached to new sessions.
19
+ # You can't create or update its memories or update the store. You can still read
20
+ # and delete its memories, redact their versions, and delete the store.
21
+ #
22
+ # See the
23
+ # [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#archive-a-store)
24
+ # to learn more about archiving.
20
25
  #
21
26
  # @return [Time, nil]
22
27
  required :archived_at, Time, nil?: true
23
28
 
24
29
  # @!attribute created_at
25
- # Timestamp when the store was created.
30
+ # When the memory store was created, in RFC 3339.
26
31
  #
27
32
  # @return [Time]
28
33
  required :created_at, Time
29
34
 
30
35
  # @!attribute description
31
- # Free-text description of what the store contains, up to 1024 characters.
36
+ # Free-text description of what the store contains, up to 1,024 characters.
32
37
  # Included in the agent's system prompt when the store is attached, so word it to
33
38
  # be useful to the agent. Empty string when unset.
34
39
  #
@@ -36,9 +41,11 @@ module Anthropic
36
41
  required :description, String
37
42
 
38
43
  # @!attribute metadata
39
- # Arbitrary key-value tags for your own bookkeeping (such as the end user a store
40
- # belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters.
41
- # Returned on retrieve/list but not filterable.
44
+ # Key-value pairs for your own use, such as the end user that the store belongs
45
+ # to.
46
+ #
47
+ # A store has at most 16 pairs. Keys are 1 to 64 characters long and values at
48
+ # most 512 characters. You can't filter lists by metadata.
42
49
  #
43
50
  # @return [Hash{Symbol=>String}]
44
51
  required :metadata, Anthropic::Internal::Type::HashOf[String]
@@ -56,8 +63,10 @@ module Anthropic
56
63
  required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStore::Type }
57
64
 
58
65
  # @!attribute updated_at
59
- # Timestamp when the store's `name`, `description`, or `metadata` was last
60
- # modified. Memory writes inside the store do not advance this.
66
+ # When the memory store was last changed, in RFC 3339.
67
+ #
68
+ # Changing its `name`, `description`, or `metadata` updates it. Archiving the
69
+ # store does too. Changes to the store's memories don't.
61
70
  #
62
71
  # @return [Time]
63
72
  required :updated_at, Time
@@ -70,21 +79,21 @@ module Anthropic
70
79
  # Some parameter documentations has been truncated, see
71
80
  # {Anthropic::Models::Beta::BetaManagedAgentsMemoryStore} for more details.
72
81
  #
73
- # @param id [String] Unique identifier for the memory store (a `memstore_...` tagged ID). Use this wh
82
+ # @param id [String] The unique ID of the memory store (`memstore_...`). Use it to attach the store t
74
83
  #
75
- # @param archived_at [Time, nil] Timestamp when the store was archived, or `null` if active. Set once and never c
84
+ # @param archived_at [Time, nil] When the memory store was archived, in RFC 3339, or `null` if it hasn't been.
76
85
  #
77
- # @param created_at [Time] Timestamp when the store was created.
86
+ # @param created_at [Time] When the memory store was created, in RFC 3339.
78
87
  #
79
- # @param description [String] Free-text description of what the store contains, up to 1024 characters. Include
88
+ # @param description [String] Free-text description of what the store contains, up to 1,024 characters. Includ
80
89
  #
81
- # @param metadata [Hash{Symbol=>String}] Arbitrary key-value tags for your own bookkeeping (such as the end user a store
90
+ # @param metadata [Hash{Symbol=>String}] Key-value pairs for your own use, such as the end user that the store belongs to
82
91
  #
83
92
  # @param name [String] Human-readable name for the store. 1–255 characters. The store's mount-path slug
84
93
  #
85
94
  # @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type]
86
95
  #
87
- # @param updated_at [Time] Timestamp when the store's `name`, `description`, or `metadata` was last modifie
96
+ # @param updated_at [Time] When the memory store was last changed, in RFC 3339.
88
97
 
89
98
  # @see Anthropic::Models::Beta::BetaManagedAgentsMemoryStore#type
90
99
  module Type
@@ -6,7 +6,7 @@ module Anthropic
6
6
  # @see Anthropic::Resources::Beta::Vaults#create
7
7
  class BetaManagedAgentsVault < Anthropic::Internal::Type::BaseModel
8
8
  # @!attribute id
9
- # Unique identifier for the vault.
9
+ # The unique ID of the vault (`vlt_...`).
10
10
  #
11
11
  # @return [String]
12
12
  required :id, String
@@ -49,7 +49,7 @@ module Anthropic
49
49
  # @!method initialize(id:, archived_at:, created_at:, display_name:, metadata:, type:, updated_at:)
50
50
  # A vault that stores credentials for use by agents during sessions.
51
51
  #
52
- # @param id [String] Unique identifier for the vault.
52
+ # @param id [String] The unique ID of the vault (`vlt_...`).
53
53
  #
54
54
  # @param archived_at [Time, nil] When the vault was archived. Null if not archived.
55
55
  #
@@ -24,6 +24,15 @@ module Anthropic
24
24
  # @return [Hash{Symbol=>String}]
25
25
  required :metadata, Anthropic::Internal::Type::HashOf[String]
26
26
 
27
+ # @!attribute name
28
+ # Real-world name of the entity this profile represents (company or individual).
29
+ # For a company the platform resells Claude access to (`access_type`
30
+ # `passthrough`) this is that company's name. `null` until the platform supplies
31
+ # one.
32
+ #
33
+ # @return [String, nil]
34
+ required :name, String, nil?: true
35
+
27
36
  # @!attribute trust_grants
28
37
  # Trust grants for this profile, keyed by grant name. Key omitted when no grant is
29
38
  # active or in flight.
@@ -39,34 +48,36 @@ module Anthropic
39
48
  required :type, enum: -> { Anthropic::Beta::BetaUserProfile::Type }
40
49
 
41
50
  # @!attribute updated_at
42
- # When this user profile was last modified, in RFC 3339 format. Trust-grant status
43
- # changes also bump this timestamp.
51
+ # When this user profile was last modified, in RFC 3339 format. It normally also
52
+ # updates shortly after Anthropic gives the profile an approval or withdraws one.
53
+ # Other changes to the statuses that Anthropic reports do not always update it, so
54
+ # read the status itself rather than watching this timestamp.
44
55
  #
45
56
  # @return [Time]
46
57
  required :updated_at, Time
47
58
 
48
59
  # @!attribute access_type
49
60
  # How the platform uses the API for this entity: `application` (default) or
50
- # `passthrough`. Present under the `user-profiles-2026-08-18` and later beta
51
- # headers.
61
+ # `passthrough`. Absent under the legacy `user-profiles-2026-03-24` beta header.
52
62
  #
53
63
  # @return [Symbol, Anthropic::Models::Beta::BetaUserProfile::AccessType, nil]
54
64
  optional :access_type, enum: -> { Anthropic::Beta::BetaUserProfile::AccessType }
55
65
 
56
66
  # @!attribute external_id
57
- # Platform's own identifier for this user. Not enforced unique. Present under the
58
- # `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers; under
59
- # `user-profiles-2026-09-04` the value is `external_user_details.reference_id`.
67
+ # Platform's own identifier for this user. Not enforced unique. Legacy field,
68
+ # present only under the `user-profiles-2026-03-24` and `user-profiles-2026-08-18`
69
+ # beta headers; without one of them, the value is
70
+ # `external_user_details.reference_id`.
60
71
  #
61
72
  # @return [String, nil]
62
73
  optional :external_id, String, nil?: true
63
74
 
64
75
  # @!attribute external_user_details
65
76
  # Details about the entity this profile represents, as the platform states them;
66
- # not verified by Anthropic. Present under the `user-profiles-2026-09-04` beta
67
- # header, with every field present and `null` until the platform supplies a value;
68
- # the earlier beta headers serve `reference_id` as the top-level `external_id`,
69
- # and `user-profiles-2026-08-18` serves `onboarded_at` as
77
+ # not verified by Anthropic. Every field is present, `null` until the platform
78
+ # supplies a value. Absent under the legacy `user-profiles-2026-03-24` and
79
+ # `user-profiles-2026-08-18` beta headers, which serve `reference_id` as the
80
+ # top-level `external_id` and, under `user-profiles-2026-08-18`, `onboarded_at` as
70
81
  # `external_user_onboarded_at`.
71
82
  #
72
83
  # @return [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails, nil]
@@ -75,21 +86,14 @@ module Anthropic
75
86
  # @!attribute external_user_onboarded_at
76
87
  # When the entity this profile represents opened its account with the platform, as
77
88
  # stated by the platform, in RFC 3339 format (UTC). `null` until the platform
78
- # supplies one. Present under the `user-profiles-2026-08-18` beta header; under
79
- # `user-profiles-2026-09-04` the value is `external_user_details.onboarded_at`.
89
+ # supplies one. Legacy field, present only under the `user-profiles-2026-08-18`
90
+ # beta header; without a legacy header, the value is
91
+ # `external_user_details.onboarded_at`.
80
92
  #
81
93
  # @return [Time, nil]
82
94
  optional :external_user_onboarded_at, Time, nil?: true
83
95
 
84
- # @!attribute name
85
- # Real-world name of the entity this profile represents (company or individual).
86
- # For a company the platform resells Claude access to (`access_type`
87
- # `passthrough`) this is that company's name.
88
- #
89
- # @return [String, nil]
90
- optional :name, String, nil?: true
91
-
92
- # @!method initialize(id:, created_at:, metadata:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, name: nil)
96
+ # @!method initialize(id:, created_at:, metadata:, name:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil)
93
97
  # A record of an entity that the platform serves through the API, such as an
94
98
  # end-user of the platform's product or a company that the platform resells Claude
95
99
  # access to.
@@ -107,21 +111,21 @@ module Anthropic
107
111
  #
108
112
  # @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up t
109
113
  #
114
+ # @param name [String, nil] Real-world name of the entity this profile represents (company or individual). F
115
+ #
110
116
  # @param trust_grants [Hash{Symbol=>Anthropic::Models::Beta::BetaUserProfileTrustGrant}] Trust grants for this profile, keyed by grant name. Key omitted when no grant is
111
117
  #
112
118
  # @param type [Symbol, Anthropic::Models::Beta::BetaUserProfile::Type] Object type. Always `user_profile`.
113
119
  #
114
- # @param updated_at [Time] When this user profile was last modified, in RFC 3339 format. Trust-grant status
120
+ # @param updated_at [Time] When this user profile was last modified, in RFC 3339 format. It normally also u
115
121
  #
116
122
  # @param access_type [Symbol, Anthropic::Models::Beta::BetaUserProfile::AccessType] How the platform uses the API for this entity: `application` (default) or `passt
117
123
  #
118
- # @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique. Present under the
124
+ # @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique. Legacy field, pres
119
125
  #
120
126
  # @param external_user_details [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails] Details about the entity this profile represents, as the platform states them; n
121
127
  #
122
128
  # @param external_user_onboarded_at [Time, nil] When the entity this profile represents opened its account with the platform, as
123
- #
124
- # @param name [String, nil] Real-world name of the entity this profile represents (company or individual). F
125
129
 
126
130
  # Object type. Always `user_profile`.
127
131
  #
@@ -136,8 +140,7 @@ module Anthropic
136
140
  end
137
141
 
138
142
  # How the platform uses the API for this entity: `application` (default) or
139
- # `passthrough`. Present under the `user-profiles-2026-08-18` and later beta
140
- # headers.
143
+ # `passthrough`. Absent under the legacy `user-profiles-2026-03-24` beta header.
141
144
  #
142
145
  # @see Anthropic::Models::Beta::BetaUserProfile#access_type
143
146
  module AccessType
@@ -25,7 +25,7 @@ module Anthropic
25
25
 
26
26
  # @!method initialize(expires_at:, type:, url:)
27
27
  # A URL to give to the entity that a user profile represents, so that the entity
28
- # can enroll for a trust grant.
28
+ # can enroll in a program.
29
29
  #
30
30
  # @param expires_at [Time] When this enrollment URL expires, in RFC 3339 format.
31
31
  #
@@ -9,9 +9,10 @@ module Anthropic
9
9
  include Anthropic::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute memory_store_id
12
- # ID of the memory store to archive (a `memstore_...` identifier). Required.
13
- # Archiving is one-way and idempotent; archived stores cannot be unarchived.
14
- # Enumerate IDs via `GET /v1/memory_stores`.
12
+ # The ID of the memory store to archive (`memstore_...`).
13
+ #
14
+ # Archiving can't be undone. Archiving a store that is already archived returns it
15
+ # unchanged.
15
16
  #
16
17
  # @return [String]
17
18
  required :memory_store_id, String
@@ -38,7 +39,7 @@ module Anthropic
38
39
  # Some parameter documentations has been truncated, see
39
40
  # {Anthropic::Models::Beta::MemoryStoreArchiveParams} for more details.
40
41
  #
41
- # @param memory_store_id [String] ID of the memory store to archive (a `memstore_...` identifier). Required. Archi
42
+ # @param memory_store_id [String] The ID of the memory store to archive (`memstore_...`).
42
43
  #
43
44
  # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
44
45
  #
@@ -9,16 +9,23 @@ module Anthropic
9
9
  include Anthropic::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute name
12
- # Human-readable name for the store. Required; 1–255 characters; no control
13
- # characters. The mount-path slug under `/mnt/memory/` is derived from this name
14
- # (lowercased, non-alphanumeric runs collapsed to a hyphen). Names need not be
15
- # unique within a workspace.
12
+ # The name of the memory store, 1 to 255 characters long, without control
13
+ # characters. Names don't have to be unique in a workspace.
14
+ #
15
+ # In a session, the store's directory under `/mnt/memory/` is based on this name.
16
+ # The name is lowercased and every run of characters other than ASCII letters and
17
+ # digits becomes one hyphen. The session's memory store resource gives the exact
18
+ # path in `mount_path`.
19
+ #
20
+ # See the
21
+ # [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#how-the-agent-accesses-memory)
22
+ # to learn more about how agents access memory stores.
16
23
  #
17
24
  # @return [String]
18
25
  required :name, String
19
26
 
20
27
  # @!attribute description
21
- # Free-text description of what the store contains, up to 1024 characters.
28
+ # Free-text description of what the store contains, up to 1,024 characters.
22
29
  # Included in the agent's system prompt when the store is attached, so word it to
23
30
  # be useful to the agent.
24
31
  #
@@ -26,9 +33,11 @@ module Anthropic
26
33
  optional :description, String
27
34
 
28
35
  # @!attribute metadata
29
- # Arbitrary key-value tags for your own bookkeeping (such as the end user a store
30
- # belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters.
31
- # Not visible to the agent.
36
+ # Key-value pairs for your own use, such as the end user that the store belongs
37
+ # to. The agent doesn't see them.
38
+ #
39
+ # A store has at most 16 pairs. Keys are 1 to 64 characters long and values at
40
+ # most 512 characters.
32
41
  #
33
42
  # @return [Hash{Symbol=>String}, nil]
34
43
  optional :metadata, Anthropic::Internal::Type::HashOf[String]
@@ -55,11 +64,11 @@ module Anthropic
55
64
  # Some parameter documentations has been truncated, see
56
65
  # {Anthropic::Models::Beta::MemoryStoreCreateParams} for more details.
57
66
  #
58
- # @param name [String] Human-readable name for the store. Required; 1–255 characters; no control charac
67
+ # @param name [String] The name of the memory store, 1 to 255 characters long, without control characte
59
68
  #
60
- # @param description [String] Free-text description of what the store contains, up to 1024 characters. Include
69
+ # @param description [String] Free-text description of what the store contains, up to 1,024 characters. Includ
61
70
  #
62
- # @param metadata [Hash{Symbol=>String}] Arbitrary key-value tags for your own bookkeeping (such as the end user a store
71
+ # @param metadata [Hash{Symbol=>String}] Key-value pairs for your own use, such as the end user that the store belongs to
63
72
  #
64
73
  # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
65
74
  #
@@ -9,9 +9,10 @@ module Anthropic
9
9
  include Anthropic::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute memory_store_id
12
- # ID of the memory store to permanently delete (a `memstore_...` identifier).
13
- # Required. Deletion cascades to all memories and memory versions in the store and
14
- # cannot be undone.
12
+ # The ID of the memory store to delete (`memstore_...`).
13
+ #
14
+ # Deleting a store also deletes all its memories and memory versions. It can't be
15
+ # undone.
15
16
  #
16
17
  # @return [String]
17
18
  required :memory_store_id, String
@@ -38,7 +39,7 @@ module Anthropic
38
39
  # Some parameter documentations has been truncated, see
39
40
  # {Anthropic::Models::Beta::MemoryStoreDeleteParams} for more details.
40
41
  #
41
- # @param memory_store_id [String] ID of the memory store to permanently delete (a `memstore_...` identifier). Requ
42
+ # @param memory_store_id [String] The ID of the memory store to delete (`memstore_...`).
42
43
  #
43
44
  # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
44
45
  #