@keystrokehq/parallel 0.1.2 → 0.1.4

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 (205) hide show
  1. package/dist/actions/add-enrichment-to-find-all-run.cjs +6 -6
  2. package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
  3. package/dist/actions/add-enrichment-to-find-all-run.d.cts +8 -7
  4. package/dist/actions/add-enrichment-to-find-all-run.d.mts +8 -7
  5. package/dist/actions/add-enrichment-to-find-all-run.mjs +6 -6
  6. package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
  7. package/dist/actions/add-runs-to-task-group.cjs +4 -4
  8. package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
  9. package/dist/actions/add-runs-to-task-group.d.cts +5 -4
  10. package/dist/actions/add-runs-to-task-group.d.mts +5 -4
  11. package/dist/actions/add-runs-to-task-group.mjs +4 -4
  12. package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
  13. package/dist/actions/cancel-find-all-run.cjs +1 -1
  14. package/dist/actions/cancel-find-all-run.cjs.map +1 -1
  15. package/dist/actions/cancel-find-all-run.d.cts +1 -1
  16. package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
  17. package/dist/actions/cancel-find-all-run.d.mts +1 -1
  18. package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
  19. package/dist/actions/cancel-find-all-run.mjs +1 -1
  20. package/dist/actions/cancel-find-all-run.mjs.map +1 -1
  21. package/dist/actions/create-chat-completions.cjs +7 -7
  22. package/dist/actions/create-chat-completions.cjs.map +1 -1
  23. package/dist/actions/create-chat-completions.d.cts +10 -9
  24. package/dist/actions/create-chat-completions.d.cts.map +1 -1
  25. package/dist/actions/create-chat-completions.d.mts +10 -9
  26. package/dist/actions/create-chat-completions.d.mts.map +1 -1
  27. package/dist/actions/create-chat-completions.mjs +7 -7
  28. package/dist/actions/create-chat-completions.mjs.map +1 -1
  29. package/dist/actions/create-monitor.cjs +3 -3
  30. package/dist/actions/create-monitor.cjs.map +1 -1
  31. package/dist/actions/create-monitor.d.cts +3 -3
  32. package/dist/actions/create-monitor.d.mts +3 -3
  33. package/dist/actions/create-monitor.mjs +3 -3
  34. package/dist/actions/create-monitor.mjs.map +1 -1
  35. package/dist/actions/create-task-group.cjs +5 -5
  36. package/dist/actions/create-task-group.cjs.map +1 -1
  37. package/dist/actions/create-task-group.d.cts +6 -6
  38. package/dist/actions/create-task-group.d.mts +6 -6
  39. package/dist/actions/create-task-group.mjs +5 -5
  40. package/dist/actions/create-task-group.mjs.map +1 -1
  41. package/dist/actions/create-task-run.cjs +3 -3
  42. package/dist/actions/create-task-run.cjs.map +1 -1
  43. package/dist/actions/create-task-run.d.cts +6 -6
  44. package/dist/actions/create-task-run.d.mts +6 -6
  45. package/dist/actions/create-task-run.mjs +3 -3
  46. package/dist/actions/create-task-run.mjs.map +1 -1
  47. package/dist/actions/delete-monitor.cjs +3 -3
  48. package/dist/actions/delete-monitor.cjs.map +1 -1
  49. package/dist/actions/delete-monitor.d.cts +3 -3
  50. package/dist/actions/delete-monitor.d.mts +3 -3
  51. package/dist/actions/delete-monitor.mjs +3 -3
  52. package/dist/actions/delete-monitor.mjs.map +1 -1
  53. package/dist/actions/extend-find-all-run.cjs +2 -2
  54. package/dist/actions/extend-find-all-run.cjs.map +1 -1
  55. package/dist/actions/extend-find-all-run.d.cts +3 -3
  56. package/dist/actions/extend-find-all-run.d.mts +3 -3
  57. package/dist/actions/extend-find-all-run.mjs +2 -2
  58. package/dist/actions/extend-find-all-run.mjs.map +1 -1
  59. package/dist/actions/extract.cjs +7 -7
  60. package/dist/actions/extract.cjs.map +1 -1
  61. package/dist/actions/extract.d.cts +9 -7
  62. package/dist/actions/extract.d.mts +9 -7
  63. package/dist/actions/extract.mjs +7 -7
  64. package/dist/actions/extract.mjs.map +1 -1
  65. package/dist/actions/fetch-task-group-runs.cjs +11 -11
  66. package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
  67. package/dist/actions/fetch-task-group-runs.d.cts +16 -16
  68. package/dist/actions/fetch-task-group-runs.d.mts +16 -16
  69. package/dist/actions/fetch-task-group-runs.mjs +11 -11
  70. package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
  71. package/dist/actions/find-all.cjs +5 -5
  72. package/dist/actions/find-all.cjs.map +1 -1
  73. package/dist/actions/find-all.d.cts +10 -8
  74. package/dist/actions/find-all.d.cts.map +1 -1
  75. package/dist/actions/find-all.d.mts +10 -8
  76. package/dist/actions/find-all.d.mts.map +1 -1
  77. package/dist/actions/find-all.mjs +5 -5
  78. package/dist/actions/find-all.mjs.map +1 -1
  79. package/dist/actions/get-find-all-run-result.cjs +7 -7
  80. package/dist/actions/get-find-all-run-result.cjs.map +1 -1
  81. package/dist/actions/get-find-all-run-result.d.cts +11 -11
  82. package/dist/actions/get-find-all-run-result.d.mts +11 -11
  83. package/dist/actions/get-find-all-run-result.mjs +7 -7
  84. package/dist/actions/get-find-all-run-result.mjs.map +1 -1
  85. package/dist/actions/get-find-all-run-schema.cjs +2 -2
  86. package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
  87. package/dist/actions/get-find-all-run-schema.d.cts +3 -3
  88. package/dist/actions/get-find-all-run-schema.d.mts +3 -3
  89. package/dist/actions/get-find-all-run-schema.mjs +2 -2
  90. package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
  91. package/dist/actions/ingest-find-all-run.cjs +2 -2
  92. package/dist/actions/ingest-find-all-run.cjs.map +1 -1
  93. package/dist/actions/ingest-find-all-run.d.cts +3 -3
  94. package/dist/actions/ingest-find-all-run.d.mts +3 -3
  95. package/dist/actions/ingest-find-all-run.mjs +2 -2
  96. package/dist/actions/ingest-find-all-run.mjs.map +1 -1
  97. package/dist/actions/list-monitor-events.cjs +5 -5
  98. package/dist/actions/list-monitor-events.cjs.map +1 -1
  99. package/dist/actions/list-monitor-events.d.cts +5 -5
  100. package/dist/actions/list-monitor-events.d.mts +5 -5
  101. package/dist/actions/list-monitor-events.mjs +5 -5
  102. package/dist/actions/list-monitor-events.mjs.map +1 -1
  103. package/dist/actions/list-monitors.cjs +4 -4
  104. package/dist/actions/list-monitors.cjs.map +1 -1
  105. package/dist/actions/list-monitors.d.cts +4 -4
  106. package/dist/actions/list-monitors.d.mts +4 -4
  107. package/dist/actions/list-monitors.mjs +4 -4
  108. package/dist/actions/list-monitors.mjs.map +1 -1
  109. package/dist/actions/retrieve-event-group.cjs +4 -4
  110. package/dist/actions/retrieve-event-group.cjs.map +1 -1
  111. package/dist/actions/retrieve-event-group.d.cts +4 -4
  112. package/dist/actions/retrieve-event-group.d.mts +4 -4
  113. package/dist/actions/retrieve-event-group.mjs +4 -4
  114. package/dist/actions/retrieve-event-group.mjs.map +1 -1
  115. package/dist/actions/retrieve-find-all-run-status.cjs +3 -3
  116. package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
  117. package/dist/actions/retrieve-find-all-run-status.d.cts +5 -5
  118. package/dist/actions/retrieve-find-all-run-status.d.mts +5 -5
  119. package/dist/actions/retrieve-find-all-run-status.mjs +3 -3
  120. package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
  121. package/dist/actions/retrieve-monitor.cjs +2 -2
  122. package/dist/actions/retrieve-monitor.cjs.map +1 -1
  123. package/dist/actions/retrieve-monitor.d.cts +2 -2
  124. package/dist/actions/retrieve-monitor.d.mts +2 -2
  125. package/dist/actions/retrieve-monitor.mjs +2 -2
  126. package/dist/actions/retrieve-monitor.mjs.map +1 -1
  127. package/dist/actions/retrieve-task-group-run.cjs +2 -2
  128. package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
  129. package/dist/actions/retrieve-task-group-run.d.cts +4 -4
  130. package/dist/actions/retrieve-task-group-run.d.mts +4 -4
  131. package/dist/actions/retrieve-task-group-run.mjs +2 -2
  132. package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
  133. package/dist/actions/retrieve-task-group.cjs +1 -1
  134. package/dist/actions/retrieve-task-group.cjs.map +1 -1
  135. package/dist/actions/retrieve-task-group.d.cts +1 -1
  136. package/dist/actions/retrieve-task-group.d.mts +1 -1
  137. package/dist/actions/retrieve-task-group.mjs +1 -1
  138. package/dist/actions/retrieve-task-group.mjs.map +1 -1
  139. package/dist/actions/retrieve-task-run-input.cjs +4 -4
  140. package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
  141. package/dist/actions/retrieve-task-run-input.d.cts +4 -4
  142. package/dist/actions/retrieve-task-run-input.d.mts +4 -4
  143. package/dist/actions/retrieve-task-run-input.mjs +4 -4
  144. package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
  145. package/dist/actions/retrieve-task-run-result.cjs +2 -2
  146. package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
  147. package/dist/actions/retrieve-task-run-result.d.cts +2 -2
  148. package/dist/actions/retrieve-task-run-result.d.mts +2 -2
  149. package/dist/actions/retrieve-task-run-result.mjs +2 -2
  150. package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
  151. package/dist/actions/retrieve-task-run.cjs +3 -3
  152. package/dist/actions/retrieve-task-run.cjs.map +1 -1
  153. package/dist/actions/retrieve-task-run.d.cts +5 -5
  154. package/dist/actions/retrieve-task-run.d.mts +5 -5
  155. package/dist/actions/retrieve-task-run.mjs +3 -3
  156. package/dist/actions/retrieve-task-run.mjs.map +1 -1
  157. package/dist/actions/search.cjs +2 -2
  158. package/dist/actions/search.cjs.map +1 -1
  159. package/dist/actions/search.d.cts +2 -2
  160. package/dist/actions/search.d.mts +2 -2
  161. package/dist/actions/search.mjs +2 -2
  162. package/dist/actions/search.mjs.map +1 -1
  163. package/dist/actions/simulate-event.cjs +1 -1
  164. package/dist/actions/simulate-event.cjs.map +1 -1
  165. package/dist/actions/simulate-event.d.cts +1 -1
  166. package/dist/actions/simulate-event.d.mts +1 -1
  167. package/dist/actions/simulate-event.mjs +1 -1
  168. package/dist/actions/simulate-event.mjs.map +1 -1
  169. package/dist/actions/stream-find-all-events.cjs +14 -14
  170. package/dist/actions/stream-find-all-events.cjs.map +1 -1
  171. package/dist/actions/stream-find-all-events.d.cts +17 -17
  172. package/dist/actions/stream-find-all-events.d.mts +17 -17
  173. package/dist/actions/stream-find-all-events.mjs +14 -14
  174. package/dist/actions/stream-find-all-events.mjs.map +1 -1
  175. package/dist/actions/stream-task-group-events.cjs +8 -8
  176. package/dist/actions/stream-task-group-events.cjs.map +1 -1
  177. package/dist/actions/stream-task-group-events.d.cts +8 -8
  178. package/dist/actions/stream-task-group-events.d.mts +8 -8
  179. package/dist/actions/stream-task-group-events.mjs +8 -8
  180. package/dist/actions/stream-task-group-events.mjs.map +1 -1
  181. package/dist/actions/stream-task-run-events.cjs +8 -8
  182. package/dist/actions/stream-task-run-events.cjs.map +1 -1
  183. package/dist/actions/stream-task-run-events.d.cts +8 -8
  184. package/dist/actions/stream-task-run-events.d.mts +8 -8
  185. package/dist/actions/stream-task-run-events.mjs +8 -8
  186. package/dist/actions/stream-task-run-events.mjs.map +1 -1
  187. package/dist/actions/suggest-task.cjs +1 -1
  188. package/dist/actions/suggest-task.cjs.map +1 -1
  189. package/dist/actions/suggest-task.d.cts +1 -1
  190. package/dist/actions/suggest-task.d.mts +1 -1
  191. package/dist/actions/suggest-task.mjs +1 -1
  192. package/dist/actions/suggest-task.mjs.map +1 -1
  193. package/dist/actions/update-monitor.cjs +3 -3
  194. package/dist/actions/update-monitor.cjs.map +1 -1
  195. package/dist/actions/update-monitor.d.cts +3 -3
  196. package/dist/actions/update-monitor.d.mts +3 -3
  197. package/dist/actions/update-monitor.mjs +3 -3
  198. package/dist/actions/update-monitor.mjs.map +1 -1
  199. package/dist/catalog.cjs +1 -1
  200. package/dist/catalog.cjs.map +1 -1
  201. package/dist/catalog.d.cts +1 -1
  202. package/dist/catalog.d.mts +1 -1
  203. package/dist/catalog.mjs +1 -1
  204. package/dist/catalog.mjs.map +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateChatCompletionsInput = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).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}).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}).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}).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}).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}).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}).describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC7J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACxI,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SA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AC,SAAS,+CAA+C;AAE3D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateChatCompletionsInput = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A single message in a chat conversation.\")).describe(\"The messages to use for chat completions. Must contain at least one message.\"),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n temperature: z.number().describe(\"The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format (text, json_object, or json_schema).\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition when type is json_schema.\").optional(),\n}).describe(\"Response format configuration for chat completions.\").optional(),\n presence_penalty: z.number().describe(\"The presence penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n frequency_penalty: z.number().describe(\"The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n}).describe(\"Request model for chat completions endpoint.\");\nconst ParallelCreateChatCompletions_FieldBasisSchema = z.object({\n field: z.string().describe(\"The field name being supported.\").nullable(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of citations supporting this field.\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning explaining how the field value was derived.\").nullable(),\n confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Citations and reasoning supporting one field of a task output.\");\nconst ParallelCreateChatCompletions_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt messages.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable(),\n prompt_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of prompt tokens.\").nullable().optional(),\n completion_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of completion tokens.\").nullable().optional(),\n}).passthrough().describe(\"Token usage information for the completion.\");\nconst ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n content: z.string().describe(\"Content of the message delta.\").nullable().optional(),\n}).passthrough().describe(\"Delta content in a streaming chat completion choice.\");\nconst ParallelCreateChatCompletions_MessageContentSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Audio content if applicable.\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n refusal: z.string().describe(\"Refusal message if applicable.\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls if applicable.\").nullable().optional(),\n annotations: z.array(z.record(z.string(), z.unknown())).describe(\"Annotations for the message.\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Function call details if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Content of a message in a chat completion choice.\");\nconst ParallelCreateChatCompletions_ChoiceSchema = z.object({\n delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),\n index: z.number().int().describe(\"Index of this choice in the choices array.\").nullable(),\n message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),\n logprobs: z.record(z.string(), z.unknown()).describe(\"Log probabilities for the generated tokens, if requested.\").nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished (e.g., 'stop', 'length', 'content_filter').\").nullable().optional(),\n}).passthrough().describe(\"A single choice in the chat completion response.\");\nexport const ParallelCreateChatCompletionsOutput = z.object({\n id: z.string().describe(\"The unique identifier for this completion.\").nullable(),\n basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe(\"Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.\").nullable().optional(),\n model: z.string().describe(\"The model used for this completion.\").nullable(),\n usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'chat.completion' or similar.\").nullable(),\n choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe(\"List of completion choices. Typically contains one choice.\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request.\").nullable().optional(),\n system_fingerprint: z.string().describe(\"Unique identifier for the backend configuration that produced this response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,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C,CAAC,CAAC,SAAS,4DAA4D;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,14 +15,14 @@ declare const ParallelCreateChatCompletionsInput: z.ZodObject<{
15
15
  tool: "tool";
16
16
  }>;
17
17
  content: z.ZodString;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  max_tokens: z.ZodOptional<z.ZodNumber>;
20
20
  temperature: z.ZodOptional<z.ZodNumber>;
21
21
  response_format: z.ZodOptional<z.ZodObject<{
22
22
  type: z.ZodEnum<{
23
- json_schema: "json_schema";
24
23
  text: "text";
25
24
  json_object: "json_object";
25
+ json_schema: "json_schema";
26
26
  }>;
27
27
  json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
28
  }, z.core.$strip>>;
@@ -36,7 +36,7 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
36
36
  citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
37
37
  reasoning: z.ZodNullable<z.ZodString>;
38
38
  confidence: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
39
- }, z.core.$strip>>>>;
39
+ }, z.core.$loose>>>>;
40
40
  model: z.ZodNullable<z.ZodString>;
41
41
  usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  total_tokens: z.ZodNullable<z.ZodNumber>;
@@ -44,13 +44,13 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
44
44
  completion_tokens: z.ZodNullable<z.ZodNumber>;
45
45
  prompt_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
46
  completion_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  object: z.ZodNullable<z.ZodString>;
49
49
  choices: z.ZodArray<z.ZodObject<{
50
50
  delta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- }, z.core.$strip>>>;
53
+ }, z.core.$loose>>>;
54
54
  index: z.ZodNullable<z.ZodNumber>;
55
55
  message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
56
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -60,17 +60,18 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
60
60
  tool_calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
61
61
  annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
62
62
  function_call: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
- }, z.core.$strip>>>;
63
+ }, z.core.$loose>>>;
64
64
  logprobs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
65
65
  finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- }, z.core.$strip>>;
66
+ }, z.core.$loose>>;
67
67
  created: z.ZodNullable<z.ZodNumber>;
68
68
  service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- }, z.core.$strip>;
70
+ }, z.core.$loose>;
71
71
  declare const parallelCreateChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<{
72
72
  model: string;
73
73
  messages: {
74
+ [x: string]: unknown;
74
75
  role: "user" | "system" | "assistant" | "tool";
75
76
  content: string;
76
77
  name?: string | undefined;
@@ -81,7 +82,7 @@ declare const parallelCreateChatCompletions: import("@keystrokehq/action").Workf
81
82
  max_tokens?: number | undefined;
82
83
  temperature?: number | undefined;
83
84
  response_format?: {
84
- type: "json_schema" | "text" | "json_object";
85
+ type: "text" | "json_object" | "json_schema";
85
86
  json_schema?: Record<string, unknown> | undefined;
86
87
  } | undefined;
87
88
  presence_penalty?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
1
+ {"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
@@ -15,14 +15,14 @@ declare const ParallelCreateChatCompletionsInput: z.ZodObject<{
15
15
  tool: "tool";
16
16
  }>;
17
17
  content: z.ZodString;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  max_tokens: z.ZodOptional<z.ZodNumber>;
20
20
  temperature: z.ZodOptional<z.ZodNumber>;
21
21
  response_format: z.ZodOptional<z.ZodObject<{
22
22
  type: z.ZodEnum<{
23
- json_schema: "json_schema";
24
23
  text: "text";
25
24
  json_object: "json_object";
25
+ json_schema: "json_schema";
26
26
  }>;
27
27
  json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
28
  }, z.core.$strip>>;
@@ -36,7 +36,7 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
36
36
  citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
37
37
  reasoning: z.ZodNullable<z.ZodString>;
38
38
  confidence: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
39
- }, z.core.$strip>>>>;
39
+ }, z.core.$loose>>>>;
40
40
  model: z.ZodNullable<z.ZodString>;
41
41
  usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  total_tokens: z.ZodNullable<z.ZodNumber>;
@@ -44,13 +44,13 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
44
44
  completion_tokens: z.ZodNullable<z.ZodNumber>;
45
45
  prompt_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
46
  completion_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  object: z.ZodNullable<z.ZodString>;
49
49
  choices: z.ZodArray<z.ZodObject<{
50
50
  delta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- }, z.core.$strip>>>;
53
+ }, z.core.$loose>>>;
54
54
  index: z.ZodNullable<z.ZodNumber>;
55
55
  message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
56
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -60,17 +60,18 @@ declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
60
60
  tool_calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
61
61
  annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
62
62
  function_call: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
- }, z.core.$strip>>>;
63
+ }, z.core.$loose>>>;
64
64
  logprobs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
65
65
  finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- }, z.core.$strip>>;
66
+ }, z.core.$loose>>;
67
67
  created: z.ZodNullable<z.ZodNumber>;
68
68
  service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- }, z.core.$strip>;
70
+ }, z.core.$loose>;
71
71
  declare const parallelCreateChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<{
72
72
  model: string;
73
73
  messages: {
74
+ [x: string]: unknown;
74
75
  role: "user" | "system" | "assistant" | "tool";
75
76
  content: string;
76
77
  name?: string | undefined;
@@ -81,7 +82,7 @@ declare const parallelCreateChatCompletions: import("@keystrokehq/action").Workf
81
82
  max_tokens?: number | undefined;
82
83
  temperature?: number | undefined;
83
84
  response_format?: {
84
- type: "json_schema" | "text" | "json_object";
85
+ type: "text" | "json_object" | "json_schema";
85
86
  json_schema?: Record<string, unknown> | undefined;
86
87
  } | undefined;
87
88
  presence_penalty?: number | undefined;
@@ -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;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
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;;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
@@ -15,7 +15,7 @@ const ParallelCreateChatCompletionsInput = z.object({
15
15
  "tool"
16
16
  ]).describe("The role of the message sender (system, user, assistant, or tool)."),
17
17
  content: z.string().describe("The content of the message.")
18
- }).describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
18
+ }).passthrough().describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
19
19
  max_tokens: z.number().int().describe("The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.").optional(),
20
20
  temperature: z.number().describe("The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.").optional(),
21
21
  response_format: z.object({
@@ -34,18 +34,18 @@ const ParallelCreateChatCompletions_FieldBasisSchema = z.object({
34
34
  citations: z.array(z.record(z.string(), z.unknown())).describe("List of citations supporting this field.").nullable().optional(),
35
35
  reasoning: z.string().describe("Reasoning explaining how the field value was derived.").nullable(),
36
36
  confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional()
37
- }).describe("Citations and reasoning supporting one field of a task output.");
37
+ }).passthrough().describe("Citations and reasoning supporting one field of a task output.");
38
38
  const ParallelCreateChatCompletions_CompletionUsageSchema = z.object({
39
39
  total_tokens: z.number().int().describe("Total tokens used (prompt + completion).").nullable(),
40
40
  prompt_tokens: z.number().int().describe("Number of tokens in the prompt messages.").nullable(),
41
41
  completion_tokens: z.number().int().describe("Number of tokens in the generated completion.").nullable(),
42
42
  prompt_tokens_details: z.record(z.string(), z.unknown()).describe("Detailed breakdown of prompt tokens.").nullable().optional(),
43
43
  completion_tokens_details: z.record(z.string(), z.unknown()).describe("Detailed breakdown of completion tokens.").nullable().optional()
44
- }).describe("Token usage information for the completion.");
44
+ }).passthrough().describe("Token usage information for the completion.");
45
45
  const ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({
46
46
  role: z.string().describe("Role of the message sender.").nullable().optional(),
47
47
  content: z.string().describe("Content of the message delta.").nullable().optional()
48
- }).describe("Delta content in a streaming chat completion choice.");
48
+ }).passthrough().describe("Delta content in a streaming chat completion choice.");
49
49
  const ParallelCreateChatCompletions_MessageContentSchema = z.object({
50
50
  role: z.string().describe("Role of the message sender.").nullable().optional(),
51
51
  audio: z.record(z.string(), z.unknown()).describe("Audio content if applicable.").nullable().optional(),
@@ -54,14 +54,14 @@ const ParallelCreateChatCompletions_MessageContentSchema = z.object({
54
54
  tool_calls: z.array(z.record(z.string(), z.unknown())).describe("Tool calls if applicable.").nullable().optional(),
55
55
  annotations: z.array(z.record(z.string(), z.unknown())).describe("Annotations for the message.").nullable().optional(),
56
56
  function_call: z.record(z.string(), z.unknown()).describe("Function call details if applicable.").nullable().optional()
57
- }).describe("Content of a message in a chat completion choice.");
57
+ }).passthrough().describe("Content of a message in a chat completion choice.");
58
58
  const ParallelCreateChatCompletions_ChoiceSchema = z.object({
59
59
  delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),
60
60
  index: z.number().int().describe("Index of this choice in the choices array.").nullable(),
61
61
  message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),
62
62
  logprobs: z.record(z.string(), z.unknown()).describe("Log probabilities for the generated tokens, if requested.").nullable().optional(),
63
63
  finish_reason: z.string().describe("The reason the completion finished (e.g., 'stop', 'length', 'content_filter').").nullable().optional()
64
- }).describe("A single choice in the chat completion response.");
64
+ }).passthrough().describe("A single choice in the chat completion response.");
65
65
  const parallelCreateChatCompletions = action("PARALLEL_CREATE_CHAT_COMPLETIONS", {
66
66
  slug: "parallel-create-chat-completions",
67
67
  name: "Create Chat Completions",
@@ -77,7 +77,7 @@ const parallelCreateChatCompletions = action("PARALLEL_CREATE_CHAT_COMPLETIONS",
77
77
  created: z.number().int().describe("Unix timestamp (in seconds) of when the completion was created.").nullable(),
78
78
  service_tier: z.string().describe("The service tier used for processing the request.").nullable().optional(),
79
79
  system_fingerprint: z.string().describe("Unique identifier for the backend configuration that produced this response.").nullable().optional()
80
- }).describe("Response model for chat completions endpoint.")
80
+ }).passthrough().describe("Response model for chat completions endpoint.")
81
81
  });
82
82
  //#endregion
83
83
  export { parallelCreateChatCompletions };
@@ -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}).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}).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}).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}).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}).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}).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}).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,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAC9I,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,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,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
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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object({
30
30
  url: zod.z.string().describe("Webhook endpoint URL to receive monitor notifications.").nullable(),
31
31
  event_types: zod.z.array(zod.z.string()).describe("Event types to subscribe to for webhook notifications.").nullable().optional()
32
- }).describe("Webhook configuration for monitor notifications.");
32
+ }).passthrough().describe("Webhook configuration for monitor notifications.");
33
33
  const ParallelCreateMonitor_OutputSchemaSchema = zod.z.object({
34
34
  type: zod.z.string().describe("Type identifier for the schema.").nullable().optional(),
35
35
  json_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema definition for the monitor output.")
36
- }).describe("Output schema configuration for monitor events.");
36
+ }).passthrough().describe("Output schema configuration for monitor events.");
37
37
  const ParallelCreateMonitorOutput = zod.z.object({
38
38
  query: zod.z.string().describe("The query being monitored.").nullable(),
39
39
  status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),
@@ -44,7 +44,7 @@ const ParallelCreateMonitorOutput = zod.z.object({
44
44
  monitor_id: zod.z.string().describe("Unique identifier for the created monitor.").nullable(),
45
45
  last_run_at: zod.z.string().describe("Timestamp of the last execution of the monitor in ISO 8601 format.").nullable().optional(),
46
46
  output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional()
47
- }).describe("Response model containing monitor details.");
47
+ }).passthrough().describe("Response model containing monitor details.");
48
48
  const parallelCreateMonitor = require_action.action("PARALLEL_CREATE_MONITOR", {
49
49
  slug: "parallel-create-monitor",
50
50
  name: "Create Monitor",
@@ -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}).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}).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}).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,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,wXAAwX,CAAC,CAAC,SAAS;CACxb,eAAeA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD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AS;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,SAAS,4CAA4C;AAExD,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 { 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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AAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -34,7 +34,7 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
34
34
  webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
35
  url: z.ZodNullable<z.ZodString>;
36
36
  event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
- }, z.core.$strip>>>;
37
+ }, z.core.$loose>>>;
38
38
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
39
39
  created_at: z.ZodNullable<z.ZodString>;
40
40
  monitor_id: z.ZodNullable<z.ZodString>;
@@ -42,8 +42,8 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
42
42
  output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
- }, z.core.$strip>>>;
46
- }, z.core.$strip>;
45
+ }, z.core.$loose>>>;
46
+ }, z.core.$loose>;
47
47
  declare const parallelCreateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
48
48
  query: string;
49
49
  cadence: "daily" | "weekly" | "hourly" | "every_two_weeks";
@@ -34,7 +34,7 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
34
34
  webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
35
  url: z.ZodNullable<z.ZodString>;
36
36
  event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
- }, z.core.$strip>>>;
37
+ }, z.core.$loose>>>;
38
38
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
39
39
  created_at: z.ZodNullable<z.ZodString>;
40
40
  monitor_id: z.ZodNullable<z.ZodString>;
@@ -42,8 +42,8 @@ declare const ParallelCreateMonitorOutput: z.ZodObject<{
42
42
  output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
- }, z.core.$strip>>>;
46
- }, z.core.$strip>;
45
+ }, z.core.$loose>>>;
46
+ }, z.core.$loose>;
47
47
  declare const parallelCreateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
48
48
  query: string;
49
49
  cadence: "daily" | "weekly" | "hourly" | "every_two_weeks";
@@ -29,11 +29,11 @@ const ParallelCreateMonitor_MonitorCadenceSchema = z.enum([
29
29
  const ParallelCreateMonitor_MonitorWebhookSchema = z.object({
30
30
  url: z.string().describe("Webhook endpoint URL to receive monitor notifications.").nullable(),
31
31
  event_types: z.array(z.string()).describe("Event types to subscribe to for webhook notifications.").nullable().optional()
32
- }).describe("Webhook configuration for monitor notifications.");
32
+ }).passthrough().describe("Webhook configuration for monitor notifications.");
33
33
  const ParallelCreateMonitor_OutputSchemaSchema = z.object({
34
34
  type: z.string().describe("Type identifier for the schema.").nullable().optional(),
35
35
  json_schema: z.record(z.string(), z.unknown()).describe("JSON schema definition for the monitor output.")
36
- }).describe("Output schema configuration for monitor events.");
36
+ }).passthrough().describe("Output schema configuration for monitor events.");
37
37
  const parallelCreateMonitor = action("PARALLEL_CREATE_MONITOR", {
38
38
  slug: "parallel-create-monitor",
39
39
  name: "Create Monitor",
@@ -49,7 +49,7 @@ const parallelCreateMonitor = action("PARALLEL_CREATE_MONITOR", {
49
49
  monitor_id: z.string().describe("Unique identifier for the created monitor.").nullable(),
50
50
  last_run_at: z.string().describe("Timestamp of the last execution of the monitor in ISO 8601 format.").nullable().optional(),
51
51
  output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional()
52
- }).describe("Response model containing monitor details.")
52
+ }).passthrough().describe("Response model containing monitor details.")
53
53
  });
54
54
  //#endregion
55
55
  export { parallelCreateMonitor };
@@ -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}).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}).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}).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;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,C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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,SAAS,4CAOF;AACV,CAAC"}
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":";;;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M,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,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,20 +1,20 @@
1
1
  const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/create-task-group.ts
4
- const ParallelCreateTaskGroupInput = zod.z.object({ metadata: zod.z.object({}).describe("User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.").optional() }).describe("Request model for creating a new Task Group.");
4
+ const ParallelCreateTaskGroupInput = zod.z.object({ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.").optional() }).describe("Request model for creating a new Task Group.");
5
5
  const ParallelCreateTaskGroup_TaskGroupStatusSchema = zod.z.object({
6
6
  is_active: zod.z.boolean().describe("True if at least one run in the group is currently active.").nullable(),
7
7
  modified_at: zod.z.string().describe("Timestamp of the last status update to the group, as an RFC 3339 string.").nullable().optional(),
8
8
  num_task_runs: zod.z.number().int().describe("Number of task runs in the group.").nullable(),
9
9
  status_message: zod.z.string().describe("Human-readable status message for the group.").nullable().optional(),
10
- task_run_status_counts: zod.z.object({}).describe("Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).").nullable().optional()
11
- }).describe("Status information for a task group.");
10
+ task_run_status_counts: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).").nullable().optional()
11
+ }).passthrough().describe("Status information for a task group.");
12
12
  const ParallelCreateTaskGroupOutput = zod.z.object({
13
13
  status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),
14
- metadata: zod.z.object({}).describe("User-provided metadata stored with the group.").nullable().optional(),
14
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata stored with the group.").nullable().optional(),
15
15
  created_at: zod.z.string().describe("Timestamp of the creation of the group, as an RFC 3339 string.").nullable().optional(),
16
16
  taskgroup_id: zod.z.string().describe("ID of the newly created task group.").nullable()
17
- }).describe("Response model for Task Group creation.");
17
+ }).passthrough().describe("Response model for Task Group creation.");
18
18
  const parallelCreateTaskGroup = require_action.action("PARALLEL_CREATE_TASK_GROUP", {
19
19
  slug: "parallel-create-task-group",
20
20
  name: "Create Task Group",
@@ -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.object({}).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.object({}).describe(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.object({}).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}).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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EACtK,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQ,8CAA8C,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,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,SAAS,yCAAyC;AAErD,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 { 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"}
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-task-group.d.ts
4
4
  declare const ParallelCreateTaskGroupInput: z.ZodObject<{
5
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
5
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
6
  }, z.core.$strip>;
7
7
  declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
8
8
  status: z.ZodNullable<z.ZodObject<{
@@ -10,14 +10,14 @@ declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
10
10
  modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  num_task_runs: z.ZodNullable<z.ZodNumber>;
12
12
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
14
- }, z.core.$strip>>;
15
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
13
+ task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ }, z.core.$loose>>;
15
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  taskgroup_id: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- metadata?: Record<string, never> | undefined;
20
+ metadata?: Record<string, unknown> | undefined;
21
21
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
22
  //#endregion
23
23
  export { parallelCreateTaskGroup };
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-task-group.d.ts
4
4
  declare const ParallelCreateTaskGroupInput: z.ZodObject<{
5
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
5
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
6
  }, z.core.$strip>;
7
7
  declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
8
8
  status: z.ZodNullable<z.ZodObject<{
@@ -10,14 +10,14 @@ declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
10
10
  modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  num_task_runs: z.ZodNullable<z.ZodNumber>;
12
12
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
14
- }, z.core.$strip>>;
15
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
13
+ task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ }, z.core.$loose>>;
15
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  taskgroup_id: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- metadata?: Record<string, never> | undefined;
20
+ metadata?: Record<string, unknown> | undefined;
21
21
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
22
  //#endregion
23
23
  export { parallelCreateTaskGroup };