@requence/task 1.0.0-alpha.49 → 1.0.0-alpha.50
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/CHANGELOG.md +6 -0
- package/README.md +383 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts +10 -2
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +22 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/nodeType.d.ts +8 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/taskOptions.d.ts +3 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +8 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/treeNodes.d.ts +28 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +23 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
# @requence/task
|
|
2
|
+
|
|
3
|
+
This package lets you start and monitor Requence tasks programmatically from a TypeScript / Bun application.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @requence/task
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Authentication
|
|
12
|
+
|
|
13
|
+
Every call to `createTask` requires an **access token** — either a personal access token or a scoped token created at the organization, group, or project level.
|
|
14
|
+
|
|
15
|
+
The token is resolved in this order:
|
|
16
|
+
|
|
17
|
+
1. `accessToken` option passed to `createTask()`
|
|
18
|
+
2. `REQUENCE_TASK_ACCESS_TOKEN` or `REQUENCE_ACCESS_TOKEN` environment variable
|
|
19
|
+
3. `requence.task.accessToken` or `requence.accessToken` in `package.json`
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
REQUENCE_ACCESS_TOKEN=your-token bun run index.ts
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Basic Usage
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { createTask } from '@requence/task'
|
|
29
|
+
|
|
30
|
+
const result = await createTask({
|
|
31
|
+
taskTemplate: 'my-template',
|
|
32
|
+
input: { name: 'World' },
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
console.log(result.result) // The final output of the task
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
> **Note:** `await createTask(...)` waits for the **entire task** to finish. If you don't need to block, omit the `await` and use the returned task handle instead.
|
|
39
|
+
|
|
40
|
+
## Task Handle
|
|
41
|
+
|
|
42
|
+
`createTask` returns a **task handle** immediately. You can use it to access task metadata without waiting for the task to complete:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
const task = createTask({ taskTemplate: 'my-template', input: {} })
|
|
46
|
+
|
|
47
|
+
const taskId = await task.getTaskId() // Resolves as soon as the task is created
|
|
48
|
+
const taskUrl = await task.getTaskUrl() // URL to view the task in the Requence UI
|
|
49
|
+
|
|
50
|
+
await task.abort('No longer needed') // Abort the running task
|
|
51
|
+
await task.protect() // Protect the task from automatic cleanup
|
|
52
|
+
|
|
53
|
+
// Await the final result when you need it
|
|
54
|
+
const result = await task
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The task handle is also an **AsyncIterable** — iterate over it to stream updates as the task executes.
|
|
58
|
+
|
|
59
|
+
### Awaiting Finalization (Cheap Monitoring)
|
|
60
|
+
|
|
61
|
+
By default, awaiting the result or iterating the handle starts full SSE monitoring. If you only need to confirm that the task passed input validation and started on the backend — without tracking every node — await `task.finalized()`:
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
const task = createTask({ taskTemplate: 'my-template', input: { /* ... */ } })
|
|
65
|
+
|
|
66
|
+
try {
|
|
67
|
+
const taskId = await task.finalized()
|
|
68
|
+
console.log(`Task ${taskId} is running in the background`)
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.error('Validation failed:', error.message)
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`finalized()` resolves with the task ID on success, or rejects with a `TaskError` if the task cannot be created (e.g. schema validation failure).
|
|
75
|
+
|
|
76
|
+
## Options
|
|
77
|
+
|
|
78
|
+
| Option | Type | Default | Description |
|
|
79
|
+
|---|---|---|---|
|
|
80
|
+
| `taskTemplate` | `string` | — | **Required.** Name of the task template |
|
|
81
|
+
| `input` | `unknown` | — | Required when the template defines an input schema |
|
|
82
|
+
| `name` | `string` | — | Human-readable task name shown in the UI |
|
|
83
|
+
| `priority` | `number` | `2` | Priority `0` (lowest) to `4` (highest) |
|
|
84
|
+
| `accessToken` | `string` | — | Access token (falls back to env / config file) |
|
|
85
|
+
| `requireAck` | `boolean` | `false` | Enable delivery guarantee (see below) |
|
|
86
|
+
| `suppressBranchWarning` | `boolean` | `false` | Suppress the branch warning when running on a non-live branch |
|
|
87
|
+
|
|
88
|
+
## Result
|
|
89
|
+
|
|
90
|
+
When awaited, the task handle resolves to a result object:
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
const result = await createTask({ taskTemplate: 'my-template', input: {} })
|
|
94
|
+
|
|
95
|
+
result.input // The input you provided
|
|
96
|
+
result.result // The final task output
|
|
97
|
+
result.taskId // Unique task identifier
|
|
98
|
+
result.taskUrl // URL to view the task in the Requence UI
|
|
99
|
+
result.getNodeData(alias) // Get output from a specific node by alias
|
|
100
|
+
result.getNodeError(alias) // Get error from a specific node by alias
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Streaming Updates
|
|
104
|
+
|
|
105
|
+
The task handle is an `AsyncIterable` that emits updates as the task executes. Iterate over it with `for await`:
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
const task = createTask({
|
|
109
|
+
taskTemplate: 'my-template',
|
|
110
|
+
input: { data: [1, 2, 3] },
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
for await (const update of task) {
|
|
114
|
+
switch (update.type) {
|
|
115
|
+
case 'taskStart':
|
|
116
|
+
console.log(`Task ${update.taskId} started`)
|
|
117
|
+
break
|
|
118
|
+
case 'nodeStart':
|
|
119
|
+
console.log(`Node ${update.node.alias ?? update.node.id} started`)
|
|
120
|
+
break
|
|
121
|
+
case 'nodeUpdate':
|
|
122
|
+
console.log(`Node output:`, update.data)
|
|
123
|
+
break
|
|
124
|
+
case 'nodeError':
|
|
125
|
+
console.log(`Node error:`, update.error)
|
|
126
|
+
break
|
|
127
|
+
case 'nodeDefer':
|
|
128
|
+
console.log(`Node deferred:`, update.reason)
|
|
129
|
+
break
|
|
130
|
+
case 'nodeEnd':
|
|
131
|
+
console.log(`Node ${update.node.alias ?? update.node.id} finished`)
|
|
132
|
+
break
|
|
133
|
+
case 'taskEnd':
|
|
134
|
+
console.log(`Task completed:`, update.context.result)
|
|
135
|
+
break
|
|
136
|
+
case 'taskError':
|
|
137
|
+
console.log(`Task failed:`, update.reason)
|
|
138
|
+
break
|
|
139
|
+
case 'taskAborted':
|
|
140
|
+
console.log(`Task aborted:`, update.reason)
|
|
141
|
+
break
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### `onUpdate` callback
|
|
147
|
+
|
|
148
|
+
Alternatively, pass a callback as the second argument to stream updates while still awaiting the final result:
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
const result = await createTask(
|
|
152
|
+
{ taskTemplate: 'my-template', input: {} },
|
|
153
|
+
(update) => {
|
|
154
|
+
console.log(`[${update.type}]`, update.timestamp)
|
|
155
|
+
},
|
|
156
|
+
)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Update types
|
|
160
|
+
|
|
161
|
+
| Type | Description |
|
|
162
|
+
|---|---|
|
|
163
|
+
| `taskStart` | Task execution has begun. Contains `input` and `taskId`. |
|
|
164
|
+
| `nodeStart` | A node started processing. Contains `node` info (id, type, alias). |
|
|
165
|
+
| `nodeUpdate` | A node produced output. Contains `data` and `output` (named output, if any). |
|
|
166
|
+
| `nodeError` | A node encountered an error. Contains `error` message. |
|
|
167
|
+
| `nodeDefer` | A node has been deferred (waiting for an external callback). |
|
|
168
|
+
| `nodeEnd` | A node finished processing. |
|
|
169
|
+
| `taskEnd` | The task completed successfully. Contains final `result`. |
|
|
170
|
+
| `taskError` | The task failed. Contains `reason`. |
|
|
171
|
+
| `taskAborted` | The task was aborted. Contains `reason`. |
|
|
172
|
+
|
|
173
|
+
### Context on every update
|
|
174
|
+
|
|
175
|
+
Every update includes a `context` object with the current accumulated state:
|
|
176
|
+
|
|
177
|
+
```typescript
|
|
178
|
+
update.context.input // The task input
|
|
179
|
+
update.context.taskId // The task ID
|
|
180
|
+
update.context.result // Accumulated result (partial until taskEnd)
|
|
181
|
+
update.context.getNodeData(alias) // Output from a specific node by alias
|
|
182
|
+
update.context.getNodeError(alias) // Error from a specific node by alias
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Aborting a Task
|
|
186
|
+
|
|
187
|
+
Via the task handle:
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
const task = createTask({ taskTemplate: 'my-template', input: {} })
|
|
191
|
+
await task.abort('No longer needed')
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Or standalone, using a known task ID:
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import { abortTask } from '@requence/task'
|
|
198
|
+
|
|
199
|
+
await abortTask({
|
|
200
|
+
taskId: 'some-task-id',
|
|
201
|
+
reason: 'Cancelled by user',
|
|
202
|
+
})
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Protecting a Task
|
|
206
|
+
|
|
207
|
+
Protected tasks are excluded from automatic cleanup — useful for important results you want to keep indefinitely.
|
|
208
|
+
|
|
209
|
+
Via the task handle:
|
|
210
|
+
|
|
211
|
+
```typescript
|
|
212
|
+
const task = createTask({ taskTemplate: 'my-template', input: {} })
|
|
213
|
+
await task.protect()
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Or standalone:
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
import { protectTask } from '@requence/task'
|
|
220
|
+
|
|
221
|
+
await protectTask({ taskId: 'some-task-id' })
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Fetching a Task by ID
|
|
225
|
+
|
|
226
|
+
Retrieve the current state of any task:
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
import { getTask } from '@requence/task'
|
|
230
|
+
|
|
231
|
+
const task = await getTask('some-task-id')
|
|
232
|
+
// or: getTask({ taskId: 'some-task-id', accessToken: '...' })
|
|
233
|
+
|
|
234
|
+
task.status // 'SUCCESSFUL' | 'FAILED' | 'IDLE' | 'PENDING' | 'RUNNING' | 'STOPPED' | 'AWAITING_DELIVERY'
|
|
235
|
+
task.statusText // Human-readable status description, if any
|
|
236
|
+
task.taskTemplate // The task template name
|
|
237
|
+
task.name // Human-readable task name
|
|
238
|
+
task.branch // 'live' or a branch name
|
|
239
|
+
|
|
240
|
+
task.context.input // The task's input
|
|
241
|
+
task.context.result // The task's result (if finished)
|
|
242
|
+
task.context.getNodeData(alias) // Output from a specific node
|
|
243
|
+
task.context.getNodeError(alias) // Error from a specific node
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## Recreating a Task
|
|
247
|
+
|
|
248
|
+
Re-run an existing task with the same template and input:
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
import { recreateTask } from '@requence/task'
|
|
252
|
+
|
|
253
|
+
const task = await recreateTask({
|
|
254
|
+
taskId: 'some-task-id',
|
|
255
|
+
name: 'My Retry', // Optional — overrides the original name
|
|
256
|
+
priority: 3, // Optional — overrides the original priority
|
|
257
|
+
})
|
|
258
|
+
|
|
259
|
+
const result = await task
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## Watching All Tasks (`watchTasks`)
|
|
263
|
+
|
|
264
|
+
Subscribe to real-time updates across **all tasks** — useful for dashboards, monitoring systems, or audit logs.
|
|
265
|
+
|
|
266
|
+
```typescript
|
|
267
|
+
import { watchTasks } from '@requence/task'
|
|
268
|
+
|
|
269
|
+
const stop = watchTasks({
|
|
270
|
+
since: new Date(),
|
|
271
|
+
onUpdate(update) {
|
|
272
|
+
console.log(`[${update.type}] Task ${update.context.taskId}`)
|
|
273
|
+
},
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
// Later — disconnect the watcher
|
|
277
|
+
stop()
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
`watchTasks` returns a stop function that is also an **AsyncIterable**:
|
|
281
|
+
|
|
282
|
+
```typescript
|
|
283
|
+
const watcher = watchTasks({ since: new Date() })
|
|
284
|
+
|
|
285
|
+
for await (const update of watcher) {
|
|
286
|
+
console.log(update.type, update.context.taskId)
|
|
287
|
+
|
|
288
|
+
if (shouldStop) {
|
|
289
|
+
watcher() // stop watching
|
|
290
|
+
break
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### `watchTasks` options
|
|
296
|
+
|
|
297
|
+
| Option | Type | Description |
|
|
298
|
+
|---|---|---|
|
|
299
|
+
| `since` | `Date` | **Required.** Only receive updates after this timestamp. |
|
|
300
|
+
| `accessToken` | `string` | Access token (falls back to env / config file) |
|
|
301
|
+
| `filter.only` | `string[]` | Filter to specific update types (e.g. `['taskEnd', 'taskError']`) |
|
|
302
|
+
| `onUpdate` | `function` | Callback for each update |
|
|
303
|
+
| `onConnect` | `function` | Called when the connection is established |
|
|
304
|
+
| `onReconnecting` | `function` | Called when the connection is being re-established |
|
|
305
|
+
| `onError` | `function` | Called on connection errors — receives `(status, reason)` |
|
|
306
|
+
|
|
307
|
+
### Incomplete updates
|
|
308
|
+
|
|
309
|
+
Each update from `watchTasks` includes an `incomplete` flag. When `true`, it means the watcher connected after the task had already started and the `taskStart` event was missed. Use this to decide whether to skip or partially process the update.
|
|
310
|
+
|
|
311
|
+
It also includes a `rootTaskId` field — the ID of the root task when the update belongs to a sub-task, or `null` for top-level tasks.
|
|
312
|
+
|
|
313
|
+
## Delivery Guarantee
|
|
314
|
+
|
|
315
|
+
By default, a task transitions immediately from `RUNNING` to `SUCCESSFUL` / `FAILED` / `STOPPED` when it finishes. If the process that started the task crashes at the exact moment the terminal event is emitted, the event can be lost.
|
|
316
|
+
|
|
317
|
+
Setting `requireAck: true` enables an explicit acknowledgement step:
|
|
318
|
+
|
|
319
|
+
1. When the task reaches its terminal state the backend holds it in **`AWAITING_DELIVERY`** instead of immediately finalising.
|
|
320
|
+
2. The SDK receives the terminal event over SSE and automatically sends an ACK back.
|
|
321
|
+
3. Only after the ACK is received does the task move to its real final status, and the exact delivery timestamp is recorded.
|
|
322
|
+
|
|
323
|
+
```typescript
|
|
324
|
+
const result = await createTask({
|
|
325
|
+
taskTemplate: 'my-template',
|
|
326
|
+
input: { /* ... */ },
|
|
327
|
+
requireAck: true,
|
|
328
|
+
})
|
|
329
|
+
// Resolves only after the ACK has been confirmed
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
`requireAck` also works with `watchTasks` — when a task with `requireAck` reaches its terminal state, the watcher ACKs it automatically using the same access token.
|
|
333
|
+
|
|
334
|
+
## CLI — Generate Types
|
|
335
|
+
|
|
336
|
+
The package ships with a CLI that generates TypeScript types for your task templates, derived from the schemas defined in the Requence UI:
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
npx requence-task generate-types
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
This creates a `requence-env.d.ts` file in your project root. TypeScript picks it up automatically — `input`, `result`, and node data will be fully typed.
|
|
343
|
+
|
|
344
|
+
### Options
|
|
345
|
+
|
|
346
|
+
| Option | Default | Description |
|
|
347
|
+
|---|---|---|
|
|
348
|
+
| `--access-token` | — | Access token (falls back to env / config file) |
|
|
349
|
+
| `--outfile` | `requence-env.d.ts` | Name of the generated type file |
|
|
350
|
+
| `--outdir` | `.` | Directory to write the type file to |
|
|
351
|
+
|
|
352
|
+
The token resolution order for the CLI is the same as for `createTask`: option → `REQUENCE_TASK_ACCESS_TOKEN` / `REQUENCE_ACCESS_TOKEN` env var → `requence.task.accessToken` / `requence.accessToken` in `package.json`.
|
|
353
|
+
|
|
354
|
+
## Full Example
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
import { createTask, watchTasks } from '@requence/task'
|
|
358
|
+
|
|
359
|
+
// Start a task and stream its progress
|
|
360
|
+
const task = createTask(
|
|
361
|
+
{
|
|
362
|
+
taskTemplate: 'invoice-processing',
|
|
363
|
+
input: { invoiceUrl: 'https://...' },
|
|
364
|
+
name: 'Invoice #1234',
|
|
365
|
+
priority: 3,
|
|
366
|
+
},
|
|
367
|
+
(update) => {
|
|
368
|
+
if (update.type === 'nodeUpdate') {
|
|
369
|
+
console.log('Node result:', update.data)
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
const taskId = await task.getTaskId()
|
|
375
|
+
console.log('Started task:', taskId)
|
|
376
|
+
|
|
377
|
+
try {
|
|
378
|
+
const result = await task
|
|
379
|
+
console.log('Final result:', result.result)
|
|
380
|
+
} catch (error) {
|
|
381
|
+
console.error('Task failed:', error.message)
|
|
382
|
+
}
|
|
383
|
+
```
|
|
@@ -3,6 +3,7 @@ export type OutputName = string | null;
|
|
|
3
3
|
type ExtendedEdge = Edge & {
|
|
4
4
|
traversed: number;
|
|
5
5
|
data?: string;
|
|
6
|
+
traceIds: string[];
|
|
6
7
|
};
|
|
7
8
|
type Cycle = {
|
|
8
9
|
node: Node;
|
|
@@ -52,6 +53,7 @@ export declare class NodeTree {
|
|
|
52
53
|
name: string;
|
|
53
54
|
version: string;
|
|
54
55
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
56
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
55
57
|
outputs: {
|
|
56
58
|
name: string | null;
|
|
57
59
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -129,6 +131,7 @@ export declare class NodeTree {
|
|
|
129
131
|
name: string;
|
|
130
132
|
version: string;
|
|
131
133
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
134
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
132
135
|
outputs: {
|
|
133
136
|
name: string | null;
|
|
134
137
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -201,6 +204,7 @@ export declare class NodeTree {
|
|
|
201
204
|
name: string;
|
|
202
205
|
version: string;
|
|
203
206
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
207
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
204
208
|
outputs: {
|
|
205
209
|
name: string | null;
|
|
206
210
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -273,6 +277,7 @@ export declare class NodeTree {
|
|
|
273
277
|
name: string;
|
|
274
278
|
version: string;
|
|
275
279
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
280
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
276
281
|
outputs: {
|
|
277
282
|
name: string | null;
|
|
278
283
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -344,6 +349,7 @@ export declare class NodeTree {
|
|
|
344
349
|
name: string;
|
|
345
350
|
version: string;
|
|
346
351
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
352
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
347
353
|
outputs: {
|
|
348
354
|
name: string | null;
|
|
349
355
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -428,6 +434,7 @@ export declare class NodeTree {
|
|
|
428
434
|
name: string;
|
|
429
435
|
version: string;
|
|
430
436
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
437
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
431
438
|
outputs: {
|
|
432
439
|
name: string | null;
|
|
433
440
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -484,8 +491,9 @@ export declare class NodeTree {
|
|
|
484
491
|
handle: OutputName;
|
|
485
492
|
}[];
|
|
486
493
|
getTriggers(nodeId: string): string[];
|
|
487
|
-
|
|
488
|
-
|
|
494
|
+
getTraceIds(nodeId: string): string[];
|
|
495
|
+
traverse(nodeId: string, outputName: OutputName, traceIds?: string[]): void;
|
|
496
|
+
traverseWithData(nodeId: string, outputName: OutputName, data: unknown, overwrite?: boolean, traceIds?: string[]): void;
|
|
489
497
|
disconnect(sourceNodeId: string, sourceNodeOutputName: OutputName, targetNodeId: string): void;
|
|
490
498
|
getData(nodeId: string, outputName: OutputName): unknown;
|
|
491
499
|
traversed(sourceNodeId: string, targetNodeId: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAA;AAEtC,KAAK,YAAY,GAAG,IAAI,GAAG;
|
|
1
|
+
{"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAA;AAEtC,KAAK,YAAY,GAAG,IAAI,GAAG;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAMD,KAAK,KAAK,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,EAAE,CAAA;AAqG/C,KAAK,aAA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E,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,OAAO,EACb,SAAS,UAAQ,EACjB,QAAQ,GAAE,MAAM,EAAO;IAsBzB,UAAU,CACR,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,UAAU,EAChC,YAAY,EAAE,MAAM;IAatB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU;IAS9C,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IASpD,UAAU;IAiBV,OAAO,CAAC,2BAA2B;IAgCnC,uBAAuB,CAAC,YAAY,EAAE,MAAM;IAqB5C,iBAAiB,CAAC,YAAY,EAAE,MAAM;IAwBtC,qBAAqB,CAAC,MAAM,EAAE,MAAM;IAwCpC,KAAK;IAUL,EAAE;IAaF,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGzE"}
|
|
@@ -24,6 +24,9 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
24
24
|
priority: z.ZodDefault<z.ZodInt>;
|
|
25
25
|
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
26
26
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
28
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
27
30
|
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
28
31
|
rootTaskId: z.ZodUUID;
|
|
29
32
|
taskId: z.ZodUUID;
|
|
@@ -52,6 +55,7 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
52
55
|
name: string;
|
|
53
56
|
version: string;
|
|
54
57
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
58
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
55
59
|
outputs: {
|
|
56
60
|
name: string | null;
|
|
57
61
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -137,6 +141,7 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
137
141
|
name: string;
|
|
138
142
|
version: string;
|
|
139
143
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
144
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
140
145
|
outputs: {
|
|
141
146
|
name: string | null;
|
|
142
147
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -206,6 +211,9 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
206
211
|
maxExecutions: number;
|
|
207
212
|
mode: "LINEAR" | "CONTINUOUS";
|
|
208
213
|
priority: number;
|
|
214
|
+
continuous: {
|
|
215
|
+
maxReconnects: number;
|
|
216
|
+
};
|
|
209
217
|
uploadUrl?: string | undefined;
|
|
210
218
|
streamUrl?: string | undefined;
|
|
211
219
|
referencedBy?: {
|
|
@@ -230,6 +238,9 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
230
238
|
maxExecutions: number;
|
|
231
239
|
mode: "LINEAR" | "CONTINUOUS";
|
|
232
240
|
priority: number;
|
|
241
|
+
continuous: {
|
|
242
|
+
maxReconnects: number;
|
|
243
|
+
};
|
|
233
244
|
uploadUrl?: string | undefined;
|
|
234
245
|
streamUrl?: string | undefined;
|
|
235
246
|
referencedBy?: {
|
|
@@ -264,6 +275,9 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
264
275
|
priority: z.ZodDefault<z.ZodInt>;
|
|
265
276
|
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
266
277
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
278
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
279
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
267
281
|
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
268
282
|
rootTaskId: z.ZodUUID;
|
|
269
283
|
taskId: z.ZodUUID;
|
|
@@ -292,6 +306,7 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
292
306
|
name: string;
|
|
293
307
|
version: string;
|
|
294
308
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
309
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
295
310
|
outputs: {
|
|
296
311
|
name: string | null;
|
|
297
312
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -377,6 +392,7 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
377
392
|
name: string;
|
|
378
393
|
version: string;
|
|
379
394
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
395
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
380
396
|
outputs: {
|
|
381
397
|
name: string | null;
|
|
382
398
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -446,6 +462,9 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
446
462
|
maxExecutions: number;
|
|
447
463
|
mode: "LINEAR" | "CONTINUOUS";
|
|
448
464
|
priority: number;
|
|
465
|
+
continuous: {
|
|
466
|
+
maxReconnects: number;
|
|
467
|
+
};
|
|
449
468
|
uploadUrl?: string | undefined;
|
|
450
469
|
streamUrl?: string | undefined;
|
|
451
470
|
referencedBy?: {
|
|
@@ -470,6 +489,9 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
470
489
|
maxExecutions: number;
|
|
471
490
|
mode: "LINEAR" | "CONTINUOUS";
|
|
472
491
|
priority: number;
|
|
492
|
+
continuous: {
|
|
493
|
+
maxReconnects: number;
|
|
494
|
+
};
|
|
473
495
|
uploadUrl?: string | undefined;
|
|
474
496
|
streamUrl?: string | undefined;
|
|
475
497
|
referencedBy?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/command.ts"],"names":[],"mappings":"AA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AM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -24,6 +24,10 @@ export declare const serviceNodeSchema: z.ZodObject<{
|
|
|
24
24
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
LINEAR: "LINEAR";
|
|
29
|
+
CONTINUOUS: "CONTINUOUS";
|
|
30
|
+
}>>;
|
|
27
31
|
outputs: z.ZodArray<z.ZodObject<{
|
|
28
32
|
name: z.ZodNullable<z.ZodString>;
|
|
29
33
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -110,6 +114,10 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
110
114
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
111
115
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
112
116
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
LINEAR: "LINEAR";
|
|
119
|
+
CONTINUOUS: "CONTINUOUS";
|
|
120
|
+
}>>;
|
|
113
121
|
outputs: z.ZodArray<z.ZodObject<{
|
|
114
122
|
name: z.ZodNullable<z.ZodString>;
|
|
115
123
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAA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,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAQrB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;iBAKrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -8,6 +8,9 @@ export declare const taskOptionsSchema: z.ZodObject<{
|
|
|
8
8
|
priority: z.ZodDefault<z.ZodInt>;
|
|
9
9
|
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
10
10
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
12
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
11
14
|
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
12
15
|
rootTaskId: z.ZodUUID;
|
|
13
16
|
taskId: z.ZodUUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskOptions.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/taskOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"taskOptions.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/taskOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;iBAmB5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -17,6 +17,10 @@ export declare const templateEntryNodeSchema: z.ZodObject<{
|
|
|
17
17
|
export type TemplateEntryNode = z.output<typeof templateEntryNodeSchema>;
|
|
18
18
|
export declare const templateServiceNodeSchema: z.ZodObject<{
|
|
19
19
|
type: z.ZodLiteral<"service">;
|
|
20
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
21
|
+
LINEAR: "LINEAR";
|
|
22
|
+
CONTINUOUS: "CONTINUOUS";
|
|
23
|
+
}>>;
|
|
20
24
|
id: z.ZodDefault<z.ZodUUID>;
|
|
21
25
|
alias: z.ZodOptional<z.ZodString>;
|
|
22
26
|
configuration: z.ZodOptional<z.ZodAny>;
|
|
@@ -163,6 +167,10 @@ export declare const templateTreeSchema: z.ZodObject<{
|
|
|
163
167
|
flipped: z.ZodOptional<z.ZodBoolean>;
|
|
164
168
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
169
|
type: z.ZodLiteral<"service">;
|
|
170
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
171
|
+
LINEAR: "LINEAR";
|
|
172
|
+
CONTINUOUS: "CONTINUOUS";
|
|
173
|
+
}>>;
|
|
166
174
|
id: z.ZodDefault<z.ZodUUID>;
|
|
167
175
|
alias: z.ZodOptional<z.ZodString>;
|
|
168
176
|
configuration: z.ZodOptional<z.ZodAny>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateNodeTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/templateNodeTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AA2B1B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAEP,CAAA;AAC7B,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAExE,eAAO,MAAM,yBAAyB
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -23,6 +23,10 @@ export declare const treeSchema: z.ZodObject<{
|
|
|
23
23
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
LINEAR: "LINEAR";
|
|
28
|
+
CONTINUOUS: "CONTINUOUS";
|
|
29
|
+
}>>;
|
|
26
30
|
outputs: z.ZodArray<z.ZodObject<{
|
|
27
31
|
name: z.ZodNullable<z.ZodString>;
|
|
28
32
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -107,6 +111,10 @@ declare const extendedTreeSchema: z.ZodObject<{
|
|
|
107
111
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
108
112
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
109
113
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
115
|
+
LINEAR: "LINEAR";
|
|
116
|
+
CONTINUOUS: "CONTINUOUS";
|
|
117
|
+
}>>;
|
|
110
118
|
outputs: z.ZodArray<z.ZodObject<{
|
|
111
119
|
name: z.ZodNullable<z.ZodString>;
|
|
112
120
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -192,6 +200,10 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
192
200
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
193
201
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
194
202
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
LINEAR: "LINEAR";
|
|
205
|
+
CONTINUOUS: "CONTINUOUS";
|
|
206
|
+
}>>;
|
|
195
207
|
outputs: z.ZodArray<z.ZodObject<{
|
|
196
208
|
name: z.ZodNullable<z.ZodString>;
|
|
197
209
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -270,6 +282,7 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
270
282
|
name: string;
|
|
271
283
|
version: string;
|
|
272
284
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
285
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
273
286
|
outputs: {
|
|
274
287
|
name: string | null;
|
|
275
288
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -348,6 +361,7 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
348
361
|
name: string;
|
|
349
362
|
version: string;
|
|
350
363
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
364
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
351
365
|
outputs: {
|
|
352
366
|
name: string | null;
|
|
353
367
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -442,6 +456,10 @@ export declare const treeReferenceSchema: z.ZodObject<{
|
|
|
442
456
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
443
457
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
444
458
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
460
|
+
LINEAR: "LINEAR";
|
|
461
|
+
CONTINUOUS: "CONTINUOUS";
|
|
462
|
+
}>>;
|
|
445
463
|
outputs: z.ZodArray<z.ZodObject<{
|
|
446
464
|
name: z.ZodNullable<z.ZodString>;
|
|
447
465
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -528,6 +546,10 @@ export declare const treeListSchema: z.ZodObject<{
|
|
|
528
546
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
529
547
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
530
548
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
550
|
+
LINEAR: "LINEAR";
|
|
551
|
+
CONTINUOUS: "CONTINUOUS";
|
|
552
|
+
}>>;
|
|
531
553
|
outputs: z.ZodArray<z.ZodObject<{
|
|
532
554
|
name: z.ZodNullable<z.ZodString>;
|
|
533
555
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -606,6 +628,7 @@ export declare const treeListSchema: z.ZodObject<{
|
|
|
606
628
|
name: string;
|
|
607
629
|
version: string;
|
|
608
630
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
631
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
609
632
|
outputs: {
|
|
610
633
|
name: string | null;
|
|
611
634
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -684,6 +707,7 @@ export declare const treeListSchema: z.ZodObject<{
|
|
|
684
707
|
name: string;
|
|
685
708
|
version: string;
|
|
686
709
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
710
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
687
711
|
outputs: {
|
|
688
712
|
name: string | null;
|
|
689
713
|
schema: import("json-schema").JSONSchema7 | null;
|
|
@@ -778,6 +802,10 @@ export declare const treeListSchema: z.ZodObject<{
|
|
|
778
802
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
779
803
|
retry: z.ZodOptional<z.ZodNumber>;
|
|
780
804
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
805
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
806
|
+
LINEAR: "LINEAR";
|
|
807
|
+
CONTINUOUS: "CONTINUOUS";
|
|
808
|
+
}>>;
|
|
781
809
|
outputs: z.ZodArray<z.ZodObject<{
|
|
782
810
|
name: z.ZodNullable<z.ZodString>;
|
|
783
811
|
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAQ1B,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAQ1B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEtB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE/D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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4
4
|
id: z.ZodUUID;
|
|
5
5
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
6
7
|
node: z.ZodObject<{
|
|
7
8
|
id: z.ZodUUID;
|
|
8
9
|
type: z.ZodEnum<{
|
|
@@ -22,6 +23,7 @@ declare const nodeStartUpdateSchema: z.ZodObject<{
|
|
|
22
23
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
23
24
|
id: z.ZodUUID;
|
|
24
25
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
26
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
25
27
|
node: z.ZodObject<{
|
|
26
28
|
id: z.ZodUUID;
|
|
27
29
|
type: z.ZodEnum<{
|
|
@@ -41,6 +43,7 @@ declare const nodeErrorUpdateSchema: z.ZodObject<{
|
|
|
41
43
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
42
44
|
id: z.ZodUUID;
|
|
43
45
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
46
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
44
47
|
node: z.ZodObject<{
|
|
45
48
|
id: z.ZodUUID;
|
|
46
49
|
type: z.ZodEnum<{
|
|
@@ -59,6 +62,7 @@ declare const nodeUpdateSchema: z.ZodObject<{
|
|
|
59
62
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
60
63
|
id: z.ZodUUID;
|
|
61
64
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
65
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
62
66
|
node: z.ZodObject<{
|
|
63
67
|
id: z.ZodUUID;
|
|
64
68
|
type: z.ZodEnum<{
|
|
@@ -79,6 +83,7 @@ declare const nodeCallbackSchema: z.ZodObject<{
|
|
|
79
83
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
80
84
|
id: z.ZodUUID;
|
|
81
85
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
86
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
82
87
|
node: z.ZodObject<{
|
|
83
88
|
id: z.ZodUUID;
|
|
84
89
|
type: z.ZodEnum<{
|
|
@@ -109,6 +114,7 @@ declare const nodeEndUpdateSchema: z.ZodObject<{
|
|
|
109
114
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
110
115
|
id: z.ZodUUID;
|
|
111
116
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
117
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
112
118
|
node: z.ZodObject<{
|
|
113
119
|
id: z.ZodUUID;
|
|
114
120
|
type: z.ZodEnum<{
|
|
@@ -126,6 +132,7 @@ declare const nodeDebugUpdateSchema: z.ZodObject<{
|
|
|
126
132
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
127
133
|
id: z.ZodUUID;
|
|
128
134
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
135
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
129
136
|
node: z.ZodObject<{
|
|
130
137
|
id: z.ZodUUID;
|
|
131
138
|
type: z.ZodEnum<{
|
|
@@ -151,6 +158,7 @@ declare const nodeDeferUpdateSchema: z.ZodObject<{
|
|
|
151
158
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
152
159
|
id: z.ZodUUID;
|
|
153
160
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
161
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
154
162
|
node: z.ZodObject<{
|
|
155
163
|
id: z.ZodUUID;
|
|
156
164
|
type: z.ZodEnum<{
|
|
@@ -169,6 +177,7 @@ declare const taskStartUpdateSchema: z.ZodObject<{
|
|
|
169
177
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
170
178
|
id: z.ZodUUID;
|
|
171
179
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
180
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
172
181
|
type: z.ZodLiteral<"TASK_START">;
|
|
173
182
|
parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
174
183
|
rootTaskId: z.ZodUUID;
|
|
@@ -183,6 +192,7 @@ declare const taskErrorUpdateSchema: z.ZodObject<{
|
|
|
183
192
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
184
193
|
id: z.ZodUUID;
|
|
185
194
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
195
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
186
196
|
type: z.ZodLiteral<"TASK_ERROR">;
|
|
187
197
|
reason: z.ZodOptional<z.ZodString>;
|
|
188
198
|
}, z.core.$strip>;
|
|
@@ -191,6 +201,7 @@ declare const taskEndUpdateSchema: z.ZodObject<{
|
|
|
191
201
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
192
202
|
id: z.ZodUUID;
|
|
193
203
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
204
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
194
205
|
type: z.ZodLiteral<"TASK_END">;
|
|
195
206
|
exitName: z.ZodNullable<z.ZodString>;
|
|
196
207
|
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -200,6 +211,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
211
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
201
212
|
id: z.ZodUUID;
|
|
202
213
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
214
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
203
215
|
node: z.ZodObject<{
|
|
204
216
|
id: z.ZodUUID;
|
|
205
217
|
type: z.ZodEnum<{
|
|
@@ -217,6 +229,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
217
229
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
218
230
|
id: z.ZodUUID;
|
|
219
231
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
232
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
220
233
|
node: z.ZodObject<{
|
|
221
234
|
id: z.ZodUUID;
|
|
222
235
|
type: z.ZodEnum<{
|
|
@@ -234,6 +247,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
247
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
235
248
|
id: z.ZodUUID;
|
|
236
249
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
250
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
237
251
|
node: z.ZodObject<{
|
|
238
252
|
id: z.ZodUUID;
|
|
239
253
|
type: z.ZodEnum<{
|
|
@@ -250,6 +264,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
250
264
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
251
265
|
id: z.ZodUUID;
|
|
252
266
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
267
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
253
268
|
node: z.ZodObject<{
|
|
254
269
|
id: z.ZodUUID;
|
|
255
270
|
type: z.ZodEnum<{
|
|
@@ -268,6 +283,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
283
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
269
284
|
id: z.ZodUUID;
|
|
270
285
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
286
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
271
287
|
node: z.ZodObject<{
|
|
272
288
|
id: z.ZodUUID;
|
|
273
289
|
type: z.ZodEnum<{
|
|
@@ -296,6 +312,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
296
312
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
297
313
|
id: z.ZodUUID;
|
|
298
314
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
315
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
299
316
|
node: z.ZodObject<{
|
|
300
317
|
id: z.ZodUUID;
|
|
301
318
|
type: z.ZodEnum<{
|
|
@@ -311,6 +328,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
311
328
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
312
329
|
id: z.ZodUUID;
|
|
313
330
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
331
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
314
332
|
node: z.ZodObject<{
|
|
315
333
|
id: z.ZodUUID;
|
|
316
334
|
type: z.ZodEnum<{
|
|
@@ -334,6 +352,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
334
352
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
335
353
|
id: z.ZodUUID;
|
|
336
354
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
355
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
337
356
|
node: z.ZodObject<{
|
|
338
357
|
id: z.ZodUUID;
|
|
339
358
|
type: z.ZodEnum<{
|
|
@@ -350,6 +369,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
350
369
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
351
370
|
id: z.ZodUUID;
|
|
352
371
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
372
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
353
373
|
type: z.ZodLiteral<"TASK_START">;
|
|
354
374
|
parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
355
375
|
rootTaskId: z.ZodUUID;
|
|
@@ -362,12 +382,14 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
362
382
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
363
383
|
id: z.ZodUUID;
|
|
364
384
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
385
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
365
386
|
type: z.ZodLiteral<"TASK_ERROR">;
|
|
366
387
|
reason: z.ZodOptional<z.ZodString>;
|
|
367
388
|
}, z.core.$strip>, z.ZodObject<{
|
|
368
389
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
369
390
|
id: z.ZodUUID;
|
|
370
391
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
392
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
371
393
|
type: z.ZodLiteral<"TASK_END">;
|
|
372
394
|
exitName: z.ZodNullable<z.ZodString>;
|
|
373
395
|
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -375,6 +397,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
397
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
|
|
376
398
|
id: z.ZodUUID;
|
|
377
399
|
rootTaskId: z.ZodOptional<z.ZodUUID>;
|
|
400
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
378
401
|
type: z.ZodLiteral<"TASK_ABORTED">;
|
|
379
402
|
reason: z.ZodOptional<z.ZodString>;
|
|
380
403
|
}, z.core.$strip>], "type">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/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