@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":"extract.cjs","names":["z","action"],"sources":["../../src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\").nullable(),\n count: z.number().int().describe(\"Quantity consumed\").nullable(),\n}).describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema = z.object({\n url: z.string().describe(\"The URL that failed to extract\").nullable(),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\").nullable(),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema = z.object({\n url: z.string().describe(\"The URL that was extracted\").nullable(),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\").nullable(),\n}).describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO;EACzC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtD,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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AC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,OAAOA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,QAAQA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mDAAmD;CAChH,SAASA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;CAC3F,UAAUA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"extract.cjs","names":["z","action"],"sources":["../../src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\").nullable(),\n count: z.number().int().describe(\"Quantity consumed\").nullable(),\n}).passthrough().describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema = z.object({\n url: z.string().describe(\"The URL that failed to extract\").nullable(),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\").nullable(),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).passthrough().describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema = z.object({\n url: z.string().describe(\"The URL that was extracted\").nullable(),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).passthrough().describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).passthrough().describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\").nullable(),\n}).passthrough().describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO;EACzC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtD,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACpH,cAAcA,IAAAA,EAAE,OAAO;EACvB,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACxH,iBAAi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AA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,QAAQA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mDAAmD;CAChH,SAASA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;CAC3F,UAAUA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,7 +6,7 @@ declare const ParallelExtractInput: z.ZodObject<{
6
6
  excerpts: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
7
7
  max_chars_total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
8
  max_chars_per_result: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
- }, z.core.$strip>]>>;
9
+ }, z.core.$loose>]>>;
10
10
  objective: z.ZodOptional<z.ZodString>;
11
11
  fetch_policy: z.ZodOptional<z.ZodObject<{
12
12
  max_age_seconds: z.ZodOptional<z.ZodNumber>;
@@ -15,27 +15,27 @@ declare const ParallelExtractInput: z.ZodObject<{
15
15
  }, z.core.$strip>>;
16
16
  full_content: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
17
17
  max_chars_per_result: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
- }, z.core.$strip>]>>;
18
+ }, z.core.$loose>]>>;
19
19
  search_queries: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
20
  }, z.core.$strip>;
21
21
  declare const ParallelExtractOutput: z.ZodObject<{
22
22
  usage: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
23
  name: z.ZodNullable<z.ZodString>;
24
24
  count: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  errors: z.ZodArray<z.ZodObject<{
27
27
  url: z.ZodNullable<z.ZodString>;
28
28
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  error_type: z.ZodNullable<z.ZodString>;
30
30
  http_status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>;
31
+ }, z.core.$loose>>;
32
32
  results: z.ZodArray<z.ZodObject<{
33
33
  url: z.ZodNullable<z.ZodString>;
34
34
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  excerpts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  full_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  publish_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
- }, z.core.$strip>>;
38
+ }, z.core.$loose>>;
39
39
  warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
40
40
  type: z.ZodNullable<z.ZodEnum<{
41
41
  spec_validation_warning: "spec_validation_warning";
@@ -44,12 +44,13 @@ declare const ParallelExtractOutput: z.ZodObject<{
44
44
  }>>;
45
45
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
46
  message: z.ZodNullable<z.ZodString>;
47
- }, z.core.$strip>>>>;
47
+ }, z.core.$loose>>>>;
48
48
  extract_id: z.ZodNullable<z.ZodString>;
49
- }, z.core.$strip>;
49
+ }, z.core.$loose>;
50
50
  declare const parallelExtract: import("@keystrokehq/action").WorkflowActionDefinition<{
51
51
  urls: string[];
52
52
  excerpts?: boolean | {
53
+ [x: string]: unknown;
53
54
  max_chars_total?: number | null | undefined;
54
55
  max_chars_per_result?: number | null | undefined;
55
56
  } | undefined;
@@ -60,6 +61,7 @@ declare const parallelExtract: import("@keystrokehq/action").WorkflowActionDefin
60
61
  disable_cache_fallback?: boolean | undefined;
61
62
  } | undefined;
62
63
  full_content?: boolean | {
64
+ [x: string]: unknown;
63
65
  max_chars_per_result?: number | null | undefined;
64
66
  } | undefined;
65
67
  search_queries?: string[] | undefined;
@@ -6,7 +6,7 @@ declare const ParallelExtractInput: z.ZodObject<{
6
6
  excerpts: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
7
7
  max_chars_total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
8
  max_chars_per_result: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
- }, z.core.$strip>]>>;
9
+ }, z.core.$loose>]>>;
10
10
  objective: z.ZodOptional<z.ZodString>;
11
11
  fetch_policy: z.ZodOptional<z.ZodObject<{
12
12
  max_age_seconds: z.ZodOptional<z.ZodNumber>;
@@ -15,27 +15,27 @@ declare const ParallelExtractInput: z.ZodObject<{
15
15
  }, z.core.$strip>>;
16
16
  full_content: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
17
17
  max_chars_per_result: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
- }, z.core.$strip>]>>;
18
+ }, z.core.$loose>]>>;
19
19
  search_queries: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
20
  }, z.core.$strip>;
21
21
  declare const ParallelExtractOutput: z.ZodObject<{
22
22
  usage: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
23
  name: z.ZodNullable<z.ZodString>;
24
24
  count: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  errors: z.ZodArray<z.ZodObject<{
27
27
  url: z.ZodNullable<z.ZodString>;
28
28
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  error_type: z.ZodNullable<z.ZodString>;
30
30
  http_status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>;
31
+ }, z.core.$loose>>;
32
32
  results: z.ZodArray<z.ZodObject<{
33
33
  url: z.ZodNullable<z.ZodString>;
34
34
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  excerpts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  full_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  publish_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
- }, z.core.$strip>>;
38
+ }, z.core.$loose>>;
39
39
  warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
40
40
  type: z.ZodNullable<z.ZodEnum<{
41
41
  spec_validation_warning: "spec_validation_warning";
@@ -44,12 +44,13 @@ declare const ParallelExtractOutput: z.ZodObject<{
44
44
  }>>;
45
45
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
46
  message: z.ZodNullable<z.ZodString>;
47
- }, z.core.$strip>>>>;
47
+ }, z.core.$loose>>>>;
48
48
  extract_id: z.ZodNullable<z.ZodString>;
49
- }, z.core.$strip>;
49
+ }, z.core.$loose>;
50
50
  declare const parallelExtract: import("@keystrokehq/action").WorkflowActionDefinition<{
51
51
  urls: string[];
52
52
  excerpts?: boolean | {
53
+ [x: string]: unknown;
53
54
  max_chars_total?: number | null | undefined;
54
55
  max_chars_per_result?: number | null | undefined;
55
56
  } | undefined;
@@ -60,6 +61,7 @@ declare const parallelExtract: import("@keystrokehq/action").WorkflowActionDefin
60
61
  disable_cache_fallback?: boolean | undefined;
61
62
  } | undefined;
62
63
  full_content?: boolean | {
64
+ [x: string]: unknown;
63
65
  max_chars_per_result?: number | null | undefined;
64
66
  } | undefined;
65
67
  search_queries?: string[] | undefined;
@@ -6,33 +6,33 @@ const ParallelExtractInput = z.object({
6
6
  excerpts: z.union([z.boolean(), z.object({
7
7
  max_chars_total: z.number().int().nullable().optional(),
8
8
  max_chars_per_result: z.number().int().nullable().optional()
9
- }).describe("Settings for excerpt extraction.")]).optional(),
9
+ }).passthrough().describe("Settings for excerpt extraction.")]).optional(),
10
10
  objective: z.string().describe("If provided, focuses extracted content on the specified search objective").optional(),
11
11
  fetch_policy: z.object({
12
12
  max_age_seconds: z.number().int().describe("Maximum age in seconds for cached content to be considered valid").optional(),
13
13
  timeout_seconds: z.number().int().describe("Timeout in seconds for fetching live content").optional(),
14
14
  disable_cache_fallback: z.boolean().describe("If true, disables fallback to cached content when live fetch fails").optional()
15
15
  }).describe("Fetch policy configuration for cache and timeout settings.").optional(),
16
- full_content: z.union([z.boolean(), z.object({ max_chars_per_result: z.number().int().nullable().optional() }).describe("Settings for full content extraction.")]).optional(),
16
+ full_content: z.union([z.boolean(), z.object({ max_chars_per_result: z.number().int().nullable().optional() }).passthrough().describe("Settings for full content extraction.")]).optional(),
17
17
  search_queries: z.array(z.string()).describe("If provided, focuses extracted content on the specified keyword search queries").optional()
18
18
  }).describe("Request model for extracting content from URLs.");
19
19
  const ParallelExtract_UsageItemSchema = z.object({
20
20
  name: z.string().describe("SKU identifier (e.g., sku_extract_excerpts)").nullable(),
21
21
  count: z.number().int().describe("Quantity consumed").nullable()
22
- }).describe("Usage metrics for a single SKU.");
22
+ }).passthrough().describe("Usage metrics for a single SKU.");
23
23
  const ParallelExtract_ExtractErrorSchema = z.object({
24
24
  url: z.string().describe("The URL that failed to extract").nullable(),
25
25
  content: z.string().describe("Error details from server responses").nullable().optional(),
26
26
  error_type: z.string().describe("Type of error that occurred").nullable(),
27
27
  http_status_code: z.number().int().describe("HTTP status code if applicable").nullable().optional()
28
- }).describe("Extract error details for a failed URL.");
28
+ }).passthrough().describe("Extract error details for a failed URL.");
29
29
  const ParallelExtract_ExtractResultSchema = z.object({
30
30
  url: z.string().describe("The URL that was extracted").nullable(),
31
31
  title: z.string().describe("Title of the web page").nullable().optional(),
32
32
  excerpts: z.array(z.string()).describe("Relevant excerpts from the URL").nullable().optional(),
33
33
  full_content: z.string().describe("Full content from the URL").nullable().optional(),
34
34
  publish_date: z.string().describe("Publication date of the content").nullable().optional()
35
- }).describe("Extract result for a single URL.");
35
+ }).passthrough().describe("Extract result for a single URL.");
36
36
  const ParallelExtract_WarningTypeSchema = z.enum([
37
37
  "spec_validation_warning",
38
38
  "input_validation_warning",
@@ -42,7 +42,7 @@ const ParallelExtract_WarningSchema = z.object({
42
42
  type: ParallelExtract_WarningTypeSchema.nullable(),
43
43
  detail: z.record(z.string(), z.unknown()).describe("Supporting context as key-value pairs").nullable().optional(),
44
44
  message: z.string().describe("Human-readable warning message").nullable()
45
- }).describe("Warning message from the extract API.");
45
+ }).passthrough().describe("Warning message from the extract API.");
46
46
  const parallelExtract = action("PARALLEL_EXTRACT", {
47
47
  slug: "parallel-extract",
48
48
  name: "Extract Content from URLs",
@@ -54,7 +54,7 @@ const parallelExtract = action("PARALLEL_EXTRACT", {
54
54
  results: z.array(ParallelExtract_ExtractResultSchema).describe("Successful extract results"),
55
55
  warnings: z.array(ParallelExtract_WarningSchema).describe("Warnings for the extract request, if any").nullable().optional(),
56
56
  extract_id: z.string().describe("Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7").nullable()
57
- }).describe("Response model for extract operation.")
57
+ }).passthrough().describe("Response model for extract operation.")
58
58
  });
59
59
  //#endregion
60
60
  export { parallelExtract };
@@ -1 +1 @@
1
- {"version":3,"file":"extract.mjs","names":[],"sources":["../../src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\").nullable(),\n count: z.number().int().describe(\"Quantity consumed\").nullable(),\n}).describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema = z.object({\n url: z.string().describe(\"The URL that failed to extract\").nullable(),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\").nullable(),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema = z.object({\n url: z.string().describe(\"The URL that was extracted\").nullable(),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\").nullable(),\n}).describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;EACzC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtD,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO;EACvB,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACxH,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAA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,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"extract.mjs","names":[],"sources":["../../src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\").nullable(),\n count: z.number().int().describe(\"Quantity consumed\").nullable(),\n}).passthrough().describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema = z.object({\n url: z.string().describe(\"The URL that failed to extract\").nullable(),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\").nullable(),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).passthrough().describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema = z.object({\n url: z.string().describe(\"The URL that was extracted\").nullable(),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).passthrough().describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).passthrough().describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\").nullable(),\n}).passthrough().describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;EACzC,iBAAiB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AAS;CAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AASjE,MAAa,kBAAkB,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbmC,EAAE,OAAO;EAC5C,OAAO,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,QAAQ,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mDAAmD;EAChH,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;EAC3F,UAAU,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -12,12 +12,12 @@ const ParallelFetchTaskGroupRuns_ErrorSchema = zod.z.object({
12
12
  detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the error").nullable().optional(),
13
13
  ref_id: zod.z.string().describe("Reference ID for the error").nullable(),
14
14
  message: zod.z.string().describe("Human-readable error message").nullable()
15
- }).describe("Error associated with a task run.");
15
+ }).passthrough().describe("Error associated with a task run.");
16
16
  const ParallelFetchTaskGroupRuns_WarningSchema = zod.z.object({
17
17
  detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the warning").nullable().optional(),
18
18
  ref_id: zod.z.string().describe("Reference ID for the warning").nullable(),
19
19
  message: zod.z.string().describe("Human-readable warning message").nullable()
20
- }).describe("Warning associated with a task run.");
20
+ }).passthrough().describe("Warning associated with a task run.");
21
21
  const ParallelFetchTaskGroupRuns_TaskRunSchema = zod.z.object({
22
22
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),
23
23
  run_id: zod.z.string().describe("Unique identifier of the task run").nullable(),
@@ -38,48 +38,48 @@ const ParallelFetchTaskGroupRuns_TaskRunSchema = zod.z.object({
38
38
  modified_at: zod.z.string().describe("RFC 3339 timestamp of last modification").nullable(),
39
39
  taskgroup_id: zod.z.string().describe("ID of the Task Group this run belongs to").nullable().optional(),
40
40
  interaction_id: zod.z.string().describe("Identifier linking this run to an interaction").nullable()
41
- }).describe("Task run metadata object.");
41
+ }).passthrough().describe("Task run metadata object.");
42
42
  const ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = zod.z.object({
43
43
  query: zod.z.string().describe("Query text for the task").nullable().optional(),
44
44
  documents: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Documents provided as input").nullable().optional(),
45
45
  beta_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional beta fields").nullable().optional()
46
- }).describe("Input provided to a task run.");
46
+ }).passthrough().describe("Input provided to a task run.");
47
47
  const ParallelFetchTaskGroupRuns_CitationSchema = zod.z.object({
48
48
  url: zod.z.string().describe("URL of the cited source").nullable().optional(),
49
49
  title: zod.z.string().describe("Title of the cited source").nullable().optional(),
50
50
  excerpt: zod.z.string().describe("Excerpt from the cited source").nullable().optional()
51
- }).describe("Supporting citation for a field value.");
51
+ }).passthrough().describe("Supporting citation for a field value.");
52
52
  const ParallelFetchTaskGroupRuns_FieldBasisSchema = zod.z.object({
53
53
  field: zod.z.string().describe("Output field name").nullable(),
54
54
  citations: zod.z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe("Supporting sources").nullable().optional(),
55
55
  reasoning: zod.z.string().describe("Explanation for the field value").nullable(),
56
56
  confidence: zod.z.string().describe("Confidence level (if available from processor)").nullable().optional()
57
- }).describe("Supporting citations and reasoning for an output field.");
57
+ }).passthrough().describe("Supporting citations and reasoning for an output field.");
58
58
  const ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = zod.z.object({
59
59
  type: zod.z.string().describe("Output type discriminator").nullable(),
60
60
  basis: zod.z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations, reasoning, and confidence per field").nullable().optional(),
61
61
  content: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON object matching the output schema"),
62
62
  beta_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional beta fields").nullable().optional(),
63
63
  output_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema used for the output").nullable().optional()
64
- }).describe("JSON output from a task run.");
64
+ }).passthrough().describe("JSON output from a task run.");
65
65
  const ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = zod.z.object({
66
66
  type: zod.z.string().describe("Output type discriminator").nullable(),
67
67
  basis: zod.z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations and reasoning for the output").nullable().optional(),
68
68
  content: zod.z.string().describe("Text content of the output").nullable(),
69
69
  beta_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional beta fields").nullable().optional()
70
- }).describe("Text output from a task run.");
70
+ }).passthrough().describe("Text output from a task run.");
71
71
  const ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = zod.z.object({
72
72
  run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),
73
73
  type: zod.z.string().describe("Event type").nullable(),
74
74
  input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),
75
75
  output: zod.z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),
76
76
  event_id: zod.z.string().describe("Unique identifier for the event").nullable().optional()
77
- }).describe("Event containing a task run state update.");
77
+ }).passthrough().describe("Event containing a task run state update.");
78
78
  const ParallelFetchTaskGroupRuns_ErrorEventSchema = zod.z.object({
79
79
  type: zod.z.string().describe("Event type").nullable(),
80
80
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable()
81
- }).describe("Event indicating an error occurred.");
82
- const ParallelFetchTaskGroupRunsOutput = zod.z.object({ events: zod.z.array(zod.z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe("List of task run events received from the stream") }).describe("Response model containing list of task run events from the Task Group.");
81
+ }).passthrough().describe("Event indicating an error occurred.");
82
+ const ParallelFetchTaskGroupRunsOutput = zod.z.object({ events: zod.z.array(zod.z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe("List of task run events received from the stream") }).passthrough().describe("Response model containing list of task run events from the Task Group.");
83
83
  const parallelFetchTaskGroupRuns = require_action.action("PARALLEL_FETCH_TASK_GROUP_RUNS", {
84
84
  slug: "parallel-fetch-task-group-runs",
85
85
  name: "Fetch Task Group Runs",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-task-group-runs.cjs","names":["z","action"],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\").nullable(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\").nullable(),\n}).describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema = z.object({\n field: z.string().describe(\"Output field name\").nullable(),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\").nullable(),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\").nullable(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\",\n input: ParallelFetchTaskGroupRunsInput,\n output: ParallelFetchTaskGroupRunsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACrI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CA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MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-task-group-runs.cjs","names":["z","action"],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\").nullable(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).passthrough().describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\").nullable(),\n}).passthrough().describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).passthrough().describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).passthrough().describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema = z.object({\n field: z.string().describe(\"Output field name\").nullable(),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\").nullable(),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).passthrough().describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).passthrough().describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\").nullable(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).passthrough().describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).passthrough().describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\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wB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,KAAK,yCAAyC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,kDAAkD,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,uCAAuC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,36 +15,36 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
15
15
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  ref_id: z.ZodNullable<z.ZodString>;
17
17
  message: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>>;
18
+ }, z.core.$loose>>>;
19
19
  run_id: z.ZodNullable<z.ZodString>;
20
20
  status: z.ZodNullable<z.ZodEnum<{
21
21
  queued: "queued";
22
+ action_required: "action_required";
22
23
  running: "running";
23
24
  completed: "completed";
24
25
  failed: "failed";
25
- cancelled: "cancelled";
26
- action_required: "action_required";
27
26
  cancelling: "cancelling";
27
+ cancelled: "cancelled";
28
28
  }>>;
29
29
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
30
  warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
32
  ref_id: z.ZodNullable<z.ZodString>;
33
33
  message: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>>>;
34
+ }, z.core.$loose>>>>;
35
35
  is_active: z.ZodNullable<z.ZodBoolean>;
36
36
  processor: z.ZodNullable<z.ZodString>;
37
37
  created_at: z.ZodNullable<z.ZodString>;
38
38
  modified_at: z.ZodNullable<z.ZodString>;
39
39
  taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  interaction_id: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>;
41
+ }, z.core.$loose>>;
42
42
  type: z.ZodNullable<z.ZodString>;
43
43
  input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
46
46
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
49
49
  type: z.ZodNullable<z.ZodString>;
50
50
  basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -53,14 +53,14 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
53
53
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
- }, z.core.$strip>>>>;
56
+ }, z.core.$loose>>>>;
57
57
  reasoning: z.ZodNullable<z.ZodString>;
58
58
  confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
- }, z.core.$strip>>>>;
59
+ }, z.core.$loose>>>>;
60
60
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
61
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
62
62
  output_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
- }, z.core.$strip>, z.ZodObject<{
63
+ }, z.core.$loose>, z.ZodObject<{
64
64
  type: z.ZodNullable<z.ZodString>;
65
65
  basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
66
66
  field: z.ZodNullable<z.ZodString>;
@@ -68,23 +68,23 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
68
68
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- }, z.core.$strip>>>>;
71
+ }, z.core.$loose>>>>;
72
72
  reasoning: z.ZodNullable<z.ZodString>;
73
73
  confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- }, z.core.$strip>>>>;
74
+ }, z.core.$loose>>>>;
75
75
  content: z.ZodNullable<z.ZodString>;
76
76
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
77
- }, z.core.$strip>]>>>;
77
+ }, z.core.$loose>]>>>;
78
78
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- }, z.core.$strip>, z.ZodObject<{
79
+ }, z.core.$loose>, z.ZodObject<{
80
80
  type: z.ZodNullable<z.ZodString>;
81
81
  error: z.ZodNullable<z.ZodObject<{
82
82
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
83
83
  ref_id: z.ZodNullable<z.ZodString>;
84
84
  message: z.ZodNullable<z.ZodString>;
85
- }, z.core.$strip>>;
86
- }, z.core.$strip>]>>;
87
- }, z.core.$strip>;
85
+ }, z.core.$loose>>;
86
+ }, z.core.$loose>]>>;
87
+ }, z.core.$loose>;
88
88
  declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<{
89
89
  taskgroup_id: string;
90
90
  status?: string | undefined;
@@ -15,36 +15,36 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
15
15
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  ref_id: z.ZodNullable<z.ZodString>;
17
17
  message: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>>;
18
+ }, z.core.$loose>>>;
19
19
  run_id: z.ZodNullable<z.ZodString>;
20
20
  status: z.ZodNullable<z.ZodEnum<{
21
21
  queued: "queued";
22
+ action_required: "action_required";
22
23
  running: "running";
23
24
  completed: "completed";
24
25
  failed: "failed";
25
- cancelled: "cancelled";
26
- action_required: "action_required";
27
26
  cancelling: "cancelling";
27
+ cancelled: "cancelled";
28
28
  }>>;
29
29
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
30
  warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
32
  ref_id: z.ZodNullable<z.ZodString>;
33
33
  message: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>>>;
34
+ }, z.core.$loose>>>>;
35
35
  is_active: z.ZodNullable<z.ZodBoolean>;
36
36
  processor: z.ZodNullable<z.ZodString>;
37
37
  created_at: z.ZodNullable<z.ZodString>;
38
38
  modified_at: z.ZodNullable<z.ZodString>;
39
39
  taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  interaction_id: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>;
41
+ }, z.core.$loose>>;
42
42
  type: z.ZodNullable<z.ZodString>;
43
43
  input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
46
46
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
49
49
  type: z.ZodNullable<z.ZodString>;
50
50
  basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -53,14 +53,14 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
53
53
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
- }, z.core.$strip>>>>;
56
+ }, z.core.$loose>>>>;
57
57
  reasoning: z.ZodNullable<z.ZodString>;
58
58
  confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
- }, z.core.$strip>>>>;
59
+ }, z.core.$loose>>>>;
60
60
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
61
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
62
62
  output_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
- }, z.core.$strip>, z.ZodObject<{
63
+ }, z.core.$loose>, z.ZodObject<{
64
64
  type: z.ZodNullable<z.ZodString>;
65
65
  basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
66
66
  field: z.ZodNullable<z.ZodString>;
@@ -68,23 +68,23 @@ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
68
68
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- }, z.core.$strip>>>>;
71
+ }, z.core.$loose>>>>;
72
72
  reasoning: z.ZodNullable<z.ZodString>;
73
73
  confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- }, z.core.$strip>>>>;
74
+ }, z.core.$loose>>>>;
75
75
  content: z.ZodNullable<z.ZodString>;
76
76
  beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
77
- }, z.core.$strip>]>>>;
77
+ }, z.core.$loose>]>>>;
78
78
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- }, z.core.$strip>, z.ZodObject<{
79
+ }, z.core.$loose>, z.ZodObject<{
80
80
  type: z.ZodNullable<z.ZodString>;
81
81
  error: z.ZodNullable<z.ZodObject<{
82
82
  detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
83
83
  ref_id: z.ZodNullable<z.ZodString>;
84
84
  message: z.ZodNullable<z.ZodString>;
85
- }, z.core.$strip>>;
86
- }, z.core.$strip>]>>;
87
- }, z.core.$strip>;
85
+ }, z.core.$loose>>;
86
+ }, z.core.$loose>]>>;
87
+ }, z.core.$loose>;
88
88
  declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<{
89
89
  taskgroup_id: string;
90
90
  status?: string | undefined;