@keystrokehq/parallel 0.1.0
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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.cjs +56 -0
- package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.d.cts +9 -0
- package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.d.mts +9 -0
- package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.mjs +55 -0
- package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -0
- package/dist/actions/add-runs-to-task-group.cjs +48 -0
- package/dist/actions/add-runs-to-task-group.cjs.map +1 -0
- package/dist/actions/add-runs-to-task-group.d.cts +9 -0
- package/dist/actions/add-runs-to-task-group.d.cts.map +1 -0
- package/dist/actions/add-runs-to-task-group.d.mts +9 -0
- package/dist/actions/add-runs-to-task-group.d.mts.map +1 -0
- package/dist/actions/add-runs-to-task-group.mjs +47 -0
- package/dist/actions/add-runs-to-task-group.mjs.map +1 -0
- package/dist/actions/cancel-find-all-run.cjs +16 -0
- package/dist/actions/cancel-find-all-run.cjs.map +1 -0
- package/dist/actions/cancel-find-all-run.d.cts +9 -0
- package/dist/actions/cancel-find-all-run.d.cts.map +1 -0
- package/dist/actions/cancel-find-all-run.d.mts +9 -0
- package/dist/actions/cancel-find-all-run.d.mts.map +1 -0
- package/dist/actions/cancel-find-all-run.mjs +13 -0
- package/dist/actions/cancel-find-all-run.mjs.map +1 -0
- package/dist/actions/create-chat-completions.cjs +86 -0
- package/dist/actions/create-chat-completions.cjs.map +1 -0
- package/dist/actions/create-chat-completions.d.cts +9 -0
- package/dist/actions/create-chat-completions.d.cts.map +1 -0
- package/dist/actions/create-chat-completions.d.mts +9 -0
- package/dist/actions/create-chat-completions.d.mts.map +1 -0
- package/dist/actions/create-chat-completions.mjs +85 -0
- package/dist/actions/create-chat-completions.mjs.map +1 -0
- package/dist/actions/create-monitor.cjs +58 -0
- package/dist/actions/create-monitor.cjs.map +1 -0
- package/dist/actions/create-monitor.d.cts +9 -0
- package/dist/actions/create-monitor.d.cts.map +1 -0
- package/dist/actions/create-monitor.d.mts +9 -0
- package/dist/actions/create-monitor.d.mts.map +1 -0
- package/dist/actions/create-monitor.mjs +57 -0
- package/dist/actions/create-monitor.mjs.map +1 -0
- package/dist/actions/create-task-group.cjs +28 -0
- package/dist/actions/create-task-group.cjs.map +1 -0
- package/dist/actions/create-task-group.d.cts +9 -0
- package/dist/actions/create-task-group.d.cts.map +1 -0
- package/dist/actions/create-task-group.d.mts +9 -0
- package/dist/actions/create-task-group.d.mts.map +1 -0
- package/dist/actions/create-task-group.mjs +27 -0
- package/dist/actions/create-task-group.mjs.map +1 -0
- package/dist/actions/create-task-run.cjs +55 -0
- package/dist/actions/create-task-run.cjs.map +1 -0
- package/dist/actions/create-task-run.d.cts +9 -0
- package/dist/actions/create-task-run.d.cts.map +1 -0
- package/dist/actions/create-task-run.d.mts +9 -0
- package/dist/actions/create-task-run.d.mts.map +1 -0
- package/dist/actions/create-task-run.mjs +54 -0
- package/dist/actions/create-task-run.mjs.map +1 -0
- package/dist/actions/delete-monitor.cjs +41 -0
- package/dist/actions/delete-monitor.cjs.map +1 -0
- package/dist/actions/delete-monitor.d.cts +9 -0
- package/dist/actions/delete-monitor.d.cts.map +1 -0
- package/dist/actions/delete-monitor.d.mts +9 -0
- package/dist/actions/delete-monitor.d.mts.map +1 -0
- package/dist/actions/delete-monitor.mjs +40 -0
- package/dist/actions/delete-monitor.mjs.map +1 -0
- package/dist/actions/extend-find-all-run.cjs +35 -0
- package/dist/actions/extend-find-all-run.cjs.map +1 -0
- package/dist/actions/extend-find-all-run.d.cts +9 -0
- package/dist/actions/extend-find-all-run.d.cts.map +1 -0
- package/dist/actions/extend-find-all-run.d.mts +9 -0
- package/dist/actions/extend-find-all-run.d.mts.map +1 -0
- package/dist/actions/extend-find-all-run.mjs +34 -0
- package/dist/actions/extend-find-all-run.mjs.map +1 -0
- package/dist/actions/extract.cjs +63 -0
- package/dist/actions/extract.cjs.map +1 -0
- package/dist/actions/extract.d.cts +9 -0
- package/dist/actions/extract.d.cts.map +1 -0
- package/dist/actions/extract.d.mts +9 -0
- package/dist/actions/extract.d.mts.map +1 -0
- package/dist/actions/extract.mjs +62 -0
- package/dist/actions/extract.mjs.map +1 -0
- package/dist/actions/fetch-task-group-runs.cjs +93 -0
- package/dist/actions/fetch-task-group-runs.cjs.map +1 -0
- package/dist/actions/fetch-task-group-runs.d.cts +9 -0
- package/dist/actions/fetch-task-group-runs.d.cts.map +1 -0
- package/dist/actions/fetch-task-group-runs.d.mts +9 -0
- package/dist/actions/fetch-task-group-runs.d.mts.map +1 -0
- package/dist/actions/fetch-task-group-runs.mjs +92 -0
- package/dist/actions/fetch-task-group-runs.mjs.map +1 -0
- package/dist/actions/find-all.cjs +67 -0
- package/dist/actions/find-all.cjs.map +1 -0
- package/dist/actions/find-all.d.cts +9 -0
- package/dist/actions/find-all.d.cts.map +1 -0
- package/dist/actions/find-all.d.mts +9 -0
- package/dist/actions/find-all.d.mts.map +1 -0
- package/dist/actions/find-all.mjs +66 -0
- package/dist/actions/find-all.mjs.map +1 -0
- package/dist/actions/get-find-all-run-result.cjs +83 -0
- package/dist/actions/get-find-all-run-result.cjs.map +1 -0
- package/dist/actions/get-find-all-run-result.d.cts +9 -0
- package/dist/actions/get-find-all-run-result.d.cts.map +1 -0
- package/dist/actions/get-find-all-run-result.d.mts +9 -0
- package/dist/actions/get-find-all-run-result.d.mts.map +1 -0
- package/dist/actions/get-find-all-run-result.mjs +82 -0
- package/dist/actions/get-find-all-run-result.mjs.map +1 -0
- package/dist/actions/get-find-all-run-schema.cjs +32 -0
- package/dist/actions/get-find-all-run-schema.cjs.map +1 -0
- package/dist/actions/get-find-all-run-schema.d.cts +9 -0
- package/dist/actions/get-find-all-run-schema.d.cts.map +1 -0
- package/dist/actions/get-find-all-run-schema.d.mts +9 -0
- package/dist/actions/get-find-all-run-schema.d.mts.map +1 -0
- package/dist/actions/get-find-all-run-schema.mjs +31 -0
- package/dist/actions/get-find-all-run-schema.mjs.map +1 -0
- package/dist/actions/index.cjs +65 -0
- package/dist/actions/index.d.cts +33 -0
- package/dist/actions/index.d.mts +33 -0
- package/dist/actions/index.mjs +33 -0
- package/dist/actions/ingest-find-all-run.cjs +32 -0
- package/dist/actions/ingest-find-all-run.cjs.map +1 -0
- package/dist/actions/ingest-find-all-run.d.cts +9 -0
- package/dist/actions/ingest-find-all-run.d.cts.map +1 -0
- package/dist/actions/ingest-find-all-run.d.mts +9 -0
- package/dist/actions/ingest-find-all-run.d.mts.map +1 -0
- package/dist/actions/ingest-find-all-run.mjs +31 -0
- package/dist/actions/ingest-find-all-run.mjs.map +1 -0
- package/dist/actions/list-monitor-events.cjs +51 -0
- package/dist/actions/list-monitor-events.cjs.map +1 -0
- package/dist/actions/list-monitor-events.d.cts +9 -0
- package/dist/actions/list-monitor-events.d.cts.map +1 -0
- package/dist/actions/list-monitor-events.d.mts +9 -0
- package/dist/actions/list-monitor-events.d.mts.map +1 -0
- package/dist/actions/list-monitor-events.mjs +50 -0
- package/dist/actions/list-monitor-events.mjs.map +1 -0
- package/dist/actions/list-monitors.cjs +45 -0
- package/dist/actions/list-monitors.cjs.map +1 -0
- package/dist/actions/list-monitors.d.cts +9 -0
- package/dist/actions/list-monitors.d.cts.map +1 -0
- package/dist/actions/list-monitors.d.mts +9 -0
- package/dist/actions/list-monitors.d.mts.map +1 -0
- package/dist/actions/list-monitors.mjs +44 -0
- package/dist/actions/list-monitors.mjs.map +1 -0
- package/dist/actions/retrieve-event-group.cjs +41 -0
- package/dist/actions/retrieve-event-group.cjs.map +1 -0
- package/dist/actions/retrieve-event-group.d.cts +9 -0
- package/dist/actions/retrieve-event-group.d.cts.map +1 -0
- package/dist/actions/retrieve-event-group.d.mts +9 -0
- package/dist/actions/retrieve-event-group.d.mts.map +1 -0
- package/dist/actions/retrieve-event-group.mjs +40 -0
- package/dist/actions/retrieve-event-group.mjs.map +1 -0
- package/dist/actions/retrieve-find-all-run-status.cjs +45 -0
- package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -0
- package/dist/actions/retrieve-find-all-run-status.d.cts +9 -0
- package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -0
- package/dist/actions/retrieve-find-all-run-status.d.mts +9 -0
- package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -0
- package/dist/actions/retrieve-find-all-run-status.mjs +44 -0
- package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -0
- package/dist/actions/retrieve-monitor.cjs +41 -0
- package/dist/actions/retrieve-monitor.cjs.map +1 -0
- package/dist/actions/retrieve-monitor.d.cts +9 -0
- package/dist/actions/retrieve-monitor.d.cts.map +1 -0
- package/dist/actions/retrieve-monitor.d.mts +9 -0
- package/dist/actions/retrieve-monitor.d.mts.map +1 -0
- package/dist/actions/retrieve-monitor.mjs +40 -0
- package/dist/actions/retrieve-monitor.mjs.map +1 -0
- package/dist/actions/retrieve-task-group-run.cjs +44 -0
- package/dist/actions/retrieve-task-group-run.cjs.map +1 -0
- package/dist/actions/retrieve-task-group-run.d.cts +9 -0
- package/dist/actions/retrieve-task-group-run.d.cts.map +1 -0
- package/dist/actions/retrieve-task-group-run.d.mts +9 -0
- package/dist/actions/retrieve-task-group-run.d.mts.map +1 -0
- package/dist/actions/retrieve-task-group-run.mjs +43 -0
- package/dist/actions/retrieve-task-group-run.mjs.map +1 -0
- package/dist/actions/retrieve-task-group.cjs +28 -0
- package/dist/actions/retrieve-task-group.cjs.map +1 -0
- package/dist/actions/retrieve-task-group.d.cts +9 -0
- package/dist/actions/retrieve-task-group.d.cts.map +1 -0
- package/dist/actions/retrieve-task-group.d.mts +9 -0
- package/dist/actions/retrieve-task-group.d.mts.map +1 -0
- package/dist/actions/retrieve-task-group.mjs +27 -0
- package/dist/actions/retrieve-task-group.mjs.map +1 -0
- package/dist/actions/retrieve-task-run-input.cjs +32 -0
- package/dist/actions/retrieve-task-run-input.cjs.map +1 -0
- package/dist/actions/retrieve-task-run-input.d.cts +9 -0
- package/dist/actions/retrieve-task-run-input.d.cts.map +1 -0
- package/dist/actions/retrieve-task-run-input.d.mts +9 -0
- package/dist/actions/retrieve-task-run-input.d.mts.map +1 -0
- package/dist/actions/retrieve-task-run-input.mjs +31 -0
- package/dist/actions/retrieve-task-run-input.mjs.map +1 -0
- package/dist/actions/retrieve-task-run-result.cjs +39 -0
- package/dist/actions/retrieve-task-run-result.cjs.map +1 -0
- package/dist/actions/retrieve-task-run-result.d.cts +9 -0
- package/dist/actions/retrieve-task-run-result.d.cts.map +1 -0
- package/dist/actions/retrieve-task-run-result.d.mts +9 -0
- package/dist/actions/retrieve-task-run-result.d.mts.map +1 -0
- package/dist/actions/retrieve-task-run-result.mjs +38 -0
- package/dist/actions/retrieve-task-run-result.mjs.map +1 -0
- package/dist/actions/retrieve-task-run.cjs +47 -0
- package/dist/actions/retrieve-task-run.cjs.map +1 -0
- package/dist/actions/retrieve-task-run.d.cts +9 -0
- package/dist/actions/retrieve-task-run.d.cts.map +1 -0
- package/dist/actions/retrieve-task-run.d.mts +9 -0
- package/dist/actions/retrieve-task-run.d.mts.map +1 -0
- package/dist/actions/retrieve-task-run.mjs +46 -0
- package/dist/actions/retrieve-task-run.mjs.map +1 -0
- package/dist/actions/search.cjs +25 -0
- package/dist/actions/search.cjs.map +1 -0
- package/dist/actions/search.d.cts +9 -0
- package/dist/actions/search.d.cts.map +1 -0
- package/dist/actions/search.d.mts +9 -0
- package/dist/actions/search.d.mts.map +1 -0
- package/dist/actions/search.mjs +24 -0
- package/dist/actions/search.mjs.map +1 -0
- package/dist/actions/simulate-event.cjs +23 -0
- package/dist/actions/simulate-event.cjs.map +1 -0
- package/dist/actions/simulate-event.d.cts +9 -0
- package/dist/actions/simulate-event.d.cts.map +1 -0
- package/dist/actions/simulate-event.d.mts +9 -0
- package/dist/actions/simulate-event.d.mts.map +1 -0
- package/dist/actions/simulate-event.mjs +20 -0
- package/dist/actions/simulate-event.mjs.map +1 -0
- package/dist/actions/stream-find-all-events.cjs +129 -0
- package/dist/actions/stream-find-all-events.cjs.map +1 -0
- package/dist/actions/stream-find-all-events.d.cts +9 -0
- package/dist/actions/stream-find-all-events.d.cts.map +1 -0
- package/dist/actions/stream-find-all-events.d.mts +9 -0
- package/dist/actions/stream-find-all-events.d.mts.map +1 -0
- package/dist/actions/stream-find-all-events.mjs +128 -0
- package/dist/actions/stream-find-all-events.mjs.map +1 -0
- package/dist/actions/stream-task-group-events.cjs +61 -0
- package/dist/actions/stream-task-group-events.cjs.map +1 -0
- package/dist/actions/stream-task-group-events.d.cts +9 -0
- package/dist/actions/stream-task-group-events.d.cts.map +1 -0
- package/dist/actions/stream-task-group-events.d.mts +9 -0
- package/dist/actions/stream-task-group-events.d.mts.map +1 -0
- package/dist/actions/stream-task-group-events.mjs +60 -0
- package/dist/actions/stream-task-group-events.mjs.map +1 -0
- package/dist/actions/stream-task-run-events.cjs +64 -0
- package/dist/actions/stream-task-run-events.cjs.map +1 -0
- package/dist/actions/stream-task-run-events.d.cts +9 -0
- package/dist/actions/stream-task-run-events.d.cts.map +1 -0
- package/dist/actions/stream-task-run-events.d.mts +9 -0
- package/dist/actions/stream-task-run-events.d.mts.map +1 -0
- package/dist/actions/stream-task-run-events.mjs +63 -0
- package/dist/actions/stream-task-run-events.mjs.map +1 -0
- package/dist/actions/suggest-task.cjs +21 -0
- package/dist/actions/suggest-task.cjs.map +1 -0
- package/dist/actions/suggest-task.d.cts +9 -0
- package/dist/actions/suggest-task.d.cts.map +1 -0
- package/dist/actions/suggest-task.d.mts +9 -0
- package/dist/actions/suggest-task.d.mts.map +1 -0
- package/dist/actions/suggest-task.mjs +18 -0
- package/dist/actions/suggest-task.mjs.map +1 -0
- package/dist/actions/update-monitor.cjs +55 -0
- package/dist/actions/update-monitor.cjs.map +1 -0
- package/dist/actions/update-monitor.d.cts +9 -0
- package/dist/actions/update-monitor.d.cts.map +1 -0
- package/dist/actions/update-monitor.d.mts +9 -0
- package/dist/actions/update-monitor.d.mts.map +1 -0
- package/dist/actions/update-monitor.mjs +54 -0
- package/dist/actions/update-monitor.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +70 -0
- package/dist/index.d.cts +35 -0
- package/dist/index.d.mts +35 -0
- package/dist/index.mjs +36 -0
- package/package.json +49 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-monitor.ts
|
|
4
|
+
const ParallelRetrieveMonitorInput = z.object({ monitor_id: z.string().describe("Unique identifier of the monitor to retrieve.") }).describe("Request model for retrieving a specific monitor.");
|
|
5
|
+
const ParallelRetrieveMonitor_MonitorStatusSchema = z.enum(["active", "canceled"]).describe("Status options for a monitor.");
|
|
6
|
+
const ParallelRetrieveMonitor_MonitorCadenceSchema = z.enum([
|
|
7
|
+
"daily",
|
|
8
|
+
"weekly",
|
|
9
|
+
"hourly",
|
|
10
|
+
"every_two_weeks"
|
|
11
|
+
]).describe("Cadence options for monitor execution.");
|
|
12
|
+
const ParallelRetrieveMonitor_MonitorWebhookSchema = z.object({
|
|
13
|
+
url: z.string().describe("Webhook URL to receive monitor events"),
|
|
14
|
+
event_types: z.array(z.unknown()).describe("Types of events to trigger the webhook").nullable().optional()
|
|
15
|
+
}).describe("Webhook configuration for the monitor.");
|
|
16
|
+
const ParallelRetrieveMonitor_OutputSchemaSchema = z.object({
|
|
17
|
+
type: z.string().describe("Type of the output schema").nullable().optional(),
|
|
18
|
+
json_schema: z.record(z.string(), z.unknown()).describe("JSON schema defining the output structure")
|
|
19
|
+
}).describe("Output schema for the monitor event.");
|
|
20
|
+
const parallelRetrieveMonitor = action("PARALLEL_RETRIEVE_MONITOR", {
|
|
21
|
+
slug: "parallel-retrieve-monitor",
|
|
22
|
+
name: "Retrieve Monitor",
|
|
23
|
+
description: "Tool to retrieve a specific monitor by ID. Returns the monitor configuration including status, cadence, query, and webhook settings.",
|
|
24
|
+
input: ParallelRetrieveMonitorInput,
|
|
25
|
+
output: z.object({
|
|
26
|
+
query: z.string().describe("The query being monitored"),
|
|
27
|
+
status: ParallelRetrieveMonitor_MonitorStatusSchema.nullable(),
|
|
28
|
+
cadence: ParallelRetrieveMonitor_MonitorCadenceSchema.nullable(),
|
|
29
|
+
webhook: ParallelRetrieveMonitor_MonitorWebhookSchema.nullable().optional(),
|
|
30
|
+
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the monitor").nullable().optional(),
|
|
31
|
+
created_at: z.string().describe("ISO timestamp when the monitor was created"),
|
|
32
|
+
monitor_id: z.string().describe("Unique identifier of the monitor"),
|
|
33
|
+
last_run_at: z.string().describe("ISO timestamp of the last execution of the monitor").nullable().optional(),
|
|
34
|
+
output_schema: ParallelRetrieveMonitor_OutputSchemaSchema.nullable().optional()
|
|
35
|
+
}).passthrough().describe("Response model for retrieving a monitor, including its status, cadence and metadata.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { parallelRetrieveMonitor };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=retrieve-monitor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-monitor.mjs","names":[],"sources":["../../src/actions/retrieve-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveMonitorInput: z.ZodTypeAny = z.object({\n monitor_id: z.string().describe(\"Unique identifier of the monitor to retrieve.\"),\n}).describe(\"Request model for retrieving a specific monitor.\");\nconst ParallelRetrieveMonitor_MonitorStatusSchema: z.ZodTypeAny = z.enum([\"active\", \"canceled\"]).describe(\"Status options for a monitor.\");\nconst ParallelRetrieveMonitor_MonitorCadenceSchema: z.ZodTypeAny = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelRetrieveMonitor_MonitorWebhookSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Webhook URL to receive monitor events\"),\n event_types: z.array(z.unknown()).describe(\"Types of events to trigger the webhook\").nullable().optional(),\n}).describe(\"Webhook configuration for the monitor.\");\nconst ParallelRetrieveMonitor_OutputSchemaSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the output schema\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema defining the output structure\"),\n}).describe(\"Output schema for the monitor event.\");\nexport const ParallelRetrieveMonitorOutput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"The query being monitored\"),\n status: ParallelRetrieveMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelRetrieveMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelRetrieveMonitor_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(\"ISO timestamp when the monitor was created\"),\n monitor_id: z.string().describe(\"Unique identifier of the monitor\"),\n last_run_at: z.string().describe(\"ISO timestamp of the last execution of the monitor\").nullable().optional(),\n output_schema: ParallelRetrieveMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a monitor, including its status, cadence and metadata.\");\n\nexport const parallelRetrieveMonitor = action(\"PARALLEL_RETRIEVE_MONITOR\", {\n slug: \"parallel-retrieve-monitor\",\n name: \"Retrieve Monitor\",\n description: \"Tool to retrieve a specific monitor by ID. Returns the monitor configuration including status, cadence, query, and webhook settings.\",\n input: ParallelRetrieveMonitorInput,\n output: ParallelRetrieveMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACjF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA4D,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B;AACzI,MAAM,+CAA6D,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAC7K,MAAM,+CAA6D,EAAE,OAAO;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACrG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAalD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjByD,EAAE,OAAO;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACtD,QAAQ,4CAA4C,SAAS;EAC7D,SAAS,6CAA6C,SAAS;EAC/D,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,eAAe,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-task-group-run.ts
|
|
4
|
+
const ParallelRetrieveTaskGroupRunInput = zod.z.object({
|
|
5
|
+
run_id: zod.z.string().describe("Unique identifier of the run to retrieve."),
|
|
6
|
+
taskgroup_id: zod.z.string().describe("Unique identifier of the task group.")
|
|
7
|
+
}).describe("Request model for retrieving a task group run by run ID.");
|
|
8
|
+
const ParallelRetrieveTaskGroupRun_ErrorDetailSchema = zod.z.object({
|
|
9
|
+
detail: zod.z.unknown().describe("Additional error details").nullable().optional(),
|
|
10
|
+
ref_id: zod.z.string().describe("Reference ID for the error"),
|
|
11
|
+
message: zod.z.string().describe("Error message")
|
|
12
|
+
}).describe("Error information for a failed run.");
|
|
13
|
+
const ParallelRetrieveTaskGroupRunOutput = zod.z.object({
|
|
14
|
+
error: ParallelRetrieveTaskGroupRun_ErrorDetailSchema.nullable().optional(),
|
|
15
|
+
run_id: zod.z.string().describe("ID of the task run"),
|
|
16
|
+
status: zod.z.enum([
|
|
17
|
+
"queued",
|
|
18
|
+
"action_required",
|
|
19
|
+
"running",
|
|
20
|
+
"completed",
|
|
21
|
+
"failed",
|
|
22
|
+
"cancelling",
|
|
23
|
+
"cancelled"
|
|
24
|
+
]).describe("Status of the run"),
|
|
25
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata stored with the run").nullable().optional(),
|
|
26
|
+
warnings: zod.z.array(zod.z.unknown()).describe("Warnings for the run, if any").nullable().optional(),
|
|
27
|
+
is_active: zod.z.boolean().describe("Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}."),
|
|
28
|
+
processor: zod.z.string().describe("Processor used for the run"),
|
|
29
|
+
created_at: zod.z.string().describe("Timestamp of the creation of the task, as an RFC 3339 string.").nullable().optional(),
|
|
30
|
+
modified_at: zod.z.string().describe("Timestamp of the last modification to the task, as an RFC 3339 string.").nullable().optional(),
|
|
31
|
+
taskgroup_id: zod.z.string().describe("ID of the taskgroup to which the run belongs").nullable().optional(),
|
|
32
|
+
interaction_id: zod.z.string().describe("Identifier for this interaction. Pass this value as `previous_interaction_id` to reuse context for a future request.")
|
|
33
|
+
}).describe("Response model for retrieving a task group run.");
|
|
34
|
+
const parallelRetrieveTaskGroupRun = require_action.action("PARALLEL_RETRIEVE_TASK_GROUP_RUN", {
|
|
35
|
+
slug: "parallel-retrieve-task-group-run",
|
|
36
|
+
name: "Retrieve Task Group Run",
|
|
37
|
+
description: "Tool to retrieve run status by run_id for a task group. Use when you need to check the status of a specific task group run or poll for completion.",
|
|
38
|
+
input: ParallelRetrieveTaskGroupRunInput,
|
|
39
|
+
output: ParallelRetrieveTaskGroupRunOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.parallelRetrieveTaskGroupRun = parallelRetrieveTaskGroupRun;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=retrieve-task-group-run.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group-run.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-task-group-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskGroupRunInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the run to retrieve.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group.\"),\n}).describe(\"Request model for retrieving a task group run by run ID.\");\nconst ParallelRetrieveTaskGroupRun_ErrorDetailSchema: z.ZodTypeAny = z.object({\n detail: z.unknown().describe(\"Additional error details\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Error message\"),\n}).describe(\"Error information for a failed run.\");\nexport const ParallelRetrieveTaskGroupRunOutput: z.ZodTypeAny = z.object({\n error: ParallelRetrieveTaskGroupRun_ErrorDetailSchema.nullable().optional(),\n run_id: z.string().describe(\"ID of the task run\"),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status of the run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run\").nullable().optional(),\n warnings: z.array(z.unknown()).describe(\"Warnings for the run, if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}.\"),\n processor: z.string().describe(\"Processor used for the run\"),\n created_at: z.string().describe(\"Timestamp of the creation of the task, as an RFC 3339 string.\").nullable().optional(),\n modified_at: z.string().describe(\"Timestamp of the last modification to the task, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the taskgroup to which the run belongs\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier for this interaction. Pass this value as `previous_interaction_id` to reuse context for a future request.\"),\n}).describe(\"Response model for retrieving a task group run.\");\n\nexport const parallelRetrieveTaskGroupRun = action(\"PARALLEL_RETRIEVE_TASK_GROUP_RUN\", {\n slug: \"parallel-retrieve-task-group-run\",\n name: \"Retrieve Task Group Run\",\n description: \"Tool to retrieve run status by run_id for a task group. Use when you need to check the status of a specific task group run or poll for completion.\",\n input: ParallelRetrieveTaskGroupRunInput,\n output: ParallelRetrieveTaskGroupRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAC1E,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;AAC9C,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAO,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAChD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAmB;EAAW;EAAa;EAAU;EAAc;CAAW,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACvI,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iGAAiG;CACjI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC5J,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-group-run.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskGroupRunInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskGroupRunOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskGroupRun: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskGroupRun };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-group-run.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group-run.d.cts","names":[],"sources":["../../src/actions/retrieve-task-group-run.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGqB;AAAA,cAM1D,kCAAA,EAAoC,CAAA,CAAE,UAYW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-group-run.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskGroupRunInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskGroupRunOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskGroupRun: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskGroupRun };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-group-run.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group-run.d.mts","names":[],"sources":["../../src/actions/retrieve-task-group-run.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGqB;AAAA,cAM1D,kCAAA,EAAoC,CAAA,CAAE,UAYW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-task-group-run.ts
|
|
4
|
+
const ParallelRetrieveTaskGroupRunInput = z.object({
|
|
5
|
+
run_id: z.string().describe("Unique identifier of the run to retrieve."),
|
|
6
|
+
taskgroup_id: z.string().describe("Unique identifier of the task group.")
|
|
7
|
+
}).describe("Request model for retrieving a task group run by run ID.");
|
|
8
|
+
const ParallelRetrieveTaskGroupRun_ErrorDetailSchema = z.object({
|
|
9
|
+
detail: z.unknown().describe("Additional error details").nullable().optional(),
|
|
10
|
+
ref_id: z.string().describe("Reference ID for the error"),
|
|
11
|
+
message: z.string().describe("Error message")
|
|
12
|
+
}).describe("Error information for a failed run.");
|
|
13
|
+
const parallelRetrieveTaskGroupRun = action("PARALLEL_RETRIEVE_TASK_GROUP_RUN", {
|
|
14
|
+
slug: "parallel-retrieve-task-group-run",
|
|
15
|
+
name: "Retrieve Task Group Run",
|
|
16
|
+
description: "Tool to retrieve run status by run_id for a task group. Use when you need to check the status of a specific task group run or poll for completion.",
|
|
17
|
+
input: ParallelRetrieveTaskGroupRunInput,
|
|
18
|
+
output: z.object({
|
|
19
|
+
error: ParallelRetrieveTaskGroupRun_ErrorDetailSchema.nullable().optional(),
|
|
20
|
+
run_id: z.string().describe("ID of the task run"),
|
|
21
|
+
status: z.enum([
|
|
22
|
+
"queued",
|
|
23
|
+
"action_required",
|
|
24
|
+
"running",
|
|
25
|
+
"completed",
|
|
26
|
+
"failed",
|
|
27
|
+
"cancelling",
|
|
28
|
+
"cancelled"
|
|
29
|
+
]).describe("Status of the run"),
|
|
30
|
+
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the run").nullable().optional(),
|
|
31
|
+
warnings: z.array(z.unknown()).describe("Warnings for the run, if any").nullable().optional(),
|
|
32
|
+
is_active: z.boolean().describe("Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}."),
|
|
33
|
+
processor: z.string().describe("Processor used for the run"),
|
|
34
|
+
created_at: z.string().describe("Timestamp of the creation of the task, as an RFC 3339 string.").nullable().optional(),
|
|
35
|
+
modified_at: z.string().describe("Timestamp of the last modification to the task, as an RFC 3339 string.").nullable().optional(),
|
|
36
|
+
taskgroup_id: z.string().describe("ID of the taskgroup to which the run belongs").nullable().optional(),
|
|
37
|
+
interaction_id: z.string().describe("Identifier for this interaction. Pass this value as `previous_interaction_id` to reuse context for a future request.")
|
|
38
|
+
}).describe("Response model for retrieving a task group run.")
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { parallelRetrieveTaskGroupRun };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=retrieve-task-group-run.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group-run.mjs","names":[],"sources":["../../src/actions/retrieve-task-group-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskGroupRunInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the run to retrieve.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group.\"),\n}).describe(\"Request model for retrieving a task group run by run ID.\");\nconst ParallelRetrieveTaskGroupRun_ErrorDetailSchema: z.ZodTypeAny = z.object({\n detail: z.unknown().describe(\"Additional error details\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Error message\"),\n}).describe(\"Error information for a failed run.\");\nexport const ParallelRetrieveTaskGroupRunOutput: z.ZodTypeAny = z.object({\n error: ParallelRetrieveTaskGroupRun_ErrorDetailSchema.nullable().optional(),\n run_id: z.string().describe(\"ID of the task run\"),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status of the run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run\").nullable().optional(),\n warnings: z.array(z.unknown()).describe(\"Warnings for the run, if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}.\"),\n processor: z.string().describe(\"Processor used for the run\"),\n created_at: z.string().describe(\"Timestamp of the creation of the task, as an RFC 3339 string.\").nullable().optional(),\n modified_at: z.string().describe(\"Timestamp of the last modification to the task, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the taskgroup to which the run belongs\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier for this interaction. Pass this value as `previous_interaction_id` to reuse context for a future request.\"),\n}).describe(\"Response model for retrieving a task group run.\");\n\nexport const parallelRetrieveTaskGroupRun = action(\"PARALLEL_RETRIEVE_TASK_GROUP_RUN\", {\n slug: \"parallel-retrieve-task-group-run\",\n name: \"Retrieve Task Group Run\",\n description: \"Tool to retrieve run status by run_id for a task group. Use when you need to check the status of a specific task group run or poll for completion.\",\n input: ParallelRetrieveTaskGroupRunInput,\n output: ParallelRetrieveTaskGroupRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAC1E,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,iDAA+D,EAAE,OAAO;CAC5E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;AAC9C,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAejD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnB8D,EAAE,OAAO;EACvE,OAAO,+CAA+C,SAAS,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAChD,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAmB;GAAW;GAAa;GAAU;GAAc;EAAW,CAAC,CAAC,CAAC,SAAS,mBAAmB;EACvI,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iGAAiG;EACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC5J,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-task-group.ts
|
|
4
|
+
const ParallelRetrieveTaskGroupInput = zod.z.object({ taskgroup_id: zod.z.string().describe("Unique identifier of the task group to retrieve.") }).describe("Request model for retrieving a specific task group.");
|
|
5
|
+
const ParallelRetrieveTaskGroup_TaskGroupStatusSchema = zod.z.object({
|
|
6
|
+
is_active: zod.z.boolean().describe("Whether the task group is currently active"),
|
|
7
|
+
modified_at: zod.z.string().describe("ISO timestamp when the status was last modified"),
|
|
8
|
+
num_task_runs: zod.z.number().int().describe("Number of task runs in this group"),
|
|
9
|
+
status_message: zod.z.string().describe("Optional status message").nullable().optional(),
|
|
10
|
+
task_run_status_counts: zod.z.object({}).describe("Counts of task runs by status (e.g., 'queued', 'running', 'completed', 'failed')").nullable().optional()
|
|
11
|
+
}).passthrough().describe("Status information for a task group.");
|
|
12
|
+
const ParallelRetrieveTaskGroupOutput = zod.z.object({
|
|
13
|
+
status: ParallelRetrieveTaskGroup_TaskGroupStatusSchema.nullable(),
|
|
14
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional metadata associated with the task group").nullable().optional(),
|
|
15
|
+
created_at: zod.z.string().describe("ISO timestamp when the task group was created"),
|
|
16
|
+
taskgroup_id: zod.z.string().describe("Unique identifier of the task group")
|
|
17
|
+
}).passthrough().describe("Response model for retrieving a task group.");
|
|
18
|
+
const parallelRetrieveTaskGroup = require_action.action("PARALLEL_RETRIEVE_TASK_GROUP", {
|
|
19
|
+
slug: "parallel-retrieve-task-group",
|
|
20
|
+
name: "Retrieve Task Group",
|
|
21
|
+
description: "Tool to retrieve details of a specific task group. Use when you have a valid task group ID and want to view its details.",
|
|
22
|
+
input: ParallelRetrieveTaskGroupInput,
|
|
23
|
+
output: ParallelRetrieveTaskGroupOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.parallelRetrieveTaskGroup = parallelRetrieveTaskGroup;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=retrieve-task-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskGroupInput: z.ZodTypeAny = z.object({\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to retrieve.\"),\n}).describe(\"Request model for retrieving a specific task group.\");\nconst ParallelRetrieveTaskGroup_TaskGroupStatusSchema: z.ZodTypeAny = z.object({\n is_active: z.boolean().describe(\"Whether the task group is currently active\"),\n modified_at: z.string().describe(\"ISO timestamp when the status was last modified\"),\n num_task_runs: z.number().int().describe(\"Number of task runs in this group\"),\n status_message: z.string().describe(\"Optional status message\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Counts of task runs by status (e.g., 'queued', 'running', 'completed', 'failed')\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelRetrieveTaskGroupOutput: z.ZodTypeAny = z.object({\n status: ParallelRetrieveTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the task group\").nullable().optional(),\n created_at: z.string().describe(\"ISO timestamp when the task group was created\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group\"),\n}).passthrough().describe(\"Response model for retrieving a task group.\");\n\nexport const parallelRetrieveTaskGroup = action(\"PARALLEL_RETRIEVE_TASK_GROUP\", {\n slug: \"parallel-retrieve-task-group\",\n name: \"Retrieve Task Group\",\n description: \"Tool to retrieve details of a specific task group. Use when you have a valid task group ID and want to view its details.\",\n input: ParallelRetrieveTaskGroupInput,\n output: ParallelRetrieveTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACtF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CAC5E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQ,gDAAgD,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-group.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskGroup };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group.d.cts","names":[],"sources":["../../src/actions/retrieve-task-group.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmB;AAAA,cAQrD,+BAAA,EAAiC,CAAA,CAAE,UAKwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-group.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskGroup };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group.d.mts","names":[],"sources":["../../src/actions/retrieve-task-group.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmB;AAAA,cAQrD,+BAAA,EAAiC,CAAA,CAAE,UAKwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-task-group.ts
|
|
4
|
+
const ParallelRetrieveTaskGroupInput = z.object({ taskgroup_id: z.string().describe("Unique identifier of the task group to retrieve.") }).describe("Request model for retrieving a specific task group.");
|
|
5
|
+
const ParallelRetrieveTaskGroup_TaskGroupStatusSchema = z.object({
|
|
6
|
+
is_active: z.boolean().describe("Whether the task group is currently active"),
|
|
7
|
+
modified_at: z.string().describe("ISO timestamp when the status was last modified"),
|
|
8
|
+
num_task_runs: z.number().int().describe("Number of task runs in this group"),
|
|
9
|
+
status_message: z.string().describe("Optional status message").nullable().optional(),
|
|
10
|
+
task_run_status_counts: z.object({}).describe("Counts of task runs by status (e.g., 'queued', 'running', 'completed', 'failed')").nullable().optional()
|
|
11
|
+
}).passthrough().describe("Status information for a task group.");
|
|
12
|
+
const parallelRetrieveTaskGroup = action("PARALLEL_RETRIEVE_TASK_GROUP", {
|
|
13
|
+
slug: "parallel-retrieve-task-group",
|
|
14
|
+
name: "Retrieve Task Group",
|
|
15
|
+
description: "Tool to retrieve details of a specific task group. Use when you have a valid task group ID and want to view its details.",
|
|
16
|
+
input: ParallelRetrieveTaskGroupInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
status: ParallelRetrieveTaskGroup_TaskGroupStatusSchema.nullable(),
|
|
19
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional metadata associated with the task group").nullable().optional(),
|
|
20
|
+
created_at: z.string().describe("ISO timestamp when the task group was created"),
|
|
21
|
+
taskgroup_id: z.string().describe("Unique identifier of the task group")
|
|
22
|
+
}).passthrough().describe("Response model for retrieving a task group.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { parallelRetrieveTaskGroup };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=retrieve-task-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-group.mjs","names":[],"sources":["../../src/actions/retrieve-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskGroupInput: z.ZodTypeAny = z.object({\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to retrieve.\"),\n}).describe(\"Request model for retrieving a specific task group.\");\nconst ParallelRetrieveTaskGroup_TaskGroupStatusSchema: z.ZodTypeAny = z.object({\n is_active: z.boolean().describe(\"Whether the task group is currently active\"),\n modified_at: z.string().describe(\"ISO timestamp when the status was last modified\"),\n num_task_runs: z.number().int().describe(\"Number of task runs in this group\"),\n status_message: z.string().describe(\"Optional status message\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Counts of task runs by status (e.g., 'queued', 'running', 'completed', 'failed')\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelRetrieveTaskGroupOutput: z.ZodTypeAny = z.object({\n status: ParallelRetrieveTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the task group\").nullable().optional(),\n created_at: z.string().describe(\"ISO timestamp when the task group was created\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group\"),\n}).passthrough().describe(\"Response model for retrieving a task group.\");\n\nexport const parallelRetrieveTaskGroup = action(\"PARALLEL_RETRIEVE_TASK_GROUP\", {\n slug: \"parallel-retrieve-task-group\",\n name: \"Retrieve Task Group\",\n description: \"Tool to retrieve details of a specific task group. Use when you have a valid task group ID and want to view its details.\",\n input: ParallelRetrieveTaskGroupInput,\n output: ParallelRetrieveTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACtF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kDAAgE,EAAE,OAAO;CAC7E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CAC5E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2D,EAAE,OAAO;EACpE,QAAQ,gDAAgD,SAAS;EACjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-task-run-input.ts
|
|
4
|
+
const ParallelRetrieveTaskRunInputInput = zod.z.object({ run_id: zod.z.string().describe("Unique identifier of the task run to retrieve input for.") }).describe("Request model for retrieving task run input.");
|
|
5
|
+
const ParallelRetrieveTaskRunInput_TaskSpecSchema = zod.z.object({
|
|
6
|
+
input_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema for task input").nullable().optional(),
|
|
7
|
+
output_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema for task output")
|
|
8
|
+
}).describe("Task specification with input and output schemas.");
|
|
9
|
+
const ParallelRetrieveTaskRunInput_SourcePolicySchema = zod.z.object({
|
|
10
|
+
after_date: zod.z.string().describe("Filter results after this date").nullable().optional(),
|
|
11
|
+
exclude_domains: zod.z.array(zod.z.unknown()).describe("Domains to exclude from web search results").nullable().optional(),
|
|
12
|
+
include_domains: zod.z.array(zod.z.unknown()).describe("Domains to include in web search results").nullable().optional()
|
|
13
|
+
}).describe("Optional source policy governing preferred and disallowed domains in web search results.");
|
|
14
|
+
const ParallelRetrieveTaskRunInputOutput = zod.z.object({
|
|
15
|
+
input: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]),
|
|
16
|
+
metadata: zod.z.object({}).describe("User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.").nullable().optional(),
|
|
17
|
+
processor: zod.z.string().describe("Processor to use for the task."),
|
|
18
|
+
task_spec: ParallelRetrieveTaskRunInput_TaskSpecSchema.nullable().optional(),
|
|
19
|
+
source_policy: ParallelRetrieveTaskRunInput_SourcePolicySchema.nullable().optional(),
|
|
20
|
+
previous_interaction_id: zod.z.string().describe("Interaction ID to use as context for this request.").nullable().optional()
|
|
21
|
+
}).describe("Response model for task run input retrieval.");
|
|
22
|
+
const parallelRetrieveTaskRunInput = require_action.action("PARALLEL_RETRIEVE_TASK_RUN_INPUT", {
|
|
23
|
+
slug: "parallel-retrieve-task-run-input",
|
|
24
|
+
name: "Retrieve Task Run Input",
|
|
25
|
+
description: "Tool to retrieve the input data of a specific task run by run_id. Use when you need to view the original input parameters that were provided to a task run.",
|
|
26
|
+
input: ParallelRetrieveTaskRunInputInput,
|
|
27
|
+
output: ParallelRetrieveTaskRunInputOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.parallelRetrieveTaskRunInput = parallelRetrieveTaskRunInput;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=retrieve-task-run-input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-input.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-task-run-input.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskRunInputInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run to retrieve input for.\"),\n}).describe(\"Request model for retrieving task run input.\");\nconst ParallelRetrieveTaskRunInput_TaskSpecSchema: z.ZodTypeAny = z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"Schema for task input\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema for task output\"),\n}).describe(\"Task specification with input and output schemas.\");\nconst ParallelRetrieveTaskRunInput_SourcePolicySchema: z.ZodTypeAny = z.object({\n after_date: z.string().describe(\"Filter results after this date\").nullable().optional(),\n exclude_domains: z.array(z.unknown()).describe(\"Domains to exclude from web search results\").nullable().optional(),\n include_domains: z.array(z.unknown()).describe(\"Domains to include in web search results\").nullable().optional(),\n}).describe(\"Optional source policy governing preferred and disallowed domains in web search results.\");\nexport const ParallelRetrieveTaskRunInputOutput: z.ZodTypeAny = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n metadata: z.object({}).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").nullable().optional(),\n processor: z.string().describe(\"Processor to use for the task.\"),\n task_spec: ParallelRetrieveTaskRunInput_TaskSpecSchema.nullable().optional(),\n source_policy: ParallelRetrieveTaskRunInput_SourcePolicySchema.nullable().optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").nullable().optional(),\n}).describe(\"Response model for task run input retrieval.\");\n\nexport const parallelRetrieveTaskRunInput = action(\"PARALLEL_RETRIEVE_TASK_RUN_INPUT\", {\n slug: \"parallel-retrieve-task-run-input\",\n name: \"Retrieve Task Run Input\",\n description: \"Tool to retrieve the input data of a specific task run by run_id. Use when you need to view the original input parameters that were provided to a task run.\",\n input: ParallelRetrieveTaskRunInputInput,\n output: ParallelRetrieveTaskRunInputOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,0FAA0F;AACtG,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC/D,WAAW,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC3E,eAAe,gDAAgD,SAAS,CAAC,CAAC,SAAS;CACnF,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-run-input.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskRunInputInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskRunInputOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskRunInput: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskRunInput };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-run-input.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-input.d.cts","names":[],"sources":["../../src/actions/retrieve-task-run-input.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAES;AAAA,cAU9C,kCAAA,EAAoC,CAAA,CAAE,UAOQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-run-input.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskRunInputInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskRunInputOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskRunInput: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskRunInput };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-run-input.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-input.d.mts","names":[],"sources":["../../src/actions/retrieve-task-run-input.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAES;AAAA,cAU9C,kCAAA,EAAoC,CAAA,CAAE,UAOQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-task-run-input.ts
|
|
4
|
+
const ParallelRetrieveTaskRunInputInput = z.object({ run_id: z.string().describe("Unique identifier of the task run to retrieve input for.") }).describe("Request model for retrieving task run input.");
|
|
5
|
+
const ParallelRetrieveTaskRunInput_TaskSpecSchema = z.object({
|
|
6
|
+
input_schema: z.record(z.string(), z.unknown()).describe("Schema for task input").nullable().optional(),
|
|
7
|
+
output_schema: z.record(z.string(), z.unknown()).describe("Schema for task output")
|
|
8
|
+
}).describe("Task specification with input and output schemas.");
|
|
9
|
+
const ParallelRetrieveTaskRunInput_SourcePolicySchema = z.object({
|
|
10
|
+
after_date: z.string().describe("Filter results after this date").nullable().optional(),
|
|
11
|
+
exclude_domains: z.array(z.unknown()).describe("Domains to exclude from web search results").nullable().optional(),
|
|
12
|
+
include_domains: z.array(z.unknown()).describe("Domains to include in web search results").nullable().optional()
|
|
13
|
+
}).describe("Optional source policy governing preferred and disallowed domains in web search results.");
|
|
14
|
+
const parallelRetrieveTaskRunInput = action("PARALLEL_RETRIEVE_TASK_RUN_INPUT", {
|
|
15
|
+
slug: "parallel-retrieve-task-run-input",
|
|
16
|
+
name: "Retrieve Task Run Input",
|
|
17
|
+
description: "Tool to retrieve the input data of a specific task run by run_id. Use when you need to view the original input parameters that were provided to a task run.",
|
|
18
|
+
input: ParallelRetrieveTaskRunInputInput,
|
|
19
|
+
output: z.object({
|
|
20
|
+
input: z.union([z.string(), z.record(z.string(), z.unknown())]),
|
|
21
|
+
metadata: z.object({}).describe("User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.").nullable().optional(),
|
|
22
|
+
processor: z.string().describe("Processor to use for the task."),
|
|
23
|
+
task_spec: ParallelRetrieveTaskRunInput_TaskSpecSchema.nullable().optional(),
|
|
24
|
+
source_policy: ParallelRetrieveTaskRunInput_SourcePolicySchema.nullable().optional(),
|
|
25
|
+
previous_interaction_id: z.string().describe("Interaction ID to use as context for this request.").nullable().optional()
|
|
26
|
+
}).describe("Response model for task run input retrieval.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { parallelRetrieveTaskRunInput };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=retrieve-task-run-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-input.mjs","names":[],"sources":["../../src/actions/retrieve-task-run-input.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskRunInputInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run to retrieve input for.\"),\n}).describe(\"Request model for retrieving task run input.\");\nconst ParallelRetrieveTaskRunInput_TaskSpecSchema: z.ZodTypeAny = z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"Schema for task input\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema for task output\"),\n}).describe(\"Task specification with input and output schemas.\");\nconst ParallelRetrieveTaskRunInput_SourcePolicySchema: z.ZodTypeAny = z.object({\n after_date: z.string().describe(\"Filter results after this date\").nullable().optional(),\n exclude_domains: z.array(z.unknown()).describe(\"Domains to exclude from web search results\").nullable().optional(),\n include_domains: z.array(z.unknown()).describe(\"Domains to include in web search results\").nullable().optional(),\n}).describe(\"Optional source policy governing preferred and disallowed domains in web search results.\");\nexport const ParallelRetrieveTaskRunInputOutput: z.ZodTypeAny = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n metadata: z.object({}).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").nullable().optional(),\n processor: z.string().describe(\"Processor to use for the task.\"),\n task_spec: ParallelRetrieveTaskRunInput_TaskSpecSchema.nullable().optional(),\n source_policy: ParallelRetrieveTaskRunInput_SourcePolicySchema.nullable().optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").nullable().optional(),\n}).describe(\"Response model for task run input retrieval.\");\n\nexport const parallelRetrieveTaskRunInput = action(\"PARALLEL_RETRIEVE_TASK_RUN_INPUT\", {\n slug: \"parallel-retrieve-task-run-input\",\n name: \"Retrieve Task Run Input\",\n description: \"Tool to retrieve the input data of a specific task run by run_id. Use when you need to view the original input parameters that were provided to a task run.\",\n input: ParallelRetrieveTaskRunInputInput,\n output: ParallelRetrieveTaskRunInputOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,8CAA4D,EAAE,OAAO;CACzE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAgE,EAAE,OAAO;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAUtG,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd8D,EAAE,OAAO;EACvE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChM,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC/D,WAAW,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC3E,eAAe,gDAAgD,SAAS,CAAC,CAAC,SAAS;EACnF,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-task-run-result.ts
|
|
4
|
+
const ParallelRetrieveTaskRunResultInput = zod.z.object({
|
|
5
|
+
run_id: zod.z.string().describe("The identifier of the task run to retrieve results for."),
|
|
6
|
+
timeout: zod.z.number().int().describe("Timeout in seconds for blocking request. If not provided, defaults to 600 seconds (10 minutes). The request will block until the run completes or the timeout is reached.").optional(),
|
|
7
|
+
parallel_beta: zod.z.string().describe("Optional beta version header for accessing beta features.").optional()
|
|
8
|
+
}).describe("Request model for retrieving a task run result.");
|
|
9
|
+
const ParallelRetrieveTaskRunResult_TaskRunSchema = zod.z.object({
|
|
10
|
+
run_id: zod.z.string().describe("Unique identifier for the task run"),
|
|
11
|
+
status: zod.z.enum([
|
|
12
|
+
"queued",
|
|
13
|
+
"running",
|
|
14
|
+
"completed",
|
|
15
|
+
"failed",
|
|
16
|
+
"cancelled"
|
|
17
|
+
]).describe("Current status of the task run"),
|
|
18
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the run").nullable().optional(),
|
|
19
|
+
is_active: zod.z.boolean().describe("Whether the run is actively processing"),
|
|
20
|
+
processor: zod.z.string().describe("Processor type used for the run (e.g., 'core', 'pro')"),
|
|
21
|
+
created_at: zod.z.string().describe("RFC 3339 timestamp of creation"),
|
|
22
|
+
modified_at: zod.z.string().describe("RFC 3339 timestamp of last modification"),
|
|
23
|
+
interaction_id: zod.z.string().describe("Associated interaction ID")
|
|
24
|
+
}).describe("Task run metadata object.");
|
|
25
|
+
const ParallelRetrieveTaskRunResultOutput = zod.z.object({
|
|
26
|
+
run: ParallelRetrieveTaskRunResult_TaskRunSchema.nullable(),
|
|
27
|
+
output: zod.z.unknown().describe("The output result from the task run. Structure varies by task type and can be a dict, string, list, or other types.").nullable().optional()
|
|
28
|
+
}).describe("Response model for task run results.");
|
|
29
|
+
const parallelRetrieveTaskRunResult = require_action.action("PARALLEL_RETRIEVE_TASK_RUN_RESULT", {
|
|
30
|
+
slug: "parallel-retrieve-task-run-result",
|
|
31
|
+
name: "Retrieve Task Run Result",
|
|
32
|
+
description: "Tool to retrieve the result of a task run by run_id, blocking until the run completes. Use when you need to wait for and fetch the final output of a previously initiated task run. The request will block until the run completes or the timeout is reached.",
|
|
33
|
+
input: ParallelRetrieveTaskRunResultInput,
|
|
34
|
+
output: ParallelRetrieveTaskRunResultOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.parallelRetrieveTaskRunResult = parallelRetrieveTaskRunResult;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=retrieve-task-run-result.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-result.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-task-run-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskRunResultInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"The identifier of the task run to retrieve results for.\"),\n timeout: z.number().int().describe(\"Timeout in seconds for blocking request. If not provided, defaults to 600 seconds (10 minutes). The request will block until the run completes or the timeout is reached.\").optional(),\n parallel_beta: z.string().describe(\"Optional beta version header for accessing beta features.\").optional(),\n}).describe(\"Request model for retrieving a task run result.\");\nconst ParallelRetrieveTaskRunResult_TaskRunSchema: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier for the task run\"),\n status: z.enum([\"queued\", \"running\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the task run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the run is actively processing\"),\n processor: z.string().describe(\"Processor type used for the run (e.g., 'core', 'pro')\"),\n created_at: z.string().describe(\"RFC 3339 timestamp of creation\"),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\"),\n interaction_id: z.string().describe(\"Associated interaction ID\"),\n}).describe(\"Task run metadata object.\");\nexport const ParallelRetrieveTaskRunResultOutput: z.ZodTypeAny = z.object({\n run: ParallelRetrieveTaskRunResult_TaskRunSchema.nullable(),\n output: z.unknown().describe(\"The output result from the task run. Structure varies by task type and can be a dict, string, list, or other types.\").nullable().optional(),\n}).describe(\"Response model for task run results.\");\n\nexport const parallelRetrieveTaskRunResult = action(\"PARALLEL_RETRIEVE_TASK_RUN_RESULT\", {\n slug: \"parallel-retrieve-task-run-result\",\n name: \"Retrieve Task Run Result\",\n description: \"Tool to retrieve the result of a task run by run_id, blocking until the run completes. Use when you need to wait for and fetch the final output of a previously initiated task run. The request will block until the run completes or the timeout is reached.\",\n input: ParallelRetrieveTaskRunResultInput,\n output: ParallelRetrieveTaskRunResultOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACzN,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAChE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;EAAa;EAAU;CAAW,CAAC,CAAC,CAAC,SAAS,gCAAgC;CACnH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACjE,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,KAAK,4CAA4C,SAAS;CAC1D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-run-result.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskRunResultInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskRunResultOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskRunResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskRunResult };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-run-result.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-result.d.cts","names":[],"sources":["../../src/actions/retrieve-task-run-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIW;AAAA,cAWjD,mCAAA,EAAqC,CAAA,CAAE,UAGD;AAAA,cAEtC,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-task-run-result.d.ts
|
|
4
|
+
declare const ParallelRetrieveTaskRunResultInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParallelRetrieveTaskRunResultOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parallelRetrieveTaskRunResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parallelRetrieveTaskRunResult };
|
|
9
|
+
//# sourceMappingURL=retrieve-task-run-result.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-result.d.mts","names":[],"sources":["../../src/actions/retrieve-task-run-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIW;AAAA,cAWjD,mCAAA,EAAqC,CAAA,CAAE,UAGD;AAAA,cAEtC,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-task-run-result.ts
|
|
4
|
+
const ParallelRetrieveTaskRunResultInput = z.object({
|
|
5
|
+
run_id: z.string().describe("The identifier of the task run to retrieve results for."),
|
|
6
|
+
timeout: z.number().int().describe("Timeout in seconds for blocking request. If not provided, defaults to 600 seconds (10 minutes). The request will block until the run completes or the timeout is reached.").optional(),
|
|
7
|
+
parallel_beta: z.string().describe("Optional beta version header for accessing beta features.").optional()
|
|
8
|
+
}).describe("Request model for retrieving a task run result.");
|
|
9
|
+
const ParallelRetrieveTaskRunResult_TaskRunSchema = z.object({
|
|
10
|
+
run_id: z.string().describe("Unique identifier for the task run"),
|
|
11
|
+
status: z.enum([
|
|
12
|
+
"queued",
|
|
13
|
+
"running",
|
|
14
|
+
"completed",
|
|
15
|
+
"failed",
|
|
16
|
+
"cancelled"
|
|
17
|
+
]).describe("Current status of the task run"),
|
|
18
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata for the run").nullable().optional(),
|
|
19
|
+
is_active: z.boolean().describe("Whether the run is actively processing"),
|
|
20
|
+
processor: z.string().describe("Processor type used for the run (e.g., 'core', 'pro')"),
|
|
21
|
+
created_at: z.string().describe("RFC 3339 timestamp of creation"),
|
|
22
|
+
modified_at: z.string().describe("RFC 3339 timestamp of last modification"),
|
|
23
|
+
interaction_id: z.string().describe("Associated interaction ID")
|
|
24
|
+
}).describe("Task run metadata object.");
|
|
25
|
+
const parallelRetrieveTaskRunResult = action("PARALLEL_RETRIEVE_TASK_RUN_RESULT", {
|
|
26
|
+
slug: "parallel-retrieve-task-run-result",
|
|
27
|
+
name: "Retrieve Task Run Result",
|
|
28
|
+
description: "Tool to retrieve the result of a task run by run_id, blocking until the run completes. Use when you need to wait for and fetch the final output of a previously initiated task run. The request will block until the run completes or the timeout is reached.",
|
|
29
|
+
input: ParallelRetrieveTaskRunResultInput,
|
|
30
|
+
output: z.object({
|
|
31
|
+
run: ParallelRetrieveTaskRunResult_TaskRunSchema.nullable(),
|
|
32
|
+
output: z.unknown().describe("The output result from the task run. Structure varies by task type and can be a dict, string, list, or other types.").nullable().optional()
|
|
33
|
+
}).describe("Response model for task run results.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { parallelRetrieveTaskRunResult };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=retrieve-task-run-result.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-task-run-result.mjs","names":[],"sources":["../../src/actions/retrieve-task-run-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelRetrieveTaskRunResultInput: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"The identifier of the task run to retrieve results for.\"),\n timeout: z.number().int().describe(\"Timeout in seconds for blocking request. If not provided, defaults to 600 seconds (10 minutes). The request will block until the run completes or the timeout is reached.\").optional(),\n parallel_beta: z.string().describe(\"Optional beta version header for accessing beta features.\").optional(),\n}).describe(\"Request model for retrieving a task run result.\");\nconst ParallelRetrieveTaskRunResult_TaskRunSchema: z.ZodTypeAny = z.object({\n run_id: z.string().describe(\"Unique identifier for the task run\"),\n status: z.enum([\"queued\", \"running\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the task run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the run is actively processing\"),\n processor: z.string().describe(\"Processor type used for the run (e.g., 'core', 'pro')\"),\n created_at: z.string().describe(\"RFC 3339 timestamp of creation\"),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\"),\n interaction_id: z.string().describe(\"Associated interaction ID\"),\n}).describe(\"Task run metadata object.\");\nexport const ParallelRetrieveTaskRunResultOutput: z.ZodTypeAny = z.object({\n run: ParallelRetrieveTaskRunResult_TaskRunSchema.nullable(),\n output: z.unknown().describe(\"The output result from the task run. Structure varies by task type and can be a dict, string, list, or other types.\").nullable().optional(),\n}).describe(\"Response model for task run results.\");\n\nexport const parallelRetrieveTaskRunResult = action(\"PARALLEL_RETRIEVE_TASK_RUN_RESULT\", {\n slug: \"parallel-retrieve-task-run-result\",\n name: \"Retrieve Task Run Result\",\n description: \"Tool to retrieve the result of a task run by run_id, blocking until the run completes. Use when you need to wait for and fetch the final output of a previously initiated task run. The request will block until the run completes or the timeout is reached.\",\n input: ParallelRetrieveTaskRunResultInput,\n output: ParallelRetrieveTaskRunResultOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACzN,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,8CAA4D,EAAE,OAAO;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAChE,QAAQ,EAAE,KAAK;EAAC;EAAU;EAAW;EAAa;EAAU;CAAW,CAAC,CAAC,CAAC,SAAS,gCAAgC;CACnH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC1E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACjE,CAAC,CAAC,CAAC,SAAS,2BAA2B;AAMvC,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+D,EAAE,OAAO;EACxE,KAAK,4CAA4C,SAAS;EAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|