@requence/task 0.7.1 → 0.8.2-edge.1149

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +5 -5
  3. package/build/{chunk-b4h2we9a.js → chunk-f7g9gsa0.js} +33 -3
  4. package/build/chunk-f7g9gsa0.js.map +11 -0
  5. package/build/cli.js +18 -8
  6. package/build/cli.js.map +3 -3
  7. package/build/index.js +1062 -502
  8. package/build/index.js.map +27 -16
  9. package/build/types/helpers/src/index.d.ts +8 -2
  10. package/build/types/helpers/src/index.d.ts.map +1 -1
  11. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -5
  12. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  13. package/build/types/helpers/src/jsonschema/zod.d.ts +11 -1
  14. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  15. package/build/types/helpers/src/protocol/NodeTree.d.ts +532 -148
  16. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/clientProperties.d.ts +66 -0
  18. package/build/types/helpers/src/protocol/clientProperties.d.ts.map +1 -0
  19. package/build/types/helpers/src/protocol/command.d.ts +372 -142
  20. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
  22. package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
  23. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/index.d.ts +5 -0
  25. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
  27. package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
  28. package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
  29. package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +81 -27
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  32. package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
  33. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  34. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
  35. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  36. package/build/types/helpers/src/protocol/treeNodes.d.ts +508 -164
  37. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  38. package/build/types/helpers/src/protocol/update.d.ts +40 -24
  39. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  40. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
  41. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
  42. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
  43. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +45 -0
  45. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
  46. package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
  47. package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
  48. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
  49. package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
  50. package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
  51. package/build/types/helpers/src/utils/mapData.d.ts +1 -1
  52. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  53. package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
  54. package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
  55. package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
  57. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
  58. package/build/types/task/src/abortTask.d.ts.map +1 -1
  59. package/build/types/task/src/ackTask.d.ts.map +1 -1
  60. package/build/types/task/src/createTask.d.ts +0 -1
  61. package/build/types/task/src/createTask.d.ts.map +1 -1
  62. package/build/types/task/src/errors.d.ts +27 -0
  63. package/build/types/task/src/errors.d.ts.map +1 -0
  64. package/build/types/task/src/getTask.d.ts +4 -4
  65. package/build/types/task/src/getTask.d.ts.map +1 -1
  66. package/build/types/task/src/index.d.ts +2 -1
  67. package/build/types/task/src/index.d.ts.map +1 -1
  68. package/build/types/task/src/ingress.d.ts +26 -0
  69. package/build/types/task/src/ingress.d.ts.map +1 -0
  70. package/build/types/task/src/protectTask.d.ts.map +1 -1
  71. package/build/types/task/src/recreateTask.d.ts +1 -1
  72. package/build/types/task/src/recreateTask.d.ts.map +1 -1
  73. package/build/types/task/src/types.d.ts +10 -10
  74. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  75. package/build/types/task/src/watchTasks.d.ts +2 -0
  76. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  77. package/package.json +7 -3
  78. package/build/chunk-b4h2we9a.js.map +0 -10
  79. package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
  80. package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
  81. package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
  82. package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
  83. package/build/types/helpers/src/files/index.d.ts +0 -7
  84. package/build/types/helpers/src/files/index.d.ts.map +0 -1
  85. package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
  86. package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
  87. package/build/types/helpers/src/files/types.d.ts +0 -4
  88. package/build/types/helpers/src/files/types.d.ts.map +0 -1
  89. package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
  90. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
  91. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
  92. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
  93. /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
  94. /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
  95. /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +0 -0
@@ -18,12 +18,14 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
18
18
  options: z.ZodObject<{
19
19
  maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
20
20
  mode: z.ZodDefault<z.ZodEnum<{
21
- LINEAR: "LINEAR";
22
21
  CONTINUOUS: "CONTINUOUS";
22
+ LINEAR: "LINEAR";
23
23
  }>>;
24
24
  priority: z.ZodDefault<z.ZodInt>;
25
25
  uploadUrl: z.ZodOptional<z.ZodString>;
26
26
  streamUrl: z.ZodOptional<z.ZodString>;
27
+ maxPayloadSize: z.ZodOptional<z.ZodNumber>;
28
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
27
29
  continuous: z.ZodDefault<z.ZodObject<{
28
30
  maxReconnects: z.ZodDefault<z.ZodNumber>;
29
31
  }, z.core.$strip>>;
@@ -32,72 +34,147 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
32
34
  taskId: z.ZodUUID;
33
35
  nodeId: z.ZodUUID;
34
36
  messageId: z.ZodUUID;
37
+ epoch: z.ZodOptional<z.ZodUUID>;
35
38
  }, z.core.$strip>>;
36
39
  }, z.core.$strip>;
37
40
  }, z.core.$strip>, z.ZodTransform<{
41
+ type: "CREATE";
42
+ input: any;
43
+ options: {
44
+ maxExecutions: number;
45
+ mode: "CONTINUOUS" | "LINEAR";
46
+ priority: number;
47
+ uploadUrl?: string | undefined;
48
+ streamUrl?: string | undefined;
49
+ maxPayloadSize?: number | undefined;
50
+ maxFileSize?: number | undefined;
51
+ continuous: {
52
+ maxReconnects: number;
53
+ };
54
+ referencedBy?: {
55
+ rootTaskId: string;
56
+ taskId: string;
57
+ nodeId: string;
58
+ messageId: string;
59
+ epoch?: string | undefined;
60
+ } | undefined;
61
+ };
38
62
  treeList: {
39
63
  tree: {
40
64
  nodes: ({
41
65
  id: string;
42
66
  type: "entry";
43
- inputSchema: import("json-schema").JSONSchema7;
44
67
  alias?: string | undefined;
68
+ inputSchema: import("json-schema").JSONSchema7;
45
69
  } | {
70
+ outputs: {
71
+ name: string | null;
72
+ schema: import("json-schema").JSONSchema7 | null;
73
+ }[];
46
74
  id: string;
47
75
  type: "service";
48
- inputSchema: ({
49
- type: "object";
50
- } & import("json-schema").JSONSchema7) | {
76
+ alias?: string | undefined;
77
+ inputSchema: {
51
78
  type: "null";
52
79
  } | ({
80
+ type: "object";
81
+ } & import("json-schema").JSONSchema7) | ({
53
82
  $ref: string;
83
+ } & import("json-schema").JSONSchema7) | ({
84
+ oneOf: ({
85
+ type: "null";
86
+ } | ({
87
+ type: "object";
88
+ } & import("json-schema").JSONSchema7) | ({
89
+ $ref: string;
90
+ } & import("json-schema").JSONSchema7))[];
54
91
  } & import("json-schema").JSONSchema7);
55
92
  name: string;
56
93
  version: string;
94
+ configuration?: any;
57
95
  configurationSchema: import("json-schema").JSONSchema7;
58
- mode: "LINEAR" | "CONTINUOUS";
96
+ ttl?: number | undefined;
97
+ retry: number;
98
+ retryDelay?: number | undefined;
99
+ mode: "CONTINUOUS" | "LINEAR";
100
+ privileged: boolean;
101
+ wireCodec?: "json" | "msgpack" | undefined;
102
+ configurationServices?: {
103
+ outputs: {
104
+ name: string | null;
105
+ schema: import("json-schema").JSONSchema7 | null;
106
+ }[];
107
+ id: string;
108
+ type: "service";
109
+ alias?: string | undefined;
110
+ inputSchema: {
111
+ type: "null";
112
+ } | ({
113
+ type: "object";
114
+ } & import("json-schema").JSONSchema7) | ({
115
+ $ref: string;
116
+ } & import("json-schema").JSONSchema7) | ({
117
+ oneOf: ({
118
+ type: "null";
119
+ } | ({
120
+ type: "object";
121
+ } & import("json-schema").JSONSchema7) | ({
122
+ $ref: string;
123
+ } & import("json-schema").JSONSchema7))[];
124
+ } & import("json-schema").JSONSchema7);
125
+ name: string;
126
+ version: string;
127
+ configuration?: any;
128
+ configurationSchema: import("json-schema").JSONSchema7;
129
+ ttl?: number | undefined;
130
+ retry: number;
131
+ retryDelay?: number | undefined;
132
+ mode: "CONTINUOUS" | "LINEAR";
133
+ privileged: boolean;
134
+ wireCodec?: "json" | "msgpack" | undefined;
135
+ configurationServices?: /*elided*/ any[] | undefined;
136
+ }[] | undefined;
137
+ } | {
59
138
  outputs: {
60
139
  name: string | null;
61
140
  schema: import("json-schema").JSONSchema7 | null;
62
141
  }[];
63
- alias?: string | undefined;
64
- configuration?: any;
65
- ttl?: number | undefined;
66
- retry?: number | undefined;
67
- retryDelay?: number | undefined;
68
- } | {
69
142
  id: string;
70
143
  type: "logic";
144
+ alias?: string | undefined;
71
145
  script: string;
72
146
  concurrency: boolean;
73
147
  language: "javascript" | "python" | "typescript";
74
148
  maxExecutionTime: number;
75
- outputs: {
76
- name: string | null;
77
- schema: import("json-schema").JSONSchema7 | null;
78
- }[];
79
- alias?: string | undefined;
80
149
  } | {
81
150
  id: string;
82
151
  type: "or";
83
152
  alias?: string | undefined;
84
153
  } | {
154
+ outputs: {
155
+ name: string | null;
156
+ schema: import("json-schema").JSONSchema7 | null;
157
+ }[];
85
158
  id: string;
86
159
  type: "reference";
160
+ alias?: string | undefined;
87
161
  reference: string;
88
162
  enabled: boolean;
89
- inputSchema: ({
90
- type: "object";
91
- } & import("json-schema").JSONSchema7) | {
163
+ inputSchema: {
92
164
  type: "null";
93
165
  } | ({
166
+ type: "object";
167
+ } & import("json-schema").JSONSchema7) | ({
94
168
  $ref: string;
169
+ } & import("json-schema").JSONSchema7) | ({
170
+ oneOf: ({
171
+ type: "null";
172
+ } | ({
173
+ type: "object";
174
+ } & import("json-schema").JSONSchema7) | ({
175
+ $ref: string;
176
+ } & import("json-schema").JSONSchema7))[];
95
177
  } & import("json-schema").JSONSchema7);
96
- outputs: {
97
- name: string | null;
98
- schema: import("json-schema").JSONSchema7 | null;
99
- }[];
100
- alias?: string | undefined;
101
178
  } | {
102
179
  id: string;
103
180
  type: "exit";
@@ -120,70 +197,123 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
120
197
  id: string;
121
198
  options: {
122
199
  maxExecutions: number;
123
- mode: "LINEAR" | "CONTINUOUS";
200
+ mode: "CONTINUOUS" | "LINEAR";
124
201
  };
125
202
  tree: {
126
203
  nodes: ({
127
204
  id: string;
128
205
  type: "entry";
129
- inputSchema: import("json-schema").JSONSchema7;
130
206
  alias?: string | undefined;
207
+ inputSchema: import("json-schema").JSONSchema7;
131
208
  } | {
209
+ outputs: {
210
+ name: string | null;
211
+ schema: import("json-schema").JSONSchema7 | null;
212
+ }[];
132
213
  id: string;
133
214
  type: "service";
134
- inputSchema: ({
135
- type: "object";
136
- } & import("json-schema").JSONSchema7) | {
215
+ alias?: string | undefined;
216
+ inputSchema: {
137
217
  type: "null";
138
218
  } | ({
219
+ type: "object";
220
+ } & import("json-schema").JSONSchema7) | ({
139
221
  $ref: string;
222
+ } & import("json-schema").JSONSchema7) | ({
223
+ oneOf: ({
224
+ type: "null";
225
+ } | ({
226
+ type: "object";
227
+ } & import("json-schema").JSONSchema7) | ({
228
+ $ref: string;
229
+ } & import("json-schema").JSONSchema7))[];
140
230
  } & import("json-schema").JSONSchema7);
141
231
  name: string;
142
232
  version: string;
233
+ configuration?: any;
143
234
  configurationSchema: import("json-schema").JSONSchema7;
144
- mode: "LINEAR" | "CONTINUOUS";
235
+ ttl?: number | undefined;
236
+ retry: number;
237
+ retryDelay?: number | undefined;
238
+ mode: "CONTINUOUS" | "LINEAR";
239
+ privileged: boolean;
240
+ wireCodec?: "json" | "msgpack" | undefined;
241
+ configurationServices?: {
242
+ outputs: {
243
+ name: string | null;
244
+ schema: import("json-schema").JSONSchema7 | null;
245
+ }[];
246
+ id: string;
247
+ type: "service";
248
+ alias?: string | undefined;
249
+ inputSchema: {
250
+ type: "null";
251
+ } | ({
252
+ type: "object";
253
+ } & import("json-schema").JSONSchema7) | ({
254
+ $ref: string;
255
+ } & import("json-schema").JSONSchema7) | ({
256
+ oneOf: ({
257
+ type: "null";
258
+ } | ({
259
+ type: "object";
260
+ } & import("json-schema").JSONSchema7) | ({
261
+ $ref: string;
262
+ } & import("json-schema").JSONSchema7))[];
263
+ } & import("json-schema").JSONSchema7);
264
+ name: string;
265
+ version: string;
266
+ configuration?: any;
267
+ configurationSchema: import("json-schema").JSONSchema7;
268
+ ttl?: number | undefined;
269
+ retry: number;
270
+ retryDelay?: number | undefined;
271
+ mode: "CONTINUOUS" | "LINEAR";
272
+ privileged: boolean;
273
+ wireCodec?: "json" | "msgpack" | undefined;
274
+ configurationServices?: any[] | undefined;
275
+ }[] | undefined;
276
+ } | {
145
277
  outputs: {
146
278
  name: string | null;
147
279
  schema: import("json-schema").JSONSchema7 | null;
148
280
  }[];
149
- alias?: string | undefined;
150
- configuration?: any;
151
- ttl?: number | undefined;
152
- retry?: number | undefined;
153
- retryDelay?: number | undefined;
154
- } | {
155
281
  id: string;
156
282
  type: "logic";
283
+ alias?: string | undefined;
157
284
  script: string;
158
285
  concurrency: boolean;
159
286
  language: "javascript" | "python" | "typescript";
160
287
  maxExecutionTime: number;
161
- outputs: {
162
- name: string | null;
163
- schema: import("json-schema").JSONSchema7 | null;
164
- }[];
165
- alias?: string | undefined;
166
288
  } | {
167
289
  id: string;
168
290
  type: "or";
169
291
  alias?: string | undefined;
170
292
  } | {
293
+ outputs: {
294
+ name: string | null;
295
+ schema: import("json-schema").JSONSchema7 | null;
296
+ }[];
171
297
  id: string;
172
298
  type: "reference";
299
+ alias?: string | undefined;
173
300
  reference: string;
174
301
  enabled: boolean;
175
- inputSchema: ({
176
- type: "object";
177
- } & import("json-schema").JSONSchema7) | {
302
+ inputSchema: {
178
303
  type: "null";
179
304
  } | ({
305
+ type: "object";
306
+ } & import("json-schema").JSONSchema7) | ({
180
307
  $ref: string;
308
+ } & import("json-schema").JSONSchema7) | ({
309
+ oneOf: ({
310
+ type: "null";
311
+ } | ({
312
+ type: "object";
313
+ } & import("json-schema").JSONSchema7) | ({
314
+ $ref: string;
315
+ } & import("json-schema").JSONSchema7))[];
181
316
  } & import("json-schema").JSONSchema7);
182
- outputs: {
183
- name: string | null;
184
- schema: import("json-schema").JSONSchema7 | null;
185
- }[];
186
- alias?: string | undefined;
187
317
  } | {
188
318
  id: string;
189
319
  type: "exit";
@@ -205,24 +335,6 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
205
335
  }[] | undefined;
206
336
  schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
207
337
  };
208
- type: "CREATE";
209
- input: any;
210
- options: {
211
- maxExecutions: number;
212
- mode: "LINEAR" | "CONTINUOUS";
213
- priority: number;
214
- continuous: {
215
- maxReconnects: number;
216
- };
217
- uploadUrl?: string | undefined;
218
- streamUrl?: string | undefined;
219
- referencedBy?: {
220
- rootTaskId: string;
221
- taskId: string;
222
- nodeId: string;
223
- messageId: string;
224
- } | undefined;
225
- };
226
338
  }, {
227
339
  type: "CREATE";
228
340
  treeList: {
@@ -236,18 +348,21 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
236
348
  input: any;
237
349
  options: {
238
350
  maxExecutions: number;
239
- mode: "LINEAR" | "CONTINUOUS";
351
+ mode: "CONTINUOUS" | "LINEAR";
240
352
  priority: number;
353
+ uploadUrl?: string | undefined;
354
+ streamUrl?: string | undefined;
355
+ maxPayloadSize?: number | undefined;
356
+ maxFileSize?: number | undefined;
241
357
  continuous: {
242
358
  maxReconnects: number;
243
359
  };
244
- uploadUrl?: string | undefined;
245
- streamUrl?: string | undefined;
246
360
  referencedBy?: {
247
361
  rootTaskId: string;
248
362
  taskId: string;
249
363
  nodeId: string;
250
364
  messageId: string;
365
+ epoch?: string | undefined;
251
366
  } | undefined;
252
367
  };
253
368
  }>>;
@@ -269,12 +384,14 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
269
384
  options: z.ZodObject<{
270
385
  maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
271
386
  mode: z.ZodDefault<z.ZodEnum<{
272
- LINEAR: "LINEAR";
273
387
  CONTINUOUS: "CONTINUOUS";
388
+ LINEAR: "LINEAR";
274
389
  }>>;
275
390
  priority: z.ZodDefault<z.ZodInt>;
276
391
  uploadUrl: z.ZodOptional<z.ZodString>;
277
392
  streamUrl: z.ZodOptional<z.ZodString>;
393
+ maxPayloadSize: z.ZodOptional<z.ZodNumber>;
394
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
278
395
  continuous: z.ZodDefault<z.ZodObject<{
279
396
  maxReconnects: z.ZodDefault<z.ZodNumber>;
280
397
  }, z.core.$strip>>;
@@ -283,72 +400,147 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
283
400
  taskId: z.ZodUUID;
284
401
  nodeId: z.ZodUUID;
285
402
  messageId: z.ZodUUID;
403
+ epoch: z.ZodOptional<z.ZodUUID>;
286
404
  }, z.core.$strip>>;
287
405
  }, z.core.$strip>;
288
406
  }, z.core.$strip>, z.ZodTransform<{
407
+ type: "CREATE";
408
+ input: any;
409
+ options: {
410
+ maxExecutions: number;
411
+ mode: "CONTINUOUS" | "LINEAR";
412
+ priority: number;
413
+ uploadUrl?: string | undefined;
414
+ streamUrl?: string | undefined;
415
+ maxPayloadSize?: number | undefined;
416
+ maxFileSize?: number | undefined;
417
+ continuous: {
418
+ maxReconnects: number;
419
+ };
420
+ referencedBy?: {
421
+ rootTaskId: string;
422
+ taskId: string;
423
+ nodeId: string;
424
+ messageId: string;
425
+ epoch?: string | undefined;
426
+ } | undefined;
427
+ };
289
428
  treeList: {
290
429
  tree: {
291
430
  nodes: ({
292
431
  id: string;
293
432
  type: "entry";
294
- inputSchema: import("json-schema").JSONSchema7;
295
433
  alias?: string | undefined;
434
+ inputSchema: import("json-schema").JSONSchema7;
296
435
  } | {
436
+ outputs: {
437
+ name: string | null;
438
+ schema: import("json-schema").JSONSchema7 | null;
439
+ }[];
297
440
  id: string;
298
441
  type: "service";
299
- inputSchema: ({
300
- type: "object";
301
- } & import("json-schema").JSONSchema7) | {
442
+ alias?: string | undefined;
443
+ inputSchema: {
302
444
  type: "null";
303
445
  } | ({
446
+ type: "object";
447
+ } & import("json-schema").JSONSchema7) | ({
304
448
  $ref: string;
449
+ } & import("json-schema").JSONSchema7) | ({
450
+ oneOf: ({
451
+ type: "null";
452
+ } | ({
453
+ type: "object";
454
+ } & import("json-schema").JSONSchema7) | ({
455
+ $ref: string;
456
+ } & import("json-schema").JSONSchema7))[];
305
457
  } & import("json-schema").JSONSchema7);
306
458
  name: string;
307
459
  version: string;
460
+ configuration?: any;
308
461
  configurationSchema: import("json-schema").JSONSchema7;
309
- mode: "LINEAR" | "CONTINUOUS";
462
+ ttl?: number | undefined;
463
+ retry: number;
464
+ retryDelay?: number | undefined;
465
+ mode: "CONTINUOUS" | "LINEAR";
466
+ privileged: boolean;
467
+ wireCodec?: "json" | "msgpack" | undefined;
468
+ configurationServices?: {
469
+ outputs: {
470
+ name: string | null;
471
+ schema: import("json-schema").JSONSchema7 | null;
472
+ }[];
473
+ id: string;
474
+ type: "service";
475
+ alias?: string | undefined;
476
+ inputSchema: {
477
+ type: "null";
478
+ } | ({
479
+ type: "object";
480
+ } & import("json-schema").JSONSchema7) | ({
481
+ $ref: string;
482
+ } & import("json-schema").JSONSchema7) | ({
483
+ oneOf: ({
484
+ type: "null";
485
+ } | ({
486
+ type: "object";
487
+ } & import("json-schema").JSONSchema7) | ({
488
+ $ref: string;
489
+ } & import("json-schema").JSONSchema7))[];
490
+ } & import("json-schema").JSONSchema7);
491
+ name: string;
492
+ version: string;
493
+ configuration?: any;
494
+ configurationSchema: import("json-schema").JSONSchema7;
495
+ ttl?: number | undefined;
496
+ retry: number;
497
+ retryDelay?: number | undefined;
498
+ mode: "CONTINUOUS" | "LINEAR";
499
+ privileged: boolean;
500
+ wireCodec?: "json" | "msgpack" | undefined;
501
+ configurationServices?: /*elided*/ any[] | undefined;
502
+ }[] | undefined;
503
+ } | {
310
504
  outputs: {
311
505
  name: string | null;
312
506
  schema: import("json-schema").JSONSchema7 | null;
313
507
  }[];
314
- alias?: string | undefined;
315
- configuration?: any;
316
- ttl?: number | undefined;
317
- retry?: number | undefined;
318
- retryDelay?: number | undefined;
319
- } | {
320
508
  id: string;
321
509
  type: "logic";
510
+ alias?: string | undefined;
322
511
  script: string;
323
512
  concurrency: boolean;
324
513
  language: "javascript" | "python" | "typescript";
325
514
  maxExecutionTime: number;
326
- outputs: {
327
- name: string | null;
328
- schema: import("json-schema").JSONSchema7 | null;
329
- }[];
330
- alias?: string | undefined;
331
515
  } | {
332
516
  id: string;
333
517
  type: "or";
334
518
  alias?: string | undefined;
335
519
  } | {
520
+ outputs: {
521
+ name: string | null;
522
+ schema: import("json-schema").JSONSchema7 | null;
523
+ }[];
336
524
  id: string;
337
525
  type: "reference";
526
+ alias?: string | undefined;
338
527
  reference: string;
339
528
  enabled: boolean;
340
- inputSchema: ({
341
- type: "object";
342
- } & import("json-schema").JSONSchema7) | {
529
+ inputSchema: {
343
530
  type: "null";
344
531
  } | ({
532
+ type: "object";
533
+ } & import("json-schema").JSONSchema7) | ({
345
534
  $ref: string;
535
+ } & import("json-schema").JSONSchema7) | ({
536
+ oneOf: ({
537
+ type: "null";
538
+ } | ({
539
+ type: "object";
540
+ } & import("json-schema").JSONSchema7) | ({
541
+ $ref: string;
542
+ } & import("json-schema").JSONSchema7))[];
346
543
  } & import("json-schema").JSONSchema7);
347
- outputs: {
348
- name: string | null;
349
- schema: import("json-schema").JSONSchema7 | null;
350
- }[];
351
- alias?: string | undefined;
352
544
  } | {
353
545
  id: string;
354
546
  type: "exit";
@@ -371,70 +563,123 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
371
563
  id: string;
372
564
  options: {
373
565
  maxExecutions: number;
374
- mode: "LINEAR" | "CONTINUOUS";
566
+ mode: "CONTINUOUS" | "LINEAR";
375
567
  };
376
568
  tree: {
377
569
  nodes: ({
378
570
  id: string;
379
571
  type: "entry";
380
- inputSchema: import("json-schema").JSONSchema7;
381
572
  alias?: string | undefined;
573
+ inputSchema: import("json-schema").JSONSchema7;
382
574
  } | {
575
+ outputs: {
576
+ name: string | null;
577
+ schema: import("json-schema").JSONSchema7 | null;
578
+ }[];
383
579
  id: string;
384
580
  type: "service";
385
- inputSchema: ({
386
- type: "object";
387
- } & import("json-schema").JSONSchema7) | {
581
+ alias?: string | undefined;
582
+ inputSchema: {
388
583
  type: "null";
389
584
  } | ({
585
+ type: "object";
586
+ } & import("json-schema").JSONSchema7) | ({
390
587
  $ref: string;
588
+ } & import("json-schema").JSONSchema7) | ({
589
+ oneOf: ({
590
+ type: "null";
591
+ } | ({
592
+ type: "object";
593
+ } & import("json-schema").JSONSchema7) | ({
594
+ $ref: string;
595
+ } & import("json-schema").JSONSchema7))[];
391
596
  } & import("json-schema").JSONSchema7);
392
597
  name: string;
393
598
  version: string;
599
+ configuration?: any;
394
600
  configurationSchema: import("json-schema").JSONSchema7;
395
- mode: "LINEAR" | "CONTINUOUS";
601
+ ttl?: number | undefined;
602
+ retry: number;
603
+ retryDelay?: number | undefined;
604
+ mode: "CONTINUOUS" | "LINEAR";
605
+ privileged: boolean;
606
+ wireCodec?: "json" | "msgpack" | undefined;
607
+ configurationServices?: {
608
+ outputs: {
609
+ name: string | null;
610
+ schema: import("json-schema").JSONSchema7 | null;
611
+ }[];
612
+ id: string;
613
+ type: "service";
614
+ alias?: string | undefined;
615
+ inputSchema: {
616
+ type: "null";
617
+ } | ({
618
+ type: "object";
619
+ } & import("json-schema").JSONSchema7) | ({
620
+ $ref: string;
621
+ } & import("json-schema").JSONSchema7) | ({
622
+ oneOf: ({
623
+ type: "null";
624
+ } | ({
625
+ type: "object";
626
+ } & import("json-schema").JSONSchema7) | ({
627
+ $ref: string;
628
+ } & import("json-schema").JSONSchema7))[];
629
+ } & import("json-schema").JSONSchema7);
630
+ name: string;
631
+ version: string;
632
+ configuration?: any;
633
+ configurationSchema: import("json-schema").JSONSchema7;
634
+ ttl?: number | undefined;
635
+ retry: number;
636
+ retryDelay?: number | undefined;
637
+ mode: "CONTINUOUS" | "LINEAR";
638
+ privileged: boolean;
639
+ wireCodec?: "json" | "msgpack" | undefined;
640
+ configurationServices?: any[] | undefined;
641
+ }[] | undefined;
642
+ } | {
396
643
  outputs: {
397
644
  name: string | null;
398
645
  schema: import("json-schema").JSONSchema7 | null;
399
646
  }[];
400
- alias?: string | undefined;
401
- configuration?: any;
402
- ttl?: number | undefined;
403
- retry?: number | undefined;
404
- retryDelay?: number | undefined;
405
- } | {
406
647
  id: string;
407
648
  type: "logic";
649
+ alias?: string | undefined;
408
650
  script: string;
409
651
  concurrency: boolean;
410
652
  language: "javascript" | "python" | "typescript";
411
653
  maxExecutionTime: number;
412
- outputs: {
413
- name: string | null;
414
- schema: import("json-schema").JSONSchema7 | null;
415
- }[];
416
- alias?: string | undefined;
417
654
  } | {
418
655
  id: string;
419
656
  type: "or";
420
657
  alias?: string | undefined;
421
658
  } | {
659
+ outputs: {
660
+ name: string | null;
661
+ schema: import("json-schema").JSONSchema7 | null;
662
+ }[];
422
663
  id: string;
423
664
  type: "reference";
665
+ alias?: string | undefined;
424
666
  reference: string;
425
667
  enabled: boolean;
426
- inputSchema: ({
427
- type: "object";
428
- } & import("json-schema").JSONSchema7) | {
668
+ inputSchema: {
429
669
  type: "null";
430
670
  } | ({
671
+ type: "object";
672
+ } & import("json-schema").JSONSchema7) | ({
431
673
  $ref: string;
674
+ } & import("json-schema").JSONSchema7) | ({
675
+ oneOf: ({
676
+ type: "null";
677
+ } | ({
678
+ type: "object";
679
+ } & import("json-schema").JSONSchema7) | ({
680
+ $ref: string;
681
+ } & import("json-schema").JSONSchema7))[];
432
682
  } & import("json-schema").JSONSchema7);
433
- outputs: {
434
- name: string | null;
435
- schema: import("json-schema").JSONSchema7 | null;
436
- }[];
437
- alias?: string | undefined;
438
683
  } | {
439
684
  id: string;
440
685
  type: "exit";
@@ -456,24 +701,6 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
456
701
  }[] | undefined;
457
702
  schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
458
703
  };
459
- type: "CREATE";
460
- input: any;
461
- options: {
462
- maxExecutions: number;
463
- mode: "LINEAR" | "CONTINUOUS";
464
- priority: number;
465
- continuous: {
466
- maxReconnects: number;
467
- };
468
- uploadUrl?: string | undefined;
469
- streamUrl?: string | undefined;
470
- referencedBy?: {
471
- rootTaskId: string;
472
- taskId: string;
473
- nodeId: string;
474
- messageId: string;
475
- } | undefined;
476
- };
477
704
  }, {
478
705
  type: "CREATE";
479
706
  treeList: {
@@ -487,18 +714,21 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
487
714
  input: any;
488
715
  options: {
489
716
  maxExecutions: number;
490
- mode: "LINEAR" | "CONTINUOUS";
717
+ mode: "CONTINUOUS" | "LINEAR";
491
718
  priority: number;
719
+ uploadUrl?: string | undefined;
720
+ streamUrl?: string | undefined;
721
+ maxPayloadSize?: number | undefined;
722
+ maxFileSize?: number | undefined;
492
723
  continuous: {
493
724
  maxReconnects: number;
494
725
  };
495
- uploadUrl?: string | undefined;
496
- streamUrl?: string | undefined;
497
726
  referencedBy?: {
498
727
  rootTaskId: string;
499
728
  taskId: string;
500
729
  nodeId: string;
501
730
  messageId: string;
731
+ epoch?: string | undefined;
502
732
  } | undefined;
503
733
  };
504
734
  }>>]>;