@keystrokehq/parallel 0.1.2 → 0.1.3
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 +12 -11
- package/dist/actions/create-chat-completions.d.cts.map +1 -1
- package/dist/actions/create-chat-completions.d.mts +12 -11
- 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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,wBAAwB;
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,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AA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oBAAoB;AAC9C,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,8CAA8C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;CAAC;CAAqD;CAA6D;CAA+D;AAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACvT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,32 +17,32 @@ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
|
|
|
17
17
|
created_at: z.ZodNullable<z.ZodString>;
|
|
18
18
|
modified_at: z.ZodNullable<z.ZodString>;
|
|
19
19
|
taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
type: z.ZodNullable<z.ZodString>;
|
|
22
22
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
23
|
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
24
|
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
source_stats: z.ZodNullable<z.ZodObject<{
|
|
28
28
|
num_sources_read: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
sources_read_sample: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
30
|
num_sources_considered: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
progress_meter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
34
34
|
type: z.ZodNullable<z.ZodString>;
|
|
35
35
|
message: z.ZodNullable<z.ZodString>;
|
|
36
36
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
38
38
|
type: z.ZodNullable<z.ZodString>;
|
|
39
39
|
error: z.ZodNullable<z.ZodObject<{
|
|
40
40
|
detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
41
|
ref_id: z.ZodNullable<z.ZodString>;
|
|
42
42
|
message: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>]>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
run_id: string;
|
|
48
48
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -17,32 +17,32 @@ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
|
|
|
17
17
|
created_at: z.ZodNullable<z.ZodString>;
|
|
18
18
|
modified_at: z.ZodNullable<z.ZodString>;
|
|
19
19
|
taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
type: z.ZodNullable<z.ZodString>;
|
|
22
22
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
23
|
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
24
|
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
source_stats: z.ZodNullable<z.ZodObject<{
|
|
28
28
|
num_sources_read: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
sources_read_sample: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
30
|
num_sources_considered: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
progress_meter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
34
34
|
type: z.ZodNullable<z.ZodString>;
|
|
35
35
|
message: z.ZodNullable<z.ZodString>;
|
|
36
36
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
38
38
|
type: z.ZodNullable<z.ZodString>;
|
|
39
39
|
error: z.ZodNullable<z.ZodObject<{
|
|
40
40
|
detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
41
|
ref_id: z.ZodNullable<z.ZodString>;
|
|
42
42
|
message: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>]>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const parallelStreamTaskRunEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
run_id: string;
|
|
48
48
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -13,38 +13,38 @@ const ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({
|
|
|
13
13
|
created_at: z.string().describe("ISO8601 timestamp when the task run was created").nullable(),
|
|
14
14
|
modified_at: z.string().describe("ISO8601 timestamp of last modification").nullable(),
|
|
15
15
|
taskgroup_id: z.string().describe("ID of the task group this run belongs to").nullable().optional()
|
|
16
|
-
}).describe("Details of a task run.");
|
|
16
|
+
}).passthrough().describe("Details of a task run.");
|
|
17
17
|
const ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({
|
|
18
18
|
run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),
|
|
19
19
|
type: z.string().describe("Event type").nullable(),
|
|
20
20
|
input: z.record(z.string(), z.unknown()).describe("Input provided for the task run").nullable().optional(),
|
|
21
21
|
output: z.record(z.string(), z.unknown()).describe("Output generated by the task run").nullable().optional(),
|
|
22
22
|
event_id: z.string().describe("Unique identifier for the event").nullable().optional()
|
|
23
|
-
}).describe("Event indicating the current status of the task run.");
|
|
23
|
+
}).passthrough().describe("Event indicating the current status of the task run.");
|
|
24
24
|
const ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({
|
|
25
25
|
num_sources_read: z.number().int().describe("Number of sources actually read").nullable().optional(),
|
|
26
26
|
sources_read_sample: z.array(z.string()).describe("Sample of sources that were read").nullable().optional(),
|
|
27
27
|
num_sources_considered: z.number().int().describe("Number of sources considered for the task").nullable().optional()
|
|
28
|
-
}).describe("Statistics about sources processed during task execution.");
|
|
28
|
+
}).passthrough().describe("Statistics about sources processed during task execution.");
|
|
29
29
|
const ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({
|
|
30
30
|
type: z.string().describe("Event type").nullable(),
|
|
31
31
|
source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),
|
|
32
32
|
progress_meter: z.number().describe("Completion percentage (0-100)").nullable().optional()
|
|
33
|
-
}).describe("Event containing progress statistics about source processing.");
|
|
33
|
+
}).passthrough().describe("Event containing progress statistics about source processing.");
|
|
34
34
|
const ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({
|
|
35
35
|
type: z.string().describe("Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)").nullable(),
|
|
36
36
|
message: z.string().describe("Human-readable progress message").nullable(),
|
|
37
37
|
timestamp: z.string().describe("ISO8601 timestamp when the message was generated").nullable().optional()
|
|
38
|
-
}).describe("Event containing progress messages about task execution.");
|
|
38
|
+
}).passthrough().describe("Event containing progress messages about task execution.");
|
|
39
39
|
const ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({
|
|
40
40
|
detail: z.record(z.string(), z.unknown()).describe("Additional details about the error").nullable().optional(),
|
|
41
41
|
ref_id: z.string().describe("Reference ID for the error").nullable(),
|
|
42
42
|
message: z.string().describe("Human-readable error message").nullable()
|
|
43
|
-
}).describe("Error information.");
|
|
43
|
+
}).passthrough().describe("Error information.");
|
|
44
44
|
const ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({
|
|
45
45
|
type: z.string().describe("Event type").nullable(),
|
|
46
46
|
error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable()
|
|
47
|
-
}).describe("Event indicating an error occurred.");
|
|
47
|
+
}).passthrough().describe("Event indicating an error occurred.");
|
|
48
48
|
const parallelStreamTaskRunEvents = action("PARALLEL_STREAM_TASK_RUN_EVENTS", {
|
|
49
49
|
slug: "parallel-stream-task-run-events",
|
|
50
50
|
name: "Stream Task Run Events",
|
|
@@ -55,7 +55,7 @@ const parallelStreamTaskRunEvents = action("PARALLEL_STREAM_TASK_RUN_EVENTS", {
|
|
|
55
55
|
ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema,
|
|
56
56
|
ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema,
|
|
57
57
|
ParallelStreamTaskRunEvents_ErrorEventSchema
|
|
58
|
-
])).describe("List of events received from the Task Run stream") }).describe("Response model containing list of streamed Task Run events.")
|
|
58
|
+
])).describe("List of events received from the Task Run stream") }).passthrough().describe("Response model containing list of streamed Task Run events.")
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { parallelStreamTaskRunEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.mjs","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,wBAAwB;
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.mjs","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,EAAE,OAAO,GAA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CAAC,CAAC,SAAS;CACjD,OAAO,8CAA8C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAK/D,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAAqD;EAA6D;EAA+D;CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACvT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ParallelSuggestTaskOutput = zod.z.object({
|
|
|
7
7
|
inputs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of pre-populated inputs if any").nullable().optional(),
|
|
8
8
|
input_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema describing the input structure for the suggested task"),
|
|
9
9
|
output_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema describing the expected output structure for the suggested task")
|
|
10
|
-
}).describe("Response from the task-suggestion endpoint.");
|
|
10
|
+
}).passthrough().describe("Response from the task-suggestion endpoint.");
|
|
11
11
|
const parallelSuggestTask = require_action.action("PARALLEL_SUGGEST_TASK", {
|
|
12
12
|
slug: "parallel-suggest-task",
|
|
13
13
|
name: "Suggest Task",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.cjs","names":["z","action"],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;CAC5H,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzI,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"suggest-task.cjs","names":["z","action"],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;CAC5H,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const ParallelSuggestTaskOutput: z.ZodObject<{
|
|
|
9
9
|
inputs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const parallelSuggestTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
user_intent: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ declare const ParallelSuggestTaskOutput: z.ZodObject<{
|
|
|
9
9
|
inputs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const parallelSuggestTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
user_intent: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -10,7 +10,7 @@ const parallelSuggestTask = action("PARALLEL_SUGGEST_TASK", {
|
|
|
10
10
|
inputs: z.array(z.record(z.string(), z.unknown())).describe("List of pre-populated inputs if any").nullable().optional(),
|
|
11
11
|
input_schema: z.record(z.string(), z.unknown()).describe("JSON schema describing the input structure for the suggested task"),
|
|
12
12
|
output_schema: z.record(z.string(), z.unknown()).describe("JSON schema describing the expected output structure for the suggested task")
|
|
13
|
-
}).describe("Response from the task-suggestion endpoint.")
|
|
13
|
+
}).passthrough().describe("Response from the task-suggestion endpoint.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { parallelSuggestTask };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.mjs","names":[],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAYH;CACP,QAZuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACnE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAC5H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACzI,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"suggest-task.mjs","names":[],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAYH;CACP,QAZuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACnE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAC5H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -26,11 +26,11 @@ const ParallelUpdateMonitor_CadenceSchema = zod.z.enum([
|
|
|
26
26
|
const ParallelUpdateMonitor_MonitorWebhookSchema = zod.z.object({
|
|
27
27
|
url: zod.z.string().describe("The webhook URL to receive notifications.").nullable(),
|
|
28
28
|
event_types: zod.z.array(zod.z.string()).describe("Types of events that trigger the webhook.").nullable().optional()
|
|
29
|
-
}).describe("Webhook configuration for monitor updates.");
|
|
29
|
+
}).passthrough().describe("Webhook configuration for monitor updates.");
|
|
30
30
|
const ParallelUpdateMonitor_OutputSchemaSchema = zod.z.object({
|
|
31
31
|
type: zod.z.string().describe("Type of the schema.").nullable().optional(),
|
|
32
32
|
json_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema definition for output.")
|
|
33
|
-
}).describe("Output schema configuration for monitor events.");
|
|
33
|
+
}).passthrough().describe("Output schema configuration for monitor events.");
|
|
34
34
|
const ParallelUpdateMonitorOutput = zod.z.object({
|
|
35
35
|
query: zod.z.string().describe("The query being monitored.").nullable(),
|
|
36
36
|
status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),
|
|
@@ -41,7 +41,7 @@ const ParallelUpdateMonitorOutput = zod.z.object({
|
|
|
41
41
|
monitor_id: zod.z.string().describe("ID of the monitor.").nullable(),
|
|
42
42
|
last_run_at: zod.z.string().describe("Timestamp of the last run for the monitor.").nullable().optional(),
|
|
43
43
|
output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional()
|
|
44
|
-
}).describe("Response model for updating a monitor.");
|
|
44
|
+
}).passthrough().describe("Response model for updating a monitor.");
|
|
45
45
|
const parallelUpdateMonitor = require_action.action("PARALLEL_UPDATE_MONITOR", {
|
|
46
46
|
slug: "parallel-update-monitor",
|
|
47
47
|
name: "Update Monitor",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-monitor.cjs","names":["z","action"],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_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 in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;CAC5R,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAC9N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACnH,MAAM,sCAAsCA,IAAAA,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACxI,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,4CAA4C;
|
|
1
|
+
{"version":3,"file":"update-monitor.cjs","names":["z","action"],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_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 in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;CAC5R,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAC9N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACnH,MAAM,sCAAsCA,IAAAA,EAAE,KAAK;CAAC;CAA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AS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -31,7 +31,7 @@ declare const ParallelUpdateMonitorOutput: z.ZodObject<{
|
|
|
31
31
|
webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
32
|
url: z.ZodNullable<z.ZodString>;
|
|
33
33
|
event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
36
|
created_at: z.ZodNullable<z.ZodString>;
|
|
37
37
|
monitor_id: z.ZodNullable<z.ZodString>;
|
|
@@ -39,8 +39,8 @@ declare const ParallelUpdateMonitorOutput: z.ZodObject<{
|
|
|
39
39
|
output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const parallelUpdateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
monitor_id: string;
|
|
46
46
|
query?: string | undefined;
|
|
@@ -31,7 +31,7 @@ declare const ParallelUpdateMonitorOutput: z.ZodObject<{
|
|
|
31
31
|
webhook: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
32
|
url: z.ZodNullable<z.ZodString>;
|
|
33
33
|
event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
36
|
created_at: z.ZodNullable<z.ZodString>;
|
|
37
37
|
monitor_id: z.ZodNullable<z.ZodString>;
|
|
@@ -39,8 +39,8 @@ declare const ParallelUpdateMonitorOutput: z.ZodObject<{
|
|
|
39
39
|
output_schema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const parallelUpdateMonitor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
monitor_id: string;
|
|
46
46
|
query?: string | undefined;
|
|
@@ -26,11 +26,11 @@ const ParallelUpdateMonitor_CadenceSchema = z.enum([
|
|
|
26
26
|
const ParallelUpdateMonitor_MonitorWebhookSchema = z.object({
|
|
27
27
|
url: z.string().describe("The webhook URL to receive notifications.").nullable(),
|
|
28
28
|
event_types: z.array(z.string()).describe("Types of events that trigger the webhook.").nullable().optional()
|
|
29
|
-
}).describe("Webhook configuration for monitor updates.");
|
|
29
|
+
}).passthrough().describe("Webhook configuration for monitor updates.");
|
|
30
30
|
const ParallelUpdateMonitor_OutputSchemaSchema = z.object({
|
|
31
31
|
type: z.string().describe("Type of the schema.").nullable().optional(),
|
|
32
32
|
json_schema: z.record(z.string(), z.unknown()).describe("JSON schema definition for output.")
|
|
33
|
-
}).describe("Output schema configuration for monitor events.");
|
|
33
|
+
}).passthrough().describe("Output schema configuration for monitor events.");
|
|
34
34
|
const parallelUpdateMonitor = action("PARALLEL_UPDATE_MONITOR", {
|
|
35
35
|
slug: "parallel-update-monitor",
|
|
36
36
|
name: "Update Monitor",
|
|
@@ -46,7 +46,7 @@ const parallelUpdateMonitor = action("PARALLEL_UPDATE_MONITOR", {
|
|
|
46
46
|
monitor_id: z.string().describe("ID of the monitor.").nullable(),
|
|
47
47
|
last_run_at: z.string().describe("Timestamp of the last run for the monitor.").nullable().optional(),
|
|
48
48
|
output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional()
|
|
49
|
-
}).describe("Response model for updating a monitor.")
|
|
49
|
+
}).passthrough().describe("Response model for updating a monitor.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { parallelUpdateMonitor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-monitor.mjs","names":[],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_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 in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;CAC5R,SAAS,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAC9N,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACnH,MAAM,sCAAsC,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACxI,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,4CAA4C;
|
|
1
|
+
{"version":3,"file":"update-monitor.mjs","names":[],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_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 in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;CAC5R,SAAS,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAC9N,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACnH,MAAM,sCAAsC,EAAE,KAAK;CAAC;CAAS;CAAU;CAAU;AAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACxI,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,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