anthropic 2.10.0 → 2.12.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 (218) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +8 -0
  5. data/lib/anthropic/helpers/bedrock/client.rb +12 -2
  6. data/lib/anthropic/internal/tracing.rb +16 -0
  7. data/lib/anthropic/internal/transport/base_client.rb +5 -1
  8. data/lib/anthropic/internal/util.rb +5 -4
  9. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  10. data/lib/anthropic/models/beta/message_create_params.rb +6 -0
  11. data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
  12. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +2 -1
  13. data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +2 -1
  14. data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +2 -1
  15. data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +2 -1
  16. data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +2 -1
  17. data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +2 -1
  18. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb +1 -1
  19. data/lib/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rb +23 -0
  20. data/lib/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rb +21 -0
  21. data/lib/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rb +27 -0
  22. data/lib/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rb +25 -0
  23. data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rb +25 -0
  24. data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rb +23 -0
  25. data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rb +26 -0
  26. data/lib/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rb +24 -0
  27. data/lib/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rb +29 -0
  28. data/lib/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rb +27 -0
  29. data/lib/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rb +29 -0
  30. data/lib/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rb +27 -0
  31. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rb +68 -0
  32. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rb +62 -0
  33. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rb +62 -0
  34. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rb +24 -0
  35. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rb +23 -0
  36. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rb +24 -0
  37. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rb +23 -0
  38. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rb +50 -0
  39. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rb +80 -0
  40. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rb +69 -0
  41. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rb +70 -0
  42. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rb +24 -0
  43. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rb +24 -0
  44. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rb +24 -0
  45. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rb +33 -0
  46. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rb +35 -0
  47. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rb +62 -0
  48. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rb +35 -0
  49. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rb +47 -0
  50. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rb +43 -0
  51. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rb +53 -0
  52. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rb +43 -0
  53. data/lib/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rb +53 -0
  54. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +7 -1
  55. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +8 -2
  56. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb +1 -1
  57. data/lib/anthropic/models/beta_request_body_timeout_error.rb +20 -0
  58. data/lib/anthropic/models/beta_request_body_timeout_error_details.rb +18 -0
  59. data/lib/anthropic/models/error_details.rb +62 -5
  60. data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
  61. data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
  62. data/lib/anthropic/models/organization/organization_rate_limit_value.rb +1 -1
  63. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +7 -1
  64. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +8 -2
  65. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb +1 -1
  66. data/lib/anthropic/models/sandbox_egress_restricted_error.rb +1 -1
  67. data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +1 -1
  68. data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
  69. data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
  70. data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
  71. data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
  72. data/lib/anthropic/models.rb +8 -0
  73. data/lib/anthropic/resources/beta/messages.rb +3 -0
  74. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +4 -3
  75. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +3 -2
  76. data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb +141 -0
  77. data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rb +126 -0
  78. data/lib/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rb +252 -0
  79. data/lib/anthropic/resources/beta/organization/claude_code/managed_settings.rb +35 -0
  80. data/lib/anthropic/resources/beta/organization/claude_code.rb +23 -0
  81. data/lib/anthropic/resources/beta/organization/external_keys.rb +2 -2
  82. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +5 -0
  83. data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +4 -0
  84. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +2 -0
  85. data/lib/anthropic/resources/beta/organization/plugins.rb +3 -0
  86. data/lib/anthropic/resources/beta/organization.rb +4 -0
  87. data/lib/anthropic/resources/messages.rb +3 -0
  88. data/lib/anthropic/resources/organization/external_keys.rb +2 -2
  89. data/lib/anthropic/version.rb +1 -1
  90. data/lib/anthropic.rb +44 -0
  91. data/rbi/anthropic/internal/tracing.rbi +16 -0
  92. data/rbi/anthropic/internal/util.rbi +8 -2
  93. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  94. data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
  95. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
  96. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +4 -2
  97. data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +4 -2
  98. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +4 -2
  99. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +4 -2
  100. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +4 -2
  101. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +4 -2
  102. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_value.rbi +2 -2
  103. data/rbi/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rbi +24 -0
  104. data/rbi/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rbi +31 -0
  105. data/rbi/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rbi +28 -0
  106. data/rbi/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rbi +35 -0
  107. data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rbi +26 -0
  108. data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rbi +33 -0
  109. data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rbi +27 -0
  110. data/rbi/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rbi +34 -0
  111. data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rbi +30 -0
  112. data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rbi +37 -0
  113. data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rbi +30 -0
  114. data/rbi/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rbi +37 -0
  115. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rbi +101 -0
  116. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rbi +82 -0
  117. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rbi +82 -0
  118. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rbi +38 -0
  119. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rbi +34 -0
  120. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rbi +38 -0
  121. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rbi +34 -0
  122. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rbi +70 -0
  123. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rbi +114 -0
  124. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rbi +104 -0
  125. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rbi +88 -0
  126. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rbi +38 -0
  127. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rbi +38 -0
  128. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rbi +38 -0
  129. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rbi +48 -0
  130. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rbi +74 -0
  131. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rbi +136 -0
  132. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rbi +74 -0
  133. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rbi +86 -0
  134. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rbi +82 -0
  135. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rbi +97 -0
  136. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rbi +82 -0
  137. data/rbi/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rbi +94 -0
  138. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +7 -1
  139. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +14 -2
  140. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbi +2 -2
  141. data/rbi/anthropic/models/beta_request_body_timeout_error.rbi +17 -0
  142. data/rbi/anthropic/models/beta_request_body_timeout_error_details.rbi +28 -0
  143. data/rbi/anthropic/models/error_details.rbi +57 -0
  144. data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
  145. data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
  146. data/rbi/anthropic/models/organization/organization_rate_limit_value.rbi +2 -2
  147. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +7 -1
  148. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +14 -2
  149. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_value.rbi +2 -2
  150. data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +1 -1
  151. data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +1 -1
  152. data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
  153. data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
  154. data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
  155. data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
  156. data/rbi/anthropic/models.rbi +10 -0
  157. data/rbi/anthropic/resources/beta/messages.rbi +18 -0
  158. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +4 -3
  159. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +3 -2
  160. data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rbi +112 -0
  161. data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rbi +86 -0
  162. data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rbi +180 -0
  163. data/rbi/anthropic/resources/beta/organization/claude_code/managed_settings.rbi +39 -0
  164. data/rbi/anthropic/resources/beta/organization/claude_code.rbi +23 -0
  165. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +2 -2
  166. data/rbi/anthropic/resources/beta/organization.rbi +3 -0
  167. data/rbi/anthropic/resources/organization/external_keys.rbi +2 -2
  168. data/sig/anthropic/internal/tracing.rbs +8 -0
  169. data/sig/anthropic/internal/util.rbs +2 -1
  170. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  171. data/sig/anthropic/models/beta/organization/beta_rbac_group_not_found_error.rbs +13 -0
  172. data/sig/anthropic/models/beta/organization/beta_rbac_group_not_found_error_details.rbs +18 -0
  173. data/sig/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error.rbs +15 -0
  174. data/sig/anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details.rbs +20 -0
  175. data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error.rbs +15 -0
  176. data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details.rbs +24 -0
  177. data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error.rbs +15 -0
  178. data/sig/anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details.rbs +22 -0
  179. data/sig/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error.rbs +15 -0
  180. data/sig/anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details.rbs +22 -0
  181. data/sig/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error.rbs +15 -0
  182. data/sig/anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details.rbs +22 -0
  183. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration.rbs +48 -0
  184. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode.rbs +44 -0
  185. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param.rbs +44 -0
  186. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode.rbs +22 -0
  187. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param.rbs +22 -0
  188. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode.rbs +22 -0
  189. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param.rbs +22 -0
  190. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings.rbs +38 -0
  191. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings.rbs +53 -0
  192. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary.rbs +48 -0
  193. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status.rbs +49 -0
  194. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active.rbs +21 -0
  195. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted.rbs +21 -0
  196. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown.rbs +21 -0
  197. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings.rbs +33 -0
  198. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params.rbs +36 -0
  199. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params.rbs +61 -0
  200. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params.rbs +36 -0
  201. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params.rbs +43 -0
  202. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params.rbs +43 -0
  203. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params.rbs +50 -0
  204. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params.rbs +43 -0
  205. data/sig/anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params.rbs +48 -0
  206. data/sig/anthropic/models/beta_request_body_timeout_error.rbs +9 -0
  207. data/sig/anthropic/models/beta_request_body_timeout_error_details.rbs +14 -0
  208. data/sig/anthropic/models/error_details.rbs +57 -0
  209. data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
  210. data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
  211. data/sig/anthropic/models.rbs +8 -0
  212. data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rbs +28 -0
  213. data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default.rbs +26 -0
  214. data/sig/anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups.rbs +41 -0
  215. data/sig/anthropic/resources/beta/organization/claude_code/managed_settings.rbs +19 -0
  216. data/sig/anthropic/resources/beta/organization/claude_code.rbs +13 -0
  217. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  218. metadata +134 -2
data/lib/anthropic.rb CHANGED
@@ -131,6 +131,7 @@ require_relative "anthropic/models/beta/organization/beta_claude_tag_writes_not_
131
131
  require_relative "anthropic/models/beta/organization/beta_compliance_configuration_restricted_error"
132
132
  require_relative "anthropic/models/beta/organization/beta_organization_level_scoped_api_key_required_error"
133
133
  require_relative "anthropic/models/beta/organization/beta_plugin_name_taken_error"
134
+ require_relative "anthropic/models/beta/organization/beta_rbac_group_not_found_error"
134
135
  require_relative "anthropic/models/beta/organization/beta_registration_pending_error"
135
136
  require_relative "anthropic/models/beta/organization/beta_scan_failed_error"
136
137
  require_relative "anthropic/models/beta/organization/beta_scan_pending_error"
@@ -139,7 +140,13 @@ require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_e
139
140
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_conflict_error"
140
141
  require_relative "anthropic/models/beta/organization/beta_slack_channel_set_up_settings_refused_error"
141
142
  require_relative "anthropic/models/beta/organization/beta_spend_limits_admin_api_writes_not_enabled_error"
143
+ require_relative "anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error"
144
+ require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error"
145
+ require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error"
146
+ require_relative "anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error"
147
+ require_relative "anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error"
142
148
  require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error"
149
+ require_relative "anthropic/models/beta_request_body_timeout_error"
143
150
  require_relative "anthropic/models/beta_unsupported_charset_error"
144
151
  require_relative "anthropic/models/claude_code_key_creator_not_member_error"
145
152
  require_relative "anthropic/models/claude_code_version_too_old_error"
@@ -161,6 +168,7 @@ require_relative "anthropic/models/contract_spend_limit_reached_error"
161
168
  require_relative "anthropic/models/enforced_spend_limit_reached_error"
162
169
  require_relative "anthropic/models/file_expired_error"
163
170
  require_relative "anthropic/models/file_not_downloadable_error"
171
+ require_relative "anthropic/models/image_dimensions_too_large_error"
164
172
  require_relative "anthropic/models/linked_organization_billing_unavailable_error"
165
173
  require_relative "anthropic/models/linked_organization_spend_limit_reached_error"
166
174
  require_relative "anthropic/models/organization/already_member_error"
@@ -1373,6 +1381,7 @@ require_relative "anthropic/models/beta/organization/beta_plugin_target_organiza
1373
1381
  require_relative "anthropic/models/beta/organization/beta_plugin_target_rbac_group"
1374
1382
  require_relative "anthropic/models/beta/organization/beta_plugin_user_actor"
1375
1383
  require_relative "anthropic/models/beta/organization/beta_rbac_group"
1384
+ require_relative "anthropic/models/beta/organization/beta_rbac_group_not_found_error_details"
1376
1385
  require_relative "anthropic/models/beta/organization/beta_rbac_role"
1377
1386
  require_relative "anthropic/models/beta/organization/beta_rbac_role_source"
1378
1387
  require_relative "anthropic/models/beta/organization/beta_rbac_role_source_built_in"
@@ -1430,6 +1439,34 @@ require_relative "anthropic/models/beta/organization/beta_telemetry_destination_
1430
1439
  require_relative "anthropic/models/beta/organization/beta_workspace"
1431
1440
  require_relative "anthropic/models/beta/organization/beta_workspace_member"
1432
1441
  require_relative "anthropic/models/beta/organization/beta_workspace_role"
1442
+ require_relative "anthropic/models/beta/organization/claude_code/beta_cmek_feature_unsupported_error_details"
1443
+ require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_managed_settings_not_found_error_details"
1444
+ require_relative "anthropic/models/beta/organization/claude_code/beta_rbac_group_order_limit_exceeded_error_details"
1445
+ require_relative "anthropic/models/beta/organization/claude_code/beta_settings_document_limit_exceeded_error_details"
1446
+ require_relative "anthropic/models/beta/organization/claude_code/beta_settings_history_limit_exceeded_error_details"
1447
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_configuration"
1448
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode"
1449
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_mode_param"
1450
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode"
1451
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_organization_mode_param"
1452
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode"
1453
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_managed_settings_rbac_groups_mode_param"
1454
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_default_managed_settings"
1455
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings"
1456
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_managed_settings_summary"
1457
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status"
1458
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_active"
1459
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_deleted"
1460
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_claude_code_rbac_group_status_unknown"
1461
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/beta_deleted_claude_code_rbac_group_managed_settings"
1462
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/configuration_retrieve_params"
1463
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/configuration_update_params"
1464
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_retrieve_params"
1465
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_default_update_params"
1466
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_delete_params"
1467
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_list_params"
1468
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_retrieve_params"
1469
+ require_relative "anthropic/models/beta/organization/claude_code/managed_settings/rbac_group_set_params"
1433
1470
  require_relative "anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle"
1434
1471
  require_relative "anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel"
1435
1472
  require_relative "anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel"
@@ -1850,6 +1887,7 @@ require_relative "anthropic/models/beta_organization_not_enrolled_in_beta_error_
1850
1887
  require_relative "anthropic/models/beta_overloaded_error"
1851
1888
  require_relative "anthropic/models/beta_permission_error"
1852
1889
  require_relative "anthropic/models/beta_rate_limit_error"
1890
+ require_relative "anthropic/models/beta_request_body_timeout_error_details"
1853
1891
  require_relative "anthropic/models/beta_unsupported_charset_error_details"
1854
1892
  require_relative "anthropic/models/billing_error"
1855
1893
  require_relative "anthropic/models/browser_click_target"
@@ -2109,6 +2147,7 @@ require_relative "anthropic/models/file_retrieve_metadata_params"
2109
2147
  require_relative "anthropic/models/file_upload_params"
2110
2148
  require_relative "anthropic/models/gateway_timeout_error"
2111
2149
  require_relative "anthropic/models/image_block_param"
2150
+ require_relative "anthropic/models/image_dimensions_too_large_error_details"
2112
2151
  require_relative "anthropic/models/image_transformations_param"
2113
2152
  require_relative "anthropic/models/input_json_delta"
2114
2153
  require_relative "anthropic/models/invalid_request_error"
@@ -2612,6 +2651,11 @@ require_relative "anthropic/resources/beta/organization/analytics/user_cost_repo
2612
2651
  require_relative "anthropic/resources/beta/organization/analytics/users"
2613
2652
  require_relative "anthropic/resources/beta/organization/analytics/user_usage_report"
2614
2653
  require_relative "anthropic/resources/beta/organization/api_keys"
2654
+ require_relative "anthropic/resources/beta/organization/claude_code"
2655
+ require_relative "anthropic/resources/beta/organization/claude_code/managed_settings"
2656
+ require_relative "anthropic/resources/beta/organization/claude_code/managed_settings/configuration"
2657
+ require_relative "anthropic/resources/beta/organization/claude_code/managed_settings/rbac_group_default"
2658
+ require_relative "anthropic/resources/beta/organization/claude_code/managed_settings/rbac_groups"
2615
2659
  require_relative "anthropic/resources/beta/organization/claude_tag"
2616
2660
  require_relative "anthropic/resources/beta/organization/claude_tag/bundles"
2617
2661
  require_relative "anthropic/resources/beta/organization/claude_tag/bundles/targets"
@@ -459,6 +459,22 @@ module Anthropic
459
459
  ORGANIZATION_WEBHOOKS_DELETE = "anthropic.organization.webhooks.delete"
460
460
  ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET =
461
461
  "anthropic.organization.webhooks.regenerate_signing_secret"
462
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_RETRIEVE =
463
+ "anthropic.organization.claude_code.managed_settings.configuration.retrieve"
464
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_UPDATE =
465
+ "anthropic.organization.claude_code.managed_settings.configuration.update"
466
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_RETRIEVE =
467
+ "anthropic.organization.claude_code.managed_settings.rbac_groups.retrieve"
468
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_LIST =
469
+ "anthropic.organization.claude_code.managed_settings.rbac_groups.list"
470
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_DELETE =
471
+ "anthropic.organization.claude_code.managed_settings.rbac_groups.delete"
472
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUPS_SET =
473
+ "anthropic.organization.claude_code.managed_settings.rbac_groups.set"
474
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_RETRIEVE =
475
+ "anthropic.organization.claude_code.managed_settings.rbac_group_default.retrieve"
476
+ ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_RBAC_GROUP_DEFAULT_UPDATE =
477
+ "anthropic.organization.claude_code.managed_settings.rbac_group_default.update"
462
478
  ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_CREATE =
463
479
  "anthropic.organization.claude_tag.slack_channels.create"
464
480
  ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_RETRIEVE =
@@ -401,10 +401,16 @@ module Anthropic
401
401
  params(
402
402
  headers: T::Hash[String, String],
403
403
  stream: T::Enumerable[String],
404
- suppress_error: T::Boolean
404
+ suppress_error: T::Boolean,
405
+ binary: T::Boolean
405
406
  ).returns(T.anything)
406
407
  end
407
- def decode_content(headers, stream:, suppress_error: false)
408
+ def decode_content(
409
+ headers,
410
+ stream:,
411
+ suppress_error: false,
412
+ binary: false
413
+ )
408
414
  end
409
415
  end
410
416
 
@@ -251,6 +251,11 @@ module Anthropic
251
251
  :"ce-user-management-2026-07-13",
252
252
  Anthropic::AnthropicBeta::TaggedSymbol
253
253
  )
254
+ CE_CLAUDE_CODE_MANAGED_SETTINGS_2026_10_06 =
255
+ T.let(
256
+ :"ce-claude-code-managed-settings-2026-10-06",
257
+ Anthropic::AnthropicBeta::TaggedSymbol
258
+ )
254
259
  USER_PROFILES_BILLING_2026_10_01 =
255
260
  T.let(
256
261
  :"user-profiles-billing-2026-10-01",
@@ -126,6 +126,12 @@ module Anthropic
126
126
  # to the profile, or has not allowed your organization to bill it, the request is
127
127
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
128
128
  # (the default), to be billed as usual.
129
+ #
130
+ # Message Batches does not currently support billing the customer behind a user
131
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
132
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
133
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
134
+ # run as usual.
129
135
  sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
130
136
  attr_reader :billing_policy
131
137
 
@@ -866,6 +872,12 @@ module Anthropic
866
872
  # to the profile, or has not allowed your organization to bill it, the request is
867
873
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
868
874
  # (the default), to be billed as usual.
875
+ #
876
+ # Message Batches does not currently support billing the customer behind a user
877
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
878
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
879
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
880
+ # run as usual.
869
881
  billing_policy: nil,
870
882
  # Top-level cache control automatically applies a cache_control marker to the last
871
883
  # cacheable block in the request.
@@ -307,6 +307,12 @@ module Anthropic
307
307
  # to the profile, or has not allowed your organization to bill it, the request is
308
308
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
309
309
  # (the default), to be billed as usual.
310
+ #
311
+ # Message Batches does not currently support billing the customer behind a user
312
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
313
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
314
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
315
+ # run as usual.
310
316
  sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
311
317
  attr_reader :billing_policy
312
318
 
@@ -1054,6 +1060,12 @@ module Anthropic
1054
1060
  # to the profile, or has not allowed your organization to bill it, the request is
1055
1061
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1056
1062
  # (the default), to be billed as usual.
1063
+ #
1064
+ # Message Batches does not currently support billing the customer behind a user
1065
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
1066
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
1067
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
1068
+ # run as usual.
1057
1069
  billing_policy: nil,
1058
1070
  # Top-level cache control automatically applies a cache_control marker to the last
1059
1071
  # cacheable block in the request.
@@ -141,7 +141,8 @@ module Anthropic
141
141
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
142
142
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
143
143
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
144
- # filter only where Chat and Cowork unified is available. Some unattributed usage
144
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
145
+ # is work that Claude Security runs for the organization. Some unattributed usage
145
146
  # is reported as "other".
146
147
  sig { returns(T.nilable(String)) }
147
148
  attr_accessor :product
@@ -341,7 +342,8 @@ module Anthropic
341
342
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
342
343
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
343
344
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
344
- # filter only where Chat and Cowork unified is available. Some unattributed usage
345
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
346
+ # is work that Claude Security runs for the organization. Some unattributed usage
345
347
  # is reported as "other".
346
348
  product:,
347
349
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -131,7 +131,8 @@ module Anthropic
131
131
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
132
132
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
133
133
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
134
- # filter only where Chat and Cowork unified is available. Some unattributed usage
134
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
135
+ # is work that Claude Security runs for the organization. Some unattributed usage
135
136
  # is reported as "other".
136
137
  sig { returns(T.nilable(String)) }
137
138
  attr_accessor :product
@@ -311,7 +312,8 @@ module Anthropic
311
312
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
312
313
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
313
314
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
314
- # filter only where Chat and Cowork unified is available. Some unattributed usage
315
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
316
+ # is work that Claude Security runs for the organization. Some unattributed usage
315
317
  # is reported as "other".
316
318
  product:,
317
319
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -100,7 +100,8 @@ module Anthropic
100
100
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
101
101
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
102
102
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
103
- # filter only where Chat and Cowork unified is available. Some unattributed usage
103
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
104
+ # is work that Claude Security runs for the organization. Some unattributed usage
104
105
  # is reported as "other".
105
106
  sig { returns(T.nilable(String)) }
106
107
  attr_accessor :product
@@ -236,7 +237,8 @@ module Anthropic
236
237
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
237
238
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
238
239
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
239
- # filter only where Chat and Cowork unified is available. Some unattributed usage
240
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
241
+ # is work that Claude Security runs for the organization. Some unattributed usage
240
242
  # is reported as "other".
241
243
  product:,
242
244
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -116,7 +116,8 @@ module Anthropic
116
116
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
117
117
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
118
118
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
119
- # filter only where Chat and Cowork unified is available. Some unattributed usage
119
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
120
+ # is work that Claude Security runs for the organization. Some unattributed usage
120
121
  # is reported as "other".
121
122
  sig { returns(T.nilable(String)) }
122
123
  attr_accessor :product
@@ -266,7 +267,8 @@ module Anthropic
266
267
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
267
268
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
268
269
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
269
- # filter only where Chat and Cowork unified is available. Some unattributed usage
270
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
271
+ # is work that Claude Security runs for the organization. Some unattributed usage
270
272
  # is reported as "other".
271
273
  product:,
272
274
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -96,7 +96,8 @@ module Anthropic
96
96
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
97
97
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
98
98
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
99
- # filter only where Chat and Cowork unified is available. Some unattributed usage
99
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
100
+ # is work that Claude Security runs for the organization. Some unattributed usage
100
101
  # is reported as "other".
101
102
  sig { returns(T.nilable(String)) }
102
103
  attr_accessor :product
@@ -230,7 +231,8 @@ module Anthropic
230
231
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
231
232
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
232
233
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
233
- # filter only where Chat and Cowork unified is available. Some unattributed usage
234
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
235
+ # is work that Claude Security runs for the organization. Some unattributed usage
234
236
  # is reported as "other".
235
237
  product:,
236
238
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -113,7 +113,8 @@ module Anthropic
113
113
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
114
114
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
115
115
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
116
- # filter only where Chat and Cowork unified is available. Some unattributed usage
116
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
117
+ # is work that Claude Security runs for the organization. Some unattributed usage
117
118
  # is reported as "other".
118
119
  sig { returns(T.nilable(String)) }
119
120
  attr_accessor :product
@@ -268,7 +269,8 @@ module Anthropic
268
269
  # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
269
270
  # claude.ai chat: chat and Cowork usage by a member who has it turned on is
270
271
  # reported under this value instead of `chat` or `cowork`. It is accepted as a
271
- # filter only where Chat and Cowork unified is available. Some unattributed usage
272
+ # filter only where Chat and Cowork unified is available. `cc_security_autopatch`
273
+ # is work that Claude Security runs for the organization. Some unattributed usage
272
274
  # is reported as "other".
273
275
  product:,
274
276
  # RBAC group (team) the usage is attributed to, in the public tagged
@@ -14,7 +14,7 @@ module Anthropic
14
14
  end
15
15
 
16
16
  # The limiter type (for example, `requests_per_minute` or
17
- # `input_tokens_per_minute`).
17
+ # `input_tokens_per_minute_cache_aware`).
18
18
  sig { returns(String) }
19
19
  attr_accessor :type
20
20
 
@@ -25,7 +25,7 @@ module Anthropic
25
25
  sig { params(type: String, value: Integer).returns(T.attached_class) }
26
26
  def self.new(
27
27
  # The limiter type (for example, `requests_per_minute` or
28
- # `input_tokens_per_minute`).
28
+ # `input_tokens_per_minute_cache_aware`).
29
29
  type:,
30
30
  # The configured limit value for this limiter type.
31
31
  value:
@@ -0,0 +1,24 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # The RBAC Group is not one of the organization's groups.
8
+ class BetaRBACGroupNotFoundError < Anthropic::Errors::NotFoundError
9
+ sig { returns(Symbol) }
10
+ def error_code
11
+ end
12
+
13
+ sig do
14
+ returns(
15
+ Anthropic::Beta::Organization::BetaRBACGroupNotFoundErrorDetails
16
+ )
17
+ end
18
+ def details
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,31 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaRBACGroupNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Anthropic::Beta::Organization::BetaRBACGroupNotFoundErrorDetails,
12
+ Anthropic::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ sig { returns(Symbol) }
17
+ attr_accessor :error_code
18
+
19
+ # The RBAC Group is not one of the organization's groups.
20
+ sig { params(error_code: Symbol).returns(T.attached_class) }
21
+ def self.new(error_code: :rbac_group_not_found)
22
+ end
23
+
24
+ sig { override.returns({ error_code: Symbol }) }
25
+ def to_hash
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,28 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ # This stored settings document currently cannot be read or replaced. Contact
9
+ # support, or, if you no longer need these settings, delete the group's settings
10
+ # or clear the default.
11
+ class BetaCMEKFeatureUnsupportedError < Anthropic::Errors::BadRequestError
12
+ sig { returns(Symbol) }
13
+ def error_code
14
+ end
15
+
16
+ sig do
17
+ returns(
18
+ Anthropic::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails
19
+ )
20
+ end
21
+ def details
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,35 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ class BetaCMEKFeatureUnsupportedErrorDetails < Anthropic::Internal::Type::BaseModel
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Anthropic::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails,
13
+ Anthropic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(Symbol) }
18
+ attr_accessor :error_code
19
+
20
+ # This stored settings document currently cannot be read or replaced. Contact
21
+ # support, or, if you no longer need these settings, delete the group's settings
22
+ # or clear the default.
23
+ sig { params(error_code: Symbol).returns(T.attached_class) }
24
+ def self.new(error_code: :cmek_feature_unsupported)
25
+ end
26
+
27
+ sig { override.returns({ error_code: Symbol }) }
28
+ def to_hash
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,26 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ # This RBAC Group has no Claude Code managed settings.
9
+ class BetaRBACGroupManagedSettingsNotFoundError < Anthropic::Errors::NotFoundError
10
+ sig { returns(Symbol) }
11
+ def error_code
12
+ end
13
+
14
+ sig do
15
+ returns(
16
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails
17
+ )
18
+ end
19
+ def details
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,33 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ class BetaRBACGroupManagedSettingsNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails,
13
+ Anthropic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(Symbol) }
18
+ attr_accessor :error_code
19
+
20
+ # This RBAC Group has no Claude Code managed settings.
21
+ sig { params(error_code: Symbol).returns(T.attached_class) }
22
+ def self.new(error_code: :rbac_group_managed_settings_not_found)
23
+ end
24
+
25
+ sig { override.returns({ error_code: Symbol }) }
26
+ def to_hash
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ # The RBAC Group order already has the most groups allowed. Delete another group's
9
+ # settings first.
10
+ class BetaRBACGroupOrderLimitExceededError < Anthropic::Errors::BadRequestError
11
+ sig { returns(Symbol) }
12
+ def error_code
13
+ end
14
+
15
+ sig do
16
+ returns(
17
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails
18
+ )
19
+ end
20
+ def details
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,34 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ class BetaRBACGroupOrderLimitExceededErrorDetails < Anthropic::Internal::Type::BaseModel
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails,
13
+ Anthropic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(Symbol) }
18
+ attr_accessor :error_code
19
+
20
+ # The RBAC Group order already has the most groups allowed. Delete another group's
21
+ # settings first.
22
+ sig { params(error_code: Symbol).returns(T.attached_class) }
23
+ def self.new(error_code: :rbac_group_order_limit_exceeded)
24
+ end
25
+
26
+ sig { override.returns({ error_code: Symbol }) }
27
+ def to_hash
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,30 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ module ClaudeCode
8
+ # The organization has reached its limit of settings documents, counting unused
9
+ # ones. An owner can remove unused documents in claude.ai. Deleting a group's
10
+ # settings or clearing the default settings also frees a document, if nothing else
11
+ # uses it. None of these works once the organization has also reached its settings
12
+ # history limit.
13
+ class BetaSettingsDocumentLimitExceededError < Anthropic::Errors::BadRequestError
14
+ sig { returns(Symbol) }
15
+ def error_code
16
+ end
17
+
18
+ sig do
19
+ returns(
20
+ Anthropic::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails
21
+ )
22
+ end
23
+ def details
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end