@keystrokehq/parallel 0.1.5 → 0.1.6

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 (269) 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 +1 -0
  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 +3 -25
  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 +3 -25
  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 +1 -0
  10. package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
  11. package/dist/actions/add-runs-to-task-group.cjs +1 -0
  12. package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
  13. package/dist/actions/add-runs-to-task-group.d.cts +3 -34
  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 +3 -34
  16. package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
  17. package/dist/actions/add-runs-to-task-group.mjs +1 -0
  18. package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
  19. package/dist/actions/cancel-find-all-run.cjs +1 -0
  20. package/dist/actions/cancel-find-all-run.cjs.map +1 -1
  21. package/dist/actions/cancel-find-all-run.d.cts +3 -15
  22. package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
  23. package/dist/actions/cancel-find-all-run.d.mts +3 -15
  24. package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
  25. package/dist/actions/cancel-find-all-run.mjs +1 -0
  26. package/dist/actions/cancel-find-all-run.mjs.map +1 -1
  27. package/dist/actions/create-chat-completions.cjs +1 -0
  28. package/dist/actions/create-chat-completions.cjs.map +1 -1
  29. package/dist/actions/create-chat-completions.d.cts +3 -32
  30. package/dist/actions/create-chat-completions.d.cts.map +1 -1
  31. package/dist/actions/create-chat-completions.d.mts +3 -32
  32. package/dist/actions/create-chat-completions.d.mts.map +1 -1
  33. package/dist/actions/create-chat-completions.mjs +1 -0
  34. package/dist/actions/create-chat-completions.mjs.map +1 -1
  35. package/dist/actions/create-monitor.cjs +1 -0
  36. package/dist/actions/create-monitor.cjs.map +1 -1
  37. package/dist/actions/create-monitor.d.cts +3 -25
  38. package/dist/actions/create-monitor.d.cts.map +1 -1
  39. package/dist/actions/create-monitor.d.mts +3 -25
  40. package/dist/actions/create-monitor.d.mts.map +1 -1
  41. package/dist/actions/create-monitor.mjs +1 -0
  42. package/dist/actions/create-monitor.mjs.map +1 -1
  43. package/dist/actions/create-task-group.cjs +1 -0
  44. package/dist/actions/create-task-group.cjs.map +1 -1
  45. package/dist/actions/create-task-group.d.cts +3 -15
  46. package/dist/actions/create-task-group.d.cts.map +1 -1
  47. package/dist/actions/create-task-group.d.mts +3 -15
  48. package/dist/actions/create-task-group.d.mts.map +1 -1
  49. package/dist/actions/create-task-group.mjs +1 -0
  50. package/dist/actions/create-task-group.mjs.map +1 -1
  51. package/dist/actions/create-task-run.cjs +1 -0
  52. package/dist/actions/create-task-run.cjs.map +1 -1
  53. package/dist/actions/create-task-run.d.cts +3 -34
  54. package/dist/actions/create-task-run.d.cts.map +1 -1
  55. package/dist/actions/create-task-run.d.mts +3 -34
  56. package/dist/actions/create-task-run.d.mts.map +1 -1
  57. package/dist/actions/create-task-run.mjs +1 -0
  58. package/dist/actions/create-task-run.mjs.map +1 -1
  59. package/dist/actions/delete-monitor.cjs +1 -0
  60. package/dist/actions/delete-monitor.cjs.map +1 -1
  61. package/dist/actions/delete-monitor.d.cts +3 -15
  62. package/dist/actions/delete-monitor.d.cts.map +1 -1
  63. package/dist/actions/delete-monitor.d.mts +3 -15
  64. package/dist/actions/delete-monitor.d.mts.map +1 -1
  65. package/dist/actions/delete-monitor.mjs +1 -0
  66. package/dist/actions/delete-monitor.mjs.map +1 -1
  67. package/dist/actions/extend-find-all-run.cjs +1 -0
  68. package/dist/actions/extend-find-all-run.cjs.map +1 -1
  69. package/dist/actions/extend-find-all-run.d.cts +3 -16
  70. package/dist/actions/extend-find-all-run.d.cts.map +1 -1
  71. package/dist/actions/extend-find-all-run.d.mts +3 -16
  72. package/dist/actions/extend-find-all-run.d.mts.map +1 -1
  73. package/dist/actions/extend-find-all-run.mjs +1 -0
  74. package/dist/actions/extend-find-all-run.mjs.map +1 -1
  75. package/dist/actions/extract.cjs +1 -0
  76. package/dist/actions/extract.cjs.map +1 -1
  77. package/dist/actions/extract.d.cts +3 -31
  78. package/dist/actions/extract.d.cts.map +1 -1
  79. package/dist/actions/extract.d.mts +3 -31
  80. package/dist/actions/extract.d.mts.map +1 -1
  81. package/dist/actions/extract.mjs +1 -0
  82. package/dist/actions/extract.mjs.map +1 -1
  83. package/dist/actions/fetch-task-group-runs.cjs +1 -0
  84. package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
  85. package/dist/actions/fetch-task-group-runs.d.cts +3 -19
  86. package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
  87. package/dist/actions/fetch-task-group-runs.d.mts +3 -19
  88. package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
  89. package/dist/actions/fetch-task-group-runs.mjs +1 -0
  90. package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
  91. package/dist/actions/find-all.cjs +1 -0
  92. package/dist/actions/find-all.cjs.map +1 -1
  93. package/dist/actions/find-all.d.cts +3 -33
  94. package/dist/actions/find-all.d.cts.map +1 -1
  95. package/dist/actions/find-all.d.mts +3 -33
  96. package/dist/actions/find-all.d.mts.map +1 -1
  97. package/dist/actions/find-all.mjs +1 -0
  98. package/dist/actions/find-all.mjs.map +1 -1
  99. package/dist/actions/get-find-all-run-result.cjs +1 -0
  100. package/dist/actions/get-find-all-run-result.cjs.map +1 -1
  101. package/dist/actions/get-find-all-run-result.d.cts +3 -15
  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 +3 -15
  104. package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
  105. package/dist/actions/get-find-all-run-result.mjs +1 -0
  106. package/dist/actions/get-find-all-run-result.mjs.map +1 -1
  107. package/dist/actions/get-find-all-run-schema.cjs +1 -0
  108. package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
  109. package/dist/actions/get-find-all-run-schema.d.cts +3 -15
  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 +3 -15
  112. package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
  113. package/dist/actions/get-find-all-run-schema.mjs +1 -0
  114. package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
  115. package/dist/actions/ingest-find-all-run.cjs +1 -0
  116. package/dist/actions/ingest-find-all-run.cjs.map +1 -1
  117. package/dist/actions/ingest-find-all-run.d.cts +3 -15
  118. package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
  119. package/dist/actions/ingest-find-all-run.d.mts +3 -15
  120. package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
  121. package/dist/actions/ingest-find-all-run.mjs +1 -0
  122. package/dist/actions/ingest-find-all-run.mjs.map +1 -1
  123. package/dist/actions/list-monitor-events.cjs +1 -0
  124. package/dist/actions/list-monitor-events.cjs.map +1 -1
  125. package/dist/actions/list-monitor-events.d.cts +3 -16
  126. package/dist/actions/list-monitor-events.d.cts.map +1 -1
  127. package/dist/actions/list-monitor-events.d.mts +3 -16
  128. package/dist/actions/list-monitor-events.d.mts.map +1 -1
  129. package/dist/actions/list-monitor-events.mjs +1 -0
  130. package/dist/actions/list-monitor-events.mjs.map +1 -1
  131. package/dist/actions/list-monitors.cjs +1 -0
  132. package/dist/actions/list-monitors.cjs.map +1 -1
  133. package/dist/actions/list-monitors.d.cts +3 -16
  134. package/dist/actions/list-monitors.d.cts.map +1 -1
  135. package/dist/actions/list-monitors.d.mts +3 -16
  136. package/dist/actions/list-monitors.d.mts.map +1 -1
  137. package/dist/actions/list-monitors.mjs +1 -0
  138. package/dist/actions/list-monitors.mjs.map +1 -1
  139. package/dist/actions/retrieve-event-group.cjs +1 -0
  140. package/dist/actions/retrieve-event-group.cjs.map +1 -1
  141. package/dist/actions/retrieve-event-group.d.cts +3 -16
  142. package/dist/actions/retrieve-event-group.d.cts.map +1 -1
  143. package/dist/actions/retrieve-event-group.d.mts +3 -16
  144. package/dist/actions/retrieve-event-group.d.mts.map +1 -1
  145. package/dist/actions/retrieve-event-group.mjs +1 -0
  146. package/dist/actions/retrieve-event-group.mjs.map +1 -1
  147. package/dist/actions/retrieve-find-all-run-status.cjs +1 -0
  148. package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
  149. package/dist/actions/retrieve-find-all-run-status.d.cts +3 -15
  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 +3 -15
  152. package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
  153. package/dist/actions/retrieve-find-all-run-status.mjs +1 -0
  154. package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
  155. package/dist/actions/retrieve-monitor.cjs +1 -0
  156. package/dist/actions/retrieve-monitor.cjs.map +1 -1
  157. package/dist/actions/retrieve-monitor.d.cts +3 -15
  158. package/dist/actions/retrieve-monitor.d.cts.map +1 -1
  159. package/dist/actions/retrieve-monitor.d.mts +3 -15
  160. package/dist/actions/retrieve-monitor.d.mts.map +1 -1
  161. package/dist/actions/retrieve-monitor.mjs +1 -0
  162. package/dist/actions/retrieve-monitor.mjs.map +1 -1
  163. package/dist/actions/retrieve-task-group-run.cjs +1 -0
  164. package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
  165. package/dist/actions/retrieve-task-group-run.d.cts +3 -16
  166. package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
  167. package/dist/actions/retrieve-task-group-run.d.mts +3 -16
  168. package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
  169. package/dist/actions/retrieve-task-group-run.mjs +1 -0
  170. package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
  171. package/dist/actions/retrieve-task-group.cjs +1 -0
  172. package/dist/actions/retrieve-task-group.cjs.map +1 -1
  173. package/dist/actions/retrieve-task-group.d.cts +3 -15
  174. package/dist/actions/retrieve-task-group.d.cts.map +1 -1
  175. package/dist/actions/retrieve-task-group.d.mts +3 -15
  176. package/dist/actions/retrieve-task-group.d.mts.map +1 -1
  177. package/dist/actions/retrieve-task-group.mjs +1 -0
  178. package/dist/actions/retrieve-task-group.mjs.map +1 -1
  179. package/dist/actions/retrieve-task-run-input.cjs +1 -0
  180. package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
  181. package/dist/actions/retrieve-task-run-input.d.cts +3 -15
  182. package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
  183. package/dist/actions/retrieve-task-run-input.d.mts +3 -15
  184. package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
  185. package/dist/actions/retrieve-task-run-input.mjs +1 -0
  186. package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
  187. package/dist/actions/retrieve-task-run-result.cjs +1 -0
  188. package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
  189. package/dist/actions/retrieve-task-run-result.d.cts +3 -17
  190. package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
  191. package/dist/actions/retrieve-task-run-result.d.mts +3 -17
  192. package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
  193. package/dist/actions/retrieve-task-run-result.mjs +1 -0
  194. package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
  195. package/dist/actions/retrieve-task-run.cjs +1 -0
  196. package/dist/actions/retrieve-task-run.cjs.map +1 -1
  197. package/dist/actions/retrieve-task-run.d.cts +3 -15
  198. package/dist/actions/retrieve-task-run.d.cts.map +1 -1
  199. package/dist/actions/retrieve-task-run.d.mts +3 -15
  200. package/dist/actions/retrieve-task-run.d.mts.map +1 -1
  201. package/dist/actions/retrieve-task-run.mjs +1 -0
  202. package/dist/actions/retrieve-task-run.mjs.map +1 -1
  203. package/dist/actions/search.cjs +1 -0
  204. package/dist/actions/search.cjs.map +1 -1
  205. package/dist/actions/search.d.cts +3 -15
  206. package/dist/actions/search.d.cts.map +1 -1
  207. package/dist/actions/search.d.mts +3 -15
  208. package/dist/actions/search.d.mts.map +1 -1
  209. package/dist/actions/search.mjs +1 -0
  210. package/dist/actions/search.mjs.map +1 -1
  211. package/dist/actions/simulate-event.cjs +1 -0
  212. package/dist/actions/simulate-event.cjs.map +1 -1
  213. package/dist/actions/simulate-event.d.cts +3 -16
  214. package/dist/actions/simulate-event.d.cts.map +1 -1
  215. package/dist/actions/simulate-event.d.mts +3 -16
  216. package/dist/actions/simulate-event.d.mts.map +1 -1
  217. package/dist/actions/simulate-event.mjs +1 -0
  218. package/dist/actions/simulate-event.mjs.map +1 -1
  219. package/dist/actions/stream-find-all-events.cjs +1 -0
  220. package/dist/actions/stream-find-all-events.cjs.map +1 -1
  221. package/dist/actions/stream-find-all-events.d.cts +3 -17
  222. package/dist/actions/stream-find-all-events.d.cts.map +1 -1
  223. package/dist/actions/stream-find-all-events.d.mts +3 -17
  224. package/dist/actions/stream-find-all-events.d.mts.map +1 -1
  225. package/dist/actions/stream-find-all-events.mjs +1 -0
  226. package/dist/actions/stream-find-all-events.mjs.map +1 -1
  227. package/dist/actions/stream-task-group-events.cjs +1 -0
  228. package/dist/actions/stream-task-group-events.cjs.map +1 -1
  229. package/dist/actions/stream-task-group-events.d.cts +3 -17
  230. package/dist/actions/stream-task-group-events.d.cts.map +1 -1
  231. package/dist/actions/stream-task-group-events.d.mts +3 -17
  232. package/dist/actions/stream-task-group-events.d.mts.map +1 -1
  233. package/dist/actions/stream-task-group-events.mjs +1 -0
  234. package/dist/actions/stream-task-group-events.mjs.map +1 -1
  235. package/dist/actions/stream-task-run-events.cjs +1 -0
  236. package/dist/actions/stream-task-run-events.cjs.map +1 -1
  237. package/dist/actions/stream-task-run-events.d.cts +3 -15
  238. package/dist/actions/stream-task-run-events.d.cts.map +1 -1
  239. package/dist/actions/stream-task-run-events.d.mts +3 -15
  240. package/dist/actions/stream-task-run-events.d.mts.map +1 -1
  241. package/dist/actions/stream-task-run-events.mjs +1 -0
  242. package/dist/actions/stream-task-run-events.mjs.map +1 -1
  243. package/dist/actions/suggest-task.cjs +1 -0
  244. package/dist/actions/suggest-task.cjs.map +1 -1
  245. package/dist/actions/suggest-task.d.cts +3 -15
  246. package/dist/actions/suggest-task.d.cts.map +1 -1
  247. package/dist/actions/suggest-task.d.mts +3 -15
  248. package/dist/actions/suggest-task.d.mts.map +1 -1
  249. package/dist/actions/suggest-task.mjs +1 -0
  250. package/dist/actions/suggest-task.mjs.map +1 -1
  251. package/dist/actions/update-monitor.cjs +1 -0
  252. package/dist/actions/update-monitor.cjs.map +1 -1
  253. package/dist/actions/update-monitor.d.cts +3 -22
  254. package/dist/actions/update-monitor.d.cts.map +1 -1
  255. package/dist/actions/update-monitor.d.mts +3 -22
  256. package/dist/actions/update-monitor.d.mts.map +1 -1
  257. package/dist/actions/update-monitor.mjs +1 -0
  258. package/dist/actions/update-monitor.mjs.map +1 -1
  259. package/dist/app.cjs +2 -2
  260. package/dist/app.cjs.map +1 -1
  261. package/dist/app.d.cts +4 -6
  262. package/dist/app.d.cts.map +1 -1
  263. package/dist/app.d.mts +4 -6
  264. package/dist/app.d.mts.map +1 -1
  265. package/dist/app.mjs +0 -1
  266. package/dist/app.mjs.map +1 -1
  267. package/dist/index.d.cts +1 -1
  268. package/dist/index.d.mts +1 -1
  269. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["parallel","executeParallelTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parallel } from \"./app\";\nimport { executeParallelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parallel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParallelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["parallel","executeParallelTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { parallel } from \"./app\";\nimport { executeParallelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parallel.credential> {\n return parallel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeParallelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parallel } from \"./app\";\nimport { executeParallelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parallel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParallelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { parallel } from \"./app\";\nimport { executeParallelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parallel.credential> {\n return parallel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeParallelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-enrichment-to-find-all-run.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-enrichment-to-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddEnrichmentToFindAllRunInput = z.object({\n processor: z.string().default(\"core\").describe(\"Processor to use for the enrichment task. Defaults to 'core'.\").optional(),\n findall_id: z.string().describe(\"ID of the FindAll run to add enrichment to.\"),\n mcp_servers: z.array(z.object({\n url: z.string().describe(\"URL of the MCP server.\"),\n name: z.string().describe(\"Name of the MCP server.\"),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\")).describe(\"Optional list of MCP servers to use for the enrichment task.\").optional(),\n output_schema: z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).describe(\"JSON schema defining the structure and fields for the enrichment output.\"),\n});\nconst ParallelAddEnrichmentToFindAllRun_McpServerSchema = z.object({\n url: z.string().describe(\"URL of the MCP server.\").nullable(),\n name: z.string().describe(\"Name of the MCP server.\").nullable(),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\");\nconst ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema = z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).passthrough().describe(\"JSON schema definition for enrichment output.\");\nconst ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema = z.object({\n processor: z.string().describe(\"Processor used for this enrichment.\").nullable(),\n mcp_servers: z.array(ParallelAddEnrichmentToFindAllRun_McpServerSchema).describe(\"List of MCP servers used for this enrichment.\").nullable().optional(),\n output_schema: ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema.nullable(),\n}).passthrough().describe(\"Enrichment configuration for a FindAll run.\");\nconst ParallelAddEnrichmentToFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Name of the match condition.\").nullable(),\n description: z.string().describe(\"Description of the match condition.\").nullable(),\n}).passthrough();\nexport const ParallelAddEnrichmentToFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"The generator of the FindAll run.\").nullable(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelAddEnrichmentToFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelAddEnrichmentToFindAllRun = action(\"PARALLEL_ADD_ENRICHMENT_TO_FIND_ALL_RUN\", {\n slug: \"parallel-add-enrichment-to-find-all-run\",\n name: \"Add Enrichment to FindAll Run\",\n description: \"Tool to add an enrichment to a FindAll run. Use when you need to enrich existing FindAll run results with additional structured data fields. Enrichments define what information to extract from matched entities using a JSON schema.\",\n input: ParallelAddEnrichmentToFindAllRunInput,\n output: ParallelAddEnrichmentToFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,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,SAAS,+CAA+C;AAC5I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAAoCC,eAAAA,OAAO,2CAA2C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-enrichment-to-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelAddEnrichmentToFindAllRunInput = z.object({\n processor: z.string().default(\"core\").describe(\"Processor to use for the enrichment task. Defaults to 'core'.\").optional(),\n findall_id: z.string().describe(\"ID of the FindAll run to add enrichment to.\"),\n mcp_servers: z.array(z.object({\n url: z.string().describe(\"URL of the MCP server.\"),\n name: z.string().describe(\"Name of the MCP server.\"),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\")).describe(\"Optional list of MCP servers to use for the enrichment task.\").optional(),\n output_schema: z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).describe(\"JSON schema defining the structure and fields for the enrichment output.\"),\n});\nconst ParallelAddEnrichmentToFindAllRun_McpServerSchema = z.object({\n url: z.string().describe(\"URL of the MCP server.\").nullable(),\n name: z.string().describe(\"Name of the MCP server.\").nullable(),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\");\nconst ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema = z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).passthrough().describe(\"JSON schema definition for enrichment output.\");\nconst ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema = z.object({\n processor: z.string().describe(\"Processor used for this enrichment.\").nullable(),\n mcp_servers: z.array(ParallelAddEnrichmentToFindAllRun_McpServerSchema).describe(\"List of MCP servers used for this enrichment.\").nullable().optional(),\n output_schema: ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema.nullable(),\n}).passthrough().describe(\"Enrichment configuration for a FindAll run.\");\nconst ParallelAddEnrichmentToFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Name of the match condition.\").nullable(),\n description: z.string().describe(\"Description of the match condition.\").nullable(),\n}).passthrough();\nexport const ParallelAddEnrichmentToFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"The generator of the FindAll run.\").nullable(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelAddEnrichmentToFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelAddEnrichmentToFindAllRun: AppAction<\n typeof ParallelAddEnrichmentToFindAllRunInput,\n typeof ParallelAddEnrichmentToFindAllRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_ADD_ENRICHMENT_TO_FIND_ALL_RUN\", {\n slug: \"parallel-add-enrichment-to-find-all-run\",\n name: \"Add Enrichment to FindAll Run\",\n description: \"Tool to add an enrichment to a FindAll run. Use when you need to enrich existing FindAll run results with additional structured data fields. Enrichments define what information to extract from matched entities using a JSON schema.\",\n input: ParallelAddEnrichmentToFindAllRunInput,\n output: ParallelAddEnrichmentToFindAllRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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C,CAAC,CAAC,YAAY;AAEf,MAAa,oCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-enrichment-to-find-all-run.d.ts
@@ -39,31 +41,7 @@ declare const ParallelAddEnrichmentToFindAllRunOutput: z.ZodObject<{
39
41
  description: z.ZodNullable<z.ZodString>;
40
42
  }, z.core.$loose>>;
41
43
  }, z.core.$loose>;
42
- declare const parallelAddEnrichmentToFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- findall_id: string;
44
- output_schema: {
45
- json_schema: Record<string, unknown>;
46
- type?: string | undefined;
47
- };
48
- processor?: string | undefined;
49
- mcp_servers?: {
50
- [x: string]: unknown;
51
- url: string;
52
- name: string;
53
- }[] | undefined;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_api_key: z.ZodString;
60
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
61
- connectionId: z.ZodString;
62
- entityId: z.ZodString;
63
- instanceId: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
65
- generic_api_key: z.ZodString;
66
- }, z.core.$strip>>]>;
44
+ declare const parallelAddEnrichmentToFindAllRun: AppAction<typeof ParallelAddEnrichmentToFindAllRunInput, typeof ParallelAddEnrichmentToFindAllRunOutput, typeof parallel.credential>;
67
45
  //#endregion
68
46
  export { parallelAddEnrichmentToFindAllRun };
69
47
  //# sourceMappingURL=add-enrichment-to-find-all-run.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-enrichment-to-find-all-run.d.cts","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA6BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cASvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"add-enrichment-to-find-all-run.d.cts","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA6BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cASvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-enrichment-to-find-all-run.d.ts
@@ -39,31 +41,7 @@ declare const ParallelAddEnrichmentToFindAllRunOutput: z.ZodObject<{
39
41
  description: z.ZodNullable<z.ZodString>;
40
42
  }, z.core.$loose>>;
41
43
  }, z.core.$loose>;
42
- declare const parallelAddEnrichmentToFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- findall_id: string;
44
- output_schema: {
45
- json_schema: Record<string, unknown>;
46
- type?: string | undefined;
47
- };
48
- processor?: string | undefined;
49
- mcp_servers?: {
50
- [x: string]: unknown;
51
- url: string;
52
- name: string;
53
- }[] | undefined;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_api_key: z.ZodString;
60
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
61
- connectionId: z.ZodString;
62
- entityId: z.ZodString;
63
- instanceId: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
65
- generic_api_key: z.ZodString;
66
- }, z.core.$strip>>]>;
44
+ declare const parallelAddEnrichmentToFindAllRun: AppAction<typeof ParallelAddEnrichmentToFindAllRunInput, typeof ParallelAddEnrichmentToFindAllRunOutput, typeof parallel.credential>;
67
45
  //#endregion
68
46
  export { parallelAddEnrichmentToFindAllRun };
69
47
  //# sourceMappingURL=add-enrichment-to-find-all-run.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-enrichment-to-find-all-run.d.mts","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA6BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cASvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"add-enrichment-to-find-all-run.d.mts","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA6BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cASvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-enrichment-to-find-all-run.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-enrichment-to-find-all-run.mjs","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddEnrichmentToFindAllRunInput = z.object({\n processor: z.string().default(\"core\").describe(\"Processor to use for the enrichment task. Defaults to 'core'.\").optional(),\n findall_id: z.string().describe(\"ID of the FindAll run to add enrichment to.\"),\n mcp_servers: z.array(z.object({\n url: z.string().describe(\"URL of the MCP server.\"),\n name: z.string().describe(\"Name of the MCP server.\"),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\")).describe(\"Optional list of MCP servers to use for the enrichment task.\").optional(),\n output_schema: z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).describe(\"JSON schema defining the structure and fields for the enrichment output.\"),\n});\nconst ParallelAddEnrichmentToFindAllRun_McpServerSchema = z.object({\n url: z.string().describe(\"URL of the MCP server.\").nullable(),\n name: z.string().describe(\"Name of the MCP server.\").nullable(),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\");\nconst ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema = z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).passthrough().describe(\"JSON schema definition for enrichment output.\");\nconst ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema = z.object({\n processor: z.string().describe(\"Processor used for this enrichment.\").nullable(),\n mcp_servers: z.array(ParallelAddEnrichmentToFindAllRun_McpServerSchema).describe(\"List of MCP servers used for this enrichment.\").nullable().optional(),\n output_schema: ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema.nullable(),\n}).passthrough().describe(\"Enrichment configuration for a FindAll run.\");\nconst ParallelAddEnrichmentToFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Name of the match condition.\").nullable(),\n description: z.string().describe(\"Description of the match condition.\").nullable(),\n}).passthrough();\nexport const ParallelAddEnrichmentToFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"The generator of the FindAll run.\").nullable(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelAddEnrichmentToFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelAddEnrichmentToFindAllRun = action(\"PARALLEL_ADD_ENRICHMENT_TO_FIND_ALL_RUN\", {\n slug: \"parallel-add-enrichment-to-find-all-run\",\n name: \"Add Enrichment to FindAll Run\",\n description: \"Tool to add an enrichment to a FindAll run. Use when you need to enrich existing FindAll run results with additional structured data fields. Enrichments define what information to extract from matched entities using a JSON schema.\",\n input: ParallelAddEnrichmentToFindAllRunInput,\n output: ParallelAddEnrichmentToFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAa,EAAE,MAAM,EAAE,OAAO;EAC9B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClK,eAAe,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kDAAkD,CAAC,C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P,QAdqD,EAAE,OAAO;EAC9D,WAAW,EAAE,KAAK;GAAC;GAAQ;GAAQ;GAAO;EAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,+CAA+C;CAC5I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"add-enrichment-to-find-all-run.mjs","names":[],"sources":["../../src/actions/add-enrichment-to-find-all-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelAddEnrichmentToFindAllRunInput = z.object({\n processor: z.string().default(\"core\").describe(\"Processor to use for the enrichment task. Defaults to 'core'.\").optional(),\n findall_id: z.string().describe(\"ID of the FindAll run to add enrichment to.\"),\n mcp_servers: z.array(z.object({\n url: z.string().describe(\"URL of the MCP server.\"),\n name: z.string().describe(\"Name of the MCP server.\"),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\")).describe(\"Optional list of MCP servers to use for the enrichment task.\").optional(),\n output_schema: z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).describe(\"JSON schema defining the structure and fields for the enrichment output.\"),\n});\nconst ParallelAddEnrichmentToFindAllRun_McpServerSchema = z.object({\n url: z.string().describe(\"URL of the MCP server.\").nullable(),\n name: z.string().describe(\"Name of the MCP server.\").nullable(),\n}).passthrough().describe(\"MCP server configuration for enrichment processing.\");\nconst ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema = z.object({\n type: z.string().default(\"json\").describe(\"The type of schema being defined. Always 'json'.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"A JSON Schema object defining the structure of the enrichment output. Only a subset of JSON Schema is supported.\"),\n}).passthrough().describe(\"JSON schema definition for enrichment output.\");\nconst ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema = z.object({\n processor: z.string().describe(\"Processor used for this enrichment.\").nullable(),\n mcp_servers: z.array(ParallelAddEnrichmentToFindAllRun_McpServerSchema).describe(\"List of MCP servers used for this enrichment.\").nullable().optional(),\n output_schema: ParallelAddEnrichmentToFindAllRun_JsonSchemaSchema.nullable(),\n}).passthrough().describe(\"Enrichment configuration for a FindAll run.\");\nconst ParallelAddEnrichmentToFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Name of the match condition.\").nullable(),\n description: z.string().describe(\"Description of the match condition.\").nullable(),\n}).passthrough();\nexport const ParallelAddEnrichmentToFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"The generator of the FindAll run.\").nullable(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(ParallelAddEnrichmentToFindAllRun_EnrichmentInputSchema).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelAddEnrichmentToFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelAddEnrichmentToFindAllRun: AppAction<\n typeof ParallelAddEnrichmentToFindAllRunInput,\n typeof ParallelAddEnrichmentToFindAllRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_ADD_ENRICHMENT_TO_FIND_ALL_RUN\", {\n slug: \"parallel-add-enrichment-to-find-all-run\",\n name: \"Add Enrichment to FindAll Run\",\n description: \"Tool to add an enrichment to a FindAll run. Use when you need to enrich existing FindAll run results with additional structured data fields. Enrichments define what information to extract from matched entities using a JSON schema.\",\n input: ParallelAddEnrichmentToFindAllRunInput,\n output: ParallelAddEnrichmentToFindAllRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAa,EAAE,MAAM,EAAE,OAAO;EAC9B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClK,eAAe,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH;CAC5K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,CAAC;AACD,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC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S,yCAAyC,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,+CAA+C;CAC5I,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-runs-to-task-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-runs-to-task-group.cjs","names":["z","action"],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddRunsToTaskGroupInput = z.object({\n inputs: z.array(z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Input data for the processor. Structure depends on the processor type.\"),\n webhook: z.record(z.string(), z.unknown()).describe(\"Optional webhook configuration for this task run.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for this task run.\").optional(),\n processor: z.string().describe(\"Processor to use for this task run (e.g., 'web_search', 'data_analysis').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n mcp_servers: z.record(z.string(), z.unknown()).describe(\"Optional MCP server configuration for this task run.\").optional(),\n enable_events: z.record(z.string(), z.unknown()).describe(\"Optional event configuration for this task run.\").optional(),\n source_policy: z.record(z.string(), z.unknown()).describe(\"Optional source policy configuration for this task run.\").optional(),\n previous_interaction_id: z.record(z.string(), z.unknown()).describe(\"Optional previous interaction ID for this task run.\").optional(),\n}).passthrough().describe(\"Individual task run input within a task group.\")).describe(\"List of task runs to execute. Up to 1,000 runs can be specified per request.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to add runs to.\"),\n default_task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n}).describe(\"Request model for adding runs to a task group.\");\nconst ParallelAddRunsToTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active (queued, running, cancelling).\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Number of task runs with each status.\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelAddRunsToTaskGroupOutput = z.object({\n status: ParallelAddRunsToTaskGroup_TaskGroupStatusSchema.nullable(),\n run_ids: z.array(z.string()).describe(\"IDs of the newly created runs.\"),\n run_cursor: z.string().describe(\"Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n event_cursor: z.string().describe(\"Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for adding runs to a task group.\");\n\nexport const parallelAddRunsToTaskGroup = action(\"PARALLEL_ADD_RUNS_TO_TASK_GROUP\", {\n slug: \"parallel-add-runs-to-task-group\",\n name: \"Add Runs to Task Group\",\n description: \"Tool to initiate multiple task runs within a TaskGroup. Use when you need to execute multiple tasks in parallel within an existing task group.\",\n input: ParallelAddRunsToTaskGroupInput,\n output: ParallelAddRunsToTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,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AS,sCAAsC;AAChE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQ,iDAAiD,SAAS;CAClE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-runs-to-task-group.cjs","names":["z","action"],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelAddRunsToTaskGroupInput = z.object({\n inputs: z.array(z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Input data for the processor. Structure depends on the processor type.\"),\n webhook: z.record(z.string(), z.unknown()).describe(\"Optional webhook configuration for this task run.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for this task run.\").optional(),\n processor: z.string().describe(\"Processor to use for this task run (e.g., 'web_search', 'data_analysis').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n mcp_servers: z.record(z.string(), z.unknown()).describe(\"Optional MCP server configuration for this task run.\").optional(),\n enable_events: z.record(z.string(), z.unknown()).describe(\"Optional event configuration for this task run.\").optional(),\n source_policy: z.record(z.string(), z.unknown()).describe(\"Optional source policy configuration for this task run.\").optional(),\n previous_interaction_id: z.record(z.string(), z.unknown()).describe(\"Optional previous interaction ID for this task run.\").optional(),\n}).passthrough().describe(\"Individual task run input within a task group.\")).describe(\"List of task runs to execute. Up to 1,000 runs can be specified per request.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to add runs to.\"),\n default_task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n}).describe(\"Request model for adding runs to a task group.\");\nconst ParallelAddRunsToTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active (queued, running, cancelling).\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Number of task runs with each status.\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelAddRunsToTaskGroupOutput = z.object({\n status: ParallelAddRunsToTaskGroup_TaskGroupStatusSchema.nullable(),\n run_ids: z.array(z.string()).describe(\"IDs of the newly created runs.\"),\n run_cursor: z.string().describe(\"Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n event_cursor: z.string().describe(\"Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for adding runs to a task group.\");\n\nexport const parallelAddRunsToTaskGroup: AppAction<\n typeof ParallelAddRunsToTaskGroupInput,\n typeof ParallelAddRunsToTaskGroupOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_ADD_RUNS_TO_TASK_GROUP\", {\n slug: \"parallel-add-runs-to-task-group\",\n name: \"Add Runs to Task Group\",\n description: \"Tool to initiate multiple task runs within a TaskGroup. Use when you need to execute multiple tasks in parallel within an existing task group.\",\n input: ParallelAddRunsToTaskGroupInput,\n output: ParallelAddRunsToTaskGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;EAC1H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EAC1G,WAAWA,IAAAA,EAAE,OAAO;GACpB,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GACxH,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAChF,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,C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AC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQ,iDAAiD,SAAS;CAClE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-runs-to-task-group.d.ts
@@ -34,40 +36,7 @@ declare const ParallelAddRunsToTaskGroupOutput: z.ZodObject<{
34
36
  run_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  event_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
38
  }, z.core.$loose>;
37
- declare const parallelAddRunsToTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
38
- inputs: {
39
- [x: string]: unknown;
40
- input: Record<string, unknown>;
41
- processor: string;
42
- webhook?: Record<string, unknown> | undefined;
43
- metadata?: Record<string, unknown> | undefined;
44
- task_spec?: {
45
- output_schema: Record<string, unknown>;
46
- input_schema?: Record<string, unknown> | undefined;
47
- } | undefined;
48
- mcp_servers?: Record<string, unknown> | undefined;
49
- enable_events?: Record<string, unknown> | undefined;
50
- source_policy?: Record<string, unknown> | undefined;
51
- previous_interaction_id?: Record<string, unknown> | undefined;
52
- }[];
53
- taskgroup_id: string;
54
- default_task_spec?: {
55
- output_schema: Record<string, unknown>;
56
- input_schema?: Record<string, unknown> | undefined;
57
- } | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- }, z.core.$strip>>]>;
39
+ declare const parallelAddRunsToTaskGroup: AppAction<typeof ParallelAddRunsToTaskGroupInput, typeof ParallelAddRunsToTaskGroupOutput, typeof parallel.credential>;
71
40
  //#endregion
72
41
  export { parallelAddRunsToTaskGroup };
73
42
  //# sourceMappingURL=add-runs-to-task-group.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-runs-to-task-group.d.cts","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-runs-to-task-group.d.cts","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-runs-to-task-group.d.ts
@@ -34,40 +36,7 @@ declare const ParallelAddRunsToTaskGroupOutput: z.ZodObject<{
34
36
  run_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  event_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
38
  }, z.core.$loose>;
37
- declare const parallelAddRunsToTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
38
- inputs: {
39
- [x: string]: unknown;
40
- input: Record<string, unknown>;
41
- processor: string;
42
- webhook?: Record<string, unknown> | undefined;
43
- metadata?: Record<string, unknown> | undefined;
44
- task_spec?: {
45
- output_schema: Record<string, unknown>;
46
- input_schema?: Record<string, unknown> | undefined;
47
- } | undefined;
48
- mcp_servers?: Record<string, unknown> | undefined;
49
- enable_events?: Record<string, unknown> | undefined;
50
- source_policy?: Record<string, unknown> | undefined;
51
- previous_interaction_id?: Record<string, unknown> | undefined;
52
- }[];
53
- taskgroup_id: string;
54
- default_task_spec?: {
55
- output_schema: Record<string, unknown>;
56
- input_schema?: Record<string, unknown> | undefined;
57
- } | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- }, z.core.$strip>>]>;
39
+ declare const parallelAddRunsToTaskGroup: AppAction<typeof ParallelAddRunsToTaskGroupInput, typeof ParallelAddRunsToTaskGroupOutput, typeof parallel.credential>;
71
40
  //#endregion
72
41
  export { parallelAddRunsToTaskGroup };
73
42
  //# sourceMappingURL=add-runs-to-task-group.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-runs-to-task-group.d.mts","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-runs-to-task-group.d.mts","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-runs-to-task-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-runs-to-task-group.mjs","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddRunsToTaskGroupInput = z.object({\n inputs: z.array(z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Input data for the processor. Structure depends on the processor type.\"),\n webhook: z.record(z.string(), z.unknown()).describe(\"Optional webhook configuration for this task run.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for this task run.\").optional(),\n processor: z.string().describe(\"Processor to use for this task run (e.g., 'web_search', 'data_analysis').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n mcp_servers: z.record(z.string(), z.unknown()).describe(\"Optional MCP server configuration for this task run.\").optional(),\n enable_events: z.record(z.string(), z.unknown()).describe(\"Optional event configuration for this task run.\").optional(),\n source_policy: z.record(z.string(), z.unknown()).describe(\"Optional source policy configuration for this task run.\").optional(),\n previous_interaction_id: z.record(z.string(), z.unknown()).describe(\"Optional previous interaction ID for this task run.\").optional(),\n}).passthrough().describe(\"Individual task run input within a task group.\")).describe(\"List of task runs to execute. Up to 1,000 runs can be specified per request.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to add runs to.\"),\n default_task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n}).describe(\"Request model for adding runs to a task group.\");\nconst ParallelAddRunsToTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active (queued, running, cancelling).\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Number of task runs with each status.\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelAddRunsToTaskGroupOutput = z.object({\n status: ParallelAddRunsToTaskGroup_TaskGroupStatusSchema.nullable(),\n run_ids: z.array(z.string()).describe(\"IDs of the newly created runs.\"),\n run_cursor: z.string().describe(\"Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n event_cursor: z.string().describe(\"Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for adding runs to a task group.\");\n\nexport const parallelAddRunsToTaskGroup = action(\"PARALLEL_ADD_RUNS_TO_TASK_GROUP\", {\n slug: \"parallel-add-runs-to-task-group\",\n name: \"Add Runs to Task Group\",\n description: \"Tool to initiate multiple task runs within a TaskGroup. Use when you need to execute multiple tasks in parallel within an existing task group.\",\n input: ParallelAddRunsToTaskGroupInput,\n output: ParallelAddRunsToTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;EAC1H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EAC1G,WAAW,EAAE,OAAO;GACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GACxH,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD;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AAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,QAAQ,iDAAiD,SAAS;EAClE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-runs-to-task-group.mjs","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelAddRunsToTaskGroupInput = z.object({\n inputs: z.array(z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Input data for the processor. Structure depends on the processor type.\"),\n webhook: z.record(z.string(), z.unknown()).describe(\"Optional webhook configuration for this task run.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for this task run.\").optional(),\n processor: z.string().describe(\"Processor to use for this task run (e.g., 'web_search', 'data_analysis').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n mcp_servers: z.record(z.string(), z.unknown()).describe(\"Optional MCP server configuration for this task run.\").optional(),\n enable_events: z.record(z.string(), z.unknown()).describe(\"Optional event configuration for this task run.\").optional(),\n source_policy: z.record(z.string(), z.unknown()).describe(\"Optional source policy configuration for this task run.\").optional(),\n previous_interaction_id: z.record(z.string(), z.unknown()).describe(\"Optional previous interaction ID for this task run.\").optional(),\n}).passthrough().describe(\"Individual task run input within a task group.\")).describe(\"List of task runs to execute. Up to 1,000 runs can be specified per request.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to add runs to.\"),\n default_task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n}).describe(\"Request model for adding runs to a task group.\");\nconst ParallelAddRunsToTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active (queued, running, cancelling).\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Number of task runs with each status.\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelAddRunsToTaskGroupOutput = z.object({\n status: ParallelAddRunsToTaskGroup_TaskGroupStatusSchema.nullable(),\n run_ids: z.array(z.string()).describe(\"IDs of the newly created runs.\"),\n run_cursor: z.string().describe(\"Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n event_cursor: z.string().describe(\"Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for adding runs to a task group.\");\n\nexport const parallelAddRunsToTaskGroup: AppAction<\n typeof ParallelAddRunsToTaskGroupInput,\n typeof ParallelAddRunsToTaskGroupOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_ADD_RUNS_TO_TASK_GROUP\", {\n slug: \"parallel-add-runs-to-task-group\",\n name: \"Add Runs to Task Group\",\n description: \"Tool to initiate multiple task runs within a TaskGroup. Use when you need to execute multiple tasks in parallel within an existing task group.\",\n input: ParallelAddRunsToTaskGroupInput,\n output: ParallelAddRunsToTaskGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;EAC1H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EAC1G,WAAW,EAAE,OAAO;GACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GACxH,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACzH,eAA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AC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,6BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB8C,EAAE,OAAO;EACvD,QAAQ,iDAAiD,SAAS;EAClE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/cancel-find-all-run.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAAqH;AAE9M,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun: AppAction<\n typeof ParallelCancelFindAllRunInput,\n typeof ParallelCancelFindAllRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAAqH;AAE9M,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-find-all-run.d.ts
@@ -5,21 +7,7 @@ declare const ParallelCancelFindAllRunInput: z.ZodObject<{
5
7
  findall_id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const ParallelCancelFindAllRunOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const parallelCancelFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- findall_id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- generic_api_key: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const parallelCancelFindAllRun: AppAction<typeof ParallelCancelFindAllRunInput, typeof ParallelCancelFindAllRunOutput, typeof parallel.credential>;
23
11
  //#endregion
24
12
  export { parallelCancelFindAllRun };
25
13
  //# sourceMappingURL=cancel-find-all-run.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-find-all-run.d.cts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"cancel-find-all-run.d.cts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-find-all-run.d.ts
@@ -5,21 +7,7 @@ declare const ParallelCancelFindAllRunInput: z.ZodObject<{
5
7
  findall_id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const ParallelCancelFindAllRunOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const parallelCancelFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- findall_id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- generic_api_key: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const parallelCancelFindAllRun: AppAction<typeof ParallelCancelFindAllRunInput, typeof ParallelCancelFindAllRunOutput, typeof parallel.credential>;
23
11
  //#endregion
24
12
  export { parallelCancelFindAllRun };
25
13
  //# sourceMappingURL=cancel-find-all-run.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-find-all-run.d.mts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"cancel-find-all-run.d.mts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const parallelCancelFindAllRun = action("PARALLEL_CANCEL_FIND_ALL_RUN", {
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-find-all-run.mjs","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2C,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAOS;CACP,QAP4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAO/E;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-find-all-run.mjs","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun: AppAction<\n typeof ParallelCancelFindAllRunInput,\n typeof ParallelCancelFindAllRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;;AAWA,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2C,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAWS;CACP,QAX4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAW/E;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-chat-completions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateChatCompletionsInput = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A single message in a chat conversation.\")).describe(\"The messages to use for chat completions. Must contain at least one message.\"),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n temperature: z.number().describe(\"The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format (text, json_object, or json_schema).\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition when type is json_schema.\").optional(),\n}).describe(\"Response format configuration for chat completions.\").optional(),\n presence_penalty: z.number().describe(\"The presence penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n frequency_penalty: z.number().describe(\"The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n}).describe(\"Request model for chat completions endpoint.\");\nconst ParallelCreateChatCompletions_FieldBasisSchema = z.object({\n field: z.string().describe(\"The field name being supported.\").nullable(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of citations supporting this field.\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning explaining how the field value was derived.\").nullable(),\n confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Citations and reasoning supporting one field of a task output.\");\nconst ParallelCreateChatCompletions_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt messages.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable(),\n prompt_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of prompt tokens.\").nullable().optional(),\n completion_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of completion tokens.\").nullable().optional(),\n}).passthrough().describe(\"Token usage information for the completion.\");\nconst ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n content: z.string().describe(\"Content of the message delta.\").nullable().optional(),\n}).passthrough().describe(\"Delta content in a streaming chat completion choice.\");\nconst ParallelCreateChatCompletions_MessageContentSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Audio content if applicable.\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n refusal: z.string().describe(\"Refusal message if applicable.\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls if applicable.\").nullable().optional(),\n annotations: z.array(z.record(z.string(), z.unknown())).describe(\"Annotations for the message.\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Function call details if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Content of a message in a chat completion choice.\");\nconst ParallelCreateChatCompletions_ChoiceSchema = z.object({\n delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),\n index: z.number().int().describe(\"Index of this choice in the choices array.\").nullable(),\n message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),\n logprobs: z.record(z.string(), z.unknown()).describe(\"Log probabilities for the generated tokens, if requested.\").nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished (e.g., 'stop', 'length', 'content_filter').\").nullable().optional(),\n}).passthrough().describe(\"A single choice in the chat completion response.\");\nexport const ParallelCreateChatCompletionsOutput = z.object({\n id: z.string().describe(\"The unique identifier for this completion.\").nullable(),\n basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe(\"Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.\").nullable().optional(),\n model: z.string().describe(\"The model used for this completion.\").nullable(),\n usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'chat.completion' or similar.\").nullable(),\n choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe(\"List of completion choices. Typically contains one choice.\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request.\").nullable().optional(),\n system_fingerprint: z.string().describe(\"Unique identifier for the backend configuration that produced this response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS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AM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelCreateChatCompletionsInput = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A single message in a chat conversation.\")).describe(\"The messages to use for chat completions. Must contain at least one message.\"),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n temperature: z.number().describe(\"The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format (text, json_object, or json_schema).\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition when type is json_schema.\").optional(),\n}).describe(\"Response format configuration for chat completions.\").optional(),\n presence_penalty: z.number().describe(\"The presence penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n frequency_penalty: z.number().describe(\"The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n}).describe(\"Request model for chat completions endpoint.\");\nconst ParallelCreateChatCompletions_FieldBasisSchema = z.object({\n field: z.string().describe(\"The field name being supported.\").nullable(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of citations supporting this field.\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning explaining how the field value was derived.\").nullable(),\n confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Citations and reasoning supporting one field of a task output.\");\nconst ParallelCreateChatCompletions_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt messages.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable(),\n prompt_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of prompt tokens.\").nullable().optional(),\n completion_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of completion tokens.\").nullable().optional(),\n}).passthrough().describe(\"Token usage information for the completion.\");\nconst ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n content: z.string().describe(\"Content of the message delta.\").nullable().optional(),\n}).passthrough().describe(\"Delta content in a streaming chat completion choice.\");\nconst ParallelCreateChatCompletions_MessageContentSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Audio content if applicable.\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n refusal: z.string().describe(\"Refusal message if applicable.\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls if applicable.\").nullable().optional(),\n annotations: z.array(z.record(z.string(), z.unknown())).describe(\"Annotations for the message.\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Function call details if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Content of a message in a chat completion choice.\");\nconst ParallelCreateChatCompletions_ChoiceSchema = z.object({\n delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),\n index: z.number().int().describe(\"Index of this choice in the choices array.\").nullable(),\n message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),\n logprobs: z.record(z.string(), z.unknown()).describe(\"Log probabilities for the generated tokens, if requested.\").nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished (e.g., 'stop', 'length', 'content_filter').\").nullable().optional(),\n}).passthrough().describe(\"A single choice in the chat completion response.\");\nexport const ParallelCreateChatCompletionsOutput = z.object({\n id: z.string().describe(\"The unique identifier for this completion.\").nullable(),\n basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe(\"Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.\").nullable().optional(),\n model: z.string().describe(\"The model used for this completion.\").nullable(),\n usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'chat.completion' or similar.\").nullable(),\n choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe(\"List of completion choices. Typically contains one choice.\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request.\").nullable().optional(),\n system_fingerprint: z.string().describe(\"Unique identifier for the backend configuration that produced this response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions: AppAction<\n typeof ParallelCreateChatCompletionsInput,\n typeof ParallelCreateChatCompletionsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC7J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACxI,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACnI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAC5J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,E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AAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,OAAO,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parallel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-chat-completions.d.ts
@@ -68,38 +70,7 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
68
70
  service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
71
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
72
  }, z.core.$loose>;
71
- declare const parallelCreateChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<{
72
- model: string;
73
- messages: {
74
- [x: string]: unknown;
75
- role: "user" | "system" | "assistant" | "tool";
76
- content: string;
77
- name?: string | undefined;
78
- }[];
79
- n?: number | undefined;
80
- top_p?: number | undefined;
81
- stream?: boolean | undefined;
82
- max_tokens?: number | undefined;
83
- temperature?: number | undefined;
84
- response_format?: {
85
- type: "json_schema" | "text" | "json_object";
86
- json_schema?: Record<string, unknown> | undefined;
87
- } | undefined;
88
- presence_penalty?: number | undefined;
89
- frequency_penalty?: number | undefined;
90
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
91
- connectionId: z.ZodString;
92
- entityId: z.ZodString;
93
- instanceId: z.ZodString;
94
- }, z.core.$strip>, z.ZodObject<{
95
- generic_api_key: z.ZodString;
96
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
97
- connectionId: z.ZodString;
98
- entityId: z.ZodString;
99
- instanceId: z.ZodString;
100
- }, z.core.$strip>, z.ZodObject<{
101
- generic_api_key: z.ZodString;
102
- }, z.core.$strip>>]>;
73
+ declare const parallelCreateChatCompletions: AppAction<typeof ParallelCreateChatCompletionsInput, typeof ParallelCreateChatCompletionsOutput, typeof parallel.credential>;
103
74
  //#endregion
104
75
  export { parallelCreateChatCompletions };
105
76
  //# sourceMappingURL=create-chat-completions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}