@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,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/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.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.d.mts","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.mts","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"}
@@ -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/create-chat-completions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.mjs","names":[],"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,qCAAqC,EAAE,OAAO;CACzD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC7J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACxI,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACnI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAC5J,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACpJ,iBAAiB,EAAE,OAAO;EAC1B,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAe;EAAa,CAAC,CAAC,CAAC,SAAS,kEAAkE;EAChI,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completions.mjs","names":[],"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 reas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hB;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-monitor.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-monitor.cjs","names":["z","action"],"sources":["../../src/actions/create-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateMonitorInput = z.object({\n query: z.string().describe(\"Search query to monitor for material changes.\"),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Frequency at which the monitor runs: hourly, daily, weekly, or every_two_weeks.\"),\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").optional(),\n}).describe(\"Webhook configuration for monitor notifications.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.\").optional(),\n output_schema: z.object({\n type: z.string().describe(\"Type identifier for the schema.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\").optional(),\n}).describe(\"Request model for creating a web monitor.\");\nconst ParallelCreateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelCreateMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelCreateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor notifications.\");\nconst ParallelCreateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type identifier for the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelCreateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of monitor creation in ISO 8601 format.\").nullable(),\n monitor_id: z.string().describe(\"Unique identifier for the created monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last execution of the monitor in ISO 8601 format.\").nullable().optional(),\n output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing monitor details.\");\n\nexport const parallelCreateMonitor = action(\"PARALLEL_CREATE_MONITOR\", {\n slug: \"parallel-create-monitor\",\n name: \"Create Monitor\",\n description: \"Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.\",\n input: ParallelCreateMonitorInput,\n output: ParallelCreateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,iFAAiF;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,aAAaA,IAAAA,EAAE,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IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,0CAA0C,SAAS;CAC3D,SAAS,2CAA2C,SAAS;CAC7D,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-monitor.cjs","names":["z","action"],"sources":["../../src/actions/create-monitor.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 ParallelCreateMonitorInput = z.object({\n query: z.string().describe(\"Search query to monitor for material changes.\"),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Frequency at which the monitor runs: hourly, daily, weekly, or every_two_weeks.\"),\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").optional(),\n}).describe(\"Webhook configuration for monitor notifications.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.\").optional(),\n output_schema: z.object({\n type: z.string().describe(\"Type identifier for the schema.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\").optional(),\n}).describe(\"Request model for creating a web monitor.\");\nconst ParallelCreateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelCreateMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelCreateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor notifications.\");\nconst ParallelCreateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type identifier for the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelCreateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of monitor creation in ISO 8601 format.\").nullable(),\n monitor_id: z.string().describe(\"Unique identifier for the created monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last execution of the monitor in ISO 8601 format.\").nullable().optional(),\n output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing monitor details.\");\n\nexport const parallelCreateMonitor: AppAction<\n typeof ParallelCreateMonitorInput,\n typeof ParallelCreateMonitorOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_MONITOR\", {\n slug: \"parallel-create-monitor\",\n name: \"Create Monitor\",\n description: \"Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.\",\n input: ParallelCreateMonitorInput,\n output: ParallelCreateMonitorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,iFAAiF;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wXA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,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,0CAA0C,SAAS;CAC3D,SAAS,2CAA2C,SAAS;CAC7D,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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-monitor.d.ts
@@ -44,31 +46,7 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
44
46
  json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
47
  }, z.core.$loose>>>;
46
48
  }, z.core.$loose>;
47
- declare const parallelCreateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
48
- query: string;
49
- cadence: "daily" | "weekly" | "hourly" | "every_two_weeks";
50
- webhook?: {
51
- url: string;
52
- event_types?: string[] | undefined;
53
- } | undefined;
54
- metadata?: Record<string, unknown> | undefined;
55
- output_schema?: {
56
- json_schema: Record<string, unknown>;
57
- type?: string | undefined;
58
- } | undefined;
59
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
60
- connectionId: z.ZodString;
61
- entityId: z.ZodString;
62
- instanceId: z.ZodString;
63
- }, z.core.$strip>, z.ZodObject<{
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
66
- connectionId: z.ZodString;
67
- entityId: z.ZodString;
68
- instanceId: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>;
49
+ declare const parallelCreateMonitor: AppAction<typeof ParallelCreateMonitorInput, typeof ParallelCreateMonitorOutput, typeof parallel.credential>;
72
50
  //#endregion
73
51
  export { parallelCreateMonitor };
74
52
  //# sourceMappingURL=create-monitor.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-monitor.d.cts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-monitor.d.cts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/create-monitor.d.ts
@@ -44,31 +46,7 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
44
46
  json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
47
  }, z.core.$loose>>>;
46
48
  }, z.core.$loose>;
47
- declare const parallelCreateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
48
- query: string;
49
- cadence: "daily" | "weekly" | "hourly" | "every_two_weeks";
50
- webhook?: {
51
- url: string;
52
- event_types?: string[] | undefined;
53
- } | undefined;
54
- metadata?: Record<string, unknown> | undefined;
55
- output_schema?: {
56
- json_schema: Record<string, unknown>;
57
- type?: string | undefined;
58
- } | undefined;
59
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
60
- connectionId: z.ZodString;
61
- entityId: z.ZodString;
62
- instanceId: z.ZodString;
63
- }, z.core.$strip>, z.ZodObject<{
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
66
- connectionId: z.ZodString;
67
- entityId: z.ZodString;
68
- instanceId: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>;
49
+ declare const parallelCreateMonitor: AppAction<typeof ParallelCreateMonitorInput, typeof ParallelCreateMonitorOutput, typeof parallel.credential>;
72
50
  //#endregion
73
51
  export { parallelCreateMonitor };
74
52
  //# sourceMappingURL=create-monitor.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-monitor.d.mts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-monitor.d.mts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/create-monitor.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-monitor.mjs","names":[],"sources":["../../src/actions/create-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateMonitorInput = z.object({\n query: z.string().describe(\"Search query to monitor for material changes.\"),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Frequency at which the monitor runs: hourly, daily, weekly, or every_two_weeks.\"),\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").optional(),\n}).describe(\"Webhook configuration for monitor notifications.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.\").optional(),\n output_schema: z.object({\n type: z.string().describe(\"Type identifier for the schema.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\").optional(),\n}).describe(\"Request model for creating a web monitor.\");\nconst ParallelCreateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelCreateMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelCreateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor notifications.\");\nconst ParallelCreateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type identifier for the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelCreateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of monitor creation in ISO 8601 format.\").nullable(),\n monitor_id: z.string().describe(\"Unique identifier for the created monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last execution of the monitor in ISO 8601 format.\").nullable().optional(),\n output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing monitor details.\");\n\nexport const parallelCreateMonitor = action(\"PARALLEL_CREATE_MONITOR\", {\n slug: \"parallel-create-monitor\",\n name: \"Create Monitor\",\n description: \"Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.\",\n input: ParallelCreateMonitorInput,\n output: ParallelCreateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,SAAS,EAAE,KAAK;EA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ACjF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAa3E,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,QAAQ,0CAA0C,SAAS;EAC3D,SAAS,2CAA2C,SAAS;EAC7D,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-monitor.mjs","names":[],"sources":["../../src/actions/create-monitor.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 ParallelCreateMonitorInput = z.object({\n query: z.string().describe(\"Search query to monitor for material changes.\"),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Frequency at which the monitor runs: hourly, daily, weekly, or every_two_weeks.\"),\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").optional(),\n}).describe(\"Webhook configuration for monitor notifications.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.\").optional(),\n output_schema: z.object({\n type: z.string().describe(\"Type identifier for the schema.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\").optional(),\n}).describe(\"Request model for creating a web monitor.\");\nconst ParallelCreateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelCreateMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelCreateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor notifications.\");\nconst ParallelCreateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type identifier for the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelCreateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of monitor creation in ISO 8601 format.\").nullable(),\n monitor_id: z.string().describe(\"Unique identifier for the created monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last execution of the monitor in ISO 8601 format.\").nullable().optional(),\n output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing monitor details.\");\n\nexport const parallelCreateMonitor: AppAction<\n typeof ParallelCreateMonitorInput,\n typeof ParallelCreateMonitorOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_MONITOR\", {\n slug: \"parallel-create-monitor\",\n name: \"Create Monitor\",\n description: \"Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.\",\n input: ParallelCreateMonitorInput,\n output: ParallelCreateMonitorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,SAAS,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,iFAAiF;CAC5J,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wXAAwX,CAAC,CAAC,SAAS;CACxb,eAAe,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gD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AO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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-task-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-group.cjs","names":["z","action"],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").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(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).passthrough().describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,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,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQ,8CAA8C,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-task-group.cjs","names":["z","action"],"sources":["../../src/actions/create-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 ParallelCreateTaskGroupInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").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(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).passthrough().describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup: AppAction<\n typeof ParallelCreateTaskGroupInput,\n typeof ParallelCreateTaskGroupOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,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,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQ,8CAA8C,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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-task-group.d.ts
@@ -16,21 +18,7 @@ declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
16
18
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  taskgroup_id: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- metadata?: Record<string, unknown> | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
21
+ declare const parallelCreateTaskGroup: AppAction<typeof ParallelCreateTaskGroupInput, typeof ParallelCreateTaskGroupOutput, typeof parallel.credential>;
34
22
  //#endregion
35
23
  export { parallelCreateTaskGroup };
36
24
  //# sourceMappingURL=create-task-group.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-group.d.cts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-task-group.d.cts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/create-task-group.d.ts
@@ -16,21 +18,7 @@ declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
16
18
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  taskgroup_id: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- metadata?: Record<string, unknown> | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
21
+ declare const parallelCreateTaskGroup: AppAction<typeof ParallelCreateTaskGroupInput, typeof ParallelCreateTaskGroupOutput, typeof parallel.credential>;
34
22
  //#endregion
35
23
  export { parallelCreateTaskGroup };
36
24
  //# sourceMappingURL=create-task-group.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-group.d.mts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-task-group.d.mts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/create-task-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").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(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).passthrough().describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2C,EAAE,OAAO;EACpD,QAAQ,8CAA8C,SAAS;EAC/D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-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 ParallelCreateTaskGroupInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").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(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).passthrough().describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup: AppAction<\n typeof ParallelCreateTaskGroupInput,\n typeof ParallelCreateTaskGroupOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB2C,EAAE,OAAO;EACpD,QAAQ,8CAA8C,SAAS;EAC/D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;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-task-run.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-run.cjs","names":["z","action"],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAA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AM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAU;CAAmB;CAAW;CAAa;CAAU;CAAc;AAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC7L,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQ,0CAA0C,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-task-run.cjs","names":["z","action"],"sources":["../../src/actions/create-task-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 ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun: AppAction<\n typeof ParallelCreateTaskRunInput,\n typeof ParallelCreateTaskRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,I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,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAU;CAAmB;CAAW;CAAa;CAAU;CAAc;AAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC7L,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQ,0CAA0C,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,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-task-run.d.ts
@@ -41,40 +43,7 @@ declare const ParallelCreateTaskRunOutput: z.ZodObject<{
41
43
  modified_at: z.ZodNullable<z.ZodString>;
42
44
  interaction_id: z.ZodNullable<z.ZodString>;
43
45
  }, z.core.$loose>;
44
- declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- input: string | Record<string, unknown>;
46
- processor: string;
47
- webhook?: {
48
- url: string;
49
- event_types?: string[] | undefined;
50
- } | undefined;
51
- metadata?: Record<string, unknown> | undefined;
52
- task_spec?: {
53
- output_schema: Record<string, unknown>;
54
- input_schema?: Record<string, unknown> | undefined;
55
- } | undefined;
56
- mcp_servers?: Record<string, unknown>[] | undefined;
57
- enable_events?: boolean | undefined;
58
- parallel_beta?: string | undefined;
59
- source_policy?: {
60
- after_date?: string | undefined;
61
- exclude_domains?: string[] | undefined;
62
- include_domains?: string[] | undefined;
63
- } | undefined;
64
- previous_interaction_id?: string | undefined;
65
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
66
- connectionId: z.ZodString;
67
- entityId: z.ZodString;
68
- instanceId: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
72
- connectionId: z.ZodString;
73
- entityId: z.ZodString;
74
- instanceId: z.ZodString;
75
- }, z.core.$strip>, z.ZodObject<{
76
- generic_api_key: z.ZodString;
77
- }, z.core.$strip>>]>;
46
+ declare const parallelCreateTaskRun: AppAction<typeof ParallelCreateTaskRunInput, typeof ParallelCreateTaskRunOutput, typeof parallel.credential>;
78
47
  //#endregion
79
48
  export { parallelCreateTaskRun };
80
49
  //# sourceMappingURL=create-task-run.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-run.d.cts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-task-run.d.cts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/create-task-run.d.ts
@@ -41,40 +43,7 @@ declare const ParallelCreateTaskRunOutput: z.ZodObject<{
41
43
  modified_at: z.ZodNullable<z.ZodString>;
42
44
  interaction_id: z.ZodNullable<z.ZodString>;
43
45
  }, z.core.$loose>;
44
- declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- input: string | Record<string, unknown>;
46
- processor: string;
47
- webhook?: {
48
- url: string;
49
- event_types?: string[] | undefined;
50
- } | undefined;
51
- metadata?: Record<string, unknown> | undefined;
52
- task_spec?: {
53
- output_schema: Record<string, unknown>;
54
- input_schema?: Record<string, unknown> | undefined;
55
- } | undefined;
56
- mcp_servers?: Record<string, unknown>[] | undefined;
57
- enable_events?: boolean | undefined;
58
- parallel_beta?: string | undefined;
59
- source_policy?: {
60
- after_date?: string | undefined;
61
- exclude_domains?: string[] | undefined;
62
- include_domains?: string[] | undefined;
63
- } | undefined;
64
- previous_interaction_id?: string | undefined;
65
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
66
- connectionId: z.ZodString;
67
- entityId: z.ZodString;
68
- instanceId: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
72
- connectionId: z.ZodString;
73
- entityId: z.ZodString;
74
- instanceId: z.ZodString;
75
- }, z.core.$strip>, z.ZodObject<{
76
- generic_api_key: z.ZodString;
77
- }, z.core.$strip>>]>;
46
+ declare const parallelCreateTaskRun: AppAction<typeof ParallelCreateTaskRunInput, typeof ParallelCreateTaskRunOutput, typeof parallel.credential>;
78
47
  //#endregion
79
48
  export { parallelCreateTaskRun };
80
49
  //# sourceMappingURL=create-task-run.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-run.d.mts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-task-run.d.mts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/create-task-run.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC1M,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACrG,WAAW,EAAE,OAAO;EACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0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AG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-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 ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun: AppAction<\n typeof ParallelCreateTaskRunInput,\n typeof ParallelCreateTaskRunOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC1M,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACrG,WAAW,EAAE,OAAO;EACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE;CAChI,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACrN,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,sYAAsY,CAAC,C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