@keystrokehq/parallel 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-enrichment-to-find-all-run.cjs +6 -6
- package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.cts +8 -7
- package/dist/actions/add-enrichment-to-find-all-run.d.mts +8 -7
- package/dist/actions/add-enrichment-to-find-all-run.mjs +6 -6
- package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.cjs +4 -4
- package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.cts +5 -4
- package/dist/actions/add-runs-to-task-group.d.mts +5 -4
- package/dist/actions/add-runs-to-task-group.mjs +4 -4
- package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
- package/dist/actions/cancel-find-all-run.cjs +1 -1
- package/dist/actions/cancel-find-all-run.cjs.map +1 -1
- package/dist/actions/cancel-find-all-run.d.cts +1 -1
- package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
- package/dist/actions/cancel-find-all-run.d.mts +1 -1
- package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
- package/dist/actions/cancel-find-all-run.mjs +1 -1
- package/dist/actions/cancel-find-all-run.mjs.map +1 -1
- package/dist/actions/create-chat-completions.cjs +7 -7
- package/dist/actions/create-chat-completions.cjs.map +1 -1
- package/dist/actions/create-chat-completions.d.cts +10 -9
- package/dist/actions/create-chat-completions.d.cts.map +1 -1
- package/dist/actions/create-chat-completions.d.mts +10 -9
- package/dist/actions/create-chat-completions.d.mts.map +1 -1
- package/dist/actions/create-chat-completions.mjs +7 -7
- package/dist/actions/create-chat-completions.mjs.map +1 -1
- package/dist/actions/create-monitor.cjs +3 -3
- package/dist/actions/create-monitor.cjs.map +1 -1
- package/dist/actions/create-monitor.d.cts +3 -3
- package/dist/actions/create-monitor.d.mts +3 -3
- package/dist/actions/create-monitor.mjs +3 -3
- package/dist/actions/create-monitor.mjs.map +1 -1
- package/dist/actions/create-task-group.cjs +5 -5
- package/dist/actions/create-task-group.cjs.map +1 -1
- package/dist/actions/create-task-group.d.cts +6 -6
- package/dist/actions/create-task-group.d.mts +6 -6
- package/dist/actions/create-task-group.mjs +5 -5
- package/dist/actions/create-task-group.mjs.map +1 -1
- package/dist/actions/create-task-run.cjs +3 -3
- package/dist/actions/create-task-run.cjs.map +1 -1
- package/dist/actions/create-task-run.d.cts +6 -6
- package/dist/actions/create-task-run.d.mts +6 -6
- package/dist/actions/create-task-run.mjs +3 -3
- package/dist/actions/create-task-run.mjs.map +1 -1
- package/dist/actions/delete-monitor.cjs +3 -3
- package/dist/actions/delete-monitor.cjs.map +1 -1
- package/dist/actions/delete-monitor.d.cts +3 -3
- package/dist/actions/delete-monitor.d.mts +3 -3
- package/dist/actions/delete-monitor.mjs +3 -3
- package/dist/actions/delete-monitor.mjs.map +1 -1
- package/dist/actions/extend-find-all-run.cjs +2 -2
- package/dist/actions/extend-find-all-run.cjs.map +1 -1
- package/dist/actions/extend-find-all-run.d.cts +3 -3
- package/dist/actions/extend-find-all-run.d.mts +3 -3
- package/dist/actions/extend-find-all-run.mjs +2 -2
- 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 +9 -7
- package/dist/actions/extract.d.mts +9 -7
- package/dist/actions/extract.mjs +7 -7
- package/dist/actions/extract.mjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.cjs +11 -11
- package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.cts +16 -16
- package/dist/actions/fetch-task-group-runs.d.mts +16 -16
- package/dist/actions/fetch-task-group-runs.mjs +11 -11
- package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
- package/dist/actions/find-all.cjs +5 -5
- package/dist/actions/find-all.cjs.map +1 -1
- package/dist/actions/find-all.d.cts +10 -8
- package/dist/actions/find-all.d.cts.map +1 -1
- package/dist/actions/find-all.d.mts +10 -8
- package/dist/actions/find-all.d.mts.map +1 -1
- package/dist/actions/find-all.mjs +5 -5
- package/dist/actions/find-all.mjs.map +1 -1
- package/dist/actions/get-find-all-run-result.cjs +7 -7
- package/dist/actions/get-find-all-run-result.cjs.map +1 -1
- package/dist/actions/get-find-all-run-result.d.cts +11 -11
- package/dist/actions/get-find-all-run-result.d.mts +11 -11
- package/dist/actions/get-find-all-run-result.mjs +7 -7
- package/dist/actions/get-find-all-run-result.mjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.cjs +2 -2
- package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.cts +3 -3
- package/dist/actions/get-find-all-run-schema.d.mts +3 -3
- package/dist/actions/get-find-all-run-schema.mjs +2 -2
- package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
- package/dist/actions/ingest-find-all-run.cjs +2 -2
- package/dist/actions/ingest-find-all-run.cjs.map +1 -1
- package/dist/actions/ingest-find-all-run.d.cts +3 -3
- package/dist/actions/ingest-find-all-run.d.mts +3 -3
- package/dist/actions/ingest-find-all-run.mjs +2 -2
- package/dist/actions/ingest-find-all-run.mjs.map +1 -1
- package/dist/actions/list-monitor-events.cjs +5 -5
- package/dist/actions/list-monitor-events.cjs.map +1 -1
- package/dist/actions/list-monitor-events.d.cts +5 -5
- package/dist/actions/list-monitor-events.d.mts +5 -5
- package/dist/actions/list-monitor-events.mjs +5 -5
- 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 +4 -4
- package/dist/actions/list-monitors.d.mts +4 -4
- package/dist/actions/list-monitors.mjs +4 -4
- package/dist/actions/list-monitors.mjs.map +1 -1
- package/dist/actions/retrieve-event-group.cjs +4 -4
- package/dist/actions/retrieve-event-group.cjs.map +1 -1
- package/dist/actions/retrieve-event-group.d.cts +4 -4
- package/dist/actions/retrieve-event-group.d.mts +4 -4
- package/dist/actions/retrieve-event-group.mjs +4 -4
- package/dist/actions/retrieve-event-group.mjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.cjs +3 -3
- package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.cts +5 -5
- package/dist/actions/retrieve-find-all-run-status.d.mts +5 -5
- package/dist/actions/retrieve-find-all-run-status.mjs +3 -3
- package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
- package/dist/actions/retrieve-monitor.cjs +2 -2
- package/dist/actions/retrieve-monitor.cjs.map +1 -1
- package/dist/actions/retrieve-monitor.d.cts +2 -2
- package/dist/actions/retrieve-monitor.d.mts +2 -2
- package/dist/actions/retrieve-monitor.mjs +2 -2
- package/dist/actions/retrieve-monitor.mjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.cjs +2 -2
- package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.cts +4 -4
- package/dist/actions/retrieve-task-group-run.d.mts +4 -4
- package/dist/actions/retrieve-task-group-run.mjs +2 -2
- package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
- package/dist/actions/retrieve-task-group.cjs +1 -1
- package/dist/actions/retrieve-task-group.cjs.map +1 -1
- package/dist/actions/retrieve-task-group.d.cts +1 -1
- package/dist/actions/retrieve-task-group.d.mts +1 -1
- package/dist/actions/retrieve-task-group.mjs +1 -1
- package/dist/actions/retrieve-task-group.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.cjs +4 -4
- package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.cts +4 -4
- package/dist/actions/retrieve-task-run-input.d.mts +4 -4
- package/dist/actions/retrieve-task-run-input.mjs +4 -4
- package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.cjs +2 -2
- package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.cts +2 -2
- package/dist/actions/retrieve-task-run-result.d.mts +2 -2
- package/dist/actions/retrieve-task-run-result.mjs +2 -2
- package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
- package/dist/actions/retrieve-task-run.cjs +3 -3
- package/dist/actions/retrieve-task-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-run.d.cts +5 -5
- package/dist/actions/retrieve-task-run.d.mts +5 -5
- package/dist/actions/retrieve-task-run.mjs +3 -3
- package/dist/actions/retrieve-task-run.mjs.map +1 -1
- package/dist/actions/search.cjs +2 -2
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +2 -2
- package/dist/actions/search.d.mts +2 -2
- package/dist/actions/search.mjs +2 -2
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/simulate-event.cjs +1 -1
- package/dist/actions/simulate-event.cjs.map +1 -1
- package/dist/actions/simulate-event.d.cts +1 -1
- package/dist/actions/simulate-event.d.mts +1 -1
- package/dist/actions/simulate-event.mjs +1 -1
- package/dist/actions/simulate-event.mjs.map +1 -1
- package/dist/actions/stream-find-all-events.cjs +14 -14
- package/dist/actions/stream-find-all-events.cjs.map +1 -1
- package/dist/actions/stream-find-all-events.d.cts +17 -17
- package/dist/actions/stream-find-all-events.d.mts +17 -17
- package/dist/actions/stream-find-all-events.mjs +14 -14
- package/dist/actions/stream-find-all-events.mjs.map +1 -1
- package/dist/actions/stream-task-group-events.cjs +8 -8
- package/dist/actions/stream-task-group-events.cjs.map +1 -1
- package/dist/actions/stream-task-group-events.d.cts +8 -8
- package/dist/actions/stream-task-group-events.d.mts +8 -8
- package/dist/actions/stream-task-group-events.mjs +8 -8
- package/dist/actions/stream-task-group-events.mjs.map +1 -1
- package/dist/actions/stream-task-run-events.cjs +8 -8
- package/dist/actions/stream-task-run-events.cjs.map +1 -1
- package/dist/actions/stream-task-run-events.d.cts +8 -8
- package/dist/actions/stream-task-run-events.d.mts +8 -8
- package/dist/actions/stream-task-run-events.mjs +8 -8
- 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 +1 -1
- package/dist/actions/suggest-task.d.mts +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 +3 -3
- package/dist/actions/update-monitor.cjs.map +1 -1
- package/dist/actions/update-monitor.d.cts +3 -3
- package/dist/actions/update-monitor.d.mts +3 -3
- package/dist/actions/update-monitor.mjs +3 -3
- package/dist/actions/update-monitor.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { action } from "../action.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/create-task-group.ts
|
|
4
|
-
const ParallelCreateTaskGroupInput = z.object({ metadata: z.
|
|
4
|
+
const ParallelCreateTaskGroupInput = z.object({ metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.").optional() }).describe("Request model for creating a new Task Group.");
|
|
5
5
|
const ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({
|
|
6
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
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
|
-
task_run_status_counts: z.
|
|
11
|
-
}).describe("Status information for a task group.");
|
|
10
|
+
task_run_status_counts: z.record(z.string(), z.unknown()).describe("Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).").nullable().optional()
|
|
11
|
+
}).passthrough().describe("Status information for a task group.");
|
|
12
12
|
const parallelCreateTaskGroup = action("PARALLEL_CREATE_TASK_GROUP", {
|
|
13
13
|
slug: "parallel-create-task-group",
|
|
14
14
|
name: "Create Task Group",
|
|
@@ -16,10 +16,10 @@ const parallelCreateTaskGroup = action("PARALLEL_CREATE_TASK_GROUP", {
|
|
|
16
16
|
input: ParallelCreateTaskGroupInput,
|
|
17
17
|
output: z.object({
|
|
18
18
|
status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),
|
|
19
|
-
metadata: z.
|
|
19
|
+
metadata: z.record(z.string(), z.unknown()).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
21
|
taskgroup_id: z.string().describe("ID of the newly created task group.").nullable()
|
|
22
|
-
}).describe("Response model for Task Group creation.")
|
|
22
|
+
}).passthrough().describe("Response model for Task Group creation.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { parallelCreateTaskGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.
|
|
1
|
+
{"version":3,"file":"create-task-group.mjs","names":[],"sources":["../../src/actions/create-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskGroupInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the task group. Keys are strings, values can be string, integer, number, or boolean.\").optional(),\n}).describe(\"Request model for creating a new Task Group.\");\nconst ParallelCreateTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active.\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Count of runs by status (queued, action_required, running, completed, failed, cancelling, cancelled).\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelCreateTaskGroupOutput = z.object({\n status: ParallelCreateTaskGroup_TaskGroupStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the group, as an RFC 3339 string.\").nullable().optional(),\n taskgroup_id: z.string().describe(\"ID of the newly created task group.\").nullable(),\n}).passthrough().describe(\"Response model for Task Group creation.\");\n\nexport const parallelCreateTaskGroup = action(\"PARALLEL_CREATE_TASK_GROUP\", {\n slug: \"parallel-create-task-group\",\n name: \"Create Task Group\",\n description: \"Tool to create a new task group. Use when batching multiple tasks for parallel execution. Task Groups enable grouping and tracking of multiple task runs within a single manageable unit.\",\n input: ParallelCreateTaskGroupInput,\n output: ParallelCreateTaskGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAQhE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2C,EAAE,OAAO;EACpD,QAAQ,8CAA8C,SAAS;EAC/D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ParallelCreateTaskRunInput = zod.z.object({
|
|
|
7
7
|
url: zod.z.string().describe("Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes."),
|
|
8
8
|
event_types: zod.z.array(zod.z.string()).describe("Event types to subscribe to. If not specified, all events are sent.").optional()
|
|
9
9
|
}).describe("Webhook configuration for task run completion events.").optional(),
|
|
10
|
-
metadata: zod.z.
|
|
10
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.").optional(),
|
|
11
11
|
processor: zod.z.string().describe("Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro')."),
|
|
12
12
|
task_spec: zod.z.object({
|
|
13
13
|
input_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema describing the input structure for the task.").optional(),
|
|
@@ -35,13 +35,13 @@ const ParallelCreateTaskRun_TaskRunStatusSchema = zod.z.enum([
|
|
|
35
35
|
const ParallelCreateTaskRunOutput = zod.z.object({
|
|
36
36
|
run_id: zod.z.string().describe("Unique identifier for the created task run.").nullable(),
|
|
37
37
|
status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),
|
|
38
|
-
metadata: zod.z.
|
|
38
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata stored with the run.").nullable().optional(),
|
|
39
39
|
is_active: zod.z.boolean().describe("Whether the task run is currently active.").nullable(),
|
|
40
40
|
processor: zod.z.string().describe("Processor being used for the task.").nullable(),
|
|
41
41
|
created_at: zod.z.string().describe("Timestamp when the task run was created (ISO 8601 format).").nullable(),
|
|
42
42
|
modified_at: zod.z.string().describe("Timestamp when the task run was last modified (ISO 8601 format).").nullable(),
|
|
43
43
|
interaction_id: zod.z.string().describe("Interaction ID associated with this task run.").nullable()
|
|
44
|
-
}).describe("Response model for task run creation.");
|
|
44
|
+
}).passthrough().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",
|
|
47
47
|
name: "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 = 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.
|
|
1
|
+
{"version":3,"file":"create-task-run.cjs","names":["z","action"],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAA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;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const ParallelCreateTaskRunInput: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
event_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
9
|
}, z.core.$strip>>;
|
|
10
|
-
metadata: z.ZodOptional<z.
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
processor: z.ZodString;
|
|
12
12
|
task_spec: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
input_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -27,20 +27,20 @@ declare const ParallelCreateTaskRunOutput: z.ZodObject<{
|
|
|
27
27
|
run_id: z.ZodNullable<z.ZodString>;
|
|
28
28
|
status: z.ZodNullable<z.ZodEnum<{
|
|
29
29
|
queued: "queued";
|
|
30
|
+
action_required: "action_required";
|
|
30
31
|
running: "running";
|
|
31
32
|
completed: "completed";
|
|
32
33
|
failed: "failed";
|
|
33
|
-
cancelled: "cancelled";
|
|
34
|
-
action_required: "action_required";
|
|
35
34
|
cancelling: "cancelling";
|
|
35
|
+
cancelled: "cancelled";
|
|
36
36
|
}>>;
|
|
37
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
38
|
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
processor: z.ZodNullable<z.ZodString>;
|
|
40
40
|
created_at: z.ZodNullable<z.ZodString>;
|
|
41
41
|
modified_at: z.ZodNullable<z.ZodString>;
|
|
42
42
|
interaction_id: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
input: string | Record<string, unknown>;
|
|
46
46
|
processor: string;
|
|
@@ -48,7 +48,7 @@ declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActio
|
|
|
48
48
|
url: string;
|
|
49
49
|
event_types?: string[] | undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
-
metadata?: Record<string,
|
|
51
|
+
metadata?: Record<string, unknown> | undefined;
|
|
52
52
|
task_spec?: {
|
|
53
53
|
output_schema: Record<string, unknown>;
|
|
54
54
|
input_schema?: Record<string, unknown> | undefined;
|
|
@@ -7,7 +7,7 @@ declare const ParallelCreateTaskRunInput: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
event_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
9
|
}, z.core.$strip>>;
|
|
10
|
-
metadata: z.ZodOptional<z.
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
processor: z.ZodString;
|
|
12
12
|
task_spec: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
input_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -27,20 +27,20 @@ declare const ParallelCreateTaskRunOutput: z.ZodObject<{
|
|
|
27
27
|
run_id: z.ZodNullable<z.ZodString>;
|
|
28
28
|
status: z.ZodNullable<z.ZodEnum<{
|
|
29
29
|
queued: "queued";
|
|
30
|
+
action_required: "action_required";
|
|
30
31
|
running: "running";
|
|
31
32
|
completed: "completed";
|
|
32
33
|
failed: "failed";
|
|
33
|
-
cancelled: "cancelled";
|
|
34
|
-
action_required: "action_required";
|
|
35
34
|
cancelling: "cancelling";
|
|
35
|
+
cancelled: "cancelled";
|
|
36
36
|
}>>;
|
|
37
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
38
|
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
processor: z.ZodNullable<z.ZodString>;
|
|
40
40
|
created_at: z.ZodNullable<z.ZodString>;
|
|
41
41
|
modified_at: z.ZodNullable<z.ZodString>;
|
|
42
42
|
interaction_id: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
input: string | Record<string, unknown>;
|
|
46
46
|
processor: string;
|
|
@@ -48,7 +48,7 @@ declare const parallelCreateTaskRun: import("@keystrokehq/action").WorkflowActio
|
|
|
48
48
|
url: string;
|
|
49
49
|
event_types?: string[] | undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
-
metadata?: Record<string,
|
|
51
|
+
metadata?: Record<string, unknown> | undefined;
|
|
52
52
|
task_spec?: {
|
|
53
53
|
output_schema: Record<string, unknown>;
|
|
54
54
|
input_schema?: Record<string, unknown> | undefined;
|
|
@@ -7,7 +7,7 @@ const ParallelCreateTaskRunInput = z.object({
|
|
|
7
7
|
url: z.string().describe("Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes."),
|
|
8
8
|
event_types: z.array(z.string()).describe("Event types to subscribe to. If not specified, all events are sent.").optional()
|
|
9
9
|
}).describe("Webhook configuration for task run completion events.").optional(),
|
|
10
|
-
metadata: z.
|
|
10
|
+
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.").optional(),
|
|
11
11
|
processor: z.string().describe("Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro')."),
|
|
12
12
|
task_spec: z.object({
|
|
13
13
|
input_schema: z.record(z.string(), z.unknown()).describe("JSON schema describing the input structure for the task.").optional(),
|
|
@@ -40,13 +40,13 @@ const parallelCreateTaskRun = action("PARALLEL_CREATE_TASK_RUN", {
|
|
|
40
40
|
output: z.object({
|
|
41
41
|
run_id: z.string().describe("Unique identifier for the created task run.").nullable(),
|
|
42
42
|
status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),
|
|
43
|
-
metadata: z.
|
|
43
|
+
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata stored with the run.").nullable().optional(),
|
|
44
44
|
is_active: z.boolean().describe("Whether the task run is currently active.").nullable(),
|
|
45
45
|
processor: z.string().describe("Processor being used for the task.").nullable(),
|
|
46
46
|
created_at: z.string().describe("Timestamp when the task run was created (ISO 8601 format).").nullable(),
|
|
47
47
|
modified_at: z.string().describe("Timestamp when the task run was last modified (ISO 8601 format).").nullable(),
|
|
48
48
|
interaction_id: z.string().describe("Interaction ID associated with this task run.").nullable()
|
|
49
|
-
}).describe("Response model for task run creation.")
|
|
49
|
+
}).passthrough().describe("Response model for task run creation.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { parallelCreateTaskRun };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.
|
|
1
|
+
{"version":3,"file":"create-task-run.mjs","names":[],"sources":["../../src/actions/create-task-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateTaskRunInput = z.object({\n input: z.union([z.string(), z.record(z.string(), z.unknown())]),\n webhook: z.object({\n url: z.string().describe(\"Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to. If not specified, all events are sent.\").optional(),\n}).describe(\"Webhook configuration for task run completion events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.\").optional(),\n processor: z.string().describe(\"Processor to use for the task (e.g., 'lite', 'base', 'core', 'pro').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the task.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the task.\"),\n}).describe(\"Task specification defining input and output schemas.\").optional(),\n mcp_servers: z.array(z.record(z.string(), z.unknown())).describe(\"Optional list of MCP servers to use for the run. To enable this feature, specify 'mcp-server-2025-07-17' in the 'parallel-beta' header.\").optional(),\n enable_events: z.boolean().describe(\"Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above). To enable this feature, specify 'events-sse-2025-07-24' in the 'parallel-beta' header.\").optional(),\n parallel_beta: z.string().describe(\"Beta features to enable. Comma-separated list of beta feature flags (e.g., 'webhook-2025-08-12,events-sse-2025-07-24'). This will be sent as a header.\").optional(),\n source_policy: z.object({\n after_date: z.string().describe(\"Only include search results published after this date.\").optional(),\n exclude_domains: z.array(z.string()).describe(\"List of domains to exclude from web search results.\").optional(),\n include_domains: z.array(z.string()).describe(\"List of domains to include in web search results.\").optional(),\n}).describe(\"Source policy governing preferred and disallowed domains in web search results.\").optional(),\n previous_interaction_id: z.string().describe(\"Interaction ID to use as context for this request.\").optional(),\n}).describe(\"Request model for creating a task run.\");\nconst ParallelCreateTaskRun_TaskRunStatusSchema = z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Status values for a task run.\");\nexport const ParallelCreateTaskRunOutput = z.object({\n run_id: z.string().describe(\"Unique identifier for the created task run.\").nullable(),\n status: ParallelCreateTaskRun_TaskRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is currently active.\").nullable(),\n processor: z.string().describe(\"Processor being used for the task.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the task run was created (ISO 8601 format).\").nullable(),\n modified_at: z.string().describe(\"Timestamp when the task run was last modified (ISO 8601 format).\").nullable(),\n interaction_id: z.string().describe(\"Interaction ID associated with this task run.\").nullable(),\n}).passthrough().describe(\"Response model for task run creation.\");\n\nexport const parallelCreateTaskRun = action(\"PARALLEL_CREATE_TASK_RUN\", {\n slug: \"parallel-create-task-run\",\n name: \"Create Task Run\",\n description: \"Tool to create and initiate a task run. Returns immediately with a run object in status 'queued'. Use when you need to execute tasks asynchronously with Parallel AI processors.\",\n input: ParallelCreateTaskRunInput,\n output: ParallelCreateTaskRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC9D,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC1M,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACrG,WAAW,EAAE,OAAO;EACpB,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAA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,CAAC,SAAS;EACxH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -12,11 +12,11 @@ const ParallelDeleteMonitor_MonitorCadenceSchema = zod.z.enum([
|
|
|
12
12
|
const ParallelDeleteMonitor_MonitorWebhookSchema = zod.z.object({
|
|
13
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
|
-
}).describe("Webhook configuration for the monitor.");
|
|
15
|
+
}).passthrough().describe("Webhook configuration for the monitor.");
|
|
16
16
|
const ParallelDeleteMonitor_OutputSchemaSchema = zod.z.object({
|
|
17
17
|
type: zod.z.string().describe("Type of the output schema").nullable().optional(),
|
|
18
18
|
json_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema defining the output structure")
|
|
19
|
-
}).describe("Output schema for the monitor event.");
|
|
19
|
+
}).passthrough().describe("Output schema for the monitor event.");
|
|
20
20
|
const ParallelDeleteMonitorOutput = zod.z.object({
|
|
21
21
|
query: zod.z.string().describe("The query that was being monitored").nullable().optional(),
|
|
22
22
|
status: ParallelDeleteMonitor_MonitorStatusSchema.nullable().optional(),
|
|
@@ -27,7 +27,7 @@ const ParallelDeleteMonitorOutput = zod.z.object({
|
|
|
27
27
|
monitor_id: zod.z.string().describe("ID of the deleted monitor").nullable().optional(),
|
|
28
28
|
last_run_at: zod.z.string().describe("Timestamp of the last run for the monitor").nullable().optional(),
|
|
29
29
|
output_schema: ParallelDeleteMonitor_OutputSchemaSchema.nullable().optional()
|
|
30
|
-
}).describe("Response model for a deleted monitor, including its status, cadence and metadata.");
|
|
30
|
+
}).passthrough().describe("Response model for a deleted monitor, including its status, cadence and metadata.");
|
|
31
31
|
const parallelDeleteMonitor = require_action.action("PARALLEL_DELETE_MONITOR", {
|
|
32
32
|
slug: "parallel-delete-monitor",
|
|
33
33
|
name: "Delete Monitor",
|
|
@@ -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 = 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;
|
|
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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,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,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,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,YAAY,CAAC,CAAC,SAAS,mFAAmF;AAE7G,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const ParallelDeleteMonitorOutput: z.ZodObject<{
|
|
|
19
19
|
webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
url: z.ZodNullable<z.ZodString>;
|
|
21
21
|
event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
24
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
monitor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,8 +27,8 @@ declare const ParallelDeleteMonitorOutput: z.ZodObject<{
|
|
|
27
27
|
output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
28
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const parallelDeleteMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
monitor_id: string;
|
|
34
34
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -19,7 +19,7 @@ declare const ParallelDeleteMonitorOutput: z.ZodObject<{
|
|
|
19
19
|
webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
url: z.ZodNullable<z.ZodString>;
|
|
21
21
|
event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
24
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
monitor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,8 +27,8 @@ declare const ParallelDeleteMonitorOutput: z.ZodObject<{
|
|
|
27
27
|
output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
28
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const parallelDeleteMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
monitor_id: string;
|
|
34
34
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,11 +12,11 @@ const ParallelDeleteMonitor_MonitorCadenceSchema = z.enum([
|
|
|
12
12
|
const ParallelDeleteMonitor_MonitorWebhookSchema = z.object({
|
|
13
13
|
url: z.string().describe("Webhook URL to receive monitor events").nullable(),
|
|
14
14
|
event_types: z.array(z.unknown()).describe("Types of events to trigger the webhook").nullable().optional()
|
|
15
|
-
}).describe("Webhook configuration for the monitor.");
|
|
15
|
+
}).passthrough().describe("Webhook configuration for the monitor.");
|
|
16
16
|
const ParallelDeleteMonitor_OutputSchemaSchema = z.object({
|
|
17
17
|
type: z.string().describe("Type of the output schema").nullable().optional(),
|
|
18
18
|
json_schema: z.record(z.string(), z.unknown()).describe("JSON schema defining the output structure")
|
|
19
|
-
}).describe("Output schema for the monitor event.");
|
|
19
|
+
}).passthrough().describe("Output schema for the monitor event.");
|
|
20
20
|
const parallelDeleteMonitor = action("PARALLEL_DELETE_MONITOR", {
|
|
21
21
|
slug: "parallel-delete-monitor",
|
|
22
22
|
name: "Delete Monitor",
|
|
@@ -32,7 +32,7 @@ const parallelDeleteMonitor = action("PARALLEL_DELETE_MONITOR", {
|
|
|
32
32
|
monitor_id: z.string().describe("ID of the deleted monitor").nullable().optional(),
|
|
33
33
|
last_run_at: z.string().describe("Timestamp of the last run for the monitor").nullable().optional(),
|
|
34
34
|
output_schema: ParallelDeleteMonitor_OutputSchemaSchema.nullable().optional()
|
|
35
|
-
}).describe("Response model for a deleted monitor, including its status, cadence and metadata.")
|
|
35
|
+
}).passthrough().describe("Response model for a deleted monitor, including its status, cadence and metadata.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { parallelDeleteMonitor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-monitor.mjs","names":[],"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,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACvI,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,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,uCAAuC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"delete-monitor.mjs","names":[],"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}).passthrough().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}).passthrough().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}).passthrough().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,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACvI,CAAC,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CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const ParallelExtendFindAllRunInput = zod.z.object({
|
|
|
8
8
|
const ParallelExtendFindAllRun_MatchConditionSchema = zod.z.object({
|
|
9
9
|
name: zod.z.string().describe("Identifier for the match condition.").nullable(),
|
|
10
10
|
description: zod.z.string().describe("Description of what must be satisfied for the match.").nullable()
|
|
11
|
-
});
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const ParallelExtendFindAllRunOutput = zod.z.object({
|
|
13
13
|
generator: zod.z.enum([
|
|
14
14
|
"base",
|
|
@@ -21,7 +21,7 @@ const ParallelExtendFindAllRunOutput = zod.z.object({
|
|
|
21
21
|
entity_type: zod.z.string().describe("Type of the entity for the FindAll run.").nullable(),
|
|
22
22
|
match_limit: zod.z.number().int().describe("Max number of candidates to evaluate.").nullable().optional(),
|
|
23
23
|
match_conditions: zod.z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe("List of match conditions for the FindAll run.")
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const parallelExtendFindAllRun = require_action.action("PARALLEL_EXTEND_FIND_ALL_RUN", {
|
|
26
26
|
slug: "parallel-extend-find-all-run",
|
|
27
27
|
name: "Extend FindAll Run",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/extend-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtendFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to extend.\"),\n additional_match_limit: z.number().int().describe(\"Additional number of matches to find for this FindAll run. This value will be added to the current match limit to determine the new total match limit. Must be greater than 0.\"),\n});\nconst ParallelExtendFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n});\nexport const ParallelExtendFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).default(\"core\").describe(\"The generator of the FindAll run.\").nullable().optional(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(z.unknown()).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n});\n\nexport const parallelExtendFindAllRun = action(\"PARALLEL_EXTEND_FIND_ALL_RUN\", {\n slug: \"parallel-extend-find-all-run\",\n name: \"Extend FindAll Run\",\n description: \"Tool to extend a FindAll run by adding additional matches to the current match limit. Use when you need to increase the number of matches for an existing FindAll run that is still active or has completed.\",\n input: ParallelExtendFindAllRunInput,\n output: ParallelExtendFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gLAAgL;AACpO,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpG,CAAC;
|
|
1
|
+
{"version":3,"file":"extend-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/extend-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtendFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to extend.\"),\n additional_match_limit: z.number().int().describe(\"Additional number of matches to find for this FindAll run. This value will be added to the current match limit to determine the new total match limit. Must be greater than 0.\"),\n});\nconst ParallelExtendFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n}).passthrough();\nexport const ParallelExtendFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).default(\"core\").describe(\"The generator of the FindAll run.\").nullable().optional(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(z.unknown()).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelExtendFindAllRun = action(\"PARALLEL_EXTEND_FIND_ALL_RUN\", {\n slug: \"parallel-extend-find-all-run\",\n name: \"Extend FindAll Run\",\n description: \"Tool to extend a FindAll run by adding additional matches to the current match limit. Use when you need to increase the number of matches for an existing FindAll run that is still active or has completed.\",\n input: ParallelExtendFindAllRunInput,\n output: ParallelExtendFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,w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unOutput: z.ZodObject<{
|
|
9
9
|
generator: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
10
|
-
base: "base";
|
|
11
10
|
core: "core";
|
|
11
|
+
base: "base";
|
|
12
12
|
pro: "pro";
|
|
13
13
|
preview: "preview";
|
|
14
14
|
}>>>>;
|
|
@@ -19,8 +19,8 @@ declare const ParallelExtendFindAllRunOutput: z.ZodObject<{
|
|
|
19
19
|
match_conditions: z.ZodArray<z.ZodObject<{
|
|
20
20
|
name: z.ZodNullable<z.ZodString>;
|
|
21
21
|
description: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const parallelExtendFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
findall_id: string;
|
|
26
26
|
additional_match_limit: number;
|
|
@@ -7,8 +7,8 @@ declare const ParallelExtendFindAllRunInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ParallelExtendFindAllRunOutput: z.ZodObject<{
|
|
9
9
|
generator: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
10
|
-
base: "base";
|
|
11
10
|
core: "core";
|
|
11
|
+
base: "base";
|
|
12
12
|
pro: "pro";
|
|
13
13
|
preview: "preview";
|
|
14
14
|
}>>>>;
|
|
@@ -19,8 +19,8 @@ declare const ParallelExtendFindAllRunOutput: z.ZodObject<{
|
|
|
19
19
|
match_conditions: z.ZodArray<z.ZodObject<{
|
|
20
20
|
name: z.ZodNullable<z.ZodString>;
|
|
21
21
|
description: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const parallelExtendFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
findall_id: string;
|
|
26
26
|
additional_match_limit: number;
|
|
@@ -8,7 +8,7 @@ const ParallelExtendFindAllRunInput = z.object({
|
|
|
8
8
|
const ParallelExtendFindAllRun_MatchConditionSchema = z.object({
|
|
9
9
|
name: z.string().describe("Identifier for the match condition.").nullable(),
|
|
10
10
|
description: z.string().describe("Description of what must be satisfied for the match.").nullable()
|
|
11
|
-
});
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const parallelExtendFindAllRun = action("PARALLEL_EXTEND_FIND_ALL_RUN", {
|
|
13
13
|
slug: "parallel-extend-find-all-run",
|
|
14
14
|
name: "Extend FindAll Run",
|
|
@@ -26,7 +26,7 @@ const parallelExtendFindAllRun = action("PARALLEL_EXTEND_FIND_ALL_RUN", {
|
|
|
26
26
|
entity_type: z.string().describe("Type of the entity for the FindAll run.").nullable(),
|
|
27
27
|
match_limit: z.number().int().describe("Max number of candidates to evaluate.").nullable().optional(),
|
|
28
28
|
match_conditions: z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe("List of match conditions for the FindAll run.")
|
|
29
|
-
})
|
|
29
|
+
}).passthrough()
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { parallelExtendFindAllRun };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend-find-all-run.mjs","names":[],"sources":["../../src/actions/extend-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtendFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to extend.\"),\n additional_match_limit: z.number().int().describe(\"Additional number of matches to find for this FindAll run. This value will be added to the current match limit to determine the new total match limit. Must be greater than 0.\"),\n});\nconst ParallelExtendFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n});\nexport const ParallelExtendFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).default(\"core\").describe(\"The generator of the FindAll run.\").nullable().optional(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(z.unknown()).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n});\n\nexport const parallelExtendFindAllRun = action(\"PARALLEL_EXTEND_FIND_ALL_RUN\", {\n slug: \"parallel-extend-find-all-run\",\n name: \"Extend FindAll Run\",\n description: \"Tool to extend a FindAll run by adding additional matches to the current match limit. Use when you need to increase the number of matches for an existing FindAll run that is still active or has completed.\",\n input: ParallelExtendFindAllRunInput,\n output: ParallelExtendFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gLAAgL;AACpO,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpG,CAAC;
|
|
1
|
+
{"version":3,"file":"extend-find-all-run.mjs","names":[],"sources":["../../src/actions/extend-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtendFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to extend.\"),\n additional_match_limit: z.number().int().describe(\"Additional number of matches to find for this FindAll run. This value will be added to the current match limit to determine the new total match limit. Must be greater than 0.\"),\n});\nconst ParallelExtendFindAllRun_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n}).passthrough();\nexport const ParallelExtendFindAllRunOutput = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).default(\"core\").describe(\"The generator of the FindAll run.\").nullable().optional(),\n objective: z.string().describe(\"Natural language objective of the FindAll run.\").nullable(),\n enrichments: z.array(z.unknown()).describe(\"List of enrichment inputs for the FindAll run.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the entity for the FindAll run.\").nullable(),\n match_limit: z.number().int().describe(\"Max number of candidates to evaluate.\").nullable().optional(),\n match_conditions: z.array(ParallelExtendFindAllRun_MatchConditionSchema).describe(\"List of match conditions for the FindAll run.\"),\n}).passthrough();\n\nexport const parallelExtendFindAllRun = action(\"PARALLEL_EXTEND_FIND_ALL_RUN\", {\n slug: \"parallel-extend-find-all-run\",\n name: \"Extend FindAll Run\",\n description: \"Tool to extend a FindAll run by adding additional matches to the current match limit. Use when you need to increase the number of matches for an existing FindAll run that is still active or has completed.\",\n input: ParallelExtendFindAllRunInput,\n output: ParallelExtendFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gLAAgL;AACpO,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AAUf,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,WAAW,EAAE,KAAK;GAAC;GAAQ;GAAQ;GAAO;EAAS,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,+CAA+C;CACnI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/actions/extract.cjs
CHANGED
|
@@ -6,33 +6,33 @@ const ParallelExtractInput = zod.z.object({
|
|
|
6
6
|
excerpts: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
7
7
|
max_chars_total: zod.z.number().int().nullable().optional(),
|
|
8
8
|
max_chars_per_result: zod.z.number().int().nullable().optional()
|
|
9
|
-
}).describe("Settings for excerpt extraction.")]).optional(),
|
|
9
|
+
}).passthrough().describe("Settings for excerpt extraction.")]).optional(),
|
|
10
10
|
objective: zod.z.string().describe("If provided, focuses extracted content on the specified search objective").optional(),
|
|
11
11
|
fetch_policy: zod.z.object({
|
|
12
12
|
max_age_seconds: zod.z.number().int().describe("Maximum age in seconds for cached content to be considered valid").optional(),
|
|
13
13
|
timeout_seconds: zod.z.number().int().describe("Timeout in seconds for fetching live content").optional(),
|
|
14
14
|
disable_cache_fallback: zod.z.boolean().describe("If true, disables fallback to cached content when live fetch fails").optional()
|
|
15
15
|
}).describe("Fetch policy configuration for cache and timeout settings.").optional(),
|
|
16
|
-
full_content: zod.z.union([zod.z.boolean(), zod.z.object({ max_chars_per_result: zod.z.number().int().nullable().optional() }).describe("Settings for full content extraction.")]).optional(),
|
|
16
|
+
full_content: zod.z.union([zod.z.boolean(), zod.z.object({ max_chars_per_result: zod.z.number().int().nullable().optional() }).passthrough().describe("Settings for full content extraction.")]).optional(),
|
|
17
17
|
search_queries: zod.z.array(zod.z.string()).describe("If provided, focuses extracted content on the specified keyword search queries").optional()
|
|
18
18
|
}).describe("Request model for extracting content from URLs.");
|
|
19
19
|
const ParallelExtract_UsageItemSchema = zod.z.object({
|
|
20
20
|
name: zod.z.string().describe("SKU identifier (e.g., sku_extract_excerpts)").nullable(),
|
|
21
21
|
count: zod.z.number().int().describe("Quantity consumed").nullable()
|
|
22
|
-
}).describe("Usage metrics for a single SKU.");
|
|
22
|
+
}).passthrough().describe("Usage metrics for a single SKU.");
|
|
23
23
|
const ParallelExtract_ExtractErrorSchema = zod.z.object({
|
|
24
24
|
url: zod.z.string().describe("The URL that failed to extract").nullable(),
|
|
25
25
|
content: zod.z.string().describe("Error details from server responses").nullable().optional(),
|
|
26
26
|
error_type: zod.z.string().describe("Type of error that occurred").nullable(),
|
|
27
27
|
http_status_code: zod.z.number().int().describe("HTTP status code if applicable").nullable().optional()
|
|
28
|
-
}).describe("Extract error details for a failed URL.");
|
|
28
|
+
}).passthrough().describe("Extract error details for a failed URL.");
|
|
29
29
|
const ParallelExtract_ExtractResultSchema = zod.z.object({
|
|
30
30
|
url: zod.z.string().describe("The URL that was extracted").nullable(),
|
|
31
31
|
title: zod.z.string().describe("Title of the web page").nullable().optional(),
|
|
32
32
|
excerpts: zod.z.array(zod.z.string()).describe("Relevant excerpts from the URL").nullable().optional(),
|
|
33
33
|
full_content: zod.z.string().describe("Full content from the URL").nullable().optional(),
|
|
34
34
|
publish_date: zod.z.string().describe("Publication date of the content").nullable().optional()
|
|
35
|
-
}).describe("Extract result for a single URL.");
|
|
35
|
+
}).passthrough().describe("Extract result for a single URL.");
|
|
36
36
|
const ParallelExtract_WarningTypeSchema = zod.z.enum([
|
|
37
37
|
"spec_validation_warning",
|
|
38
38
|
"input_validation_warning",
|
|
@@ -42,14 +42,14 @@ const ParallelExtract_WarningSchema = zod.z.object({
|
|
|
42
42
|
type: ParallelExtract_WarningTypeSchema.nullable(),
|
|
43
43
|
detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Supporting context as key-value pairs").nullable().optional(),
|
|
44
44
|
message: zod.z.string().describe("Human-readable warning message").nullable()
|
|
45
|
-
}).describe("Warning message from the extract API.");
|
|
45
|
+
}).passthrough().describe("Warning message from the extract API.");
|
|
46
46
|
const ParallelExtractOutput = zod.z.object({
|
|
47
47
|
usage: zod.z.array(ParallelExtract_UsageItemSchema).describe("Usage metrics for the extract request").nullable().optional(),
|
|
48
48
|
errors: zod.z.array(ParallelExtract_ExtractErrorSchema).describe("Extract errors: requested URLs not in the results"),
|
|
49
49
|
results: zod.z.array(ParallelExtract_ExtractResultSchema).describe("Successful extract results"),
|
|
50
50
|
warnings: zod.z.array(ParallelExtract_WarningSchema).describe("Warnings for the extract request, if any").nullable().optional(),
|
|
51
51
|
extract_id: zod.z.string().describe("Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7").nullable()
|
|
52
|
-
}).describe("Response model for extract operation.");
|
|
52
|
+
}).passthrough().describe("Response model for extract operation.");
|
|
53
53
|
const parallelExtract = require_action.action("PARALLEL_EXTRACT", {
|
|
54
54
|
slug: "parallel-extract",
|
|
55
55
|
name: "Extract Content from URLs",
|