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
@@ -21,6 +21,7 @@ module Anthropic
21
21
  Anthropic::CompactionSignatureInvalidErrorDetails,
22
22
  Anthropic::CompactionTooManyToolReferencesErrorDetails,
23
23
  Anthropic::CompactionToolChangesMismatchErrorDetails,
24
+ Anthropic::ImageDimensionsTooLargeErrorDetails,
24
25
  Anthropic::OrganizationOnHoldErrorDetails,
25
26
  Anthropic::RequestBodyEncodingInvalidErrorDetails,
26
27
  Anthropic::RequestBodyEncodingUnsupportedErrorDetails,
@@ -90,6 +91,13 @@ module Anthropic
90
91
  Anthropic::Beta::Organization::BetaRegistrationPendingErrorDetails,
91
92
  Anthropic::Beta::Organization::BetaScanFailedErrorDetails,
92
93
  Anthropic::Beta::Organization::BetaScanPendingErrorDetails,
94
+ Anthropic::BetaRequestBodyTimeoutErrorDetails,
95
+ Anthropic::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails,
96
+ Anthropic::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails,
97
+ Anthropic::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails,
98
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails,
99
+ Anthropic::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails,
100
+ Anthropic::Beta::Organization::BetaRBACGroupNotFoundErrorDetails,
93
101
  Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails,
94
102
  Anthropic::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails,
95
103
  Anthropic::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails,
@@ -175,6 +183,11 @@ module Anthropic
175
183
  :compaction_tool_changes_mismatch,
176
184
  Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
177
185
  )
186
+ IMAGE_DIMENSIONS_TOO_LARGE =
187
+ T.let(
188
+ :image_dimensions_too_large,
189
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
190
+ )
178
191
  ORGANIZATION_ON_HOLD =
179
192
  T.let(
180
193
  :organization_on_hold,
@@ -511,6 +524,41 @@ module Anthropic
511
524
  T.let(:scan_failed, Anthropic::ErrorDetails::ErrorCode::TaggedSymbol)
512
525
  SCAN_PENDING =
513
526
  T.let(:scan_pending, Anthropic::ErrorDetails::ErrorCode::TaggedSymbol)
527
+ REQUEST_BODY_TIMEOUT =
528
+ T.let(
529
+ :request_body_timeout,
530
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
531
+ )
532
+ SETTINGS_DOCUMENT_LIMIT_EXCEEDED =
533
+ T.let(
534
+ :settings_document_limit_exceeded,
535
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
536
+ )
537
+ SETTINGS_HISTORY_LIMIT_EXCEEDED =
538
+ T.let(
539
+ :settings_history_limit_exceeded,
540
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
541
+ )
542
+ CMEK_FEATURE_UNSUPPORTED =
543
+ T.let(
544
+ :cmek_feature_unsupported,
545
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
546
+ )
547
+ RBAC_GROUP_MANAGED_SETTINGS_NOT_FOUND =
548
+ T.let(
549
+ :rbac_group_managed_settings_not_found,
550
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
551
+ )
552
+ RBAC_GROUP_ORDER_LIMIT_EXCEEDED =
553
+ T.let(
554
+ :rbac_group_order_limit_exceeded,
555
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
556
+ )
557
+ RBAC_GROUP_NOT_FOUND =
558
+ T.let(
559
+ :rbac_group_not_found,
560
+ Anthropic::ErrorDetails::ErrorCode::TaggedSymbol
561
+ )
514
562
  SLACK_CHANNEL_SET_UP_SETTINGS_REFUSED =
515
563
  T.let(
516
564
  :slack_channel_set_up_settings_refused,
@@ -580,6 +628,8 @@ module Anthropic
580
628
  sig do
581
629
  params(
582
630
  error_code: Anthropic::ErrorDetails::ErrorCode::OrSymbol,
631
+ max_side_length_pixels: Integer,
632
+ paths: T::Array[String],
583
633
  appeal_url: T.nilable(String),
584
634
  unsupported:
585
635
  T.nilable(
@@ -596,6 +646,13 @@ module Anthropic
596
646
  end
597
647
  def self.new(
598
648
  error_code:,
649
+ # The limit the images exceeded: the largest width or height, in pixels, that an
650
+ # image on this request may have.
651
+ max_side_length_pixels: nil,
652
+ # The position of every image over the limit, in the order you sent them, nested
653
+ # blocks included, such as `messages.0.content.1`, or
654
+ # `messages.0.content.1.content.0` for an image in a `tool_result` block.
655
+ paths: nil,
599
656
  appeal_url: nil,
600
657
  # Each entry names a request field or an organization setting that Threads do not
601
658
  # support. On a value you do not recognize, send the full conversation without
@@ -0,0 +1,18 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The longest side of one or more images in the request exceeds the image size
6
+ # limit. Scale each image in `paths` so that neither side exceeds
7
+ # `max_side_length_pixels`, or remove it, then retry.
8
+ class ImageDimensionsTooLargeError < Anthropic::Errors::BadRequestError
9
+ sig { returns(Symbol) }
10
+ def error_code
11
+ end
12
+
13
+ sig { returns(Anthropic::ImageDimensionsTooLargeErrorDetails) }
14
+ def details
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,63 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ class ImageDimensionsTooLargeErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Anthropic::ImageDimensionsTooLargeErrorDetails,
10
+ Anthropic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :error_code
16
+
17
+ # The limit the images exceeded: the largest width or height, in pixels, that an
18
+ # image on this request may have.
19
+ sig { returns(Integer) }
20
+ attr_accessor :max_side_length_pixels
21
+
22
+ # The position of every image over the limit, in the order you sent them, nested
23
+ # blocks included, such as `messages.0.content.1`, or
24
+ # `messages.0.content.1.content.0` for an image in a `tool_result` block.
25
+ sig { returns(T::Array[String]) }
26
+ attr_accessor :paths
27
+
28
+ # The longest side of one or more images in the request exceeds the image size
29
+ # limit. Scale each image in `paths` so that neither side exceeds
30
+ # `max_side_length_pixels`, or remove it, then retry.
31
+ sig do
32
+ params(
33
+ max_side_length_pixels: Integer,
34
+ paths: T::Array[String],
35
+ error_code: Symbol
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ # The limit the images exceeded: the largest width or height, in pixels, that an
40
+ # image on this request may have.
41
+ max_side_length_pixels:,
42
+ # The position of every image over the limit, in the order you sent them, nested
43
+ # blocks included, such as `messages.0.content.1`, or
44
+ # `messages.0.content.1.content.0` for an image in a `tool_result` block.
45
+ paths:,
46
+ error_code: :image_dimensions_too_large
47
+ )
48
+ end
49
+
50
+ sig do
51
+ override.returns(
52
+ {
53
+ error_code: Symbol,
54
+ max_side_length_pixels: Integer,
55
+ paths: T::Array[String]
56
+ }
57
+ )
58
+ end
59
+ def to_hash
60
+ end
61
+ end
62
+ end
63
+ end
@@ -15,7 +15,7 @@ module Anthropic
15
15
  end
16
16
 
17
17
  # The limiter type (for example, `requests_per_minute` or
18
- # `input_tokens_per_minute`).
18
+ # `input_tokens_per_minute_cache_aware`).
19
19
  sig { returns(String) }
20
20
  attr_accessor :type
21
21
 
@@ -26,7 +26,7 @@ module Anthropic
26
26
  sig { params(type: String, value: Integer).returns(T.attached_class) }
27
27
  def self.new(
28
28
  # The limiter type (for example, `requests_per_minute` or
29
- # `input_tokens_per_minute`).
29
+ # `input_tokens_per_minute_cache_aware`).
30
30
  type:,
31
31
  # The configured limit value for this limiter type.
32
32
  value:
@@ -6,7 +6,13 @@ module Anthropic
6
6
  WorkspaceRateLimitType = Workspaces::WorkspaceRateLimitType
7
7
 
8
8
  module Workspaces
9
- # Rate limiter type.
9
+ # Rate limiter type. `input_tokens_per_minute` counts every input token, cache
10
+ # reads included. `input_tokens_per_minute_cache_aware` does not count cache
11
+ # reads, and on current models the organization's input-token limit usually has
12
+ # this type. A workspace limit of either type applies alongside the organization's
13
+ # limit, not in place of it. Because cache reads count toward an
14
+ # `input_tokens_per_minute` limit, it can reject requests that read mostly from
15
+ # the cache while the organization's limit still has room.
10
16
  module WorkspaceRateLimitType
11
17
  extend Anthropic::Internal::Type::Enum
12
18
 
@@ -15,7 +15,13 @@ module Anthropic
15
15
  )
16
16
  end
17
17
 
18
- # Rate limiter type.
18
+ # Rate limiter type. `input_tokens_per_minute` counts every input token, cache
19
+ # reads included. `input_tokens_per_minute_cache_aware` does not count cache
20
+ # reads, and on current models the organization's input-token limit usually has
21
+ # this type. A workspace limit of either type applies alongside the organization's
22
+ # limit, not in place of it. Because cache reads count toward an
23
+ # `input_tokens_per_minute` limit, it can reject requests that read mostly from
24
+ # the cache while the organization's limit still has room.
19
25
  sig do
20
26
  returns(
21
27
  Anthropic::Organization::Workspaces::WorkspaceRateLimitType::OrSymbol
@@ -36,7 +42,13 @@ module Anthropic
36
42
  ).returns(T.attached_class)
37
43
  end
38
44
  def self.new(
39
- # Rate limiter type.
45
+ # Rate limiter type. `input_tokens_per_minute` counts every input token, cache
46
+ # reads included. `input_tokens_per_minute_cache_aware` does not count cache
47
+ # reads, and on current models the organization's input-token limit usually has
48
+ # this type. A workspace limit of either type applies alongside the organization's
49
+ # limit, not in place of it. Because cache reads count toward an
50
+ # `input_tokens_per_minute` limit, it can reject requests that read mostly from
51
+ # the cache while the organization's limit still has room.
40
52
  type:,
41
53
  # New limit value. Set to null to clear the workspace override and fall back to
42
54
  # the organization limit.
@@ -30,7 +30,7 @@ module Anthropic
30
30
  attr_accessor :source
31
31
 
32
32
  # The limiter type (for example, `requests_per_minute` or
33
- # `input_tokens_per_minute`).
33
+ # `input_tokens_per_minute_cache_aware`).
34
34
  sig { returns(String) }
35
35
  attr_accessor :type
36
36
 
@@ -59,7 +59,7 @@ module Anthropic
59
59
  # `include_inherited` is `true`, and then `value` equals `org_limit`.
60
60
  source:,
61
61
  # The limiter type (for example, `requests_per_minute` or
62
- # `input_tokens_per_minute`).
62
+ # `input_tokens_per_minute_cache_aware`).
63
63
  type:,
64
64
  # The workspace's value for this limiter type: the workspace-level override when
65
65
  # `source.type` is `workspace`, otherwise the organization's value.
@@ -3,7 +3,7 @@
3
3
  module Anthropic
4
4
  module Models
5
5
  # The request came from a Claude sandbox with restricted network access, which is
6
- # not allowed to make this change. Send it from outside the sandbox, or from a
6
+ # not allowed to make this request. Send it from outside the sandbox, or from a
7
7
  # sandbox with unrestricted network access.
8
8
  class SandboxEgressRestrictedError < Anthropic::Errors::PermissionDeniedError
9
9
  sig { returns(Symbol) }
@@ -15,7 +15,7 @@ module Anthropic
15
15
  attr_accessor :error_code
16
16
 
17
17
  # The request came from a Claude sandbox with restricted network access, which is
18
- # not allowed to make this change. Send it from outside the sandbox, or from a
18
+ # not allowed to make this request. Send it from outside the sandbox, or from a
19
19
  # sandbox with unrestricted network access.
20
20
  sig { params(error_code: Symbol).returns(T.attached_class) }
21
21
  def self.new(error_code: :sandbox_egress_restricted)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Anthropic
4
4
  module Models
5
- # The customer that the named user profile represents has not authorized the
5
+ # The customer that the request's user profile represents has not authorized the
6
6
  # caller to bill them, or the authorization that the request's credential uses has
7
7
  # ended. The response does not say which applies.
8
8
  class UserProfileBillingNotAuthorizedError < Anthropic::Errors::PermissionDeniedError
@@ -14,7 +14,7 @@ module Anthropic
14
14
  sig { returns(Symbol) }
15
15
  attr_accessor :error_code
16
16
 
17
- # The customer that the named user profile represents has not authorized the
17
+ # The customer that the request's user profile represents has not authorized the
18
18
  # caller to bill them, or the authorization that the request's credential uses has
19
19
  # ended. The response does not say which applies.
20
20
  sig { params(error_code: Symbol).returns(T.attached_class) }
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Anthropic
4
4
  module Models
5
- # The caller is not allowed to bill the user profile that the request names. The
6
- # response gives no more specific error code and does not say what the reason is.
5
+ # The request's user profile cannot be billed. The response gives no more specific
6
+ # error code and does not say what the reason is.
7
7
  class UserProfileNotBillableError < Anthropic::Errors::PermissionDeniedError
8
8
  sig { returns(Symbol) }
9
9
  def error_code
@@ -14,8 +14,8 @@ module Anthropic
14
14
  sig { returns(Symbol) }
15
15
  attr_accessor :error_code
16
16
 
17
- # The caller is not allowed to bill the user profile that the request names. The
18
- # response gives no more specific error code and does not say what the reason is.
17
+ # The request's user profile cannot be billed. The response gives no more specific
18
+ # error code and does not say what the reason is.
19
19
  sig { params(error_code: Symbol).returns(T.attached_class) }
20
20
  def self.new(error_code: :user_profile_not_billable)
21
21
  end
@@ -106,6 +106,11 @@ module Anthropic
106
106
 
107
107
  BetaRateLimitErrorObject = Anthropic::Models::BetaRateLimitErrorObject
108
108
 
109
+ BetaRequestBodyTimeoutError = Anthropic::Models::BetaRequestBodyTimeoutError
110
+
111
+ BetaRequestBodyTimeoutErrorDetails =
112
+ Anthropic::Models::BetaRequestBodyTimeoutErrorDetails
113
+
109
114
  BetaUnsupportedCharsetError = Anthropic::Models::BetaUnsupportedCharsetError
110
115
 
111
116
  BetaUnsupportedCharsetErrorDetails =
@@ -746,6 +751,11 @@ module Anthropic
746
751
 
747
752
  ImageBlockParam = Anthropic::Models::ImageBlockParam
748
753
 
754
+ ImageDimensionsTooLargeError = Anthropic::Models::ImageDimensionsTooLargeError
755
+
756
+ ImageDimensionsTooLargeErrorDetails =
757
+ Anthropic::Models::ImageDimensionsTooLargeErrorDetails
758
+
749
759
  ImageTransformationsParam = Anthropic::Models::ImageTransformationsParam
750
760
 
751
761
  InputJSONDelta = Anthropic::Models::InputJSONDelta
@@ -668,6 +668,12 @@ module Anthropic
668
668
  # to the profile, or has not allowed your organization to bill it, the request is
669
669
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
670
670
  # (the default), to be billed as usual.
671
+ #
672
+ # Message Batches does not currently support billing the customer behind a user
673
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
674
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
675
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
676
+ # run as usual.
671
677
  billing_policy: nil,
672
678
  # Body param: Top-level cache control automatically applies a cache_control marker
673
679
  # to the last cacheable block in the request.
@@ -1113,6 +1119,12 @@ module Anthropic
1113
1119
  # to the profile, or has not allowed your organization to bill it, the request is
1114
1120
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1115
1121
  # (the default), to be billed as usual.
1122
+ #
1123
+ # Message Batches does not currently support billing the customer behind a user
1124
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
1125
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
1126
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
1127
+ # run as usual.
1116
1128
  billing_policy: nil,
1117
1129
  # Body param: Top-level cache control automatically applies a cache_control marker
1118
1130
  # to the last cacheable block in the request.
@@ -1868,6 +1880,12 @@ module Anthropic
1868
1880
  # to the profile, or has not allowed your organization to bill it, the request is
1869
1881
  # rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
1870
1882
  # (the default), to be billed as usual.
1883
+ #
1884
+ # Message Batches does not currently support billing the customer behind a user
1885
+ # profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
1886
+ # batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
1887
+ # `invalid_request_error`, nobody is billed for it, and the batch's other requests
1888
+ # run as usual.
1871
1889
  billing_policy: nil,
1872
1890
  # Body param: Top-level cache control automatically applies a cache_control marker
1873
1891
  # to the last cacheable block in the request.
@@ -13,9 +13,10 @@ module Anthropic
13
13
  # Only cost attributed to a user account is included, so cost with no user
14
14
  # account, such as Code Review usage and Claude Tag usage in Slack channels, is
15
15
  # left out. Claude Tag one-to-one direct messages are included, with product
16
- # `claude-tag`, only for members who have connected a Claude account. Available to
17
- # organizations on a Claude Enterprise plan. Requires an API key with the
18
- # `read:analytics` scope.
16
+ # `claude-tag`, only for members who have connected a Claude account. To see all
17
+ # cost by product, call `GET /v1/organizations/analytics/cost_report` with
18
+ # `group_by[]=product`. Available to organizations on a Claude Enterprise plan.
19
+ # Requires an API key with the `read:analytics` scope.
19
20
  #
20
21
  # This endpoint is one of the legacy Claude Enterprise usage and cost reports. For
21
22
  # new integrations, use
@@ -14,8 +14,9 @@ module Anthropic
14
14
  # usage with no user account, such as Code Review usage and Claude Tag usage in
15
15
  # Slack channels, is left out. Claude Tag one-to-one direct messages are included,
16
16
  # with product `claude-tag`, only for members who have connected a Claude account.
17
- # Available to organizations on a Claude Enterprise plan. Requires an API key with
18
- # the `read:analytics` scope.
17
+ # To see all usage by product, call `GET /v1/organizations/analytics/usage_report`
18
+ # with `group_by[]=product`. Available to organizations on a Claude Enterprise
19
+ # plan. Requires an API key with the `read:analytics` scope.
19
20
  #
20
21
  # This endpoint is one of the legacy Claude Enterprise usage and cost reports. For
21
22
  # new integrations, use
@@ -0,0 +1,112 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeCode
8
+ class ManagedSettings
9
+ class Configuration
10
+ # Retrieve the organization's Claude Code managed settings mode and RBAC Group
11
+ # order.
12
+ #
13
+ # **Accepted credentials:** an organization-level Admin API key with the
14
+ # `read:claude_code_managed_settings` scope.
15
+ #
16
+ # Every request must include the beta header
17
+ # `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
18
+ # it, or from an organization not enabled for this beta, returns `404`. The Claude
19
+ # Code Managed Settings API is in beta and is available to Claude Enterprise
20
+ # organizations only.
21
+ sig do
22
+ params(
23
+ betas:
24
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
25
+ request_options: Anthropic::RequestOptions::OrHash
26
+ ).returns(
27
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
28
+ )
29
+ end
30
+ def retrieve(
31
+ # This endpoint is in beta: requests must send
32
+ # `ce-claude-code-managed-settings-2026-10-06` in this header.
33
+ betas: nil,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ # Change the organization's Claude Code managed settings mode, the RBAC Group
39
+ # order, or both, in one atomic write.
40
+ #
41
+ # To change the order, send `rbac_group_order` with the `rbac_group_order_version`
42
+ # from the read the change is based on. If the order has changed since that read,
43
+ # the request returns `409`: read it again and retry. To switch modes only if the
44
+ # order has not changed, send the current `rbac_group_order` and
45
+ # `rbac_group_order_version` with the new `mode`.
46
+ #
47
+ # A switch to `rbac_groups` mode with no RBAC Group settings and no default
48
+ # settings copies the organization settings into a new default, in the same write,
49
+ # so members keep the settings they had. The copy does not follow later changes to
50
+ # the organization settings. If the organization settings cannot be copied, the
51
+ # request returns `400` and changes nothing. If they cannot be read, are over 1
52
+ # MiB or are not valid, setting the default settings first avoids the copy.
53
+ #
54
+ # After a switch to `rbac_groups` mode, a member in no listed RBAC Group receives
55
+ # the default settings, or no settings if no default is set, not the organization
56
+ # settings.
57
+ #
58
+ # **Accepted credentials:** an organization-level Admin API key with the
59
+ # `write:claude_code_managed_settings` scope.
60
+ #
61
+ # Every request must include the beta header
62
+ # `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
63
+ # it, or from an organization not enabled for this beta, returns `404`. The Claude
64
+ # Code Managed Settings API is in beta and is available to Claude Enterprise
65
+ # organizations only.
66
+ #
67
+ # A write that returns `503` may have applied. Retrying it is safe.
68
+ sig do
69
+ params(
70
+ mode:
71
+ T.any(
72
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsOrganizationModeParam::OrHash,
73
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsRBACGroupsModeParam::OrHash
74
+ ),
75
+ rbac_group_order: T::Array[String],
76
+ rbac_group_order_version: String,
77
+ betas:
78
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
79
+ request_options: Anthropic::RequestOptions::OrHash
80
+ ).returns(
81
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
82
+ )
83
+ end
84
+ def update(
85
+ # Body param: The new mode, as an object such as `{"type": "rbac_groups"}`.
86
+ mode: nil,
87
+ # Body param: Every RBAC Group that has settings, each listed once, in the new
88
+ # order, highest precedence first. Requires `rbac_group_order_version`.
89
+ rbac_group_order: nil,
90
+ # Body param: The `rbac_group_order_version` from the read this change is based
91
+ # on. Requires `rbac_group_order`.
92
+ rbac_group_order_version: nil,
93
+ # Header param: This endpoint is in beta: requests must send
94
+ # `ce-claude-code-managed-settings-2026-10-06` in this header.
95
+ betas: nil,
96
+ request_options: {}
97
+ )
98
+ end
99
+
100
+ # @api private
101
+ sig do
102
+ params(client: Anthropic::Client).returns(T.attached_class)
103
+ end
104
+ def self.new(client:)
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,86 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Resources
5
+ class Beta
6
+ class Organization
7
+ class ClaudeCode
8
+ class ManagedSettings
9
+ class RBACGroupDefault
10
+ # Retrieve the default Claude Code managed settings, which members who belong to
11
+ # no RBAC Group in `rbac_group_order` receive in `rbac_groups` mode.
12
+ #
13
+ # **Accepted credentials:** an organization-level Admin API key with the
14
+ # `read:claude_code_managed_settings` scope.
15
+ #
16
+ # Every request must include the beta header
17
+ # `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
18
+ # it, or from an organization not enabled for this beta, returns `404`. The Claude
19
+ # Code Managed Settings API is in beta and is available to Claude Enterprise
20
+ # organizations only.
21
+ sig do
22
+ params(
23
+ betas:
24
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
25
+ request_options: Anthropic::RequestOptions::OrHash
26
+ ).returns(
27
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeRBACGroupDefaultManagedSettings
28
+ )
29
+ end
30
+ def retrieve(
31
+ # This endpoint is in beta: requests must send
32
+ # `ce-claude-code-managed-settings-2026-10-06` in this header.
33
+ betas: nil,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ # Set or replace the default Claude Code managed settings, or clear them with
39
+ # `null`.
40
+ #
41
+ # **Accepted credentials:** an organization-level Admin API key with the
42
+ # `write:claude_code_managed_settings` scope.
43
+ #
44
+ # Every request must include the beta header
45
+ # `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without
46
+ # it, or from an organization not enabled for this beta, returns `404`. The Claude
47
+ # Code Managed Settings API is in beta and is available to Claude Enterprise
48
+ # organizations only.
49
+ #
50
+ # A write that returns `503` may have applied. Retrying it is safe.
51
+ sig do
52
+ params(
53
+ settings: T.nilable(T::Hash[Symbol, T.anything]),
54
+ betas:
55
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
56
+ request_options: Anthropic::RequestOptions::OrHash
57
+ ).returns(
58
+ Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeRBACGroupDefaultManagedSettings
59
+ )
60
+ end
61
+ def update(
62
+ # Body param: The whole settings document, a JSON object of Claude Code managed
63
+ # settings. It replaces any stored document, or `null` clears the default
64
+ # settings. At most 1 MiB as the server stores it, which can be larger than the
65
+ # request body.
66
+ settings:,
67
+ # Header param: This endpoint is in beta: requests must send
68
+ # `ce-claude-code-managed-settings-2026-10-06` in this header.
69
+ betas: nil,
70
+ request_options: {}
71
+ )
72
+ end
73
+
74
+ # @api private
75
+ sig do
76
+ params(client: Anthropic::Client).returns(T.attached_class)
77
+ end
78
+ def self.new(client:)
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end