anthropic 1.77.1 → 1.78.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 (274) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/internal/stream.rb +1 -1
  5. data/lib/anthropic/models/beta/agent_create_params.rb +3 -3
  6. data/lib/anthropic/models/beta/agent_update_params.rb +3 -3
  7. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +3 -3
  8. data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +43 -73
  9. data/lib/anthropic/models/beta/beta_managed_agents_multiagent20261001.rb +46 -0
  10. data/lib/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rb +67 -0
  11. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rb +57 -0
  12. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rb +21 -0
  13. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rb +21 -0
  14. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rb +29 -0
  15. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rb +34 -0
  16. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rb +61 -0
  17. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rb +57 -0
  18. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rb +21 -0
  19. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rb +22 -0
  20. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rb +21 -0
  21. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rb +22 -0
  22. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rb +57 -0
  23. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +44 -26
  24. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rb +27 -0
  25. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rb +63 -0
  26. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rb +21 -0
  27. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rb +22 -0
  28. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rb +44 -0
  29. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rb +55 -0
  30. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rb +63 -0
  31. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rb +63 -0
  32. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rb +21 -0
  33. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rb +22 -0
  34. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rb +43 -0
  35. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rb +55 -0
  36. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rb +63 -0
  37. data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +3 -7
  38. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent.rb +63 -0
  39. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rb +46 -0
  40. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rb +63 -0
  41. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rb +45 -0
  42. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rb +63 -0
  43. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rb +44 -0
  44. data/lib/anthropic/models/beta/organization/analytics/artifact_list_params.rb +12 -10
  45. data/lib/anthropic/models/beta/organization/analytics/connector_list_params.rb +8 -6
  46. data/lib/anthropic/models/beta/organization/analytics/plugin_list_params.rb +15 -12
  47. data/lib/anthropic/models/beta/organization/analytics/skill_list_params.rb +10 -8
  48. data/lib/anthropic/models/beta/organization/analytics/user_list_params.rb +8 -4
  49. data/lib/anthropic/models/beta/organization/beta_analytics_artifact_activity.rb +9 -7
  50. data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rb +142 -0
  51. data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rb +186 -0
  52. data/lib/anthropic/models/beta/organization/beta_analytics_connector_activity.rb +59 -8
  53. data/lib/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rb +30 -0
  54. data/lib/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rb +30 -0
  55. data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +7 -3
  56. data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +7 -3
  57. data/lib/anthropic/models/beta/organization/beta_analytics_plugin_activity.rb +52 -12
  58. data/lib/anthropic/models/beta/organization/beta_analytics_product_filter.rb +5 -1
  59. data/lib/anthropic/models/beta/organization/beta_analytics_project_activity.rb +9 -7
  60. data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +31 -1
  61. data/lib/anthropic/models/beta/organization/beta_analytics_skill_activity.rb +57 -8
  62. data/lib/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rb +30 -0
  63. data/lib/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rb +30 -0
  64. data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +7 -3
  65. data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +7 -3
  66. data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +44 -1
  67. data/lib/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rb +189 -0
  68. data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +35 -0
  69. data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +34 -0
  70. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +61 -5
  71. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rb +7 -0
  72. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +21 -6
  73. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +14 -1
  74. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +61 -5
  75. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +61 -5
  76. data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +34 -0
  77. data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +34 -0
  78. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +34 -0
  79. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rb +79 -0
  80. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +83 -0
  81. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +60 -0
  82. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb +43 -0
  83. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rb +70 -0
  84. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rb +59 -0
  85. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +63 -0
  86. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rb +22 -0
  87. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +29 -0
  88. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rb +21 -0
  89. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +59 -0
  90. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rb +52 -0
  91. data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rb +52 -0
  92. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +13 -1
  93. data/lib/anthropic/resources/beta/agents.rb +2 -2
  94. data/lib/anthropic/resources/beta/sessions/events.rb +2 -2
  95. data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
  96. data/lib/anthropic/resources/beta/sessions/threads.rb +4 -2
  97. data/lib/anthropic/version.rb +1 -1
  98. data/lib/anthropic.rb +58 -0
  99. data/rbi/anthropic/models/beta/agent_create_params.rbi +18 -13
  100. data/rbi/anthropic/models/beta/agent_update_params.rbi +18 -13
  101. data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +13 -10
  102. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +63 -137
  103. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent20261001.rbi +94 -0
  104. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rbi +142 -0
  105. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rbi +85 -0
  106. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rbi +32 -0
  107. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rbi +32 -0
  108. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rbi +40 -0
  109. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rbi +42 -0
  110. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rbi +86 -0
  111. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +4 -10
  112. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rbi +82 -0
  113. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rbi +32 -0
  114. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rbi +32 -0
  115. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rbi +32 -0
  116. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rbi +32 -0
  117. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rbi +82 -0
  118. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +81 -79
  119. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rbi +36 -0
  120. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rbi +95 -0
  121. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rbi +32 -0
  122. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rbi +32 -0
  123. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rbi +79 -0
  124. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rbi +122 -0
  125. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rbi +107 -0
  126. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rbi +94 -0
  127. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rbi +32 -0
  128. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rbi +32 -0
  129. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rbi +77 -0
  130. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rbi +121 -0
  131. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rbi +106 -0
  132. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +7 -14
  133. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent.rbi +112 -0
  134. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rbi +94 -0
  135. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rbi +97 -0
  136. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rbi +81 -0
  137. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rbi +96 -0
  138. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rbi +79 -0
  139. data/rbi/anthropic/models/beta/organization/analytics/artifact_list_params.rbi +24 -20
  140. data/rbi/anthropic/models/beta/organization/analytics/connector_list_params.rbi +16 -12
  141. data/rbi/anthropic/models/beta/organization/analytics/plugin_list_params.rbi +30 -24
  142. data/rbi/anthropic/models/beta/organization/analytics/skill_list_params.rbi +20 -16
  143. data/rbi/anthropic/models/beta/organization/analytics/user_list_params.rbi +16 -8
  144. data/rbi/anthropic/models/beta/organization/beta_analytics_artifact_activity.rbi +18 -14
  145. data/rbi/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rbi +189 -0
  146. data/rbi/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rbi +236 -0
  147. data/rbi/anthropic/models/beta/organization/beta_analytics_connector_activity.rbi +136 -14
  148. data/rbi/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rbi +50 -0
  149. data/rbi/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rbi +50 -0
  150. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +14 -6
  151. data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +14 -6
  152. data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbi +99 -18
  153. data/rbi/anthropic/models/beta/organization/beta_analytics_product_filter.rbi +9 -1
  154. data/rbi/anthropic/models/beta/organization/beta_analytics_project_activity.rbi +18 -14
  155. data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +38 -0
  156. data/rbi/anthropic/models/beta/organization/beta_analytics_skill_activity.rbi +136 -14
  157. data/rbi/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rbi +50 -0
  158. data/rbi/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rbi +50 -0
  159. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +14 -6
  160. data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +14 -6
  161. data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +113 -0
  162. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbi +325 -0
  163. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +44 -0
  164. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +43 -0
  165. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +92 -18
  166. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbi +35 -0
  167. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +23 -5
  168. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +13 -3
  169. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +92 -18
  170. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +92 -18
  171. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +43 -0
  172. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +43 -0
  173. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +43 -0
  174. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rbi +111 -0
  175. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +105 -0
  176. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +91 -0
  177. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rbi +59 -0
  178. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rbi +90 -0
  179. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rbi +79 -0
  180. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +97 -0
  181. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rbi +32 -0
  182. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +63 -0
  183. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rbi +31 -0
  184. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +88 -0
  185. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rbi +71 -0
  186. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rbi +71 -0
  187. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +38 -0
  188. data/rbi/anthropic/resources/beta/agents.rbi +8 -2
  189. data/rbi/anthropic/resources/beta/organization/analytics/artifacts.rbi +12 -10
  190. data/rbi/anthropic/resources/beta/organization/analytics/connectors.rbi +8 -6
  191. data/rbi/anthropic/resources/beta/organization/analytics/plugins.rbi +15 -12
  192. data/rbi/anthropic/resources/beta/organization/analytics/skills.rbi +10 -8
  193. data/rbi/anthropic/resources/beta/organization/analytics/users.rbi +8 -4
  194. data/rbi/anthropic/resources/beta/sessions/threads.rbi +9 -0
  195. data/sig/anthropic/models/beta/agent_create_params.rbs +4 -4
  196. data/sig/anthropic/models/beta/agent_update_params.rbs +4 -4
  197. data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +4 -4
  198. data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +29 -59
  199. data/sig/anthropic/models/beta/beta_managed_agents_multiagent20261001.rbs +39 -0
  200. data/sig/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rbs +39 -0
  201. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rbs +42 -0
  202. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rbs +17 -0
  203. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rbs +18 -0
  204. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rbs +20 -0
  205. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rbs +20 -0
  206. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rbs +42 -0
  207. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rbs +40 -0
  208. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rbs +18 -0
  209. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rbs +18 -0
  210. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rbs +18 -0
  211. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rbs +18 -0
  212. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rbs +40 -0
  213. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_params.rbs +29 -20
  214. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rbs +18 -0
  215. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rbs +44 -0
  216. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rbs +18 -0
  217. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rbs +18 -0
  218. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rbs +34 -0
  219. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rbs +34 -0
  220. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rbs +44 -0
  221. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rbs +44 -0
  222. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rbs +18 -0
  223. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rbs +18 -0
  224. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rbs +34 -0
  225. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rbs +34 -0
  226. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rbs +44 -0
  227. data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +4 -4
  228. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent.rbs +48 -0
  229. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rbs +39 -0
  230. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rbs +44 -0
  231. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rbs +34 -0
  232. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rbs +44 -0
  233. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rbs +34 -0
  234. data/sig/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rbs +79 -0
  235. data/sig/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rbs +104 -0
  236. data/sig/anthropic/models/beta/organization/beta_analytics_connector_activity.rbs +27 -0
  237. data/sig/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rbs +22 -0
  238. data/sig/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rbs +20 -0
  239. data/sig/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbs +18 -0
  240. data/sig/anthropic/models/beta/organization/beta_analytics_product_filter.rbs +2 -0
  241. data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
  242. data/sig/anthropic/models/beta/organization/beta_analytics_skill_activity.rbs +27 -0
  243. data/sig/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rbs +20 -0
  244. data/sig/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rbs +18 -0
  245. data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +27 -0
  246. data/sig/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbs +152 -0
  247. data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +23 -0
  248. data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +20 -0
  249. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +85 -5
  250. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbs +14 -0
  251. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +25 -6
  252. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbs +8 -3
  253. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +85 -5
  254. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +85 -5
  255. data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +20 -0
  256. data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +20 -0
  257. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +20 -0
  258. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rbs +54 -0
  259. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +66 -0
  260. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +44 -0
  261. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rbs +26 -0
  262. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rbs +49 -0
  263. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rbs +44 -0
  264. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +47 -0
  265. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rbs +18 -0
  266. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +29 -0
  267. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rbs +18 -0
  268. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbs +44 -0
  269. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rbs +39 -0
  270. data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rbs +39 -0
  271. data/sig/anthropic/models/beta/sessions/thread_list_params.rbs +9 -0
  272. data/sig/anthropic/resources/beta/agents.rbs +2 -2
  273. data/sig/anthropic/resources/beta/sessions/threads.rbs +1 -0
  274. metadata +176 -2
@@ -34,14 +34,18 @@ module Anthropic
34
34
  # Filters as `dimension:value`, e.g. `filter[]=rbac_group_id:{id}`. Repeat the
35
35
  # param for OR within a dimension and across dimensions for AND. Supported
36
36
  # dimensions on this endpoint: `project_id`, `rbac_group_id`, `user_id`. Value
37
- # forms: `project_id` takes a tagged project id (`claude_proj_...`) and scopes
38
- # each member's row to their claude.ai chat activity within that project (it
39
- # cannot be combined with `group_by[]` or an `rbac_group_id` filter);
37
+ # forms: `project_id` takes a tagged project id (`claude_proj_...`);
40
38
  # `rbac_group_id` takes the tagged id (`rbac_group_...`, as emitted in responses
41
39
  # and by the spend-limits API) or a bare group UUID, and matches users who held
42
40
  # the group at any point during each covered UTC day (time-of-usage attribution);
43
41
  # `user_id` takes a tagged user id (`user_...`), as emitted in responses. An
44
- # unsupported dimension returns 400. At most 100 entries.
42
+ # unsupported dimension returns 400. At most 100 entries. A `project_id` filter
43
+ # limits each member's row to their claude.ai chat activity in that project and
44
+ # cannot be combined with `group_by[]` or an `rbac_group_id` filter. On these
45
+ # rows, every count in `chat_cowork_unified_metrics.sessions` is 0, because
46
+ # sessions are not measured per project. On any day a member sent a chat message
47
+ # in Chat and Cowork unified, all of that member's project activity for the day is
48
+ # counted in `chat_cowork_unified_metrics.chat` instead of `chat_metrics`.
45
49
  #
46
50
  # @return [Array<String>, nil]
47
51
  optional :filter, Anthropic::Internal::Type::ArrayOf[String], nil?: true
@@ -44,13 +44,15 @@ module Anthropic
44
44
 
45
45
  # @!attribute product
46
46
  # Product that produced this row's activity: one of `chat`, `claude_code`,
47
- # `cowork`, or `office_agent` (the canonical Cost & Usage product naming; an
48
- # `office_agent` row's per-surface breakdown is in its `office_metrics`). On
49
- # `/plugins` only `cowork` and `claude_code` occur (the only surfaces with plugin
50
- # attribution); on `/artifacts` only `chat`, `claude_code`, and `cowork` occur
51
- # (the surfaces that create artifacts); `/apps/chat/projects` does not support the
52
- # product dimension (a `product` entry in `group_by[]` or `filter[]` there is
53
- # rejected). Present only when the request grouped by `product`.
47
+ # `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified).
48
+ # These are the canonical Cost & Usage product names; an `office_agent` row's
49
+ # per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`,
50
+ # `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin
51
+ # attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and
52
+ # `chat_cowork_unified` occur (the surfaces that create artifacts);
53
+ # `/apps/chat/projects` does not support the product dimension (a `product` entry
54
+ # in `group_by[]` or `filter[]` there is rejected). Present only when the request
55
+ # grouped by `product`.
54
56
  #
55
57
  # @return [String, nil]
56
58
  optional :product, String, nil?: true
@@ -0,0 +1,142 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaAnalyticsChatCoworkUnifiedChatMetrics < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute connectors_used_count
9
+ # Same measure as `chat_metrics.connectors_used_count`, for activity recorded
10
+ # while members had Chat and Cowork unified turned on.
11
+ #
12
+ # @return [Integer]
13
+ required :connectors_used_count, Integer
14
+
15
+ # @!attribute distinct_artifacts_created_count
16
+ # Same measure as `chat_metrics.distinct_artifacts_created_count`, for activity
17
+ # recorded while members had Chat and Cowork unified turned on. Exact in
18
+ # date-range mode: a creation belongs to exactly one day, so the per-day counts
19
+ # never overlap and their sum over the window is the exact count of distinct
20
+ # creations in it.
21
+ #
22
+ # @return [Integer]
23
+ required :distinct_artifacts_created_count, Integer
24
+
25
+ # @!attribute distinct_connectors_used_count
26
+ # Same measure as `chat_metrics.distinct_connectors_used_count`, for activity
27
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
28
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
29
+ # count cannot be computed.
30
+ #
31
+ # @return [Integer, nil]
32
+ required :distinct_connectors_used_count, Integer, nil?: true
33
+
34
+ # @!attribute distinct_conversation_count
35
+ # Same measure as `chat_metrics.distinct_conversation_count`, for activity
36
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
37
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
38
+ # count cannot be computed.
39
+ #
40
+ # @return [Integer, nil]
41
+ required :distinct_conversation_count, Integer, nil?: true
42
+
43
+ # @!attribute distinct_files_uploaded_count
44
+ # Same measure as `chat_metrics.distinct_files_uploaded_count`, for activity
45
+ # recorded while members had Chat and Cowork unified turned on. It counts uploaded
46
+ # files as well as files Claude created and images returned by Claude's tools,
47
+ # such as screenshots. Approximate (HLL, typical error <2%) in date-range mode.
48
+ # Null on aggregated rows where a distinct count cannot be computed.
49
+ #
50
+ # @return [Integer, nil]
51
+ required :distinct_files_uploaded_count, Integer, nil?: true
52
+
53
+ # @!attribute distinct_projects_created_count
54
+ # Same measure as `chat_metrics.distinct_projects_created_count`, for activity
55
+ # recorded while members had Chat and Cowork unified turned on. Exact in
56
+ # date-range mode: a creation belongs to exactly one day, so the per-day counts
57
+ # never overlap and their sum over the window is the exact count of distinct
58
+ # creations in it.
59
+ #
60
+ # @return [Integer]
61
+ required :distinct_projects_created_count, Integer
62
+
63
+ # @!attribute distinct_projects_used_count
64
+ # Same measure as `chat_metrics.distinct_projects_used_count`, for activity
65
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
66
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
67
+ # count cannot be computed.
68
+ #
69
+ # @return [Integer, nil]
70
+ required :distinct_projects_used_count, Integer, nil?: true
71
+
72
+ # @!attribute distinct_shared_artifacts_viewed_count
73
+ # Always null: shared-artifact views are not currently measured.
74
+ #
75
+ # @return [Integer, nil]
76
+ required :distinct_shared_artifacts_viewed_count, Integer, nil?: true
77
+
78
+ # @!attribute distinct_skills_used_count
79
+ # Same measure as `chat_metrics.distinct_skills_used_count`, for activity recorded
80
+ # while members had Chat and Cowork unified turned on. Approximate (HLL, typical
81
+ # error <2%) in date-range mode. Null on aggregated rows where a distinct count
82
+ # cannot be computed.
83
+ #
84
+ # @return [Integer, nil]
85
+ required :distinct_skills_used_count, Integer, nil?: true
86
+
87
+ # @!attribute message_count
88
+ # Same measure as `chat_metrics.message_count`, for activity recorded while
89
+ # members had Chat and Cowork unified turned on.
90
+ #
91
+ # @return [Integer]
92
+ required :message_count, Integer
93
+
94
+ # @!attribute shared_conversations_viewed_count
95
+ # Same measure as `chat_metrics.shared_conversations_viewed_count`, for activity
96
+ # recorded while members had Chat and Cowork unified turned on.
97
+ #
98
+ # @return [Integer]
99
+ required :shared_conversations_viewed_count, Integer
100
+
101
+ # @!attribute thinking_message_count
102
+ # Same measure as `chat_metrics.thinking_message_count`, for activity recorded
103
+ # while members had Chat and Cowork unified turned on.
104
+ #
105
+ # @return [Integer]
106
+ required :thinking_message_count, Integer
107
+
108
+ # @!method initialize(connectors_used_count:, distinct_artifacts_created_count:, distinct_connectors_used_count:, distinct_conversation_count:, distinct_files_uploaded_count:, distinct_projects_created_count:, distinct_projects_used_count:, distinct_shared_artifacts_viewed_count:, distinct_skills_used_count:, message_count:, shared_conversations_viewed_count:, thinking_message_count:)
109
+ # Chat activity recorded while members had Chat and Cowork unified turned on.
110
+ #
111
+ # Some parameter documentations has been truncated, see
112
+ # {Anthropic::Models::Beta::Organization::BetaAnalyticsChatCoworkUnifiedChatMetrics}
113
+ # for more details.
114
+ #
115
+ # @param connectors_used_count [Integer] Same measure as `chat_metrics.connectors_used_count`, for activity recorded whil
116
+ #
117
+ # @param distinct_artifacts_created_count [Integer] Same measure as `chat_metrics.distinct_artifacts_created_count`, for activity re
118
+ #
119
+ # @param distinct_connectors_used_count [Integer, nil] Same measure as `chat_metrics.distinct_connectors_used_count`, for activity reco
120
+ #
121
+ # @param distinct_conversation_count [Integer, nil] Same measure as `chat_metrics.distinct_conversation_count`, for activity recorde
122
+ #
123
+ # @param distinct_files_uploaded_count [Integer, nil] Same measure as `chat_metrics.distinct_files_uploaded_count`, for activity recor
124
+ #
125
+ # @param distinct_projects_created_count [Integer] Same measure as `chat_metrics.distinct_projects_created_count`, for activity rec
126
+ #
127
+ # @param distinct_projects_used_count [Integer, nil] Same measure as `chat_metrics.distinct_projects_used_count`, for activity record
128
+ #
129
+ # @param distinct_shared_artifacts_viewed_count [Integer, nil] Always null: shared-artifact views are not currently measured.
130
+ #
131
+ # @param distinct_skills_used_count [Integer, nil] Same measure as `chat_metrics.distinct_skills_used_count`, for activity recorded
132
+ #
133
+ # @param message_count [Integer] Same measure as `chat_metrics.message_count`, for activity recorded while member
134
+ #
135
+ # @param shared_conversations_viewed_count [Integer] Same measure as `chat_metrics.shared_conversations_viewed_count`, for activity r
136
+ #
137
+ # @param thinking_message_count [Integer] Same measure as `chat_metrics.thinking_message_count`, for activity recorded whi
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,186 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaAnalyticsChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute action_count
9
+ # Same measure as `cowork_metrics.action_count`, for activity recorded while
10
+ # members had Chat and Cowork unified turned on.
11
+ #
12
+ # @return [Integer]
13
+ required :action_count, Integer
14
+
15
+ # @!attribute artifacts_created_count
16
+ # Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
17
+ # while members had Chat and Cowork unified turned on. Exact in date-range mode: a
18
+ # creation belongs to exactly one day, so the per-day counts never overlap and
19
+ # their sum over the window is the exact count of distinct creations in it.
20
+ #
21
+ # @return [Integer]
22
+ required :artifacts_created_count, Integer
23
+
24
+ # @!attribute connectors_used_count
25
+ # Same measure as `cowork_metrics.connectors_used_count`, for activity recorded
26
+ # while members had Chat and Cowork unified turned on.
27
+ #
28
+ # @return [Integer]
29
+ required :connectors_used_count, Integer
30
+
31
+ # @!attribute dispatch_turn_count
32
+ # Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded
33
+ # while members had Chat and Cowork unified turned on.
34
+ #
35
+ # @return [Integer]
36
+ required :dispatch_turn_count, Integer
37
+
38
+ # @!attribute distinct_connectors_used_count
39
+ # Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity
40
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
41
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
42
+ # count cannot be computed.
43
+ #
44
+ # @return [Integer, nil]
45
+ required :distinct_connectors_used_count, Integer, nil?: true
46
+
47
+ # @!attribute distinct_plugins_used_count
48
+ # Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity
49
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
50
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
51
+ # count cannot be computed.
52
+ #
53
+ # @return [Integer, nil]
54
+ required :distinct_plugins_used_count, Integer, nil?: true
55
+
56
+ # @!attribute distinct_session_count
57
+ # Same measure as `cowork_metrics.distinct_session_count`, for activity recorded
58
+ # while members had Chat and Cowork unified turned on. Approximate (HLL, typical
59
+ # error <2%) in date-range mode. Null on aggregated rows where a distinct count
60
+ # cannot be computed.
61
+ #
62
+ # @return [Integer, nil]
63
+ required :distinct_session_count, Integer, nil?: true
64
+
65
+ # @!attribute distinct_skills_used_count
66
+ # Same measure as `cowork_metrics.distinct_skills_used_count`, for activity
67
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
68
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
69
+ # count cannot be computed.
70
+ #
71
+ # @return [Integer, nil]
72
+ required :distinct_skills_used_count, Integer, nil?: true
73
+
74
+ # @!attribute edit_tool_count
75
+ # Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while
76
+ # members had Chat and Cowork unified turned on.
77
+ #
78
+ # @return [Integer, nil]
79
+ required :edit_tool_count, Integer, nil?: true
80
+
81
+ # @!attribute file_edit_count
82
+ # Same measure as `cowork_metrics.file_edit_count`, for activity recorded while
83
+ # members had Chat and Cowork unified turned on.
84
+ #
85
+ # @return [Integer, nil]
86
+ required :file_edit_count, Integer, nil?: true
87
+
88
+ # @!attribute message_count
89
+ # Same measure as `cowork_metrics.message_count`, for activity recorded while
90
+ # members had Chat and Cowork unified turned on.
91
+ #
92
+ # @return [Integer]
93
+ required :message_count, Integer
94
+
95
+ # @!attribute multi_edit_tool_count
96
+ # Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded
97
+ # while members had Chat and Cowork unified turned on. Claude no longer has a
98
+ # multi-edit tool, so expect 0 when not null; each edit is now a separate Edit
99
+ # tool call, counted in `edit_tool_count` and `file_edit_count`.
100
+ #
101
+ # @return [Integer, nil]
102
+ required :multi_edit_tool_count, Integer, nil?: true
103
+
104
+ # @!attribute notebook_edit_tool_count
105
+ # Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
106
+ # while members had Chat and Cowork unified turned on.
107
+ #
108
+ # @return [Integer, nil]
109
+ required :notebook_edit_tool_count, Integer, nil?: true
110
+
111
+ # @!attribute plugins_used_count
112
+ # Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
113
+ # members had Chat and Cowork unified turned on.
114
+ #
115
+ # @return [Integer, nil]
116
+ required :plugins_used_count, Integer, nil?: true
117
+
118
+ # @!attribute sessions_with_file_edits_count
119
+ # Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity
120
+ # recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
121
+ # typical error <2%) in date-range mode. Null on aggregated rows where a distinct
122
+ # count cannot be computed.
123
+ #
124
+ # @return [Integer, nil]
125
+ required :sessions_with_file_edits_count, Integer, nil?: true
126
+
127
+ # @!attribute skills_used_count
128
+ # Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
129
+ # members had Chat and Cowork unified turned on.
130
+ #
131
+ # @return [Integer]
132
+ required :skills_used_count, Integer
133
+
134
+ # @!attribute write_tool_count
135
+ # Same measure as `cowork_metrics.write_tool_count`, for activity recorded while
136
+ # members had Chat and Cowork unified turned on.
137
+ #
138
+ # @return [Integer, nil]
139
+ required :write_tool_count, Integer, nil?: true
140
+
141
+ # @!method initialize(action_count:, artifacts_created_count:, connectors_used_count:, dispatch_turn_count:, distinct_connectors_used_count:, distinct_plugins_used_count:, distinct_session_count:, distinct_skills_used_count:, edit_tool_count:, file_edit_count:, message_count:, multi_edit_tool_count:, notebook_edit_tool_count:, plugins_used_count:, sessions_with_file_edits_count:, skills_used_count:, write_tool_count:)
142
+ # Cowork session activity recorded while members had Chat and Cowork unified
143
+ # turned on.
144
+ #
145
+ # Some parameter documentations has been truncated, see
146
+ # {Anthropic::Models::Beta::Organization::BetaAnalyticsChatCoworkUnifiedSessionsMetrics}
147
+ # for more details.
148
+ #
149
+ # @param action_count [Integer] Same measure as `cowork_metrics.action_count`, for activity recorded while membe
150
+ #
151
+ # @param artifacts_created_count [Integer] Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
152
+ #
153
+ # @param connectors_used_count [Integer] Same measure as `cowork_metrics.connectors_used_count`, for activity recorded wh
154
+ #
155
+ # @param dispatch_turn_count [Integer] Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded whil
156
+ #
157
+ # @param distinct_connectors_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity re
158
+ #
159
+ # @param distinct_plugins_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity recor
160
+ #
161
+ # @param distinct_session_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_count`, for activity recorded w
162
+ #
163
+ # @param distinct_skills_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_skills_used_count`, for activity record
164
+ #
165
+ # @param edit_tool_count [Integer, nil] Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while me
166
+ #
167
+ # @param file_edit_count [Integer, nil] Same measure as `cowork_metrics.file_edit_count`, for activity recorded while me
168
+ #
169
+ # @param message_count [Integer] Same measure as `cowork_metrics.message_count`, for activity recorded while memb
170
+ #
171
+ # @param multi_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded wh
172
+ #
173
+ # @param notebook_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
174
+ #
175
+ # @param plugins_used_count [Integer, nil] Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
176
+ #
177
+ # @param sessions_with_file_edits_count [Integer, nil] Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity re
178
+ #
179
+ # @param skills_used_count [Integer] Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
180
+ #
181
+ # @param write_tool_count [Integer, nil] Same measure as `cowork_metrics.write_tool_count`, for activity recorded while m
182
+ end
183
+ end
184
+ end
185
+ end
186
+ end
@@ -46,6 +46,20 @@ module Anthropic
46
46
  # @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics]
47
47
  required :office_metrics, -> { Anthropic::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics }
48
48
 
49
+ # @!attribute chat_cowork_unified_metrics
50
+ # Connector use recorded while members had Chat and Cowork unified (Cowork's
51
+ # features inside claude.ai chat) turned on, split into chat conversations and
52
+ # Cowork sessions. A count is null in date-range mode where it cannot be computed.
53
+ # Omitted from the response on deployments that do not offer Chat and Cowork
54
+ # unified.
55
+ #
56
+ # @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics, nil]
57
+ optional :chat_cowork_unified_metrics,
58
+ -> {
59
+ Anthropic::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics
60
+ },
61
+ nil?: true
62
+
49
63
  # @!attribute connector_display_name
50
64
  # Human-readable display name for rows whose `connector_name` is an opaque
51
65
  # connector id rather than a readable name, resolved at request time from the
@@ -99,13 +113,15 @@ module Anthropic
99
113
 
100
114
  # @!attribute product
101
115
  # Product that produced this row's activity: one of `chat`, `claude_code`,
102
- # `cowork`, or `office_agent` (the canonical Cost & Usage product naming; an
103
- # `office_agent` row's per-surface breakdown is in its `office_metrics`). On
104
- # `/plugins` only `cowork` and `claude_code` occur (the only surfaces with plugin
105
- # attribution); on `/artifacts` only `chat`, `claude_code`, and `cowork` occur
106
- # (the surfaces that create artifacts); `/apps/chat/projects` does not support the
107
- # product dimension (a `product` entry in `group_by[]` or `filter[]` there is
108
- # rejected). Present only when the request grouped by `product`.
116
+ # `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified).
117
+ # These are the canonical Cost & Usage product names; an `office_agent` row's
118
+ # per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`,
119
+ # `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin
120
+ # attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and
121
+ # `chat_cowork_unified` occur (the surfaces that create artifacts);
122
+ # `/apps/chat/projects` does not support the product dimension (a `product` entry
123
+ # in `group_by[]` or `filter[]` there is rejected). Present only when the request
124
+ # grouped by `product`.
109
125
  #
110
126
  # @return [String, nil]
111
127
  optional :product, String, nil?: true
@@ -171,7 +187,7 @@ module Anthropic
171
187
  # @return [Integer, nil]
172
188
  optional :write_call_count, Integer, nil?: true
173
189
 
174
- # @!method initialize(chat_metrics:, claude_code_metrics:, connector_name:, cowork_metrics:, distinct_user_count:, office_metrics:, connector_display_name: nil, individual_auth_distinct_user_count: nil, managed_auth_distinct_user_count: nil, product: nil, rbac_group_id: nil, rbac_group_name: nil, read_call_count: nil, unclassified_call_count: nil, user_id: nil, write_call_count: nil)
190
+ # @!method initialize(chat_metrics:, claude_code_metrics:, connector_name:, cowork_metrics:, distinct_user_count:, office_metrics:, chat_cowork_unified_metrics: nil, connector_display_name: nil, individual_auth_distinct_user_count: nil, managed_auth_distinct_user_count: nil, product: nil, rbac_group_id: nil, rbac_group_name: nil, read_call_count: nil, unclassified_call_count: nil, user_id: nil, write_call_count: nil)
175
191
  # Per-connector activity data for a given day.
176
192
  #
177
193
  # Some parameter documentations has been truncated, see
@@ -190,6 +206,8 @@ module Anthropic
190
206
  #
191
207
  # @param office_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics] Office Agent activity metrics for a single connector on a given day, broken out
192
208
  #
209
+ # @param chat_cowork_unified_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics, nil] Connector use recorded while members had Chat and Cowork unified (Cowork's featu
210
+ #
193
211
  # @param connector_display_name [String, nil] Human-readable display name for rows whose `connector_name` is an opaque connect
194
212
  #
195
213
  # @param individual_auth_distinct_user_count [Integer, nil] Number of distinct users whose use of this connector on the requested day ran on
@@ -209,6 +227,39 @@ module Anthropic
209
227
  # @param user_id [String, nil] Tagged user identifier (e.g. `user_...`). Present only when the request grouped
210
228
  #
211
229
  # @param write_call_count [Integer, nil] Number of connector tool calls on the requested day whose trusted read-only anno
230
+
231
+ # @see Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity#chat_cowork_unified_metrics
232
+ class ChatCoworkUnifiedMetrics < Anthropic::Internal::Type::BaseModel
233
+ # @!attribute chat
234
+ # A connector's use in chat conversations recorded while members had Chat and
235
+ # Cowork unified turned on.
236
+ #
237
+ # @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics]
238
+ required :chat, -> { Anthropic::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics }
239
+
240
+ # @!attribute sessions
241
+ # A connector's use in Cowork sessions recorded while members had Chat and Cowork
242
+ # unified turned on.
243
+ #
244
+ # @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics]
245
+ required :sessions,
246
+ -> { Anthropic::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics }
247
+
248
+ # @!method initialize(chat:, sessions:)
249
+ # Connector use recorded while members had Chat and Cowork unified (Cowork's
250
+ # features inside claude.ai chat) turned on, split into chat conversations and
251
+ # Cowork sessions. A count is null in date-range mode where it cannot be computed.
252
+ # Omitted from the response on deployments that do not offer Chat and Cowork
253
+ # unified.
254
+ #
255
+ # Some parameter documentations has been truncated, see
256
+ # {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics}
257
+ # for more details.
258
+ #
259
+ # @param chat [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics] A connector's use in chat conversations recorded while members had
260
+ #
261
+ # @param sessions [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics] A connector's use in Cowork sessions recorded while members had
262
+ end
212
263
  end
213
264
  end
214
265
  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 BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute distinct_conversation_connector_used_count
9
+ # Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for
10
+ # activity recorded while members had Chat and Cowork unified turned on.
11
+ # Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
12
+ # where a distinct count cannot be computed.
13
+ #
14
+ # @return [Integer, nil]
15
+ required :distinct_conversation_connector_used_count, Integer, nil?: true
16
+
17
+ # @!method initialize(distinct_conversation_connector_used_count:)
18
+ # A connector's use in chat conversations recorded while members had Chat and
19
+ # Cowork unified turned on.
20
+ #
21
+ # Some parameter documentations has been truncated, see
22
+ # {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics}
23
+ # for more details.
24
+ #
25
+ # @param distinct_conversation_connector_used_count [Integer, nil] Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for a
26
+ end
27
+ end
28
+ end
29
+ end
30
+ 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 BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute distinct_session_connector_used_count
9
+ # Same measure as `cowork_metrics.distinct_session_connector_used_count`, for
10
+ # activity recorded while members had Chat and Cowork unified turned on.
11
+ # Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
12
+ # where a distinct count cannot be computed.
13
+ #
14
+ # @return [Integer, nil]
15
+ required :distinct_session_connector_used_count, Integer, nil?: true
16
+
17
+ # @!method initialize(distinct_session_connector_used_count:)
18
+ # A connector's use in Cowork sessions recorded while members had Chat and Cowork
19
+ # unified turned on.
20
+ #
21
+ # Some parameter documentations has been truncated, see
22
+ # {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics}
23
+ # for more details.
24
+ #
25
+ # @param distinct_session_connector_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_connector_used_count`, for acti
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -90,9 +90,13 @@ module Anthropic
90
90
  # Product surface that produced the usage or cost. Null unless product is in
91
91
  # `group_by[]`; it can also be null on grouped rows whose usage cannot be
92
92
  # attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
93
- # `office_agent`, `claude_in_chrome`, `claude_design`, and `claude-tag`.
94
- # `claude-tag` is Claude Tag, the Claude product in Slack. Some unattributed usage
95
- # is reported as "other".
93
+ # `office_agent`, `claude_in_chrome`, `claude_design`, `claude-tag`, and
94
+ # `chat_cowork_unified`. `claude-tag` is Claude Tag, the Claude product in Slack.
95
+ # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
96
+ # claude.ai chat: chat and Cowork usage by a member who has it turned on is
97
+ # reported under this value instead of `chat` or `cowork`. It is accepted as a
98
+ # filter only on deployments that offer Chat and Cowork unified. Some unattributed
99
+ # usage is reported as "other".
96
100
  #
97
101
  # @return [String, nil]
98
102
  required :product, String, nil?: true
@@ -102,9 +102,13 @@ module Anthropic
102
102
  # Product surface that produced the usage or cost. Null unless product is in
103
103
  # `group_by[]`; it can also be null on grouped rows whose usage cannot be
104
104
  # attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
105
- # `office_agent`, `claude_in_chrome`, `claude_design`, and `claude-tag`.
106
- # `claude-tag` is Claude Tag, the Claude product in Slack. Some unattributed usage
107
- # is reported as "other".
105
+ # `office_agent`, `claude_in_chrome`, `claude_design`, `claude-tag`, and
106
+ # `chat_cowork_unified`. `claude-tag` is Claude Tag, the Claude product in Slack.
107
+ # `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
108
+ # claude.ai chat: chat and Cowork usage by a member who has it turned on is
109
+ # reported under this value instead of `chat` or `cowork`. It is accepted as a
110
+ # filter only on deployments that offer Chat and Cowork unified. Some unattributed
111
+ # usage is reported as "other".
108
112
  #
109
113
  # @return [String, nil]
110
114
  required :product, String, nil?: true