@keystrokehq/parallel 0.1.0 → 0.1.3

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 (265) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-enrichment-to-find-all-run.cjs +14 -14
  4. package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
  5. package/dist/actions/add-enrichment-to-find-all-run.d.cts +51 -3
  6. package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -1
  7. package/dist/actions/add-enrichment-to-find-all-run.d.mts +51 -3
  8. package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -1
  9. package/dist/actions/add-enrichment-to-find-all-run.mjs +14 -14
  10. package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
  11. package/dist/actions/add-runs-to-task-group.cjs +6 -6
  12. package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
  13. package/dist/actions/add-runs-to-task-group.d.cts +55 -3
  14. package/dist/actions/add-runs-to-task-group.d.cts.map +1 -1
  15. package/dist/actions/add-runs-to-task-group.d.mts +55 -3
  16. package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
  17. package/dist/actions/add-runs-to-task-group.mjs +6 -6
  18. package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
  19. package/dist/actions/cancel-find-all-run.cjs +1 -1
  20. package/dist/actions/cancel-find-all-run.cjs.map +1 -1
  21. package/dist/actions/cancel-find-all-run.d.cts +7 -3
  22. package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
  23. package/dist/actions/cancel-find-all-run.d.mts +7 -3
  24. package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
  25. package/dist/actions/cancel-find-all-run.mjs +1 -1
  26. package/dist/actions/cancel-find-all-run.mjs.map +1 -1
  27. package/dist/actions/create-chat-completions.cjs +17 -17
  28. package/dist/actions/create-chat-completions.cjs.map +1 -1
  29. package/dist/actions/create-chat-completions.d.cts +87 -3
  30. package/dist/actions/create-chat-completions.d.cts.map +1 -1
  31. package/dist/actions/create-chat-completions.d.mts +87 -3
  32. package/dist/actions/create-chat-completions.d.mts.map +1 -1
  33. package/dist/actions/create-chat-completions.mjs +17 -17
  34. package/dist/actions/create-chat-completions.mjs.map +1 -1
  35. package/dist/actions/create-monitor.cjs +7 -7
  36. package/dist/actions/create-monitor.cjs.map +1 -1
  37. package/dist/actions/create-monitor.d.cts +56 -3
  38. package/dist/actions/create-monitor.d.cts.map +1 -1
  39. package/dist/actions/create-monitor.d.mts +56 -3
  40. package/dist/actions/create-monitor.d.mts.map +1 -1
  41. package/dist/actions/create-monitor.mjs +7 -7
  42. package/dist/actions/create-monitor.mjs.map +1 -1
  43. package/dist/actions/create-task-group.cjs +8 -8
  44. package/dist/actions/create-task-group.cjs.map +1 -1
  45. package/dist/actions/create-task-group.d.cts +18 -3
  46. package/dist/actions/create-task-group.d.cts.map +1 -1
  47. package/dist/actions/create-task-group.d.mts +18 -3
  48. package/dist/actions/create-task-group.d.mts.map +1 -1
  49. package/dist/actions/create-task-group.mjs +8 -8
  50. package/dist/actions/create-task-group.mjs.map +1 -1
  51. package/dist/actions/create-task-run.cjs +9 -9
  52. package/dist/actions/create-task-run.cjs.map +1 -1
  53. package/dist/actions/create-task-run.d.cts +62 -3
  54. package/dist/actions/create-task-run.d.cts.map +1 -1
  55. package/dist/actions/create-task-run.d.mts +62 -3
  56. package/dist/actions/create-task-run.d.mts.map +1 -1
  57. package/dist/actions/create-task-run.mjs +9 -9
  58. package/dist/actions/create-task-run.mjs.map +1 -1
  59. package/dist/actions/delete-monitor.cjs +4 -4
  60. package/dist/actions/delete-monitor.cjs.map +1 -1
  61. package/dist/actions/delete-monitor.d.cts +31 -3
  62. package/dist/actions/delete-monitor.d.cts.map +1 -1
  63. package/dist/actions/delete-monitor.d.mts +31 -3
  64. package/dist/actions/delete-monitor.d.mts.map +1 -1
  65. package/dist/actions/delete-monitor.mjs +4 -4
  66. package/dist/actions/delete-monitor.mjs.map +1 -1
  67. package/dist/actions/extend-find-all-run.cjs +6 -6
  68. package/dist/actions/extend-find-all-run.cjs.map +1 -1
  69. package/dist/actions/extend-find-all-run.d.cts +24 -3
  70. package/dist/actions/extend-find-all-run.d.cts.map +1 -1
  71. package/dist/actions/extend-find-all-run.d.mts +24 -3
  72. package/dist/actions/extend-find-all-run.d.mts.map +1 -1
  73. package/dist/actions/extend-find-all-run.mjs +6 -6
  74. package/dist/actions/extend-find-all-run.mjs.map +1 -1
  75. package/dist/actions/extract.cjs +14 -14
  76. package/dist/actions/extract.cjs.map +1 -1
  77. package/dist/actions/extract.d.cts +65 -3
  78. package/dist/actions/extract.d.cts.map +1 -1
  79. package/dist/actions/extract.d.mts +65 -3
  80. package/dist/actions/extract.d.mts.map +1 -1
  81. package/dist/actions/extract.mjs +14 -14
  82. package/dist/actions/extract.mjs.map +1 -1
  83. package/dist/actions/fetch-task-group-runs.cjs +29 -29
  84. package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
  85. package/dist/actions/fetch-task-group-runs.d.cts +91 -3
  86. package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
  87. package/dist/actions/fetch-task-group-runs.d.mts +91 -3
  88. package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
  89. package/dist/actions/fetch-task-group-runs.mjs +29 -29
  90. package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
  91. package/dist/actions/find-all.cjs +11 -11
  92. package/dist/actions/find-all.cjs.map +1 -1
  93. package/dist/actions/find-all.d.cts +72 -3
  94. package/dist/actions/find-all.d.cts.map +1 -1
  95. package/dist/actions/find-all.d.mts +72 -3
  96. package/dist/actions/find-all.d.mts.map +1 -1
  97. package/dist/actions/find-all.mjs +11 -11
  98. package/dist/actions/find-all.mjs.map +1 -1
  99. package/dist/actions/get-find-all-run-result.cjs +17 -17
  100. package/dist/actions/get-find-all-run-result.cjs.map +1 -1
  101. package/dist/actions/get-find-all-run-result.d.cts +68 -3
  102. package/dist/actions/get-find-all-run-result.d.cts.map +1 -1
  103. package/dist/actions/get-find-all-run-result.d.mts +68 -3
  104. package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
  105. package/dist/actions/get-find-all-run-result.mjs +17 -17
  106. package/dist/actions/get-find-all-run-result.mjs.map +1 -1
  107. package/dist/actions/get-find-all-run-schema.cjs +6 -6
  108. package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
  109. package/dist/actions/get-find-all-run-schema.d.cts +22 -3
  110. package/dist/actions/get-find-all-run-schema.d.cts.map +1 -1
  111. package/dist/actions/get-find-all-run-schema.d.mts +22 -3
  112. package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
  113. package/dist/actions/get-find-all-run-schema.mjs +6 -6
  114. package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
  115. package/dist/actions/ingest-find-all-run.cjs +6 -6
  116. package/dist/actions/ingest-find-all-run.cjs.map +1 -1
  117. package/dist/actions/ingest-find-all-run.d.cts +22 -3
  118. package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
  119. package/dist/actions/ingest-find-all-run.d.mts +22 -3
  120. package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
  121. package/dist/actions/ingest-find-all-run.mjs +6 -6
  122. package/dist/actions/ingest-find-all-run.mjs.map +1 -1
  123. package/dist/actions/list-monitor-events.cjs +11 -11
  124. package/dist/actions/list-monitor-events.cjs.map +1 -1
  125. package/dist/actions/list-monitor-events.d.cts +26 -3
  126. package/dist/actions/list-monitor-events.d.cts.map +1 -1
  127. package/dist/actions/list-monitor-events.d.mts +26 -3
  128. package/dist/actions/list-monitor-events.d.mts.map +1 -1
  129. package/dist/actions/list-monitor-events.mjs +11 -11
  130. package/dist/actions/list-monitor-events.mjs.map +1 -1
  131. package/dist/actions/list-monitors.cjs +8 -8
  132. package/dist/actions/list-monitors.cjs.map +1 -1
  133. package/dist/actions/list-monitors.d.cts +35 -3
  134. package/dist/actions/list-monitors.d.cts.map +1 -1
  135. package/dist/actions/list-monitors.d.mts +35 -3
  136. package/dist/actions/list-monitors.d.mts.map +1 -1
  137. package/dist/actions/list-monitors.mjs +8 -8
  138. package/dist/actions/list-monitors.mjs.map +1 -1
  139. package/dist/actions/retrieve-event-group.cjs +10 -10
  140. package/dist/actions/retrieve-event-group.cjs.map +1 -1
  141. package/dist/actions/retrieve-event-group.d.cts +26 -3
  142. package/dist/actions/retrieve-event-group.d.cts.map +1 -1
  143. package/dist/actions/retrieve-event-group.d.mts +26 -3
  144. package/dist/actions/retrieve-event-group.d.mts.map +1 -1
  145. package/dist/actions/retrieve-event-group.mjs +10 -10
  146. package/dist/actions/retrieve-event-group.mjs.map +1 -1
  147. package/dist/actions/retrieve-find-all-run-status.cjs +7 -7
  148. package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
  149. package/dist/actions/retrieve-find-all-run-status.d.cts +34 -3
  150. package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -1
  151. package/dist/actions/retrieve-find-all-run-status.d.mts +34 -3
  152. package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
  153. package/dist/actions/retrieve-find-all-run-status.mjs +7 -7
  154. package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
  155. package/dist/actions/retrieve-monitor.cjs +6 -6
  156. package/dist/actions/retrieve-monitor.cjs.map +1 -1
  157. package/dist/actions/retrieve-monitor.d.cts +31 -3
  158. package/dist/actions/retrieve-monitor.d.cts.map +1 -1
  159. package/dist/actions/retrieve-monitor.d.mts +31 -3
  160. package/dist/actions/retrieve-monitor.d.mts.map +1 -1
  161. package/dist/actions/retrieve-monitor.mjs +6 -6
  162. package/dist/actions/retrieve-monitor.mjs.map +1 -1
  163. package/dist/actions/retrieve-task-group-run.cjs +9 -9
  164. package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
  165. package/dist/actions/retrieve-task-group-run.d.cts +33 -3
  166. package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
  167. package/dist/actions/retrieve-task-group-run.d.mts +33 -3
  168. package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
  169. package/dist/actions/retrieve-task-group-run.mjs +9 -9
  170. package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
  171. package/dist/actions/retrieve-task-group.cjs +6 -6
  172. package/dist/actions/retrieve-task-group.cjs.map +1 -1
  173. package/dist/actions/retrieve-task-group.d.cts +18 -3
  174. package/dist/actions/retrieve-task-group.d.cts.map +1 -1
  175. package/dist/actions/retrieve-task-group.d.mts +18 -3
  176. package/dist/actions/retrieve-task-group.d.mts.map +1 -1
  177. package/dist/actions/retrieve-task-group.mjs +6 -6
  178. package/dist/actions/retrieve-task-group.mjs.map +1 -1
  179. package/dist/actions/retrieve-task-run-input.cjs +5 -5
  180. package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
  181. package/dist/actions/retrieve-task-run-input.d.cts +21 -3
  182. package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
  183. package/dist/actions/retrieve-task-run-input.d.mts +21 -3
  184. package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
  185. package/dist/actions/retrieve-task-run-input.mjs +5 -5
  186. package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
  187. package/dist/actions/retrieve-task-run-result.cjs +9 -9
  188. package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
  189. package/dist/actions/retrieve-task-run-result.d.cts +29 -3
  190. package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
  191. package/dist/actions/retrieve-task-run-result.d.mts +29 -3
  192. package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
  193. package/dist/actions/retrieve-task-run-result.mjs +9 -9
  194. package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
  195. package/dist/actions/retrieve-task-run.cjs +11 -11
  196. package/dist/actions/retrieve-task-run.cjs.map +1 -1
  197. package/dist/actions/retrieve-task-run.d.cts +35 -3
  198. package/dist/actions/retrieve-task-run.d.cts.map +1 -1
  199. package/dist/actions/retrieve-task-run.d.mts +35 -3
  200. package/dist/actions/retrieve-task-run.d.mts.map +1 -1
  201. package/dist/actions/retrieve-task-run.mjs +11 -11
  202. package/dist/actions/retrieve-task-run.mjs.map +1 -1
  203. package/dist/actions/search.cjs +5 -5
  204. package/dist/actions/search.cjs.map +1 -1
  205. package/dist/actions/search.d.cts +15 -3
  206. package/dist/actions/search.d.cts.map +1 -1
  207. package/dist/actions/search.d.mts +15 -3
  208. package/dist/actions/search.d.mts.map +1 -1
  209. package/dist/actions/search.mjs +5 -5
  210. package/dist/actions/search.mjs.map +1 -1
  211. package/dist/actions/simulate-event.cjs +1 -1
  212. package/dist/actions/simulate-event.cjs.map +1 -1
  213. package/dist/actions/simulate-event.d.cts +15 -3
  214. package/dist/actions/simulate-event.d.cts.map +1 -1
  215. package/dist/actions/simulate-event.d.mts +15 -3
  216. package/dist/actions/simulate-event.d.mts.map +1 -1
  217. package/dist/actions/simulate-event.mjs +1 -1
  218. package/dist/actions/simulate-event.mjs.map +1 -1
  219. package/dist/actions/stream-find-all-events.cjs +42 -42
  220. package/dist/actions/stream-find-all-events.cjs.map +1 -1
  221. package/dist/actions/stream-find-all-events.d.cts +104 -3
  222. package/dist/actions/stream-find-all-events.d.cts.map +1 -1
  223. package/dist/actions/stream-find-all-events.d.mts +104 -3
  224. package/dist/actions/stream-find-all-events.d.mts.map +1 -1
  225. package/dist/actions/stream-find-all-events.mjs +42 -42
  226. package/dist/actions/stream-find-all-events.mjs.map +1 -1
  227. package/dist/actions/stream-task-group-events.cjs +25 -25
  228. package/dist/actions/stream-task-group-events.cjs.map +1 -1
  229. package/dist/actions/stream-task-group-events.d.cts +44 -3
  230. package/dist/actions/stream-task-group-events.d.cts.map +1 -1
  231. package/dist/actions/stream-task-group-events.d.mts +44 -3
  232. package/dist/actions/stream-task-group-events.d.mts.map +1 -1
  233. package/dist/actions/stream-task-group-events.mjs +25 -25
  234. package/dist/actions/stream-task-group-events.mjs.map +1 -1
  235. package/dist/actions/stream-task-run-events.cjs +21 -21
  236. package/dist/actions/stream-task-run-events.cjs.map +1 -1
  237. package/dist/actions/stream-task-run-events.d.cts +45 -3
  238. package/dist/actions/stream-task-run-events.d.cts.map +1 -1
  239. package/dist/actions/stream-task-run-events.d.mts +45 -3
  240. package/dist/actions/stream-task-run-events.d.mts.map +1 -1
  241. package/dist/actions/stream-task-run-events.mjs +21 -21
  242. package/dist/actions/stream-task-run-events.mjs.map +1 -1
  243. package/dist/actions/suggest-task.cjs +2 -2
  244. package/dist/actions/suggest-task.cjs.map +1 -1
  245. package/dist/actions/suggest-task.d.cts +12 -3
  246. package/dist/actions/suggest-task.d.cts.map +1 -1
  247. package/dist/actions/suggest-task.d.mts +12 -3
  248. package/dist/actions/suggest-task.d.mts.map +1 -1
  249. package/dist/actions/suggest-task.mjs +2 -2
  250. package/dist/actions/suggest-task.mjs.map +1 -1
  251. package/dist/actions/update-monitor.cjs +7 -7
  252. package/dist/actions/update-monitor.cjs.map +1 -1
  253. package/dist/actions/update-monitor.d.cts +50 -3
  254. package/dist/actions/update-monitor.d.cts.map +1 -1
  255. package/dist/actions/update-monitor.d.mts +50 -3
  256. package/dist/actions/update-monitor.d.mts.map +1 -1
  257. package/dist/actions/update-monitor.mjs +7 -7
  258. package/dist/actions/update-monitor.mjs.map +1 -1
  259. package/dist/catalog.cjs +7 -1
  260. package/dist/catalog.cjs.map +1 -1
  261. package/dist/catalog.d.cts +8 -0
  262. package/dist/catalog.d.mts +8 -0
  263. package/dist/catalog.mjs +7 -1
  264. package/dist/catalog.mjs.map +1 -1
  265. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-group-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput: z.ZodTypeAny = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema: z.ZodTypeAny = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\"),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\"),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\"),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Breakdown of task runs by status\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\"),\n status: z.string().describe(\"Current status of the task run\"),\n is_active: z.boolean().describe(\"Indicates if the task run is active\"),\n processor: z.string().describe(\"Processor used for the task run\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\"),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema: z.ZodTypeAny = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\"),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Human-readable error message\"),\n});\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nexport const ParallelStreamTaskGroupEventsOutput: z.ZodTypeAny = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACjF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,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,OAAO;CAC7E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC7D,CAAC;AACD,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,gDAAgD,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACjE,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;CAAC;CAA0D;CAAkD;AAA8C,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,EACtP,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"stream-task-group-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,wBAAwBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IA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reamTaskGroupEventsInput: z.ZodTypeAny;
5
- declare const ParallelStreamTaskGroupEventsOutput: z.ZodTypeAny;
6
- declare const parallelStreamTaskGroupEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelStreamTaskGroupEventsInput: z.ZodObject<{
5
+ timeout: z.ZodOptional<z.ZodNumber>;
6
+ taskgroup_id: z.ZodString;
7
+ last_event_id: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const ParallelStreamTaskGroupEventsOutput: z.ZodObject<{
10
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodObject<{
13
+ is_active: z.ZodNullable<z.ZodBoolean>;
14
+ modified_at: z.ZodNullable<z.ZodString>;
15
+ num_task_runs: z.ZodNullable<z.ZodNumber>;
16
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ task_run_status_counts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
+ }, z.core.$loose>>;
19
+ event_id: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>, z.ZodObject<{
21
+ run: z.ZodNullable<z.ZodObject<{
22
+ run_id: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodNullable<z.ZodString>;
24
+ is_active: z.ZodNullable<z.ZodBoolean>;
25
+ processor: z.ZodNullable<z.ZodString>;
26
+ created_at: z.ZodNullable<z.ZodString>;
27
+ modified_at: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$loose>>;
29
+ type: z.ZodNullable<z.ZodString>;
30
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
+ event_id: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$loose>, z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ error: z.ZodNullable<z.ZodObject<{
36
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
37
+ ref_id: z.ZodNullable<z.ZodString>;
38
+ message: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>>;
40
+ event_id: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>]>>;
42
+ }, z.core.$loose>;
43
+ declare const parallelStreamTaskGroupEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
44
+ taskgroup_id: string;
45
+ timeout?: number | undefined;
46
+ last_event_id?: string | undefined;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { parallelStreamTaskGroupEvents };
9
50
  //# sourceMappingURL=stream-task-group-events.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-group-events.d.cts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIU;AAAA,cAsChD,mCAAA,EAAqC,CAAA,CAAE,UAEwB;AAAA,cAE/D,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"stream-task-group-events.d.cts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0ClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/stream-task-group-events.d.ts
4
- declare const ParallelStreamTaskGroupEventsInput: z.ZodTypeAny;
5
- declare const ParallelStreamTaskGroupEventsOutput: z.ZodTypeAny;
6
- declare const parallelStreamTaskGroupEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelStreamTaskGroupEventsInput: z.ZodObject<{
5
+ timeout: z.ZodOptional<z.ZodNumber>;
6
+ taskgroup_id: z.ZodString;
7
+ last_event_id: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const ParallelStreamTaskGroupEventsOutput: z.ZodObject<{
10
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodObject<{
13
+ is_active: z.ZodNullable<z.ZodBoolean>;
14
+ modified_at: z.ZodNullable<z.ZodString>;
15
+ num_task_runs: z.ZodNullable<z.ZodNumber>;
16
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ task_run_status_counts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
+ }, z.core.$loose>>;
19
+ event_id: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>, z.ZodObject<{
21
+ run: z.ZodNullable<z.ZodObject<{
22
+ run_id: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodNullable<z.ZodString>;
24
+ is_active: z.ZodNullable<z.ZodBoolean>;
25
+ processor: z.ZodNullable<z.ZodString>;
26
+ created_at: z.ZodNullable<z.ZodString>;
27
+ modified_at: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$loose>>;
29
+ type: z.ZodNullable<z.ZodString>;
30
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
+ event_id: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$loose>, z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ error: z.ZodNullable<z.ZodObject<{
36
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
37
+ ref_id: z.ZodNullable<z.ZodString>;
38
+ message: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>>;
40
+ event_id: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>]>>;
42
+ }, z.core.$loose>;
43
+ declare const parallelStreamTaskGroupEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
44
+ taskgroup_id: string;
45
+ timeout?: number | undefined;
46
+ last_event_id?: string | undefined;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { parallelStreamTaskGroupEvents };
9
50
  //# sourceMappingURL=stream-task-group-events.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-group-events.d.mts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIU;AAAA,cAsChD,mCAAA,EAAqC,CAAA,CAAE,UAEwB;AAAA,cAE/D,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"stream-task-group-events.d.mts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0ClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -7,42 +7,42 @@ const ParallelStreamTaskGroupEventsInput = z.object({
7
7
  last_event_id: z.string().describe("ID of the last received event to resume streaming from.").optional()
8
8
  }).describe("Request model for streaming Task Group events.");
9
9
  const ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({
10
- is_active: z.boolean().describe("Indicates if the Task Group is still active"),
11
- modified_at: z.string().describe("ISO8601 timestamp of last modification"),
12
- num_task_runs: z.number().int().describe("Total number of task runs in the group"),
10
+ is_active: z.boolean().describe("Indicates if the Task Group is still active").nullable(),
11
+ modified_at: z.string().describe("ISO8601 timestamp of last modification").nullable(),
12
+ num_task_runs: z.number().int().describe("Total number of task runs in the group").nullable(),
13
13
  status_message: z.string().describe("Human-readable status message").nullable().optional(),
14
- task_run_status_counts: z.object({}).describe("Breakdown of task runs by status")
15
- });
14
+ task_run_status_counts: z.record(z.string(), z.unknown()).describe("Breakdown of task runs by status")
15
+ }).passthrough();
16
16
  const ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({
17
- type: z.string().describe("Event type"),
17
+ type: z.string().describe("Event type").nullable(),
18
18
  status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),
19
- event_id: z.string().describe("Unique identifier for the event")
20
- });
19
+ event_id: z.string().describe("Unique identifier for the event").nullable()
20
+ }).passthrough();
21
21
  const ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({
22
- run_id: z.string().describe("Unique identifier of the task run"),
23
- status: z.string().describe("Current status of the task run"),
24
- is_active: z.boolean().describe("Indicates if the task run is active"),
25
- processor: z.string().describe("Processor used for the task run"),
26
- created_at: z.string().describe("ISO8601 timestamp when the task run was created"),
27
- modified_at: z.string().describe("ISO8601 timestamp of last modification")
28
- });
22
+ run_id: z.string().describe("Unique identifier of the task run").nullable(),
23
+ status: z.string().describe("Current status of the task run").nullable(),
24
+ is_active: z.boolean().describe("Indicates if the task run is active").nullable(),
25
+ processor: z.string().describe("Processor used for the task run").nullable(),
26
+ created_at: z.string().describe("ISO8601 timestamp when the task run was created").nullable(),
27
+ modified_at: z.string().describe("ISO8601 timestamp of last modification").nullable()
28
+ }).passthrough();
29
29
  const ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({
30
30
  run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),
31
- type: z.string().describe("Event type"),
31
+ type: z.string().describe("Event type").nullable(),
32
32
  input: z.record(z.string(), z.unknown()).describe("Input provided for the task run").nullable().optional(),
33
33
  output: z.record(z.string(), z.unknown()).describe("Output generated by the task run").nullable().optional(),
34
- event_id: z.string().describe("Unique identifier for the event")
35
- });
34
+ event_id: z.string().describe("Unique identifier for the event").nullable()
35
+ }).passthrough();
36
36
  const ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({
37
37
  detail: z.record(z.string(), z.unknown()).describe("Additional details about the error").nullable().optional(),
38
- ref_id: z.string().describe("Reference ID for the error"),
39
- message: z.string().describe("Human-readable error message")
40
- });
38
+ ref_id: z.string().describe("Reference ID for the error").nullable(),
39
+ message: z.string().describe("Human-readable error message").nullable()
40
+ }).passthrough();
41
41
  const ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({
42
- type: z.string().describe("Event type"),
42
+ type: z.string().describe("Event type").nullable(),
43
43
  error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),
44
- event_id: z.string().describe("Unique identifier for the event")
45
- });
44
+ event_id: z.string().describe("Unique identifier for the event").nullable()
45
+ }).passthrough();
46
46
  const parallelStreamTaskGroupEvents = action("PARALLEL_STREAM_TASK_GROUP_EVENTS", {
47
47
  slug: "parallel-stream-task-group-events",
48
48
  name: "Stream Task Group Events",
@@ -52,7 +52,7 @@ const parallelStreamTaskGroupEvents = action("PARALLEL_STREAM_TASK_GROUP_EVENTS"
52
52
  ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema,
53
53
  ParallelStreamTaskGroupEvents_TaskRunEventSchema,
54
54
  ParallelStreamTaskGroupEvents_ErrorEventSchema
55
- ])).describe("List of events received from the Task Group stream") }).describe("Response model containing list of streamed Task Group events.")
55
+ ])).describe("List of events received from the Task Group stream") }).passthrough().describe("Response model containing list of streamed Task Group events.")
56
56
  });
57
57
  //#endregion
58
58
  export { parallelStreamTaskGroupEvents };
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-group-events.mjs","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput: z.ZodTypeAny = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema: z.ZodTypeAny = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\"),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\"),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\"),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Breakdown of task runs by status\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\"),\n status: z.string().describe(\"Current status of the task run\"),\n is_active: z.boolean().describe(\"Indicates if the task run is active\"),\n processor: z.string().describe(\"Processor used for the task run\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\"),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\"),\n});\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema: z.ZodTypeAny = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\"),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Human-readable error message\"),\n});\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\"),\n});\nexport const ParallelStreamTaskGroupEventsOutput: z.ZodTypeAny = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sDAAoE,EAAE,OAAO;CACjF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAa,E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AgE,EAAE,OAAO;CAC7E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC7D,CAAC;AACD,MAAM,iDAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,gDAAgD,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACjE,CAAC;AAKD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAA0D;EAAkD;CAA8C,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,EACtP,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"stream-task-group-events.mjs","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sDAAsD,EAAE,OAAO;CACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC;AACvG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2DAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,QAAQ,oDAAoD,SAAS;CACrE,U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,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,gDAAgD,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAA0D;EAAkD;CAA8C,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,EACtP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -4,53 +4,53 @@ let zod = require("zod");
4
4
  const ParallelStreamTaskRunEventsInput = zod.z.object({ run_id: zod.z.string().describe("Unique identifier of the Task Run to stream events from.") }).describe("Request model for streaming Task Run events.");
5
5
  const ParallelStreamTaskRunEvents_TaskRunInfoSchema = zod.z.object({
6
6
  error: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Error details if any").nullable().optional(),
7
- run_id: zod.z.string().describe("Unique identifier of the task run"),
8
- status: zod.z.string().describe("Current status of the task run"),
7
+ run_id: zod.z.string().describe("Unique identifier of the task run").nullable(),
8
+ status: zod.z.string().describe("Current status of the task run").nullable(),
9
9
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata").nullable().optional(),
10
10
  warnings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Warning details if any").nullable().optional(),
11
- is_active: zod.z.boolean().describe("Indicates if the task run is active"),
12
- processor: zod.z.string().describe("Processor used for the task run"),
13
- created_at: zod.z.string().describe("ISO8601 timestamp when the task run was created"),
14
- modified_at: zod.z.string().describe("ISO8601 timestamp of last modification"),
11
+ is_active: zod.z.boolean().describe("Indicates if the task run is active").nullable(),
12
+ processor: zod.z.string().describe("Processor used for the task run").nullable(),
13
+ created_at: zod.z.string().describe("ISO8601 timestamp when the task run was created").nullable(),
14
+ modified_at: zod.z.string().describe("ISO8601 timestamp of last modification").nullable(),
15
15
  taskgroup_id: zod.z.string().describe("ID of the task group this run belongs to").nullable().optional()
16
- }).describe("Details of a task run.");
16
+ }).passthrough().describe("Details of a task run.");
17
17
  const ParallelStreamTaskRunEvents_TaskRunStateEventSchema = zod.z.object({
18
18
  run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),
19
- type: zod.z.string().describe("Event type"),
19
+ type: zod.z.string().describe("Event type").nullable(),
20
20
  input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input provided for the task run").nullable().optional(),
21
21
  output: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Output generated by the task run").nullable().optional(),
22
22
  event_id: zod.z.string().describe("Unique identifier for the event").nullable().optional()
23
- }).describe("Event indicating the current status of the task run.");
23
+ }).passthrough().describe("Event indicating the current status of the task run.");
24
24
  const ParallelStreamTaskRunEvents_SourceStatsSchema = zod.z.object({
25
25
  num_sources_read: zod.z.number().int().describe("Number of sources actually read").nullable().optional(),
26
26
  sources_read_sample: zod.z.array(zod.z.string()).describe("Sample of sources that were read").nullable().optional(),
27
27
  num_sources_considered: zod.z.number().int().describe("Number of sources considered for the task").nullable().optional()
28
- }).describe("Statistics about sources processed during task execution.");
28
+ }).passthrough().describe("Statistics about sources processed during task execution.");
29
29
  const ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = zod.z.object({
30
- type: zod.z.string().describe("Event type"),
30
+ type: zod.z.string().describe("Event type").nullable(),
31
31
  source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),
32
32
  progress_meter: zod.z.number().describe("Completion percentage (0-100)").nullable().optional()
33
- }).describe("Event containing progress statistics about source processing.");
33
+ }).passthrough().describe("Event containing progress statistics about source processing.");
34
34
  const ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = zod.z.object({
35
- type: zod.z.string().describe("Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)"),
36
- message: zod.z.string().describe("Human-readable progress message"),
35
+ type: zod.z.string().describe("Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)").nullable(),
36
+ message: zod.z.string().describe("Human-readable progress message").nullable(),
37
37
  timestamp: zod.z.string().describe("ISO8601 timestamp when the message was generated").nullable().optional()
38
- }).describe("Event containing progress messages about task execution.");
38
+ }).passthrough().describe("Event containing progress messages about task execution.");
39
39
  const ParallelStreamTaskRunEvents_ErrorDetailSchema = zod.z.object({
40
40
  detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the error").nullable().optional(),
41
- ref_id: zod.z.string().describe("Reference ID for the error"),
42
- message: zod.z.string().describe("Human-readable error message")
43
- }).describe("Error information.");
41
+ ref_id: zod.z.string().describe("Reference ID for the error").nullable(),
42
+ message: zod.z.string().describe("Human-readable error message").nullable()
43
+ }).passthrough().describe("Error information.");
44
44
  const ParallelStreamTaskRunEvents_ErrorEventSchema = zod.z.object({
45
- type: zod.z.string().describe("Event type"),
45
+ type: zod.z.string().describe("Event type").nullable(),
46
46
  error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable()
47
- }).describe("Event indicating an error occurred.");
47
+ }).passthrough().describe("Event indicating an error occurred.");
48
48
  const ParallelStreamTaskRunEventsOutput = zod.z.object({ events: zod.z.array(zod.z.union([
49
49
  ParallelStreamTaskRunEvents_TaskRunStateEventSchema,
50
50
  ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema,
51
51
  ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema,
52
52
  ParallelStreamTaskRunEvents_ErrorEventSchema
53
- ])).describe("List of events received from the Task Run stream") }).describe("Response model containing list of streamed Task Run events.");
53
+ ])).describe("List of events received from the Task Run stream") }).passthrough().describe("Response model containing list of streamed Task Run events.");
54
54
  const parallelStreamTaskRunEvents = require_action.action("PARALLEL_STREAM_TASK_RUN_EVENTS", {
55
55
  slug: "parallel-stream-task-run-events",
56
56
  name: "Stream Task Run Events",
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema: z.ZodTypeAny = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\"),\n status: z.string().describe(\"Current status of the task run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\"),\n processor: z.string().describe(\"Processor used for the task run\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\"),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\"),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema: z.ZodTypeAny = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\"),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema: z.ZodTypeAny = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\"),\n message: z.string().describe(\"Human-readable progress message\"),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Human-readable error message\"),\n}).describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput: z.ZodTypeAny = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;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EzE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE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AAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;CAAC;CAAqD;CAA6D;CAA+D;AAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACvT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/stream-task-run-events.d.ts
4
- declare const ParallelStreamTaskRunEventsInput: z.ZodTypeAny;
5
- declare const ParallelStreamTaskRunEventsOutput: z.ZodTypeAny;
6
- declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelStreamTaskRunEventsInput: z.ZodObject<{
5
+ run_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
8
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
9
+ run: z.ZodNullable<z.ZodObject<{
10
+ error: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ run_id: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ warnings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ is_active: z.ZodNullable<z.ZodBoolean>;
16
+ processor: z.ZodNullable<z.ZodString>;
17
+ created_at: z.ZodNullable<z.ZodString>;
18
+ modified_at: z.ZodNullable<z.ZodString>;
19
+ taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ type: z.ZodNullable<z.ZodString>;
22
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
+ type: z.ZodNullable<z.ZodString>;
27
+ source_stats: z.ZodNullable<z.ZodObject<{
28
+ num_sources_read: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ sources_read_sample: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
+ num_sources_considered: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$loose>>;
32
+ progress_meter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ }, z.core.$loose>, z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ message: z.ZodNullable<z.ZodString>;
36
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>, z.ZodObject<{
38
+ type: z.ZodNullable<z.ZodString>;
39
+ error: z.ZodNullable<z.ZodObject<{
40
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
41
+ ref_id: z.ZodNullable<z.ZodString>;
42
+ message: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>>;
44
+ }, z.core.$loose>]>>;
45
+ }, z.core.$loose>;
46
+ declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ run_id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { parallelStreamTaskRunEvents };
9
51
  //# sourceMappingURL=stream-task-run-events.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-run-events.d.cts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAEU;AAAA,cA4C9C,iCAAA,EAAmC,CAAA,CAAE,UAEwB;AAAA,cAE7D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"stream-task-run-events.d.cts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cA8ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/stream-task-run-events.d.ts
4
- declare const ParallelStreamTaskRunEventsInput: z.ZodTypeAny;
5
- declare const ParallelStreamTaskRunEventsOutput: z.ZodTypeAny;
6
- declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelStreamTaskRunEventsInput: z.ZodObject<{
5
+ run_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
8
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
9
+ run: z.ZodNullable<z.ZodObject<{
10
+ error: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ run_id: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ warnings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ is_active: z.ZodNullable<z.ZodBoolean>;
16
+ processor: z.ZodNullable<z.ZodString>;
17
+ created_at: z.ZodNullable<z.ZodString>;
18
+ modified_at: z.ZodNullable<z.ZodString>;
19
+ taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ type: z.ZodNullable<z.ZodString>;
22
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
+ type: z.ZodNullable<z.ZodString>;
27
+ source_stats: z.ZodNullable<z.ZodObject<{
28
+ num_sources_read: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ sources_read_sample: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
+ num_sources_considered: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$loose>>;
32
+ progress_meter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ }, z.core.$loose>, z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ message: z.ZodNullable<z.ZodString>;
36
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>, z.ZodObject<{
38
+ type: z.ZodNullable<z.ZodString>;
39
+ error: z.ZodNullable<z.ZodObject<{
40
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
41
+ ref_id: z.ZodNullable<z.ZodString>;
42
+ message: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>>;
44
+ }, z.core.$loose>]>>;
45
+ }, z.core.$loose>;
46
+ declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ run_id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { parallelStreamTaskRunEvents };
9
51
  //# sourceMappingURL=stream-task-run-events.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stream-task-run-events.d.mts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAEU;AAAA,cA4C9C,iCAAA,EAAmC,CAAA,CAAE,UAEwB;AAAA,cAE7D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"stream-task-run-events.d.mts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cA8ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -4,47 +4,47 @@ import { z } from "zod";
4
4
  const ParallelStreamTaskRunEventsInput = z.object({ run_id: z.string().describe("Unique identifier of the Task Run to stream events from.") }).describe("Request model for streaming Task Run events.");
5
5
  const ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({
6
6
  error: z.record(z.string(), z.unknown()).describe("Error details if any").nullable().optional(),
7
- run_id: z.string().describe("Unique identifier of the task run"),
8
- status: z.string().describe("Current status of the task run"),
7
+ run_id: z.string().describe("Unique identifier of the task run").nullable(),
8
+ status: z.string().describe("Current status of the task run").nullable(),
9
9
  metadata: z.record(z.string(), z.unknown()).describe("Additional metadata").nullable().optional(),
10
10
  warnings: z.record(z.string(), z.unknown()).describe("Warning details if any").nullable().optional(),
11
- is_active: z.boolean().describe("Indicates if the task run is active"),
12
- processor: z.string().describe("Processor used for the task run"),
13
- created_at: z.string().describe("ISO8601 timestamp when the task run was created"),
14
- modified_at: z.string().describe("ISO8601 timestamp of last modification"),
11
+ is_active: z.boolean().describe("Indicates if the task run is active").nullable(),
12
+ processor: z.string().describe("Processor used for the task run").nullable(),
13
+ created_at: z.string().describe("ISO8601 timestamp when the task run was created").nullable(),
14
+ modified_at: z.string().describe("ISO8601 timestamp of last modification").nullable(),
15
15
  taskgroup_id: z.string().describe("ID of the task group this run belongs to").nullable().optional()
16
- }).describe("Details of a task run.");
16
+ }).passthrough().describe("Details of a task run.");
17
17
  const ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({
18
18
  run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),
19
- type: z.string().describe("Event type"),
19
+ type: z.string().describe("Event type").nullable(),
20
20
  input: z.record(z.string(), z.unknown()).describe("Input provided for the task run").nullable().optional(),
21
21
  output: z.record(z.string(), z.unknown()).describe("Output generated by the task run").nullable().optional(),
22
22
  event_id: z.string().describe("Unique identifier for the event").nullable().optional()
23
- }).describe("Event indicating the current status of the task run.");
23
+ }).passthrough().describe("Event indicating the current status of the task run.");
24
24
  const ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({
25
25
  num_sources_read: z.number().int().describe("Number of sources actually read").nullable().optional(),
26
26
  sources_read_sample: z.array(z.string()).describe("Sample of sources that were read").nullable().optional(),
27
27
  num_sources_considered: z.number().int().describe("Number of sources considered for the task").nullable().optional()
28
- }).describe("Statistics about sources processed during task execution.");
28
+ }).passthrough().describe("Statistics about sources processed during task execution.");
29
29
  const ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({
30
- type: z.string().describe("Event type"),
30
+ type: z.string().describe("Event type").nullable(),
31
31
  source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),
32
32
  progress_meter: z.number().describe("Completion percentage (0-100)").nullable().optional()
33
- }).describe("Event containing progress statistics about source processing.");
33
+ }).passthrough().describe("Event containing progress statistics about source processing.");
34
34
  const ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({
35
- type: z.string().describe("Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)"),
36
- message: z.string().describe("Human-readable progress message"),
35
+ type: z.string().describe("Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)").nullable(),
36
+ message: z.string().describe("Human-readable progress message").nullable(),
37
37
  timestamp: z.string().describe("ISO8601 timestamp when the message was generated").nullable().optional()
38
- }).describe("Event containing progress messages about task execution.");
38
+ }).passthrough().describe("Event containing progress messages about task execution.");
39
39
  const ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({
40
40
  detail: z.record(z.string(), z.unknown()).describe("Additional details about the error").nullable().optional(),
41
- ref_id: z.string().describe("Reference ID for the error"),
42
- message: z.string().describe("Human-readable error message")
43
- }).describe("Error information.");
41
+ ref_id: z.string().describe("Reference ID for the error").nullable(),
42
+ message: z.string().describe("Human-readable error message").nullable()
43
+ }).passthrough().describe("Error information.");
44
44
  const ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({
45
- type: z.string().describe("Event type"),
45
+ type: z.string().describe("Event type").nullable(),
46
46
  error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable()
47
- }).describe("Event indicating an error occurred.");
47
+ }).passthrough().describe("Event indicating an error occurred.");
48
48
  const parallelStreamTaskRunEvents = action("PARALLEL_STREAM_TASK_RUN_EVENTS", {
49
49
  slug: "parallel-stream-task-run-events",
50
50
  name: "Stream Task Run Events",
@@ -55,7 +55,7 @@ const parallelStreamTaskRunEvents = action("PARALLEL_STREAM_TASK_RUN_EVENTS", {
55
55
  ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema,
56
56
  ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema,
57
57
  ParallelStreamTaskRunEvents_ErrorEventSchema
58
- ])).describe("List of events received from the Task Run stream") }).describe("Response model containing list of streamed Task Run events.")
58
+ ])).describe("List of events received from the Task Run stream") }).passthrough().describe("Response model containing list of streamed Task Run events.")
59
59
  });
60
60
  //#endregion
61
61
  export { parallelStreamTaskRunEvents };