anthropic 2.2.0 → 2.3.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 (275) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +2 -2
  4. data/lib/anthropic/client.rb +1 -1
  5. data/lib/anthropic/helpers/bedrock/client.rb +6 -3
  6. data/lib/anthropic/helpers/google_cloud/client.rb +9 -25
  7. data/lib/anthropic/helpers/refusal_fallback.rb +1 -2
  8. data/lib/anthropic/helpers/stainless_helper_header.rb +3 -2
  9. data/lib/anthropic/internal/tracing.rb +20 -0
  10. data/lib/anthropic/internal/transport/base_client.rb +16 -2
  11. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  12. data/lib/anthropic/models/beta/beta_code_execution_tool_20260120.rb +10 -2
  13. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +5 -1
  14. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb +1 -1
  15. data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block.rb +9 -1
  16. data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rb +2 -1
  17. data/lib/anthropic/models/beta/beta_response_tool_union.rb +5 -1
  18. data/lib/anthropic/models/beta/beta_skill_params.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_tool_union.rb +5 -1
  20. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rb +7 -2
  21. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +2 -4
  22. data/lib/anthropic/models/beta/message_count_tokens_params.rb +5 -1
  23. data/lib/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rb +21 -0
  24. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rb +63 -0
  25. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rb +21 -0
  26. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rb +21 -0
  27. data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rb +21 -0
  28. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_source.rb +87 -0
  29. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +72 -0
  30. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +70 -0
  31. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +67 -0
  32. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +67 -0
  33. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rb +37 -0
  34. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rb +29 -0
  35. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rb +22 -0
  36. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rb +31 -0
  37. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rb +30 -0
  38. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rb +23 -0
  39. data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rb +29 -0
  40. data/lib/anthropic/models/beta/organization/beta_external_key.rb +3 -3
  41. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +66 -0
  42. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rb +32 -0
  43. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rb +87 -0
  44. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rb +86 -0
  45. data/lib/anthropic/models/beta/organization/claude_tag/bundle_list_params.rb +49 -0
  46. data/lib/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rb +41 -0
  47. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rb +76 -0
  48. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rb +70 -0
  49. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rb +34 -0
  50. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rb +57 -0
  51. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rb +38 -0
  52. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rb +57 -0
  53. data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rb +38 -0
  54. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rb +43 -0
  55. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rb +53 -0
  56. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rb +59 -0
  57. data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rb +53 -0
  58. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rb +50 -0
  59. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rb +41 -0
  60. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rb +79 -0
  61. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rb +52 -0
  62. data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rb +49 -0
  63. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rb +70 -0
  64. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rb +52 -0
  65. data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rb +49 -0
  66. data/lib/anthropic/models/code_execution_tool_20260120.rb +10 -2
  67. data/lib/anthropic/models/code_execution_tool_result_block_content.rb +5 -1
  68. data/lib/anthropic/models/code_execution_tool_result_block_param_content.rb +1 -1
  69. data/lib/anthropic/models/encrypted_code_execution_result_block.rb +9 -1
  70. data/lib/anthropic/models/encrypted_code_execution_result_block_param.rb +2 -1
  71. data/lib/anthropic/models/message_count_tokens_tool.rb +5 -1
  72. data/lib/anthropic/models/organization/external_key.rb +3 -3
  73. data/lib/anthropic/models/skill_params.rb +1 -1
  74. data/lib/anthropic/models/tool_union.rb +5 -1
  75. data/lib/anthropic/resources/beta/agents/versions.rb +2 -1
  76. data/lib/anthropic/resources/beta/agents.rb +10 -5
  77. data/lib/anthropic/resources/beta/deployment_runs.rb +4 -2
  78. data/lib/anthropic/resources/beta/deployments.rb +16 -8
  79. data/lib/anthropic/resources/beta/dreams.rb +10 -5
  80. data/lib/anthropic/resources/beta/environments/work.rb +16 -8
  81. data/lib/anthropic/resources/beta/environments.rb +12 -6
  82. data/lib/anthropic/resources/beta/files.rb +10 -5
  83. data/lib/anthropic/resources/beta/memory_stores/memories.rb +10 -5
  84. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -11
  85. data/lib/anthropic/resources/beta/memory_stores.rb +12 -6
  86. data/lib/anthropic/resources/beta/messages/batches.rb +12 -6
  87. data/lib/anthropic/resources/beta/messages.rb +6 -3
  88. data/lib/anthropic/resources/beta/models.rb +4 -2
  89. data/lib/anthropic/resources/beta/organization/analytics/apps/chat/projects.rb +2 -1
  90. data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +2 -1
  91. data/lib/anthropic/resources/beta/organization/analytics/connectors.rb +2 -1
  92. data/lib/anthropic/resources/beta/organization/analytics/cost.rb +2 -1
  93. data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -1
  94. data/lib/anthropic/resources/beta/organization/analytics/plugins.rb +2 -1
  95. data/lib/anthropic/resources/beta/organization/analytics/skills.rb +2 -1
  96. data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +2 -1
  97. data/lib/anthropic/resources/beta/organization/analytics/usage.rb +2 -1
  98. data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -1
  99. data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +5 -4
  100. data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +5 -4
  101. data/lib/anthropic/resources/beta/organization/analytics/users.rb +2 -1
  102. data/lib/anthropic/resources/beta/organization/api_keys.rb +6 -3
  103. data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +204 -0
  104. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +102 -0
  105. data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +263 -0
  106. data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +162 -0
  107. data/lib/anthropic/resources/beta/organization/claude_tag.rb +31 -0
  108. data/lib/anthropic/resources/beta/organization/compliance_settings.rb +4 -2
  109. data/lib/anthropic/resources/beta/organization/external_keys.rb +12 -6
  110. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +10 -5
  111. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +6 -3
  112. data/lib/anthropic/resources/beta/organization/federation/rules.rb +10 -5
  113. data/lib/anthropic/resources/beta/organization/invites.rb +8 -4
  114. data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +10 -5
  115. data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +6 -11
  116. data/lib/anthropic/resources/beta/organization/plugins/shares.rb +2 -1
  117. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +8 -4
  118. data/lib/anthropic/resources/beta/organization/plugins.rb +10 -5
  119. data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -1
  120. data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -3
  121. data/lib/anthropic/resources/beta/organization/rbac_groups.rb +10 -5
  122. data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +2 -1
  123. data/lib/anthropic/resources/beta/organization/rbac_roles.rb +4 -2
  124. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +6 -3
  125. data/lib/anthropic/resources/beta/organization/service_accounts.rb +10 -5
  126. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +2 -1
  127. data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +8 -4
  128. data/lib/anthropic/resources/beta/organization/spend_limits.rb +8 -4
  129. data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +6 -3
  130. data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +12 -6
  131. data/lib/anthropic/resources/beta/organization/users.rb +8 -4
  132. data/lib/anthropic/resources/beta/organization/webhooks.rb +12 -9
  133. data/lib/anthropic/resources/beta/organization/workspaces/members.rb +10 -5
  134. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +4 -6
  135. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +10 -5
  136. data/lib/anthropic/resources/beta/organization/workspaces.rb +10 -5
  137. data/lib/anthropic/resources/beta/organization.rb +6 -1
  138. data/lib/anthropic/resources/beta/sessions/events.rb +6 -3
  139. data/lib/anthropic/resources/beta/sessions/resources.rb +10 -5
  140. data/lib/anthropic/resources/beta/sessions/threads/events.rb +4 -2
  141. data/lib/anthropic/resources/beta/sessions/threads.rb +6 -3
  142. data/lib/anthropic/resources/beta/sessions.rb +12 -6
  143. data/lib/anthropic/resources/beta/skills/versions.rb +10 -5
  144. data/lib/anthropic/resources/beta/skills.rb +8 -4
  145. data/lib/anthropic/resources/beta/tunnels/certificates.rb +8 -4
  146. data/lib/anthropic/resources/beta/tunnels.rb +12 -6
  147. data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +2 -1
  148. data/lib/anthropic/resources/beta/user_profiles.rb +12 -6
  149. data/lib/anthropic/resources/beta/vaults/credentials.rb +14 -7
  150. data/lib/anthropic/resources/beta/vaults.rb +12 -6
  151. data/lib/anthropic/version.rb +1 -1
  152. data/lib/anthropic.rb +47 -0
  153. data/rbi/anthropic/helpers/google_cloud/client.rbi +0 -4
  154. data/rbi/anthropic/internal/tracing.rbi +28 -0
  155. data/rbi/anthropic/internal/transport/base_client.rbi +5 -1
  156. data/rbi/anthropic/internal/type/base_page.rbi +2 -0
  157. data/rbi/anthropic/internal/type/base_stream.rbi +2 -0
  158. data/rbi/anthropic/internal/type/request_parameters.rbi +4 -0
  159. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  160. data/rbi/anthropic/models/beta/beta_code_execution_tool_20260120.rbi +10 -2
  161. data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block.rbi +9 -1
  162. data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rbi +2 -1
  163. data/rbi/anthropic/models/beta/beta_skill_params.rbi +1 -1
  164. data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rbi +4 -2
  165. data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rbi +2 -4
  166. data/rbi/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbi +31 -0
  167. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbi +87 -0
  168. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbi +31 -0
  169. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbi +31 -0
  170. data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbi +31 -0
  171. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbi +115 -0
  172. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +178 -0
  173. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +108 -0
  174. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +110 -0
  175. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +110 -0
  176. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbi +50 -0
  177. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbi +43 -0
  178. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbi +32 -0
  179. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbi +67 -0
  180. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbi +44 -0
  181. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbi +36 -0
  182. data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbi +43 -0
  183. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
  184. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +87 -0
  185. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbi +41 -0
  186. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbi +154 -0
  187. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbi +151 -0
  188. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbi +92 -0
  189. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbi +78 -0
  190. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbi +102 -0
  191. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbi +92 -0
  192. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbi +43 -0
  193. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbi +78 -0
  194. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbi +51 -0
  195. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbi +78 -0
  196. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbi +51 -0
  197. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbi +82 -0
  198. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbi +94 -0
  199. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbi +104 -0
  200. data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbi +94 -0
  201. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbi +118 -0
  202. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbi +78 -0
  203. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbi +134 -0
  204. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbi +95 -0
  205. data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbi +100 -0
  206. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbi +124 -0
  207. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbi +95 -0
  208. data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbi +100 -0
  209. data/rbi/anthropic/models/code_execution_tool_20260120.rbi +10 -2
  210. data/rbi/anthropic/models/encrypted_code_execution_result_block.rbi +9 -1
  211. data/rbi/anthropic/models/encrypted_code_execution_result_block_param.rbi +2 -1
  212. data/rbi/anthropic/models/organization/external_key.rbi +4 -4
  213. data/rbi/anthropic/models/skill_params.rbi +1 -1
  214. data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +3 -3
  215. data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +3 -3
  216. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbi +140 -0
  217. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +75 -0
  218. data/rbi/anthropic/resources/beta/organization/claude_tag/slack_channels.rbi +203 -0
  219. data/rbi/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbi +123 -0
  220. data/rbi/anthropic/resources/beta/organization/claude_tag.rbi +37 -0
  221. data/rbi/anthropic/resources/beta/organization.rbi +3 -0
  222. data/sig/anthropic/helpers/google_cloud/client.rbs +0 -2
  223. data/sig/anthropic/internal/tracing.rbs +14 -0
  224. data/sig/anthropic/internal/transport/base_client.rbs +3 -0
  225. data/sig/anthropic/internal/type/request_parameters.rbs +2 -0
  226. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  227. data/sig/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbs +17 -0
  228. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbs +45 -0
  229. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbs +17 -0
  230. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbs +17 -0
  231. data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbs +17 -0
  232. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbs +73 -0
  233. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +44 -0
  234. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +44 -0
  235. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +44 -0
  236. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +44 -0
  237. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbs +20 -0
  238. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbs +23 -0
  239. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbs +18 -0
  240. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbs +29 -0
  241. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbs +26 -0
  242. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbs +18 -0
  243. data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbs +23 -0
  244. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +51 -0
  245. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbs +22 -0
  246. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbs +56 -0
  247. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbs +56 -0
  248. data/sig/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbs +50 -0
  249. data/sig/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbs +41 -0
  250. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbs +54 -0
  251. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbs +48 -0
  252. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbs +27 -0
  253. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbs +43 -0
  254. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbs +27 -0
  255. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbs +43 -0
  256. data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbs +30 -0
  257. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbs +43 -0
  258. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbs +48 -0
  259. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbs +57 -0
  260. data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbs +48 -0
  261. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbs +50 -0
  262. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbs +38 -0
  263. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbs +69 -0
  264. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbs +48 -0
  265. data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbs +46 -0
  266. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbs +64 -0
  267. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbs +48 -0
  268. data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbs +46 -0
  269. data/sig/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbs +44 -0
  270. data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +28 -0
  271. data/sig/anthropic/resources/beta/organization/claude_tag/slack_channels.rbs +50 -0
  272. data/sig/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbs +36 -0
  273. data/sig/anthropic/resources/beta/organization/claude_tag.rbs +17 -0
  274. data/sig/anthropic/resources/beta/organization.rbs +2 -0
  275. metadata +142 -1
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagGuestPolicyAllow < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :allow]
11
+ required :type, const: :allow
12
+
13
+ # @!method initialize(type: :allow)
14
+ # Claude answers in the channel.
15
+ #
16
+ # @param type [Symbol, :allow]
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagGuestPolicyChannelOnly < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :channel_only]
11
+ required :type, const: :channel_only
12
+
13
+ # @!method initialize(type: :channel_only)
14
+ # Claude answers with only the Bundles attached to the channel itself.
15
+ #
16
+ # @param type [Symbol, :channel_only]
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagGuestPolicyRestrict < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :restrict]
11
+ required :type, const: :restrict
12
+
13
+ # @!method initialize(type: :restrict)
14
+ # Claude does not answer in the channel.
15
+ #
16
+ # @param type [Symbol, :restrict]
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # The settings level a value comes from. More types can be added.
8
+ module BetaClaudeTagSettingSource
9
+ extend Anthropic::Internal::Type::Union
10
+
11
+ discriminator :type
12
+
13
+ # The value comes from the addressed Slack channel itself.
14
+ variant :slack_channel, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource }
15
+
16
+ # The value comes from a Slack workspace of the organization.
17
+ variant :slack_workspace, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource }
18
+
19
+ # The value comes from the channel that a code channel was started from. A parent channel contributes `instructions` and `environment_id` only.
20
+ variant :slack_parent_channel,
21
+ -> { Anthropic::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource }
22
+
23
+ # The value comes from the organization's Slack defaults, which have no identifier.
24
+ variant :slack_default, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource }
25
+
26
+ # No settings level sets a value, and the built-in default applies.
27
+ variant :default, -> { Anthropic::Beta::Organization::BetaClaudeTagDefaultSettingSource }
28
+
29
+ # The value comes from the addressed channel as it is set up under another workspace of its Enterprise Grid: a channel shared across the Grid keeps one Slack channel identifier in every workspace that sees it.
30
+ variant :slack_grid_channel,
31
+ -> { Anthropic::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource }
32
+
33
+ module Type
34
+ extend Anthropic::Internal::Type::Enum
35
+
36
+ SLACK_CHANNEL = :slack_channel
37
+ SLACK_WORKSPACE = :slack_workspace
38
+ SLACK_PARENT_CHANNEL = :slack_parent_channel
39
+ SLACK_DEFAULT = :slack_default
40
+ DEFAULT = :default
41
+ SLACK_GRID_CHANNEL = :slack_grid_channel
42
+
43
+ # @!method self.values
44
+ # @return [Array<Symbol>]
45
+ end
46
+
47
+ # @!method self.variants
48
+ # @return [Array(Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource)]
49
+
50
+ # Creates a new instance of the variant class whose `type` matches the given
51
+ # value, passing the remaining arguments to its constructor.
52
+ #
53
+ # @param type [Symbol, Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSource::Type, String]
54
+ #
55
+ # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
56
+ #
57
+ # @option args [String] :slack_channel_id The channel's identifier, starting with `slch_`.
58
+ #
59
+ # @option args [String] :slack_workspace_id The workspace's identifier, starting with `slws_`.
60
+ #
61
+ # @option args [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers] :slack Slack's own identifiers for the channel under that other workspace.
62
+ #
63
+ # @raise [ArgumentError]
64
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource]
65
+ def self.new(type:, **args)
66
+ case type.to_sym
67
+ when :slack_channel
68
+ Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource.new(**args)
69
+ when :slack_workspace
70
+ Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource.new(**args)
71
+ when :slack_parent_channel
72
+ Anthropic::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource.new(**args)
73
+ when :slack_default
74
+ Anthropic::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource.new(**args)
75
+ when :default
76
+ Anthropic::Beta::Organization::BetaClaudeTagDefaultSettingSource.new(**args)
77
+ when :slack_grid_channel
78
+ Anthropic::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource.new(**args)
79
+ else
80
+ raise ArgumentError, "unknown type: #{type}"
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSettingSources < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute enabled
9
+ # The settings level `enabled` comes from.
10
+ #
11
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
12
+ required :enabled,
13
+ union: -> {
14
+ Anthropic::Beta::Organization::BetaClaudeTagSettingSource
15
+ },
16
+ nil?: true
17
+
18
+ # @!attribute environment_id
19
+ # The settings level `environment_id` comes from.
20
+ #
21
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
22
+ required :environment_id,
23
+ union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource },
24
+ nil?: true
25
+
26
+ # @!attribute guest_policy
27
+ # The settings level `guest_policy` comes from.
28
+ #
29
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
30
+ required :guest_policy,
31
+ union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource },
32
+ nil?: true
33
+
34
+ # @!attribute instructions
35
+ # Every settings level that contributes text to `instructions`, broadest first, in
36
+ # the order their text is joined. Empty when none does.
37
+ #
38
+ # @return [Array<Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource>]
39
+ required :instructions,
40
+ -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Organization::BetaClaudeTagSettingSource] }
41
+
42
+ # @!attribute model
43
+ # The settings level `model` comes from.
44
+ #
45
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
46
+ required :model, union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource }, nil?: true
47
+
48
+ # @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:)
49
+ # For each setting, the settings level its value in `settings` comes from. Without
50
+ # `include_inherited`, a setting the channel or workspace stores has a source that
51
+ # names the channel or workspace itself, and one it does not store has null, or an
52
+ # empty list for `instructions`. With `include_inherited=true` no member is null:
53
+ # a value that no settings level sets has the source `default`.
54
+ #
55
+ # Some parameter documentations has been truncated, see
56
+ # {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources} for more
57
+ # details.
58
+ #
59
+ # @param enabled [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `enabled` comes from.
60
+ #
61
+ # @param environment_id [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `environment_id` comes from.
62
+ #
63
+ # @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `guest_policy` comes from.
64
+ #
65
+ # @param instructions [Array<Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource>] Every settings level that contributes text to `instructions`, broadest first, in
66
+ #
67
+ # @param model [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `model` comes from.
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSettings < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute enabled
9
+ # Whether Claude is on. The nearest settings level that sets it decides.
10
+ #
11
+ # @return [Boolean, nil]
12
+ required :enabled, Anthropic::Internal::Type::Boolean, nil?: true
13
+
14
+ # @!attribute environment_id
15
+ # The environment Claude's sessions run in, starting with `env_`, or the
16
+ # identifier of a self-hosted runner pool, starting with `ccpool_`. The nearest
17
+ # settings level that sets it decides.
18
+ #
19
+ # @return [String, nil]
20
+ required :environment_id, String, nil?: true
21
+
22
+ # @!attribute guest_policy
23
+ # What Claude does in a channel while a Slack guest is in it. The nearest settings
24
+ # level that sets it decides.
25
+ #
26
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
27
+ required :guest_policy,
28
+ union: -> {
29
+ Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
30
+ },
31
+ nil?: true
32
+
33
+ # @!attribute instructions
34
+ # Instructions for Claude. Instructions add up: the text of every settings level
35
+ # that sets it is joined, broadest first.
36
+ #
37
+ # @return [String, nil]
38
+ required :instructions, String, nil?: true
39
+
40
+ # @!attribute model
41
+ # The model Claude uses: a model identifier or the name of a model line. The
42
+ # nearest settings level that sets it decides. When none does, Claude uses the
43
+ # product's default model.
44
+ #
45
+ # @return [String, nil]
46
+ required :model, String, nil?: true
47
+
48
+ # @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:)
49
+ # Claude Tag settings. Without `include_inherited`, a setting that is null is not
50
+ # set on the settings level and is inherited. With it, `enabled` and
51
+ # `guest_policy` are never null, and `instructions`, `model` and `environment_id`
52
+ # are null when no settings level sets them.
53
+ #
54
+ # Some parameter documentations has been truncated, see
55
+ # {Anthropic::Models::Beta::Organization::BetaClaudeTagSettings} for more details.
56
+ #
57
+ # @param enabled [Boolean, nil] Whether Claude is on. The nearest settings level that sets it decides.
58
+ #
59
+ # @param environment_id [String, nil] The environment Claude's sessions run in, starting with `env_`, or the identifie
60
+ #
61
+ # @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. The nearest settings
62
+ #
63
+ # @param instructions [String, nil] Instructions for Claude. Instructions add up: the text of every settings level t
64
+ #
65
+ # @param model [String, nil] The model Claude uses: a model identifier or the name of a model line. The neare
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSettingsCreate < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute enabled
9
+ # Whether Claude is on. `true` on a channel turns Claude on in it even when its
10
+ # workspace stores `false`. Null clears it.
11
+ #
12
+ # @return [Boolean, nil]
13
+ optional :enabled, Anthropic::Internal::Type::Boolean, nil?: true
14
+
15
+ # @!attribute environment_id
16
+ # The environment Claude's sessions run in: the identifier of an active
17
+ # environment of the organization, starting with `env_`. Null clears it.
18
+ #
19
+ # @return [String, nil]
20
+ optional :environment_id, String, nil?: true
21
+
22
+ # @!attribute guest_policy
23
+ # What Claude does in a channel while a Slack guest is in it. Null clears it.
24
+ #
25
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
26
+ optional :guest_policy,
27
+ union: -> {
28
+ Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
29
+ },
30
+ nil?: true
31
+
32
+ # @!attribute instructions
33
+ # Instructions for Claude, up to 8,192 characters after leading and trailing white
34
+ # space is trimmed. Null or blank text clears them.
35
+ #
36
+ # @return [String, nil]
37
+ optional :instructions, String, nil?: true
38
+
39
+ # @!attribute model
40
+ # The model Claude uses: the identifier of a model, or the name of a model line,
41
+ # that the organization is entitled to for Claude Tag. Null clears it.
42
+ #
43
+ # @return [String, nil]
44
+ optional :model, String, nil?: true
45
+
46
+ # @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil)
47
+ # The settings in a request that sets a Slack channel up. A setting left out is
48
+ # not set. A setting sent as null is cleared.
49
+ #
50
+ # Some parameter documentations has been truncated, see
51
+ # {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingsCreate} for more
52
+ # details.
53
+ #
54
+ # @param enabled [Boolean, nil] Whether Claude is on. `true` on a channel turns Claude on in it even when its wo
55
+ #
56
+ # @param environment_id [String, nil] The environment Claude's sessions run in: the identifier of an active environmen
57
+ #
58
+ # @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. Null clears it.
59
+ #
60
+ # @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
61
+ #
62
+ # @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSettingsUpdate < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute enabled
9
+ # Whether Claude is on. `true` on a channel turns Claude on in it even when its
10
+ # workspace stores `false`. Null clears it.
11
+ #
12
+ # @return [Boolean, nil]
13
+ optional :enabled, Anthropic::Internal::Type::Boolean, nil?: true
14
+
15
+ # @!attribute environment_id
16
+ # The environment Claude's sessions run in: the identifier of an active
17
+ # environment of the organization, starting with `env_`. Null clears it.
18
+ #
19
+ # @return [String, nil]
20
+ optional :environment_id, String, nil?: true
21
+
22
+ # @!attribute guest_policy
23
+ # What Claude does in a channel while a Slack guest is in it. Null clears it.
24
+ #
25
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
26
+ optional :guest_policy,
27
+ union: -> {
28
+ Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
29
+ },
30
+ nil?: true
31
+
32
+ # @!attribute instructions
33
+ # Instructions for Claude, up to 8,192 characters after leading and trailing white
34
+ # space is trimmed. Null or blank text clears them.
35
+ #
36
+ # @return [String, nil]
37
+ optional :instructions, String, nil?: true
38
+
39
+ # @!attribute model
40
+ # The model Claude uses: the identifier of a model, or the name of a model line,
41
+ # that the organization is entitled to for Claude Tag. Null clears it.
42
+ #
43
+ # @return [String, nil]
44
+ optional :model, String, nil?: true
45
+
46
+ # @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil)
47
+ # The settings to change. A setting left out is unchanged. A setting sent as null
48
+ # is cleared, so it is inherited.
49
+ #
50
+ # Some parameter documentations has been truncated, see
51
+ # {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingsUpdate} for more
52
+ # details.
53
+ #
54
+ # @param enabled [Boolean, nil] Whether Claude is on. `true` on a channel turns Claude on in it even when its wo
55
+ #
56
+ # @param environment_id [String, nil] The environment Claude's sessions run in: the identifier of an active environmen
57
+ #
58
+ # @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. Null clears it.
59
+ #
60
+ # @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
61
+ #
62
+ # @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackChannelIdentifiers < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute channel_id
9
+ # Slack's identifier for the channel, starting with `C` or `G`, such as
10
+ # `C0456EFGH`.
11
+ #
12
+ # @return [String]
13
+ required :channel_id, String
14
+
15
+ # @!attribute workspace_id
16
+ # Slack's identifier for the workspace the channel is in, starting with `T`, such
17
+ # as `T0123ABCD`.
18
+ #
19
+ # @return [String]
20
+ required :workspace_id, String
21
+
22
+ # @!method initialize(channel_id:, workspace_id:)
23
+ # The identifiers Slack shows for a channel. They are Slack's own, not identifiers
24
+ # of this API.
25
+ #
26
+ # Some parameter documentations has been truncated, see
27
+ # {Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers}
28
+ # for more details.
29
+ #
30
+ # @param channel_id [String] Slack's identifier for the channel, starting with `C` or `G`, such as `C0456EFGH
31
+ #
32
+ # @param workspace_id [String] Slack's identifier for the workspace the channel is in, starting with `T`, such
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackChannelSettingSource < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute slack_channel_id
9
+ # The channel's identifier, starting with `slch_`.
10
+ #
11
+ # @return [String]
12
+ required :slack_channel_id, String
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :slack_channel]
17
+ required :type, const: :slack_channel
18
+
19
+ # @!method initialize(slack_channel_id:, type: :slack_channel)
20
+ # The value comes from the addressed Slack channel itself.
21
+ #
22
+ # @param slack_channel_id [String] The channel's identifier, starting with `slch_`.
23
+ #
24
+ # @param type [Symbol, :slack_channel]
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackDefaultSettingSource < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ #
10
+ # @return [Symbol, :slack_default]
11
+ required :type, const: :slack_default
12
+
13
+ # @!method initialize(type: :slack_default)
14
+ # The value comes from the organization's Slack defaults, which have no
15
+ # identifier.
16
+ #
17
+ # @param type [Symbol, :slack_default]
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackGridChannelSettingSource < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute slack
9
+ # Slack's own identifiers for the channel under that other workspace.
10
+ #
11
+ # @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers]
12
+ required :slack, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers }
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :slack_grid_channel]
17
+ required :type, const: :slack_grid_channel
18
+
19
+ # @!method initialize(slack:, type: :slack_grid_channel)
20
+ # The value comes from the addressed channel as it is set up under another
21
+ # workspace of its Enterprise Grid: a channel shared across the Grid keeps one
22
+ # Slack channel identifier in every workspace that sees it.
23
+ #
24
+ # @param slack [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers] Slack's own identifiers for the channel under that other workspace.
25
+ #
26
+ # @param type [Symbol, :slack_grid_channel]
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackParentChannelSettingSource < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute slack_channel_id
9
+ # The parent channel's identifier, starting with `slch_`.
10
+ #
11
+ # @return [String]
12
+ required :slack_channel_id, String
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :slack_parent_channel]
17
+ required :type, const: :slack_parent_channel
18
+
19
+ # @!method initialize(slack_channel_id:, type: :slack_parent_channel)
20
+ # The value comes from the channel that a code channel was started from. A parent
21
+ # channel contributes `instructions` and `environment_id` only.
22
+ #
23
+ # @param slack_channel_id [String] The parent channel's identifier, starting with `slch_`.
24
+ #
25
+ # @param type [Symbol, :slack_parent_channel]
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackWorkspaceIdentifiers < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute workspace_id
9
+ # Slack's identifier for the workspace, starting with `T`, such as `T0123ABCD`.
10
+ #
11
+ # @return [String]
12
+ required :workspace_id, String
13
+
14
+ # @!method initialize(workspace_id:)
15
+ # The identifier Slack shows for a workspace. It is Slack's own, not an identifier
16
+ # of this API.
17
+ #
18
+ # @param workspace_id [String] Slack's identifier for the workspace, starting with `T`, such as `T0123ABCD`.
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaClaudeTagSlackWorkspaceSettingSource < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute slack_workspace_id
9
+ # The workspace's identifier, starting with `slws_`.
10
+ #
11
+ # @return [String]
12
+ required :slack_workspace_id, String
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :slack_workspace]
17
+ required :type, const: :slack_workspace
18
+
19
+ # @!method initialize(slack_workspace_id:, type: :slack_workspace)
20
+ # The value comes from a Slack workspace of the organization.
21
+ #
22
+ # @param slack_workspace_id [String] The workspace's identifier, starting with `slws_`.
23
+ #
24
+ # @param type [Symbol, :slack_workspace]
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end