@keystrokehq/parallel 0.1.0 → 0.1.2
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.cjs +8 -8
- package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.cts +50 -3
- package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.mts +50 -3
- package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.mjs +8 -8
- package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.cjs +2 -2
- package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.cts +54 -3
- package/dist/actions/add-runs-to-task-group.d.cts.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.mts +54 -3
- package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
- package/dist/actions/add-runs-to-task-group.mjs +2 -2
- package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
- package/dist/actions/cancel-find-all-run.cjs.map +1 -1
- package/dist/actions/cancel-find-all-run.d.cts +7 -3
- package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
- package/dist/actions/cancel-find-all-run.d.mts +7 -3
- package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
- package/dist/actions/cancel-find-all-run.mjs.map +1 -1
- package/dist/actions/create-chat-completions.cjs +10 -10
- package/dist/actions/create-chat-completions.cjs.map +1 -1
- package/dist/actions/create-chat-completions.d.cts +86 -3
- package/dist/actions/create-chat-completions.d.cts.map +1 -1
- package/dist/actions/create-chat-completions.d.mts +86 -3
- package/dist/actions/create-chat-completions.d.mts.map +1 -1
- package/dist/actions/create-chat-completions.mjs +10 -10
- package/dist/actions/create-chat-completions.mjs.map +1 -1
- package/dist/actions/create-monitor.cjs +4 -4
- package/dist/actions/create-monitor.cjs.map +1 -1
- package/dist/actions/create-monitor.d.cts +56 -3
- package/dist/actions/create-monitor.d.cts.map +1 -1
- package/dist/actions/create-monitor.d.mts +56 -3
- package/dist/actions/create-monitor.d.mts.map +1 -1
- package/dist/actions/create-monitor.mjs +4 -4
- package/dist/actions/create-monitor.mjs.map +1 -1
- package/dist/actions/create-task-group.cjs +3 -3
- package/dist/actions/create-task-group.cjs.map +1 -1
- package/dist/actions/create-task-group.d.cts +18 -3
- package/dist/actions/create-task-group.d.cts.map +1 -1
- package/dist/actions/create-task-group.d.mts +18 -3
- package/dist/actions/create-task-group.d.mts.map +1 -1
- package/dist/actions/create-task-group.mjs +3 -3
- package/dist/actions/create-task-group.mjs.map +1 -1
- package/dist/actions/create-task-run.cjs +6 -6
- package/dist/actions/create-task-run.cjs.map +1 -1
- package/dist/actions/create-task-run.d.cts +62 -3
- package/dist/actions/create-task-run.d.cts.map +1 -1
- package/dist/actions/create-task-run.d.mts +62 -3
- package/dist/actions/create-task-run.d.mts.map +1 -1
- package/dist/actions/create-task-run.mjs +6 -6
- package/dist/actions/create-task-run.mjs.map +1 -1
- package/dist/actions/delete-monitor.cjs +1 -1
- package/dist/actions/delete-monitor.cjs.map +1 -1
- package/dist/actions/delete-monitor.d.cts +31 -3
- package/dist/actions/delete-monitor.d.cts.map +1 -1
- package/dist/actions/delete-monitor.d.mts +31 -3
- package/dist/actions/delete-monitor.d.mts.map +1 -1
- package/dist/actions/delete-monitor.mjs +1 -1
- package/dist/actions/delete-monitor.mjs.map +1 -1
- package/dist/actions/extend-find-all-run.cjs +4 -4
- package/dist/actions/extend-find-all-run.cjs.map +1 -1
- package/dist/actions/extend-find-all-run.d.cts +24 -3
- package/dist/actions/extend-find-all-run.d.cts.map +1 -1
- package/dist/actions/extend-find-all-run.d.mts +24 -3
- package/dist/actions/extend-find-all-run.d.mts.map +1 -1
- package/dist/actions/extend-find-all-run.mjs +4 -4
- package/dist/actions/extend-find-all-run.mjs.map +1 -1
- package/dist/actions/extract.cjs +7 -7
- package/dist/actions/extract.cjs.map +1 -1
- package/dist/actions/extract.d.cts +63 -3
- package/dist/actions/extract.d.cts.map +1 -1
- package/dist/actions/extract.d.mts +63 -3
- package/dist/actions/extract.d.mts.map +1 -1
- package/dist/actions/extract.mjs +7 -7
- package/dist/actions/extract.mjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.cjs +18 -18
- package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.cts +91 -3
- package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.mts +91 -3
- package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
- package/dist/actions/fetch-task-group-runs.mjs +18 -18
- package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
- package/dist/actions/find-all.cjs +6 -6
- package/dist/actions/find-all.cjs.map +1 -1
- package/dist/actions/find-all.d.cts +70 -3
- package/dist/actions/find-all.d.cts.map +1 -1
- package/dist/actions/find-all.d.mts +70 -3
- package/dist/actions/find-all.d.mts.map +1 -1
- package/dist/actions/find-all.mjs +6 -6
- package/dist/actions/find-all.mjs.map +1 -1
- package/dist/actions/get-find-all-run-result.cjs +10 -10
- package/dist/actions/get-find-all-run-result.cjs.map +1 -1
- package/dist/actions/get-find-all-run-result.d.cts +68 -3
- package/dist/actions/get-find-all-run-result.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-result.d.mts +68 -3
- package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-result.mjs +10 -10
- package/dist/actions/get-find-all-run-result.mjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.cjs +4 -4
- package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.cts +22 -3
- package/dist/actions/get-find-all-run-schema.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.mts +22 -3
- package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-schema.mjs +4 -4
- package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
- package/dist/actions/ingest-find-all-run.cjs +4 -4
- package/dist/actions/ingest-find-all-run.cjs.map +1 -1
- package/dist/actions/ingest-find-all-run.d.cts +22 -3
- package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
- package/dist/actions/ingest-find-all-run.d.mts +22 -3
- package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
- package/dist/actions/ingest-find-all-run.mjs +4 -4
- package/dist/actions/ingest-find-all-run.mjs.map +1 -1
- package/dist/actions/list-monitor-events.cjs +6 -6
- package/dist/actions/list-monitor-events.cjs.map +1 -1
- package/dist/actions/list-monitor-events.d.cts +26 -3
- package/dist/actions/list-monitor-events.d.cts.map +1 -1
- package/dist/actions/list-monitor-events.d.mts +26 -3
- package/dist/actions/list-monitor-events.d.mts.map +1 -1
- package/dist/actions/list-monitor-events.mjs +6 -6
- package/dist/actions/list-monitor-events.mjs.map +1 -1
- package/dist/actions/list-monitors.cjs +4 -4
- package/dist/actions/list-monitors.cjs.map +1 -1
- package/dist/actions/list-monitors.d.cts +35 -3
- package/dist/actions/list-monitors.d.cts.map +1 -1
- package/dist/actions/list-monitors.d.mts +35 -3
- package/dist/actions/list-monitors.d.mts.map +1 -1
- package/dist/actions/list-monitors.mjs +4 -4
- package/dist/actions/list-monitors.mjs.map +1 -1
- package/dist/actions/retrieve-event-group.cjs +6 -6
- package/dist/actions/retrieve-event-group.cjs.map +1 -1
- package/dist/actions/retrieve-event-group.d.cts +26 -3
- package/dist/actions/retrieve-event-group.d.cts.map +1 -1
- package/dist/actions/retrieve-event-group.d.mts +26 -3
- package/dist/actions/retrieve-event-group.d.mts.map +1 -1
- package/dist/actions/retrieve-event-group.mjs +6 -6
- package/dist/actions/retrieve-event-group.mjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.cjs +4 -4
- package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.cts +34 -3
- package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.mts +34 -3
- package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.mjs +4 -4
- package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
- package/dist/actions/retrieve-monitor.cjs +4 -4
- package/dist/actions/retrieve-monitor.cjs.map +1 -1
- package/dist/actions/retrieve-monitor.d.cts +31 -3
- package/dist/actions/retrieve-monitor.d.cts.map +1 -1
- package/dist/actions/retrieve-monitor.d.mts +31 -3
- package/dist/actions/retrieve-monitor.d.mts.map +1 -1
- package/dist/actions/retrieve-monitor.mjs +4 -4
- package/dist/actions/retrieve-monitor.mjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.cjs +7 -7
- package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.cts +33 -3
- package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.mts +33 -3
- package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group-run.mjs +7 -7
- package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
- package/dist/actions/retrieve-task-group.cjs +5 -5
- package/dist/actions/retrieve-task-group.cjs.map +1 -1
- package/dist/actions/retrieve-task-group.d.cts +18 -3
- package/dist/actions/retrieve-task-group.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group.d.mts +18 -3
- package/dist/actions/retrieve-task-group.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group.mjs +5 -5
- package/dist/actions/retrieve-task-group.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.cjs +1 -1
- package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.cts +21 -3
- package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.mts +21 -3
- package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-input.mjs +1 -1
- package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.cjs +7 -7
- package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.cts +29 -3
- package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.mts +29 -3
- package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-result.mjs +7 -7
- package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
- package/dist/actions/retrieve-task-run.cjs +8 -8
- package/dist/actions/retrieve-task-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-run.d.cts +35 -3
- package/dist/actions/retrieve-task-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run.d.mts +35 -3
- package/dist/actions/retrieve-task-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run.mjs +8 -8
- package/dist/actions/retrieve-task-run.mjs.map +1 -1
- package/dist/actions/search.cjs +3 -3
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +15 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +15 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +3 -3
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/simulate-event.cjs.map +1 -1
- package/dist/actions/simulate-event.d.cts +15 -3
- package/dist/actions/simulate-event.d.cts.map +1 -1
- package/dist/actions/simulate-event.d.mts +15 -3
- package/dist/actions/simulate-event.d.mts.map +1 -1
- package/dist/actions/simulate-event.mjs.map +1 -1
- package/dist/actions/stream-find-all-events.cjs +28 -28
- package/dist/actions/stream-find-all-events.cjs.map +1 -1
- package/dist/actions/stream-find-all-events.d.cts +104 -3
- package/dist/actions/stream-find-all-events.d.cts.map +1 -1
- package/dist/actions/stream-find-all-events.d.mts +104 -3
- package/dist/actions/stream-find-all-events.d.mts.map +1 -1
- package/dist/actions/stream-find-all-events.mjs +28 -28
- package/dist/actions/stream-find-all-events.mjs.map +1 -1
- package/dist/actions/stream-task-group-events.cjs +17 -17
- package/dist/actions/stream-task-group-events.cjs.map +1 -1
- package/dist/actions/stream-task-group-events.d.cts +44 -3
- package/dist/actions/stream-task-group-events.d.cts.map +1 -1
- package/dist/actions/stream-task-group-events.d.mts +44 -3
- package/dist/actions/stream-task-group-events.d.mts.map +1 -1
- package/dist/actions/stream-task-group-events.mjs +17 -17
- package/dist/actions/stream-task-group-events.mjs.map +1 -1
- package/dist/actions/stream-task-run-events.cjs +13 -13
- package/dist/actions/stream-task-run-events.cjs.map +1 -1
- package/dist/actions/stream-task-run-events.d.cts +45 -3
- package/dist/actions/stream-task-run-events.d.cts.map +1 -1
- package/dist/actions/stream-task-run-events.d.mts +45 -3
- package/dist/actions/stream-task-run-events.d.mts.map +1 -1
- package/dist/actions/stream-task-run-events.mjs +13 -13
- package/dist/actions/stream-task-run-events.mjs.map +1 -1
- package/dist/actions/suggest-task.cjs +1 -1
- package/dist/actions/suggest-task.cjs.map +1 -1
- package/dist/actions/suggest-task.d.cts +12 -3
- package/dist/actions/suggest-task.d.cts.map +1 -1
- package/dist/actions/suggest-task.d.mts +12 -3
- package/dist/actions/suggest-task.d.mts.map +1 -1
- package/dist/actions/suggest-task.mjs +1 -1
- package/dist/actions/suggest-task.mjs.map +1 -1
- package/dist/actions/update-monitor.cjs +4 -4
- package/dist/actions/update-monitor.cjs.map +1 -1
- package/dist/actions/update-monitor.d.cts +50 -3
- package/dist/actions/update-monitor.d.cts.map +1 -1
- package/dist/actions/update-monitor.d.mts +50 -3
- package/dist/actions/update-monitor.d.mts.map +1 -1
- package/dist/actions/update-monitor.mjs +4 -4
- package/dist/actions/update-monitor.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,62 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-monitor.d.ts
|
|
4
|
-
declare const ParallelCreateMonitorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateMonitorInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
cadence: z.ZodEnum<{
|
|
7
|
+
daily: "daily";
|
|
8
|
+
weekly: "weekly";
|
|
9
|
+
hourly: "hourly";
|
|
10
|
+
every_two_weeks: "every_two_weeks";
|
|
11
|
+
}>;
|
|
12
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
event_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
+
output_schema: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
type: z.ZodOptional<z.ZodString>;
|
|
19
|
+
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const ParallelCreateMonitorOutput: z.ZodObject<{
|
|
23
|
+
query: z.ZodNullable<z.ZodString>;
|
|
24
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
active: "active";
|
|
26
|
+
canceled: "canceled";
|
|
27
|
+
}>>;
|
|
28
|
+
cadence: z.ZodNullable<z.ZodEnum<{
|
|
29
|
+
daily: "daily";
|
|
30
|
+
weekly: "weekly";
|
|
31
|
+
hourly: "hourly";
|
|
32
|
+
every_two_weeks: "every_two_weeks";
|
|
33
|
+
}>>;
|
|
34
|
+
webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
|
+
url: z.ZodNullable<z.ZodString>;
|
|
36
|
+
event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
40
|
+
monitor_id: z.ZodNullable<z.ZodString>;
|
|
41
|
+
last_run_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const parallelCreateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
|
+
query: string;
|
|
49
|
+
cadence: "daily" | "weekly" | "hourly" | "every_two_weeks";
|
|
50
|
+
webhook?: {
|
|
51
|
+
url: string;
|
|
52
|
+
event_types?: string[] | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
metadata?: Record<string, unknown> | undefined;
|
|
55
|
+
output_schema?: {
|
|
56
|
+
json_schema: Record<string, unknown>;
|
|
57
|
+
type?: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
60
|
//#endregion
|
|
8
61
|
export { parallelCreateMonitor };
|
|
9
62
|
//# sourceMappingURL=create-monitor.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-monitor.d.mts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-monitor.d.mts","names":[],"sources":["../../src/actions/create-monitor.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA;;;;;;;aAMhC,MAAA;;iBAAA,MAAA"}
|
|
@@ -27,7 +27,7 @@ const ParallelCreateMonitor_MonitorCadenceSchema = z.enum([
|
|
|
27
27
|
"every_two_weeks"
|
|
28
28
|
]).describe("Cadence options for monitor execution.");
|
|
29
29
|
const ParallelCreateMonitor_MonitorWebhookSchema = z.object({
|
|
30
|
-
url: z.string().describe("Webhook endpoint URL to receive monitor notifications."),
|
|
30
|
+
url: z.string().describe("Webhook endpoint URL to receive monitor notifications.").nullable(),
|
|
31
31
|
event_types: z.array(z.string()).describe("Event types to subscribe to for webhook notifications.").nullable().optional()
|
|
32
32
|
}).describe("Webhook configuration for monitor notifications.");
|
|
33
33
|
const ParallelCreateMonitor_OutputSchemaSchema = z.object({
|
|
@@ -40,13 +40,13 @@ const parallelCreateMonitor = action("PARALLEL_CREATE_MONITOR", {
|
|
|
40
40
|
description: "Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.",
|
|
41
41
|
input: ParallelCreateMonitorInput,
|
|
42
42
|
output: z.object({
|
|
43
|
-
query: z.string().describe("The query being monitored."),
|
|
43
|
+
query: z.string().describe("The query being monitored.").nullable(),
|
|
44
44
|
status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),
|
|
45
45
|
cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),
|
|
46
46
|
webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),
|
|
47
47
|
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the monitor.").nullable().optional(),
|
|
48
|
-
created_at: z.string().describe("Timestamp of monitor creation in ISO 8601 format."),
|
|
49
|
-
monitor_id: z.string().describe("Unique identifier for the created monitor."),
|
|
48
|
+
created_at: z.string().describe("Timestamp of monitor creation in ISO 8601 format.").nullable(),
|
|
49
|
+
monitor_id: z.string().describe("Unique identifier for the created monitor.").nullable(),
|
|
50
50
|
last_run_at: z.string().describe("Timestamp of the last execution of the monitor in ISO 8601 format.").nullable().optional(),
|
|
51
51
|
output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional()
|
|
52
52
|
}).describe("Response model containing monitor details.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-monitor.mjs","names":[],"sources":["../../src/actions/create-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateMonitorInput
|
|
1
|
+
{"version":3,"file":"create-monitor.mjs","names":[],"sources":["../../src/actions/create-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateMonitorInput = z.object({\n query: z.string().describe(\"Search query to monitor for material changes.\"),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Frequency at which the monitor runs: hourly, daily, weekly, or every_two_weeks.\"),\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").optional(),\n}).describe(\"Webhook configuration for monitor notifications.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.\").optional(),\n output_schema: z.object({\n type: z.string().describe(\"Type identifier for the schema.\").optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\").optional(),\n}).describe(\"Request model for creating a web monitor.\");\nconst ParallelCreateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelCreateMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelCreateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook endpoint URL to receive monitor notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to for webhook notifications.\").nullable().optional(),\n}).describe(\"Webhook configuration for monitor notifications.\");\nconst ParallelCreateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type identifier for the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for the monitor output.\"),\n}).describe(\"Output schema configuration for monitor events.\");\nexport const ParallelCreateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelCreateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelCreateMonitor_MonitorCadenceSchema.nullable(),\n webhook: ParallelCreateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of monitor creation in ISO 8601 format.\").nullable(),\n monitor_id: z.string().describe(\"Unique identifier for the created monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last execution of the monitor in ISO 8601 format.\").nullable().optional(),\n output_schema: ParallelCreateMonitor_OutputSchemaSchema.nullable().optional(),\n}).describe(\"Response model containing monitor details.\");\n\nexport const parallelCreateMonitor = action(\"PARALLEL_CREATE_MONITOR\", {\n slug: \"parallel-create-monitor\",\n name: \"Create Monitor\",\n description: \"Tool to create a web monitor that periodically runs the specified query. The monitor runs once at creation and then continues according to the specified cadence (hourly, daily, weekly, or every two weeks). Use when you need to track changes or developments for a specific search query over time.\",\n input: ParallelCreateMonitorInput,\n output: ParallelCreateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,SAAS,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,iFAAiF;CAC5J,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wXAAwX,CAAC,CAAC,SAAS;CACxb,eAAe,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,4CAA4C,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,8BAA8B;AACxH,MAAM,6CAA6C,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAC7J,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAa7D,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,QAAQ,0CAA0C,SAAS;EAC3D,SAAS,2CAA2C,SAAS;EAC7D,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/create-task-group.ts
|
|
4
4
|
const ParallelCreateTaskGroupInput = zod.z.object({ metadata: zod.z.object({}).describe("User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.").optional() }).describe("Request model for creating a new Task Group.");
|
|
5
5
|
const ParallelCreateTaskGroup_TaskGroupStatusSchema = zod.z.object({
|
|
6
|
-
is_active: zod.z.boolean().describe("True if at least one run in the group is currently active."),
|
|
6
|
+
is_active: zod.z.boolean().describe("True if at least one run in the group is currently active.").nullable(),
|
|
7
7
|
modified_at: zod.z.string().describe("Timestamp of the last status update to the group, as an RFC 3339 string.").nullable().optional(),
|
|
8
|
-
num_task_runs: zod.z.number().int().describe("Number of task runs in the group."),
|
|
8
|
+
num_task_runs: zod.z.number().int().describe("Number of task runs in the group.").nullable(),
|
|
9
9
|
status_message: zod.z.string().describe("Human-readable status message for the group.").nullable().optional(),
|
|
10
10
|
task_run_status_counts: zod.z.object({}).describe("Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).").nullable().optional()
|
|
11
11
|
}).describe("Status information for a task group.");
|
|
@@ -13,7 +13,7 @@ const ParallelCreateTaskGroupOutput = zod.z.object({
|
|
|
13
13
|
status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),
|
|
14
14
|
metadata: zod.z.object({}).describe("User-provided metadata stored with the group.").nullable().optional(),
|
|
15
15
|
created_at: zod.z.string().describe("Timestamp of the creation of the group, as an RFC 3339 string.").nullable().optional(),
|
|
16
|
-
taskgroup_id: zod.z.string().describe("ID of the newly created task group.")
|
|
16
|
+
taskgroup_id: zod.z.string().describe("ID of the newly created task group.").nullable()
|
|
17
17
|
}).describe("Response model for Task Group creation.");
|
|
18
18
|
const parallelCreateTaskGroup = require_action.action("PARALLEL_CREATE_TASK_GROUP", {
|
|
19
19
|
slug: "parallel-create-task-group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-group.cjs","names":["z","action"],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput
|
|
1
|
+
{"version":3,"file":"create-task-group.cjs","names":["z","action"],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.object({}).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.object({}).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQ,8CAA8C,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-task-group.d.ts
|
|
4
|
-
declare const ParallelCreateTaskGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateTaskGroupInput: z.ZodObject<{
|
|
5
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
|
|
8
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
num_task_runs: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
16
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
taskgroup_id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
metadata?: Record<string, never> | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { parallelCreateTaskGroup };
|
|
9
24
|
//# sourceMappingURL=create-task-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-group.d.cts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"create-task-group.d.cts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA;aAMlC,MAAA;AAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-task-group.d.ts
|
|
4
|
-
declare const ParallelCreateTaskGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateTaskGroupInput: z.ZodObject<{
|
|
5
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParallelCreateTaskGroupOutput: z.ZodObject<{
|
|
8
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
modified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
num_task_runs: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
task_run_status_counts: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
16
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
taskgroup_id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const parallelCreateTaskGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
metadata?: Record<string, never> | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { parallelCreateTaskGroup };
|
|
9
24
|
//# sourceMappingURL=create-task-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-group.d.mts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"create-task-group.d.mts","names":[],"sources":["../../src/actions/create-task-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA;aAMlC,MAAA;AAAA"}
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/create-task-group.ts
|
|
4
4
|
const ParallelCreateTaskGroupInput = z.object({ metadata: z.object({}).describe("User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.").optional() }).describe("Request model for creating a new Task Group.");
|
|
5
5
|
const ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({
|
|
6
|
-
is_active: z.boolean().describe("True if at least one run in the group is currently active."),
|
|
6
|
+
is_active: z.boolean().describe("True if at least one run in the group is currently active.").nullable(),
|
|
7
7
|
modified_at: z.string().describe("Timestamp of the last status update to the group, as an RFC 3339 string.").nullable().optional(),
|
|
8
|
-
num_task_runs: z.number().int().describe("Number of task runs in the group."),
|
|
8
|
+
num_task_runs: z.number().int().describe("Number of task runs in the group.").nullable(),
|
|
9
9
|
status_message: z.string().describe("Human-readable status message for the group.").nullable().optional(),
|
|
10
10
|
task_run_status_counts: z.object({}).describe("Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).").nullable().optional()
|
|
11
11
|
}).describe("Status information for a task group.");
|
|
@@ -18,7 +18,7 @@ const parallelCreateTaskGroup = action("PARALLEL_CREATE_TASK_GROUP", {
|
|
|
18
18
|
status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),
|
|
19
19
|
metadata: z.object({}).describe("User-provided metadata stored with the group.").nullable().optional(),
|
|
20
20
|
created_at: z.string().describe("Timestamp of the creation of the group, as an RFC 3339 string.").nullable().optional(),
|
|
21
|
-
taskgroup_id: z.string().describe("ID of the newly created task group.")
|
|
21
|
+
taskgroup_id: z.string().describe("ID of the newly created task group.").nullable()
|
|
22
22
|
}).describe("Response model for Task Group creation.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput
|
|
1
|
+
{"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.object({}).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.object({}).describe(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.object({}).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAQlD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2C,EAAE,OAAO;EACpD,QAAQ,8CAA8C,SAAS;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -33,14 +33,14 @@ const ParallelCreateTaskRun_TaskRunStatusSchema = zod.z.enum([
|
|
|
33
33
|
"cancelled"
|
|
34
34
|
]).describe("Status values for a task run.");
|
|
35
35
|
const ParallelCreateTaskRunOutput = zod.z.object({
|
|
36
|
-
run_id: zod.z.string().describe("Unique identifier for the created task run."),
|
|
36
|
+
run_id: zod.z.string().describe("Unique identifier for the created task run.").nullable(),
|
|
37
37
|
status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),
|
|
38
38
|
metadata: zod.z.object({}).describe("User-provided metadata stored with the run.").nullable().optional(),
|
|
39
|
-
is_active: zod.z.boolean().describe("Whether the task run is currently active."),
|
|
40
|
-
processor: zod.z.string().describe("Processor being used for the task."),
|
|
41
|
-
created_at: zod.z.string().describe("Timestamp when the task run was created (ISO 8601 format)."),
|
|
42
|
-
modified_at: zod.z.string().describe("Timestamp when the task run was last modified (ISO 8601 format)."),
|
|
43
|
-
interaction_id: zod.z.string().describe("Interaction ID associated with this task run.")
|
|
39
|
+
is_active: zod.z.boolean().describe("Whether the task run is currently active.").nullable(),
|
|
40
|
+
processor: zod.z.string().describe("Processor being used for the task.").nullable(),
|
|
41
|
+
created_at: zod.z.string().describe("Timestamp when the task run was created (ISO 8601 format).").nullable(),
|
|
42
|
+
modified_at: zod.z.string().describe("Timestamp when the task run was last modified (ISO 8601 format).").nullable(),
|
|
43
|
+
interaction_id: zod.z.string().describe("Interaction ID associated with this task run.").nullable()
|
|
44
44
|
}).describe("Response model for task run creation.");
|
|
45
45
|
const parallelCreateTaskRun = require_action.action("PARALLEL_CREATE_TASK_RUN", {
|
|
46
46
|
slug: "parallel-create-task-run",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-run.cjs","names":["z","action"],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput
|
|
1
|
+
{"version":3,"file":"create-task-run.cjs","names":["z","action"],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.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.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.object({}).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CACrL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACrG,WAAWA,IAAAA,EAAE,OAAO;EACpB,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9H,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE;CAChI,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACrN,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CACrb,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACtM,eAAeA,IAAAA,EAAE,OAAO;EACxB,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC9G,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAU;CAAmB;CAAW;CAAa;CAAU;CAAc;AAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC7L,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQ,0CAA0C,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-task-run.d.ts
|
|
4
|
-
declare const ParallelCreateTaskRunInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateTaskRunInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
6
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
event_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
11
|
+
processor: z.ZodString;
|
|
12
|
+
task_spec: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
input_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
mcp_servers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
enable_events: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
parallel_beta: z.ZodOptional<z.ZodString>;
|
|
19
|
+
source_policy: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
after_date: z.ZodOptional<z.ZodString>;
|
|
21
|
+
exclude_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
include_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
previous_interaction_id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const ParallelCreateTaskRunOutput: z.ZodObject<{
|
|
27
|
+
run_id: z.ZodNullable<z.ZodString>;
|
|
28
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
29
|
+
queued: "queued";
|
|
30
|
+
running: "running";
|
|
31
|
+
completed: "completed";
|
|
32
|
+
failed: "failed";
|
|
33
|
+
cancelled: "cancelled";
|
|
34
|
+
action_required: "action_required";
|
|
35
|
+
cancelling: "cancelling";
|
|
36
|
+
}>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
38
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
processor: z.ZodNullable<z.ZodString>;
|
|
40
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
41
|
+
modified_at: z.ZodNullable<z.ZodString>;
|
|
42
|
+
interaction_id: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
input: string | Record<string, unknown>;
|
|
46
|
+
processor: string;
|
|
47
|
+
webhook?: {
|
|
48
|
+
url: string;
|
|
49
|
+
event_types?: string[] | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
metadata?: Record<string, never> | undefined;
|
|
52
|
+
task_spec?: {
|
|
53
|
+
output_schema: Record<string, unknown>;
|
|
54
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
mcp_servers?: Record<string, unknown>[] | undefined;
|
|
57
|
+
enable_events?: boolean | undefined;
|
|
58
|
+
parallel_beta?: string | undefined;
|
|
59
|
+
source_policy?: {
|
|
60
|
+
after_date?: string | undefined;
|
|
61
|
+
exclude_domains?: string[] | undefined;
|
|
62
|
+
include_domains?: string[] | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
previous_interaction_id?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { parallelCreateTaskRun };
|
|
9
68
|
//# sourceMappingURL=create-task-run.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-run.d.cts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-task-run.d.cts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-task-run.d.ts
|
|
4
|
-
declare const ParallelCreateTaskRunInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateTaskRunInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
6
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
event_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
11
|
+
processor: z.ZodString;
|
|
12
|
+
task_spec: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
input_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
mcp_servers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
enable_events: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
parallel_beta: z.ZodOptional<z.ZodString>;
|
|
19
|
+
source_policy: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
after_date: z.ZodOptional<z.ZodString>;
|
|
21
|
+
exclude_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
include_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
previous_interaction_id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const ParallelCreateTaskRunOutput: z.ZodObject<{
|
|
27
|
+
run_id: z.ZodNullable<z.ZodString>;
|
|
28
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
29
|
+
queued: "queued";
|
|
30
|
+
running: "running";
|
|
31
|
+
completed: "completed";
|
|
32
|
+
failed: "failed";
|
|
33
|
+
cancelled: "cancelled";
|
|
34
|
+
action_required: "action_required";
|
|
35
|
+
cancelling: "cancelling";
|
|
36
|
+
}>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
38
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
processor: z.ZodNullable<z.ZodString>;
|
|
40
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
41
|
+
modified_at: z.ZodNullable<z.ZodString>;
|
|
42
|
+
interaction_id: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
input: string | Record<string, unknown>;
|
|
46
|
+
processor: string;
|
|
47
|
+
webhook?: {
|
|
48
|
+
url: string;
|
|
49
|
+
event_types?: string[] | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
metadata?: Record<string, never> | undefined;
|
|
52
|
+
task_spec?: {
|
|
53
|
+
output_schema: Record<string, unknown>;
|
|
54
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
mcp_servers?: Record<string, unknown>[] | undefined;
|
|
57
|
+
enable_events?: boolean | undefined;
|
|
58
|
+
parallel_beta?: string | undefined;
|
|
59
|
+
source_policy?: {
|
|
60
|
+
after_date?: string | undefined;
|
|
61
|
+
exclude_domains?: string[] | undefined;
|
|
62
|
+
include_domains?: string[] | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
previous_interaction_id?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { parallelCreateTaskRun };
|
|
9
68
|
//# sourceMappingURL=create-task-run.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-run.d.mts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-task-run.d.mts","names":[],"sources":["../../src/actions/create-task-run.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAW3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -38,14 +38,14 @@ const parallelCreateTaskRun = action("PARALLEL_CREATE_TASK_RUN", {
|
|
|
38
38
|
description: "Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.",
|
|
39
39
|
input: ParallelCreateTaskRunInput,
|
|
40
40
|
output: z.object({
|
|
41
|
-
run_id: z.string().describe("Unique identifier for the created task run."),
|
|
41
|
+
run_id: z.string().describe("Unique identifier for the created task run.").nullable(),
|
|
42
42
|
status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),
|
|
43
43
|
metadata: z.object({}).describe("User-provided metadata stored with the run.").nullable().optional(),
|
|
44
|
-
is_active: z.boolean().describe("Whether the task run is currently active."),
|
|
45
|
-
processor: z.string().describe("Processor being used for the task."),
|
|
46
|
-
created_at: z.string().describe("Timestamp when the task run was created (ISO 8601 format)."),
|
|
47
|
-
modified_at: z.string().describe("Timestamp when the task run was last modified (ISO 8601 format)."),
|
|
48
|
-
interaction_id: z.string().describe("Interaction ID associated with this task run.")
|
|
44
|
+
is_active: z.boolean().describe("Whether the task run is currently active.").nullable(),
|
|
45
|
+
processor: z.string().describe("Processor being used for the task.").nullable(),
|
|
46
|
+
created_at: z.string().describe("Timestamp when the task run was created (ISO 8601 format).").nullable(),
|
|
47
|
+
modified_at: z.string().describe("Timestamp when the task run was last modified (ISO 8601 format).").nullable(),
|
|
48
|
+
interaction_id: z.string().describe("Interaction ID associated with this task run.").nullable()
|
|
49
49
|
}).describe("Response model for task run creation.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput
|
|
1
|
+
{"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.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.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.object({}).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CACrL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACrG,WAAW,EAAE,OAAO;EACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE;CAChI,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACrN,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CACrb,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACtM,eAAe,EAAE,OAAO;EACxB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC9G,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAU;CAAmB;CAAW;CAAa;CAAU;CAAc;AAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAY7L,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhByC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACpF,QAAQ,0CAA0C,SAAS;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const ParallelDeleteMonitor_MonitorCadenceSchema = zod.z.enum([
|
|
|
10
10
|
"every_two_weeks"
|
|
11
11
|
]).describe("Cadence options for monitor execution.");
|
|
12
12
|
const ParallelDeleteMonitor_MonitorWebhookSchema = zod.z.object({
|
|
13
|
-
url: zod.z.string().describe("Webhook URL to receive monitor events"),
|
|
13
|
+
url: zod.z.string().describe("Webhook URL to receive monitor events").nullable(),
|
|
14
14
|
event_types: zod.z.array(zod.z.unknown()).describe("Types of events to trigger the webhook").nullable().optional()
|
|
15
15
|
}).describe("Webhook configuration for the monitor.");
|
|
16
16
|
const ParallelDeleteMonitor_OutputSchemaSchema = zod.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-monitor.cjs","names":["z","action"],"sources":["../../src/actions/delete-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelDeleteMonitorInput
|
|
1
|
+
{"version":3,"file":"delete-monitor.cjs","names":["z","action"],"sources":["../../src/actions/delete-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelDeleteMonitorInput = z.object({\n monitor_id: z.string().describe(\"Unique identifier of the monitor to delete. Deleted monitors can no longer be updated or retrieved.\"),\n}).describe(\"Request model for deleting a monitor.\");\nconst ParallelDeleteMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Status options for monitors.\");\nconst ParallelDeleteMonitor_MonitorCadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Cadence options for monitor execution.\");\nconst ParallelDeleteMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"Webhook URL to receive monitor events\").nullable(),\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 ParallelDeleteMonitor_OutputSchemaSchema = 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 ParallelDeleteMonitorOutput = z.object({\n query: z.string().describe(\"The query that was being monitored\").nullable().optional(),\n status: ParallelDeleteMonitor_MonitorStatusSchema.nullable().optional(),\n cadence: ParallelDeleteMonitor_MonitorCadenceSchema.nullable().optional(),\n webhook: ParallelDeleteMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the monitor\").nullable().optional(),\n monitor_id: z.string().describe(\"ID of the deleted monitor\").nullable().optional(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor\").nullable().optional(),\n output_schema: ParallelDeleteMonitor_OutputSchemaSchema.nullable().optional(),\n}).describe(\"Response model for a deleted monitor, including its status, cadence and metadata.\");\n\nexport const parallelDeleteMonitor = action(\"PARALLEL_DELETE_MONITOR\", {\n slug: \"parallel-delete-monitor\",\n name: \"Delete Monitor\",\n description: \"Tool to delete a monitor, stopping all future executions. Use when you need to permanently remove a monitor. Deleted monitors can no longer be updated or retrieved.\",\n input: ParallelDeleteMonitorInput,\n output: ParallelDeleteMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACvI,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,8BAA8B;AACxH,MAAM,6CAA6CA,IAAAA,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAC7J,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACrG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE/F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|