anthropic 2.7.0 → 2.9.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 (228) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/error_classes.rb +4 -0
  5. data/lib/anthropic/helpers/bedrock/client.rb +17 -5
  6. data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
  7. data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
  8. data/lib/anthropic/helpers/tools/runner.rb +21 -4
  9. data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
  10. data/lib/anthropic/helpers/vertex/client.rb +26 -12
  11. data/lib/anthropic/internal/tracing.rb +1 -0
  12. data/lib/anthropic/internal/type/file_input.rb +11 -0
  13. data/lib/anthropic/internal/util.rb +43 -11
  14. data/lib/anthropic/models/anthropic_beta.rb +44 -30
  15. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
  16. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
  17. data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
  18. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
  20. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
  21. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
  22. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
  23. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
  24. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
  25. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
  26. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
  27. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
  28. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
  29. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
  30. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
  31. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
  32. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
  33. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
  34. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
  35. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
  36. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
  37. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
  38. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
  39. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
  40. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
  41. data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
  42. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
  43. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
  44. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
  45. data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
  46. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
  47. data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
  48. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
  49. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
  50. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
  51. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
  52. data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
  53. data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
  54. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
  55. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
  56. data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
  57. data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
  58. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +13 -4
  59. data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
  60. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
  61. data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
  62. data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
  63. data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
  64. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +8 -5
  65. data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
  66. data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
  67. data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
  68. data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
  69. data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
  70. data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
  71. data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
  72. data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
  73. data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
  74. data/lib/anthropic/models/beta/organization/workspace_update_params.rb +2 -1
  75. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
  76. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
  77. data/lib/anthropic/models/error_details.rb +28 -3
  78. data/lib/anthropic/models/model.rb +2 -2
  79. data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
  80. data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
  81. data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
  82. data/lib/anthropic/models/organization/external_key.rb +2 -2
  83. data/lib/anthropic/models/organization/external_key_create_params.rb +8 -5
  84. data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
  85. data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
  86. data/lib/anthropic/models/organization/rbac_role.rb +13 -4
  87. data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
  88. data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
  89. data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
  90. data/lib/anthropic/models/organization/workspace_update_params.rb +2 -1
  91. data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
  92. data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
  93. data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
  94. data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
  95. data/lib/anthropic/models.rb +8 -0
  96. data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
  97. data/lib/anthropic/resources/beta/messages.rb +5 -1
  98. data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
  99. data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
  100. data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
  101. data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
  102. data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
  103. data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
  104. data/lib/anthropic/resources/organization/external_keys.rb +1 -1
  105. data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
  106. data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
  107. data/lib/anthropic/version.rb +1 -1
  108. data/lib/anthropic.rb +22 -0
  109. data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
  110. data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
  111. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
  112. data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
  113. data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
  114. data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
  115. data/rbi/anthropic/internal/tracing.rbi +2 -0
  116. data/rbi/anthropic/internal/util.rbi +2 -2
  117. data/rbi/anthropic/models/anthropic_beta.rbi +41 -41
  118. data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
  119. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
  120. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
  121. data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
  122. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
  123. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
  124. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
  125. data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
  126. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
  127. data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
  128. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
  129. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
  130. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
  131. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
  132. data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
  133. data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
  134. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
  135. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
  136. data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
  137. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
  138. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +21 -4
  139. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
  140. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
  141. data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
  142. data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
  143. data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
  144. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +14 -8
  145. data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
  146. data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
  147. data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
  148. data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
  149. data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
  150. data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
  151. data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
  152. data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
  153. data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
  154. data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +4 -2
  155. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
  156. data/rbi/anthropic/models/error_details.rbi +25 -1
  157. data/rbi/anthropic/models/model.rbi +2 -2
  158. data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
  159. data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
  160. data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
  161. data/rbi/anthropic/models/organization/external_key.rbi +4 -4
  162. data/rbi/anthropic/models/organization/external_key_create_params.rbi +14 -8
  163. data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
  164. data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
  165. data/rbi/anthropic/models/organization/rbac_role.rbi +18 -4
  166. data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
  167. data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
  168. data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
  169. data/rbi/anthropic/models/organization/workspace_update_params.rbi +4 -2
  170. data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
  171. data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
  172. data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
  173. data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
  174. data/rbi/anthropic/models.rbi +10 -0
  175. data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
  176. data/rbi/anthropic/resources/beta/organization/external_keys.rbi +7 -4
  177. data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
  178. data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
  179. data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
  180. data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +10 -8
  181. data/rbi/anthropic/resources/beta/organization/plugins.rbi +17 -14
  182. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +2 -1
  183. data/rbi/anthropic/resources/organization/external_keys.rbi +7 -4
  184. data/rbi/anthropic/resources/organization/workspaces.rbi +2 -1
  185. data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
  186. data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
  187. data/sig/anthropic/internal/tracing.rbs +1 -0
  188. data/sig/anthropic/internal/util.rbs +1 -1
  189. data/sig/anthropic/models/anthropic_beta.rbs +21 -21
  190. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
  191. data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
  192. data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
  193. data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
  194. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
  195. data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
  196. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
  197. data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
  198. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
  199. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
  200. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
  201. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
  202. data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
  203. data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
  204. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
  205. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
  206. data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
  207. data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
  208. data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
  209. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
  210. data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
  211. data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
  212. data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
  213. data/sig/anthropic/models/error_details.rbs +26 -0
  214. data/sig/anthropic/models/model.rbs +2 -2
  215. data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
  216. data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
  217. data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
  218. data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
  219. data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
  220. data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
  221. data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
  222. data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
  223. data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
  224. data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
  225. data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
  226. data/sig/anthropic/models.rbs +8 -0
  227. data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
  228. metadata +68 -2
@@ -0,0 +1,67 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ class AnalyticsClaudeTagMetrics < Anthropic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Anthropic::Organization::AnalyticsClaudeTagMetrics,
11
+ Anthropic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
16
+ # the window in date-range mode, so it is the number of active days; on grouped
17
+ # rows, the total of each member's active days. Null when Claude Tag data cannot
18
+ # be read for the request. Otherwise, 0 on a row filtered by project, and null on
19
+ # any other row when no covered day was measured.
20
+ sig { returns(T.nilable(Integer)) }
21
+ attr_accessor :active_day_count
22
+
23
+ # Number of the user's Slack messages that made them active: @-mentions, direct
24
+ # messages, group direct message asks, and thread posts Claude answered. Other
25
+ # messages are not counted. Null when Claude Tag data cannot be read for the
26
+ # request. Otherwise, 0 on a row filtered by project, and null on any other row
27
+ # when no covered day was measured.
28
+ sig { returns(T.nilable(Integer)) }
29
+ attr_accessor :active_message_count
30
+
31
+ # Claude Tag activity metrics for a single linked user on a given day.
32
+ sig do
33
+ params(
34
+ active_day_count: T.nilable(Integer),
35
+ active_message_count: T.nilable(Integer)
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ # 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over
40
+ # the window in date-range mode, so it is the number of active days; on grouped
41
+ # rows, the total of each member's active days. Null when Claude Tag data cannot
42
+ # be read for the request. Otherwise, 0 on a row filtered by project, and null on
43
+ # any other row when no covered day was measured.
44
+ active_day_count:,
45
+ # Number of the user's Slack messages that made them active: @-mentions, direct
46
+ # messages, group direct message asks, and thread posts Claude answered. Other
47
+ # messages are not counted. Null when Claude Tag data cannot be read for the
48
+ # request. Otherwise, 0 on a row filtered by project, and null on any other row
49
+ # when no covered day was measured.
50
+ active_message_count:
51
+ )
52
+ end
53
+
54
+ sig do
55
+ override.returns(
56
+ {
57
+ active_day_count: T.nilable(Integer),
58
+ active_message_count: T.nilable(Integer)
59
+ }
60
+ )
61
+ end
62
+ def to_hash
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -144,6 +144,36 @@ module Anthropic
144
144
  sig { returns(T.nilable(Integer)) }
145
145
  attr_accessor :claude_design_weekly_active_user_count
146
146
 
147
+ # Number of Slack users active in Claude Tag on the requested day. Counts distinct
148
+ # Slack users, including users who have not linked a Claude account, so it can
149
+ # exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
150
+ # no measured value, when Claude Tag data cannot be read for the request, and when
151
+ # the response is scoped to an RBAC group, because an unlinked user belongs to no
152
+ # group. Omitted from the response on deployments that do not offer Claude Tag
153
+ # reporting.
154
+ sig { returns(T.nilable(Integer)) }
155
+ attr_accessor :claude_tag_daily_active_user_count
156
+
157
+ # Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
158
+ # distinct Slack users, including users who have not linked a Claude account, so
159
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
160
+ # with no measured value, when Claude Tag data cannot be read for the request, and
161
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
162
+ # to no group. Omitted from the response on deployments that do not offer Claude
163
+ # Tag reporting.
164
+ sig { returns(T.nilable(Integer)) }
165
+ attr_accessor :claude_tag_monthly_active_user_count
166
+
167
+ # Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
168
+ # distinct Slack users, including users who have not linked a Claude account, so
169
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
170
+ # with no measured value, when Claude Tag data cannot be read for the request, and
171
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
172
+ # to no group. Omitted from the response on deployments that do not offer Claude
173
+ # Tag reporting.
174
+ sig { returns(T.nilable(Integer)) }
175
+ attr_accessor :claude_tag_weekly_active_user_count
176
+
147
177
  # Number of users with Claude in Office activity on the requested day. Omitted
148
178
  # from the response while the per-product breakdown is not enabled for this
149
179
  # organization.
@@ -216,6 +246,9 @@ module Anthropic
216
246
  claude_design_daily_active_user_count: T.nilable(Integer),
217
247
  claude_design_monthly_active_user_count: T.nilable(Integer),
218
248
  claude_design_weekly_active_user_count: T.nilable(Integer),
249
+ claude_tag_daily_active_user_count: T.nilable(Integer),
250
+ claude_tag_monthly_active_user_count: T.nilable(Integer),
251
+ claude_tag_weekly_active_user_count: T.nilable(Integer),
219
252
  office_agent_daily_active_user_count: T.nilable(Integer),
220
253
  office_agent_monthly_active_user_count: T.nilable(Integer),
221
254
  office_agent_weekly_active_user_count: T.nilable(Integer),
@@ -308,6 +341,30 @@ module Anthropic
308
341
  # from the response while the per-product breakdown is not enabled for this
309
342
  # organization.
310
343
  claude_design_weekly_active_user_count: nil,
344
+ # Number of Slack users active in Claude Tag on the requested day. Counts distinct
345
+ # Slack users, including users who have not linked a Claude account, so it can
346
+ # exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with
347
+ # no measured value, when Claude Tag data cannot be read for the request, and when
348
+ # the response is scoped to an RBAC group, because an unlinked user belongs to no
349
+ # group. Omitted from the response on deployments that do not offer Claude Tag
350
+ # reporting.
351
+ claude_tag_daily_active_user_count: nil,
352
+ # Number of Slack users active in Claude Tag in the 28-day rolling window. Counts
353
+ # distinct Slack users, including users who have not linked a Claude account, so
354
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
355
+ # with no measured value, when Claude Tag data cannot be read for the request, and
356
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
357
+ # to no group. Omitted from the response on deployments that do not offer Claude
358
+ # Tag reporting.
359
+ claude_tag_monthly_active_user_count: nil,
360
+ # Number of Slack users active in Claude Tag in the 7-day rolling window. Counts
361
+ # distinct Slack users, including users who have not linked a Claude account, so
362
+ # it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day
363
+ # with no measured value, when Claude Tag data cannot be read for the request, and
364
+ # when the response is scoped to an RBAC group, because an unlinked user belongs
365
+ # to no group. Omitted from the response on deployments that do not offer Claude
366
+ # Tag reporting.
367
+ claude_tag_weekly_active_user_count: nil,
311
368
  # Number of users with Claude in Office activity on the requested day. Omitted
312
369
  # from the response while the per-product breakdown is not enabled for this
313
370
  # organization.
@@ -369,6 +426,9 @@ module Anthropic
369
426
  claude_design_daily_active_user_count: T.nilable(Integer),
370
427
  claude_design_monthly_active_user_count: T.nilable(Integer),
371
428
  claude_design_weekly_active_user_count: T.nilable(Integer),
429
+ claude_tag_daily_active_user_count: T.nilable(Integer),
430
+ claude_tag_monthly_active_user_count: T.nilable(Integer),
431
+ claude_tag_weekly_active_user_count: T.nilable(Integer),
372
432
  office_agent_daily_active_user_count: T.nilable(Integer),
373
433
  office_agent_monthly_active_user_count: T.nilable(Integer),
374
434
  office_agent_weekly_active_user_count: T.nilable(Integer),
@@ -129,6 +129,25 @@ module Anthropic
129
129
  end
130
130
  attr_writer :chat_cowork_unified_metrics
131
131
 
132
+ # Claude Tag activity in Slack by a user who has linked a Claude account. Activity
133
+ # by Slack users who have not linked an account appears only in the `/summaries`
134
+ # Claude Tag counts, so these rows do not add up to those counts. Omitted from the
135
+ # response on deployments that do not offer Claude Tag reporting.
136
+ sig do
137
+ returns(T.nilable(Anthropic::Organization::AnalyticsClaudeTagMetrics))
138
+ end
139
+ attr_reader :claude_tag_metrics
140
+
141
+ sig do
142
+ params(
143
+ claude_tag_metrics:
144
+ T.nilable(
145
+ Anthropic::Organization::AnalyticsClaudeTagMetrics::OrHash
146
+ )
147
+ ).void
148
+ end
149
+ attr_writer :claude_tag_metrics
150
+
132
151
  # Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
133
152
  # within the requested window: equal to the requested `date` in single-day mode,
134
153
  # and to the latest active day from `starting_date` (inclusive) to `ending_date`
@@ -174,6 +193,10 @@ module Anthropic
174
193
  T.nilable(
175
194
  Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics::OrHash
176
195
  ),
196
+ claude_tag_metrics:
197
+ T.nilable(
198
+ Anthropic::Organization::AnalyticsClaudeTagMetrics::OrHash
199
+ ),
177
200
  last_activity_date: T.nilable(Date),
178
201
  rbac_group_id: T.nilable(String),
179
202
  rbac_group_name: T.nilable(String)
@@ -207,6 +230,11 @@ module Anthropic
207
230
  # `sessions` (Cowork activity). Omitted from the response where Chat and Cowork
208
231
  # unified is not available.
209
232
  chat_cowork_unified_metrics: nil,
233
+ # Claude Tag activity in Slack by a user who has linked a Claude account. Activity
234
+ # by Slack users who have not linked an account appears only in the `/summaries`
235
+ # Claude Tag counts, so these rows do not add up to those counts. Omitted from the
236
+ # response on deployments that do not offer Claude Tag reporting.
237
+ claude_tag_metrics: nil,
210
238
  # Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity,
211
239
  # within the requested window: equal to the requested `date` in single-day mode,
212
240
  # and to the latest active day from `starting_date` (inclusive) to `ending_date`
@@ -245,6 +273,8 @@ module Anthropic
245
273
  T.nilable(
246
274
  Anthropic::Organization::AnalyticsChatCoworkUnifiedMetrics
247
275
  ),
276
+ claude_tag_metrics:
277
+ T.nilable(Anthropic::Organization::AnalyticsClaudeTagMetrics),
248
278
  last_activity_date: T.nilable(Date),
249
279
  rbac_group_id: T.nilable(String),
250
280
  rbac_group_name: T.nilable(String)
@@ -53,8 +53,8 @@ module Anthropic
53
53
 
54
54
  # ID of the user profile the key is bound to, or null if the key is not bound to
55
55
  # one. A key bound to a user profile can only be attached to a Workspace that has
56
- # the same user profile. A key that isn't bound can be attached to a Workspace
57
- # whatever its user profile.
56
+ # the same user profile. A key that isn't bound can only be attached to a
57
+ # Workspace that has no user profile.
58
58
  sig { returns(T.nilable(String)) }
59
59
  attr_accessor :user_profile_id
60
60
 
@@ -104,8 +104,8 @@ module Anthropic
104
104
  updated_at:,
105
105
  # ID of the user profile the key is bound to, or null if the key is not bound to
106
106
  # one. A key bound to a user profile can only be attached to a Workspace that has
107
- # the same user profile. A key that isn't bound can be attached to a Workspace
108
- # whatever its user profile.
107
+ # the same user profile. A key that isn't bound can only be attached to a
108
+ # Workspace that has no user profile.
109
109
  user_profile_id:,
110
110
  type: :external_key
111
111
  )
@@ -48,10 +48,13 @@ module Anthropic
48
48
  end
49
49
  attr_writer :geo
50
50
 
51
- # ID of a user profile to bind the key to. Omit this field for a key that isn't
52
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
53
- # user profile. The binding cannot be changed later. A key bound to a user profile
54
- # can only be attached to a Workspace that has the same user profile.
51
+ # ID of a user profile to bind the key to. A user profile represents one of your
52
+ # customers: bind a customer's key to that customer's user profile. A key bound to
53
+ # a user profile can only be attached to a Workspace that has the same user
54
+ # profile, and the binding cannot be changed later. Omit this field only for your
55
+ # organization's own key, never a customer's. A key created without a user profile
56
+ # ID can't be attached to a Workspace that has a user profile, and you can't add
57
+ # one to the key later.
55
58
  sig { returns(T.nilable(String)) }
56
59
  attr_accessor :user_profile_id
57
60
 
@@ -77,10 +80,13 @@ module Anthropic
77
80
  display_name: nil,
78
81
  # Data residency geo. Only `us` is supported.
79
82
  geo: nil,
80
- # ID of a user profile to bind the key to. Omit this field for a key that isn't
81
- # bound to a user profile. Such a key can be attached to a Workspace whatever its
82
- # user profile. The binding cannot be changed later. A key bound to a user profile
83
- # can only be attached to a Workspace that has the same user profile.
83
+ # ID of a user profile to bind the key to. A user profile represents one of your
84
+ # customers: bind a customer's key to that customer's user profile. A key bound to
85
+ # a user profile can only be attached to a Workspace that has the same user
86
+ # profile, and the binding cannot be changed later. Omit this field only for your
87
+ # organization's own key, never a customer's. A key created without a user profile
88
+ # ID can't be attached to a Workspace that has a user profile, and you can't add
89
+ # one to the key later.
84
90
  user_profile_id: nil,
85
91
  request_options: {}
86
92
  )
@@ -3,9 +3,9 @@
3
3
  module Anthropic
4
4
  module Models
5
5
  module Organization
6
- # The External Key is bound to a user profile, and the Workspace does not have
7
- # that user profile. A Workspace can use only a key bound to its own user profile
8
- # or a key that isn't bound to one.
6
+ # After this request, the External Key and the Workspace would not have the same
7
+ # user profile. A key and its Workspace must have the same user profile, or both
8
+ # have none.
9
9
  class KeyProfileMismatchError < Anthropic::Errors::BadRequestError
10
10
  sig { returns(Symbol) }
11
11
  def error_code
@@ -15,9 +15,9 @@ module Anthropic
15
15
  sig { returns(Symbol) }
16
16
  attr_accessor :error_code
17
17
 
18
- # The External Key is bound to a user profile, and the Workspace does not have
19
- # that user profile. A Workspace can use only a key bound to its own user profile
20
- # or a key that isn't bound to one.
18
+ # After this request, the External Key and the Workspace would not have the same
19
+ # user profile. A key and its Workspace must have the same user profile, or both
20
+ # have none.
21
21
  sig { params(error_code: Symbol).returns(T.attached_class) }
22
22
  def self.new(error_code: :key_profile_mismatch)
23
23
  end
@@ -20,12 +20,17 @@ module Anthropic
20
20
  sig { returns(Time) }
21
21
  attr_accessor :created_at
22
22
 
23
- # Name of the RBAC Role. For a role created by Anthropic, this name can differ
24
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
23
+ # Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
24
+ # access that the role grants. Anthropic may change this name, so to keep a
25
25
  # lasting reference to a role, store its `id`.
26
26
  sig { returns(String) }
27
27
  attr_accessor :display_name
28
28
 
29
+ # Whether the RBAC Role is built-in or custom. More values of `type` may be added,
30
+ # so do not treat every role that is not `built_in` as `custom`.
31
+ sig { returns(Anthropic::Organization::RBACRoleSource::Variants) }
32
+ attr_accessor :source
33
+
29
34
  # Object type.
30
35
  #
31
36
  # For RBAC Roles, this is always `"rbac_role"`.
@@ -41,6 +46,11 @@ module Anthropic
41
46
  id: String,
42
47
  created_at: Time,
43
48
  display_name: String,
49
+ source:
50
+ T.any(
51
+ Anthropic::Organization::RBACRoleSourceBuiltIn::OrHash,
52
+ Anthropic::Organization::RBACRoleSourceCustom::OrHash
53
+ ),
44
54
  updated_at: Time,
45
55
  type: Symbol
46
56
  ).returns(T.attached_class)
@@ -50,10 +60,13 @@ module Anthropic
50
60
  id:,
51
61
  # RFC 3339 datetime string indicating when the RBAC Role was created.
52
62
  created_at:,
53
- # Name of the RBAC Role. For a role created by Anthropic, this name can differ
54
- # from the label claude.ai shows, and Anthropic may change the name. To keep a
63
+ # Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
64
+ # access that the role grants. Anthropic may change this name, so to keep a
55
65
  # lasting reference to a role, store its `id`.
56
66
  display_name:,
67
+ # Whether the RBAC Role is built-in or custom. More values of `type` may be added,
68
+ # so do not treat every role that is not `built_in` as `custom`.
69
+ source:,
57
70
  # RFC 3339 datetime string indicating when the RBAC Role was last updated.
58
71
  updated_at:,
59
72
  # Object type.
@@ -69,6 +82,7 @@ module Anthropic
69
82
  id: String,
70
83
  created_at: Time,
71
84
  display_name: String,
85
+ source: Anthropic::Organization::RBACRoleSource::Variants,
72
86
  type: Symbol,
73
87
  updated_at: Time
74
88
  }
@@ -0,0 +1,68 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ module RBACRoleSource
7
+ extend Anthropic::Internal::Type::Union
8
+
9
+ Variants =
10
+ T.type_alias do
11
+ T.any(
12
+ Anthropic::Organization::RBACRoleSourceBuiltIn,
13
+ Anthropic::Organization::RBACRoleSourceCustom
14
+ )
15
+ end
16
+
17
+ module Type
18
+ extend Anthropic::Internal::Type::Enum
19
+
20
+ TaggedSymbol =
21
+ T.type_alias do
22
+ T.all(Symbol, Anthropic::Organization::RBACRoleSource::Type)
23
+ end
24
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
25
+
26
+ BUILT_IN =
27
+ T.let(
28
+ :built_in,
29
+ Anthropic::Organization::RBACRoleSource::Type::TaggedSymbol
30
+ )
31
+ CUSTOM =
32
+ T.let(
33
+ :custom,
34
+ Anthropic::Organization::RBACRoleSource::Type::TaggedSymbol
35
+ )
36
+
37
+ sig do
38
+ override.returns(
39
+ T::Array[
40
+ Anthropic::Organization::RBACRoleSource::Type::TaggedSymbol
41
+ ]
42
+ )
43
+ end
44
+ def self.values
45
+ end
46
+ end
47
+
48
+ sig do
49
+ override.returns(
50
+ T::Array[Anthropic::Organization::RBACRoleSource::Variants]
51
+ )
52
+ end
53
+ def self.variants
54
+ end
55
+
56
+ # Creates a new instance of the variant class whose `type` matches the given
57
+ # value, passing the remaining arguments to its constructor.
58
+ sig do
59
+ params(
60
+ type: Anthropic::Organization::RBACRoleSource::Type::OrSymbol
61
+ ).returns(Anthropic::Organization::RBACRoleSource::Variants)
62
+ end
63
+ def self.new(type:)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,34 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ class RBACRoleSourceBuiltIn < Anthropic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Anthropic::Organization::RBACRoleSourceBuiltIn,
11
+ Anthropic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # Anthropic provisions the RBAC Role, and the organization's administrators cannot
16
+ # change or delete it.
17
+ sig { returns(Symbol) }
18
+ attr_accessor :type
19
+
20
+ sig { params(type: Symbol).returns(T.attached_class) }
21
+ def self.new(
22
+ # Anthropic provisions the RBAC Role, and the organization's administrators cannot
23
+ # change or delete it.
24
+ type: :built_in
25
+ )
26
+ end
27
+
28
+ sig { override.returns({ type: Symbol }) }
29
+ def to_hash
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,32 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Organization
6
+ class RBACRoleSourceCustom < Anthropic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Anthropic::Organization::RBACRoleSourceCustom,
11
+ Anthropic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The organization's administrators can change and delete the RBAC Role.
16
+ sig { returns(Symbol) }
17
+ attr_accessor :type
18
+
19
+ sig { params(type: Symbol).returns(T.attached_class) }
20
+ def self.new(
21
+ # The organization's administrators can change and delete the RBAC Role.
22
+ type: :custom
23
+ )
24
+ end
25
+
26
+ sig { override.returns({ type: Symbol }) }
27
+ def to_hash
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -74,7 +74,8 @@ module Anthropic
74
74
  # the Workspace must then name this user profile; the API rejects a request that
75
75
  # names none or a different one. Once set, it can't be replaced or removed
76
76
  # (sending the same ID again changes nothing); only deleting the user profile
77
- # clears it. The default Workspace can't have a user profile.
77
+ # clears it. It can't be set on a Workspace whose External Key isn't bound to this
78
+ # user profile. The default Workspace can't have a user profile.
78
79
  sig { returns(T.nilable(String)) }
79
80
  attr_reader :user_profile_id
80
81
 
@@ -123,7 +124,8 @@ module Anthropic
123
124
  # the Workspace must then name this user profile; the API rejects a request that
124
125
  # names none or a different one. Once set, it can't be replaced or removed
125
126
  # (sending the same ID again changes nothing); only deleting the user profile
126
- # clears it. The default Workspace can't have a user profile.
127
+ # clears it. It can't be set on a Workspace whose External Key isn't bound to this
128
+ # user profile. The default Workspace can't have a user profile.
127
129
  user_profile_id: nil,
128
130
  request_options: {}
129
131
  )
@@ -0,0 +1,17 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The endpoint serves only organizations that belong to a parent organization, and
6
+ # this organization belongs to none.
7
+ class ParentOrganizationRequiredError < Anthropic::Errors::BadRequestError
8
+ sig { returns(Symbol) }
9
+ def error_code
10
+ end
11
+
12
+ sig { returns(Anthropic::ParentOrganizationRequiredErrorDetails) }
13
+ def details
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,28 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ class ParentOrganizationRequiredErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Anthropic::ParentOrganizationRequiredErrorDetails,
10
+ Anthropic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :error_code
16
+
17
+ # The endpoint serves only organizations that belong to a parent organization, and
18
+ # this organization belongs to none.
19
+ sig { params(error_code: Symbol).returns(T.attached_class) }
20
+ def self.new(error_code: :parent_organization_required)
21
+ end
22
+
23
+ sig { override.returns({ error_code: Symbol }) }
24
+ def to_hash
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,16 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ # No RBAC Role with this ID was found.
6
+ class RBACRoleNotFoundError < Anthropic::Errors::NotFoundError
7
+ sig { returns(Symbol) }
8
+ def error_code
9
+ end
10
+
11
+ sig { returns(Anthropic::RBACRoleNotFoundErrorDetails) }
12
+ def details
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ class RBACRoleNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Anthropic::RBACRoleNotFoundErrorDetails,
10
+ Anthropic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :error_code
16
+
17
+ # No RBAC Role with this ID was found.
18
+ sig { params(error_code: Symbol).returns(T.attached_class) }
19
+ def self.new(error_code: :rbac_role_not_found)
20
+ end
21
+
22
+ sig { override.returns({ error_code: Symbol }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -781,6 +781,12 @@ module Anthropic
781
781
 
782
782
  OverloadedError = Anthropic::Models::OverloadedError
783
783
 
784
+ ParentOrganizationRequiredError =
785
+ Anthropic::Models::ParentOrganizationRequiredError
786
+
787
+ ParentOrganizationRequiredErrorDetails =
788
+ Anthropic::Models::ParentOrganizationRequiredErrorDetails
789
+
784
790
  PermissionError = Anthropic::Models::PermissionError
785
791
 
786
792
  PlainTextSource = Anthropic::Models::PlainTextSource
@@ -808,6 +814,10 @@ module Anthropic
808
814
 
809
815
  RawMessageStreamEvent = Anthropic::Models::RawMessageStreamEvent
810
816
 
817
+ RBACRoleNotFoundError = Anthropic::Models::RBACRoleNotFoundError
818
+
819
+ RBACRoleNotFoundErrorDetails = Anthropic::Models::RBACRoleNotFoundErrorDetails
820
+
811
821
  RedactedThinkingBlock = Anthropic::Models::RedactedThinkingBlock
812
822
 
813
823
  RedactedThinkingBlockParam = Anthropic::Models::RedactedThinkingBlockParam