@requence/task 1.0.0-alpha.31 → 1.0.0-alpha.32

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 (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/chunk-y4v98p2s.js.map +1 -1
  3. package/build/cli.js.map +1 -1
  4. package/build/index.js +20 -4
  5. package/build/index.js.map +4 -4
  6. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +1 -1
  7. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -1
  8. package/build/types/helpers/src/jsonschema/validate.d.ts +3 -0
  9. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  10. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  11. package/build/types/helpers/src/protocol/NodeTree.d.ts +592 -58
  12. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  13. package/build/types/helpers/src/protocol/command.d.ts +418 -44
  14. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  15. package/build/types/helpers/src/protocol/index.d.ts +0 -1
  16. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/nodeType.d.ts +246 -101
  18. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  19. package/build/types/helpers/src/protocol/taskOptions.d.ts +1 -0
  20. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/treeNodes.d.ts +988 -100
  22. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  23. package/build/types/helpers/src/protocol/update.d.ts +25 -0
  24. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  25. package/build/types/task/src/types.d.ts +2 -0
  26. package/build/types/task/src/types.d.ts.map +1 -1
  27. package/build/types/task/src/watchTasks.d.ts +6 -3
  28. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/build/types/helpers/src/protocol/targetNodes.d.ts +0 -253
  31. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +0 -1
  32. package/build/types/helpers/src/utils/types.d.ts +0 -4
  33. package/build/types/helpers/src/utils/types.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { ERROR, type TreeEdge, type TreeNode } from './nodeType.ts';
2
- export type OutputName = string | null | typeof ERROR;
1
+ import type { TreeEdge, TreeNode } from './nodeType.ts';
2
+ export type OutputName = string | null;
3
3
  type ExtendedTreeEdge = TreeEdge & {
4
4
  traversed: number;
5
5
  data?: string;
@@ -25,18 +25,26 @@ export declare class NodeTree {
25
25
  }>;
26
26
  constructor({ nodes, edges, data }: NodeTreeOptions);
27
27
  pack(): (({
28
- id: string;
29
- type: "exit";
30
- alias?: string | undefined;
31
- } | {
32
28
  id: string;
33
29
  type: "entry";
34
30
  inputSchema: import("json-schema").JSONSchema7;
35
31
  outputs: {
36
- name: string | typeof ERROR | null;
32
+ name: string | null;
37
33
  schema: import("json-schema").JSONSchema7 | null;
34
+ types?: {
35
+ input: string;
36
+ output: string;
37
+ } | undefined;
38
38
  }[];
39
+ position: {
40
+ x: number;
41
+ y: number;
42
+ };
39
43
  alias?: string | undefined;
44
+ size?: {
45
+ width?: number | undefined;
46
+ height?: number | undefined;
47
+ } | undefined;
40
48
  } | {
41
49
  id: string;
42
50
  type: "service";
@@ -49,14 +57,30 @@ export declare class NodeTree {
49
57
  version: string;
50
58
  configurationSchema: import("json-schema").JSONSchema7;
51
59
  outputs: {
52
- name: string | typeof ERROR | null;
60
+ name: string | null;
53
61
  schema: import("json-schema").JSONSchema7 | null;
62
+ types?: {
63
+ input: string;
64
+ output: string;
65
+ } | undefined;
54
66
  }[];
67
+ position: {
68
+ x: number;
69
+ y: number;
70
+ };
55
71
  alias?: string | undefined;
72
+ inputTypes?: {
73
+ input: string;
74
+ output: string;
75
+ } | undefined;
56
76
  configuration?: any;
57
77
  ttl?: number | undefined;
58
78
  retry?: number | undefined;
59
79
  retryDelay?: number | undefined;
80
+ size?: {
81
+ width?: number | undefined;
82
+ height?: number | undefined;
83
+ } | undefined;
60
84
  } | {
61
85
  id: string;
62
86
  type: "logic";
@@ -65,50 +89,123 @@ export declare class NodeTree {
65
89
  language: "javascript" | "python" | "typescript";
66
90
  maxExecutionTime: number;
67
91
  outputs: {
68
- name: string | typeof ERROR | null;
92
+ name: string | null;
69
93
  schema: import("json-schema").JSONSchema7 | null;
94
+ types?: {
95
+ input: string;
96
+ output: string;
97
+ } | undefined;
70
98
  }[];
99
+ position: {
100
+ x: number;
101
+ y: number;
102
+ };
71
103
  alias?: string | undefined;
104
+ outputNames?: string[] | undefined;
105
+ size?: {
106
+ width?: number | undefined;
107
+ height?: number | undefined;
108
+ } | undefined;
72
109
  } | {
73
110
  id: string;
74
111
  type: "or";
75
112
  outputs: {
76
- name: string | typeof ERROR | null;
113
+ name: string | null;
77
114
  schema: import("json-schema").JSONSchema7 | null;
115
+ types?: {
116
+ input: string;
117
+ output: string;
118
+ } | undefined;
78
119
  }[];
120
+ position: {
121
+ x: number;
122
+ y: number;
123
+ };
79
124
  alias?: string | undefined;
125
+ size?: {
126
+ width?: number | undefined;
127
+ height?: number | undefined;
128
+ } | undefined;
80
129
  } | {
81
130
  id: string;
82
131
  type: "reference";
83
132
  reference: string;
84
133
  outputs: {
85
- name: string | typeof ERROR | null;
134
+ name: string | null;
86
135
  schema: import("json-schema").JSONSchema7 | null;
136
+ types?: {
137
+ input: string;
138
+ output: string;
139
+ } | undefined;
87
140
  }[];
141
+ position: {
142
+ x: number;
143
+ y: number;
144
+ };
88
145
  alias?: string | undefined;
89
- configuration?: any;
146
+ inputTypes?: {
147
+ input: string;
148
+ output: string;
149
+ } | undefined;
150
+ size?: {
151
+ width?: number | undefined;
152
+ height?: number | undefined;
153
+ } | undefined;
154
+ } | {
155
+ id: string;
156
+ type: "exit";
157
+ position: {
158
+ x: number;
159
+ y: number;
160
+ };
161
+ alias?: string | undefined;
162
+ size?: {
163
+ width?: number | undefined;
164
+ height?: number | undefined;
165
+ } | undefined;
166
+ } | {
167
+ id: string;
168
+ type: "comment";
169
+ text: string;
170
+ position: {
171
+ x: number;
172
+ y: number;
173
+ };
174
+ alias?: string | undefined;
175
+ size?: {
176
+ width?: number | undefined;
177
+ height?: number | undefined;
178
+ } | undefined;
90
179
  })[] | ExtendedTreeEdge[] | Map<string, {
91
180
  data: unknown;
92
181
  overwrite: boolean;
93
182
  }>)[];
94
- static get ERROR(): typeof ERROR;
183
+ static get ERROR(): string;
95
184
  getPossiblePathsTo(nodeId: string, allowMultipleOutputs?: boolean): {
96
185
  nodeId: string;
97
186
  name: OutputName;
98
187
  }[][];
99
188
  getNodes(condition?: (node: TreeNode) => boolean): ({
100
- id: string;
101
- type: "exit";
102
- alias?: string | undefined;
103
- } | {
104
189
  id: string;
105
190
  type: "entry";
106
191
  inputSchema: import("json-schema").JSONSchema7;
107
192
  outputs: {
108
- name: string | typeof ERROR | null;
193
+ name: string | null;
109
194
  schema: import("json-schema").JSONSchema7 | null;
195
+ types?: {
196
+ input: string;
197
+ output: string;
198
+ } | undefined;
110
199
  }[];
200
+ position: {
201
+ x: number;
202
+ y: number;
203
+ };
111
204
  alias?: string | undefined;
205
+ size?: {
206
+ width?: number | undefined;
207
+ height?: number | undefined;
208
+ } | undefined;
112
209
  } | {
113
210
  id: string;
114
211
  type: "service";
@@ -121,14 +218,30 @@ export declare class NodeTree {
121
218
  version: string;
122
219
  configurationSchema: import("json-schema").JSONSchema7;
123
220
  outputs: {
124
- name: string | typeof ERROR | null;
221
+ name: string | null;
125
222
  schema: import("json-schema").JSONSchema7 | null;
223
+ types?: {
224
+ input: string;
225
+ output: string;
226
+ } | undefined;
126
227
  }[];
228
+ position: {
229
+ x: number;
230
+ y: number;
231
+ };
127
232
  alias?: string | undefined;
233
+ inputTypes?: {
234
+ input: string;
235
+ output: string;
236
+ } | undefined;
128
237
  configuration?: any;
129
238
  ttl?: number | undefined;
130
239
  retry?: number | undefined;
131
240
  retryDelay?: number | undefined;
241
+ size?: {
242
+ width?: number | undefined;
243
+ height?: number | undefined;
244
+ } | undefined;
132
245
  } | {
133
246
  id: string;
134
247
  type: "logic";
@@ -137,43 +250,116 @@ export declare class NodeTree {
137
250
  language: "javascript" | "python" | "typescript";
138
251
  maxExecutionTime: number;
139
252
  outputs: {
140
- name: string | typeof ERROR | null;
253
+ name: string | null;
141
254
  schema: import("json-schema").JSONSchema7 | null;
255
+ types?: {
256
+ input: string;
257
+ output: string;
258
+ } | undefined;
142
259
  }[];
260
+ position: {
261
+ x: number;
262
+ y: number;
263
+ };
143
264
  alias?: string | undefined;
265
+ outputNames?: string[] | undefined;
266
+ size?: {
267
+ width?: number | undefined;
268
+ height?: number | undefined;
269
+ } | undefined;
144
270
  } | {
145
271
  id: string;
146
272
  type: "or";
147
273
  outputs: {
148
- name: string | typeof ERROR | null;
274
+ name: string | null;
149
275
  schema: import("json-schema").JSONSchema7 | null;
276
+ types?: {
277
+ input: string;
278
+ output: string;
279
+ } | undefined;
150
280
  }[];
281
+ position: {
282
+ x: number;
283
+ y: number;
284
+ };
151
285
  alias?: string | undefined;
286
+ size?: {
287
+ width?: number | undefined;
288
+ height?: number | undefined;
289
+ } | undefined;
152
290
  } | {
153
291
  id: string;
154
292
  type: "reference";
155
293
  reference: string;
156
294
  outputs: {
157
- name: string | typeof ERROR | null;
295
+ name: string | null;
158
296
  schema: import("json-schema").JSONSchema7 | null;
297
+ types?: {
298
+ input: string;
299
+ output: string;
300
+ } | undefined;
159
301
  }[];
302
+ position: {
303
+ x: number;
304
+ y: number;
305
+ };
160
306
  alias?: string | undefined;
161
- configuration?: any;
162
- })[];
163
- getNode(condition: (node: TreeNode) => boolean): TreeNode | undefined;
164
- getChildren(nodeId: string, outputName: OutputName): ({
307
+ inputTypes?: {
308
+ input: string;
309
+ output: string;
310
+ } | undefined;
311
+ size?: {
312
+ width?: number | undefined;
313
+ height?: number | undefined;
314
+ } | undefined;
315
+ } | {
165
316
  id: string;
166
317
  type: "exit";
318
+ position: {
319
+ x: number;
320
+ y: number;
321
+ };
167
322
  alias?: string | undefined;
323
+ size?: {
324
+ width?: number | undefined;
325
+ height?: number | undefined;
326
+ } | undefined;
168
327
  } | {
328
+ id: string;
329
+ type: "comment";
330
+ text: string;
331
+ position: {
332
+ x: number;
333
+ y: number;
334
+ };
335
+ alias?: string | undefined;
336
+ size?: {
337
+ width?: number | undefined;
338
+ height?: number | undefined;
339
+ } | undefined;
340
+ })[];
341
+ getNode(condition: (node: TreeNode) => boolean): TreeNode | undefined;
342
+ getChildren(nodeId: string, outputName: OutputName): ({
169
343
  id: string;
170
344
  type: "entry";
171
345
  inputSchema: import("json-schema").JSONSchema7;
172
346
  outputs: {
173
- name: string | typeof ERROR | null;
347
+ name: string | null;
174
348
  schema: import("json-schema").JSONSchema7 | null;
349
+ types?: {
350
+ input: string;
351
+ output: string;
352
+ } | undefined;
175
353
  }[];
354
+ position: {
355
+ x: number;
356
+ y: number;
357
+ };
176
358
  alias?: string | undefined;
359
+ size?: {
360
+ width?: number | undefined;
361
+ height?: number | undefined;
362
+ } | undefined;
177
363
  } | {
178
364
  id: string;
179
365
  type: "service";
@@ -186,14 +372,30 @@ export declare class NodeTree {
186
372
  version: string;
187
373
  configurationSchema: import("json-schema").JSONSchema7;
188
374
  outputs: {
189
- name: string | typeof ERROR | null;
375
+ name: string | null;
190
376
  schema: import("json-schema").JSONSchema7 | null;
377
+ types?: {
378
+ input: string;
379
+ output: string;
380
+ } | undefined;
191
381
  }[];
382
+ position: {
383
+ x: number;
384
+ y: number;
385
+ };
192
386
  alias?: string | undefined;
387
+ inputTypes?: {
388
+ input: string;
389
+ output: string;
390
+ } | undefined;
193
391
  configuration?: any;
194
392
  ttl?: number | undefined;
195
393
  retry?: number | undefined;
196
394
  retryDelay?: number | undefined;
395
+ size?: {
396
+ width?: number | undefined;
397
+ height?: number | undefined;
398
+ } | undefined;
197
399
  } | {
198
400
  id: string;
199
401
  type: "logic";
@@ -202,42 +404,115 @@ export declare class NodeTree {
202
404
  language: "javascript" | "python" | "typescript";
203
405
  maxExecutionTime: number;
204
406
  outputs: {
205
- name: string | typeof ERROR | null;
407
+ name: string | null;
206
408
  schema: import("json-schema").JSONSchema7 | null;
409
+ types?: {
410
+ input: string;
411
+ output: string;
412
+ } | undefined;
207
413
  }[];
414
+ position: {
415
+ x: number;
416
+ y: number;
417
+ };
208
418
  alias?: string | undefined;
419
+ outputNames?: string[] | undefined;
420
+ size?: {
421
+ width?: number | undefined;
422
+ height?: number | undefined;
423
+ } | undefined;
209
424
  } | {
210
425
  id: string;
211
426
  type: "or";
212
427
  outputs: {
213
- name: string | typeof ERROR | null;
428
+ name: string | null;
214
429
  schema: import("json-schema").JSONSchema7 | null;
430
+ types?: {
431
+ input: string;
432
+ output: string;
433
+ } | undefined;
215
434
  }[];
435
+ position: {
436
+ x: number;
437
+ y: number;
438
+ };
216
439
  alias?: string | undefined;
440
+ size?: {
441
+ width?: number | undefined;
442
+ height?: number | undefined;
443
+ } | undefined;
217
444
  } | {
218
445
  id: string;
219
446
  type: "reference";
220
447
  reference: string;
221
448
  outputs: {
222
- name: string | typeof ERROR | null;
449
+ name: string | null;
223
450
  schema: import("json-schema").JSONSchema7 | null;
451
+ types?: {
452
+ input: string;
453
+ output: string;
454
+ } | undefined;
224
455
  }[];
456
+ position: {
457
+ x: number;
458
+ y: number;
459
+ };
225
460
  alias?: string | undefined;
226
- configuration?: any;
227
- })[];
228
- getParents(nodeId: string): ({
461
+ inputTypes?: {
462
+ input: string;
463
+ output: string;
464
+ } | undefined;
465
+ size?: {
466
+ width?: number | undefined;
467
+ height?: number | undefined;
468
+ } | undefined;
469
+ } | {
229
470
  id: string;
230
471
  type: "exit";
472
+ position: {
473
+ x: number;
474
+ y: number;
475
+ };
231
476
  alias?: string | undefined;
477
+ size?: {
478
+ width?: number | undefined;
479
+ height?: number | undefined;
480
+ } | undefined;
232
481
  } | {
482
+ id: string;
483
+ type: "comment";
484
+ text: string;
485
+ position: {
486
+ x: number;
487
+ y: number;
488
+ };
489
+ alias?: string | undefined;
490
+ size?: {
491
+ width?: number | undefined;
492
+ height?: number | undefined;
493
+ } | undefined;
494
+ })[];
495
+ getParents(nodeId: string): ({
233
496
  id: string;
234
497
  type: "entry";
235
498
  inputSchema: import("json-schema").JSONSchema7;
236
499
  outputs: {
237
- name: string | typeof ERROR | null;
500
+ name: string | null;
238
501
  schema: import("json-schema").JSONSchema7 | null;
502
+ types?: {
503
+ input: string;
504
+ output: string;
505
+ } | undefined;
239
506
  }[];
507
+ position: {
508
+ x: number;
509
+ y: number;
510
+ };
240
511
  alias?: string | undefined;
512
+ size?: {
513
+ width?: number | undefined;
514
+ height?: number | undefined;
515
+ } | undefined;
241
516
  } | {
242
517
  id: string;
243
518
  type: "service";
@@ -250,14 +525,30 @@ export declare class NodeTree {
250
525
  version: string;
251
526
  configurationSchema: import("json-schema").JSONSchema7;
252
527
  outputs: {
253
- name: string | typeof ERROR | null;
528
+ name: string | null;
254
529
  schema: import("json-schema").JSONSchema7 | null;
530
+ types?: {
531
+ input: string;
532
+ output: string;
533
+ } | undefined;
255
534
  }[];
535
+ position: {
536
+ x: number;
537
+ y: number;
538
+ };
256
539
  alias?: string | undefined;
540
+ inputTypes?: {
541
+ input: string;
542
+ output: string;
543
+ } | undefined;
257
544
  configuration?: any;
258
545
  ttl?: number | undefined;
259
546
  retry?: number | undefined;
260
547
  retryDelay?: number | undefined;
548
+ size?: {
549
+ width?: number | undefined;
550
+ height?: number | undefined;
551
+ } | undefined;
261
552
  } | {
262
553
  id: string;
263
554
  type: "logic";
@@ -266,42 +557,115 @@ export declare class NodeTree {
266
557
  language: "javascript" | "python" | "typescript";
267
558
  maxExecutionTime: number;
268
559
  outputs: {
269
- name: string | typeof ERROR | null;
560
+ name: string | null;
270
561
  schema: import("json-schema").JSONSchema7 | null;
562
+ types?: {
563
+ input: string;
564
+ output: string;
565
+ } | undefined;
271
566
  }[];
567
+ position: {
568
+ x: number;
569
+ y: number;
570
+ };
272
571
  alias?: string | undefined;
572
+ outputNames?: string[] | undefined;
573
+ size?: {
574
+ width?: number | undefined;
575
+ height?: number | undefined;
576
+ } | undefined;
273
577
  } | {
274
578
  id: string;
275
579
  type: "or";
276
580
  outputs: {
277
- name: string | typeof ERROR | null;
581
+ name: string | null;
278
582
  schema: import("json-schema").JSONSchema7 | null;
583
+ types?: {
584
+ input: string;
585
+ output: string;
586
+ } | undefined;
279
587
  }[];
588
+ position: {
589
+ x: number;
590
+ y: number;
591
+ };
280
592
  alias?: string | undefined;
593
+ size?: {
594
+ width?: number | undefined;
595
+ height?: number | undefined;
596
+ } | undefined;
281
597
  } | {
282
598
  id: string;
283
599
  type: "reference";
284
600
  reference: string;
285
601
  outputs: {
286
- name: string | typeof ERROR | null;
602
+ name: string | null;
287
603
  schema: import("json-schema").JSONSchema7 | null;
604
+ types?: {
605
+ input: string;
606
+ output: string;
607
+ } | undefined;
288
608
  }[];
609
+ position: {
610
+ x: number;
611
+ y: number;
612
+ };
289
613
  alias?: string | undefined;
290
- configuration?: any;
291
- })[];
292
- getAllParents(nodeId: string): ({
614
+ inputTypes?: {
615
+ input: string;
616
+ output: string;
617
+ } | undefined;
618
+ size?: {
619
+ width?: number | undefined;
620
+ height?: number | undefined;
621
+ } | undefined;
622
+ } | {
293
623
  id: string;
294
624
  type: "exit";
625
+ position: {
626
+ x: number;
627
+ y: number;
628
+ };
295
629
  alias?: string | undefined;
630
+ size?: {
631
+ width?: number | undefined;
632
+ height?: number | undefined;
633
+ } | undefined;
296
634
  } | {
635
+ id: string;
636
+ type: "comment";
637
+ text: string;
638
+ position: {
639
+ x: number;
640
+ y: number;
641
+ };
642
+ alias?: string | undefined;
643
+ size?: {
644
+ width?: number | undefined;
645
+ height?: number | undefined;
646
+ } | undefined;
647
+ })[];
648
+ getAllParents(nodeId: string): ({
297
649
  id: string;
298
650
  type: "entry";
299
651
  inputSchema: import("json-schema").JSONSchema7;
300
652
  outputs: {
301
- name: string | typeof ERROR | null;
653
+ name: string | null;
302
654
  schema: import("json-schema").JSONSchema7 | null;
655
+ types?: {
656
+ input: string;
657
+ output: string;
658
+ } | undefined;
303
659
  }[];
660
+ position: {
661
+ x: number;
662
+ y: number;
663
+ };
304
664
  alias?: string | undefined;
665
+ size?: {
666
+ width?: number | undefined;
667
+ height?: number | undefined;
668
+ } | undefined;
305
669
  } | {
306
670
  id: string;
307
671
  type: "service";
@@ -314,14 +678,30 @@ export declare class NodeTree {
314
678
  version: string;
315
679
  configurationSchema: import("json-schema").JSONSchema7;
316
680
  outputs: {
317
- name: string | typeof ERROR | null;
681
+ name: string | null;
318
682
  schema: import("json-schema").JSONSchema7 | null;
683
+ types?: {
684
+ input: string;
685
+ output: string;
686
+ } | undefined;
319
687
  }[];
688
+ position: {
689
+ x: number;
690
+ y: number;
691
+ };
320
692
  alias?: string | undefined;
693
+ inputTypes?: {
694
+ input: string;
695
+ output: string;
696
+ } | undefined;
321
697
  configuration?: any;
322
698
  ttl?: number | undefined;
323
699
  retry?: number | undefined;
324
700
  retryDelay?: number | undefined;
701
+ size?: {
702
+ width?: number | undefined;
703
+ height?: number | undefined;
704
+ } | undefined;
325
705
  } | {
326
706
  id: string;
327
707
  type: "logic";
@@ -330,28 +710,93 @@ export declare class NodeTree {
330
710
  language: "javascript" | "python" | "typescript";
331
711
  maxExecutionTime: number;
332
712
  outputs: {
333
- name: string | typeof ERROR | null;
713
+ name: string | null;
334
714
  schema: import("json-schema").JSONSchema7 | null;
715
+ types?: {
716
+ input: string;
717
+ output: string;
718
+ } | undefined;
335
719
  }[];
720
+ position: {
721
+ x: number;
722
+ y: number;
723
+ };
336
724
  alias?: string | undefined;
725
+ outputNames?: string[] | undefined;
726
+ size?: {
727
+ width?: number | undefined;
728
+ height?: number | undefined;
729
+ } | undefined;
337
730
  } | {
338
731
  id: string;
339
732
  type: "or";
340
733
  outputs: {
341
- name: string | typeof ERROR | null;
734
+ name: string | null;
342
735
  schema: import("json-schema").JSONSchema7 | null;
736
+ types?: {
737
+ input: string;
738
+ output: string;
739
+ } | undefined;
343
740
  }[];
741
+ position: {
742
+ x: number;
743
+ y: number;
744
+ };
344
745
  alias?: string | undefined;
746
+ size?: {
747
+ width?: number | undefined;
748
+ height?: number | undefined;
749
+ } | undefined;
345
750
  } | {
346
751
  id: string;
347
752
  type: "reference";
348
753
  reference: string;
349
754
  outputs: {
350
- name: string | typeof ERROR | null;
755
+ name: string | null;
351
756
  schema: import("json-schema").JSONSchema7 | null;
757
+ types?: {
758
+ input: string;
759
+ output: string;
760
+ } | undefined;
352
761
  }[];
762
+ position: {
763
+ x: number;
764
+ y: number;
765
+ };
353
766
  alias?: string | undefined;
354
- configuration?: any;
767
+ inputTypes?: {
768
+ input: string;
769
+ output: string;
770
+ } | undefined;
771
+ size?: {
772
+ width?: number | undefined;
773
+ height?: number | undefined;
774
+ } | undefined;
775
+ } | {
776
+ id: string;
777
+ type: "exit";
778
+ position: {
779
+ x: number;
780
+ y: number;
781
+ };
782
+ alias?: string | undefined;
783
+ size?: {
784
+ width?: number | undefined;
785
+ height?: number | undefined;
786
+ } | undefined;
787
+ } | {
788
+ id: string;
789
+ type: "comment";
790
+ text: string;
791
+ position: {
792
+ x: number;
793
+ y: number;
794
+ };
795
+ alias?: string | undefined;
796
+ size?: {
797
+ width?: number | undefined;
798
+ height?: number | undefined;
799
+ } | undefined;
355
800
  })[];
356
801
  /**
357
802
  * normally a node is "reached" when all incoming edges are traversed with the following exceptions:
@@ -366,18 +811,26 @@ export declare class NodeTree {
366
811
  isReached(nodeId: string): boolean;
367
812
  getParentsWithEdgeHandle(nodeId: string): {
368
813
  node: {
369
- id: string;
370
- type: "exit";
371
- alias?: string | undefined;
372
- } | {
373
814
  id: string;
374
815
  type: "entry";
375
816
  inputSchema: import("json-schema").JSONSchema7;
376
817
  outputs: {
377
- name: string | typeof ERROR | null;
818
+ name: string | null;
378
819
  schema: import("json-schema").JSONSchema7 | null;
820
+ types?: {
821
+ input: string;
822
+ output: string;
823
+ } | undefined;
379
824
  }[];
825
+ position: {
826
+ x: number;
827
+ y: number;
828
+ };
380
829
  alias?: string | undefined;
830
+ size?: {
831
+ width?: number | undefined;
832
+ height?: number | undefined;
833
+ } | undefined;
381
834
  } | {
382
835
  id: string;
383
836
  type: "service";
@@ -390,14 +843,30 @@ export declare class NodeTree {
390
843
  version: string;
391
844
  configurationSchema: import("json-schema").JSONSchema7;
392
845
  outputs: {
393
- name: string | typeof ERROR | null;
846
+ name: string | null;
394
847
  schema: import("json-schema").JSONSchema7 | null;
848
+ types?: {
849
+ input: string;
850
+ output: string;
851
+ } | undefined;
395
852
  }[];
853
+ position: {
854
+ x: number;
855
+ y: number;
856
+ };
396
857
  alias?: string | undefined;
858
+ inputTypes?: {
859
+ input: string;
860
+ output: string;
861
+ } | undefined;
397
862
  configuration?: any;
398
863
  ttl?: number | undefined;
399
864
  retry?: number | undefined;
400
865
  retryDelay?: number | undefined;
866
+ size?: {
867
+ width?: number | undefined;
868
+ height?: number | undefined;
869
+ } | undefined;
401
870
  } | {
402
871
  id: string;
403
872
  type: "logic";
@@ -406,28 +875,93 @@ export declare class NodeTree {
406
875
  language: "javascript" | "python" | "typescript";
407
876
  maxExecutionTime: number;
408
877
  outputs: {
409
- name: string | typeof ERROR | null;
878
+ name: string | null;
410
879
  schema: import("json-schema").JSONSchema7 | null;
880
+ types?: {
881
+ input: string;
882
+ output: string;
883
+ } | undefined;
411
884
  }[];
885
+ position: {
886
+ x: number;
887
+ y: number;
888
+ };
412
889
  alias?: string | undefined;
890
+ outputNames?: string[] | undefined;
891
+ size?: {
892
+ width?: number | undefined;
893
+ height?: number | undefined;
894
+ } | undefined;
413
895
  } | {
414
896
  id: string;
415
897
  type: "or";
416
898
  outputs: {
417
- name: string | typeof ERROR | null;
899
+ name: string | null;
418
900
  schema: import("json-schema").JSONSchema7 | null;
901
+ types?: {
902
+ input: string;
903
+ output: string;
904
+ } | undefined;
419
905
  }[];
906
+ position: {
907
+ x: number;
908
+ y: number;
909
+ };
420
910
  alias?: string | undefined;
911
+ size?: {
912
+ width?: number | undefined;
913
+ height?: number | undefined;
914
+ } | undefined;
421
915
  } | {
422
916
  id: string;
423
917
  type: "reference";
424
918
  reference: string;
425
919
  outputs: {
426
- name: string | typeof ERROR | null;
920
+ name: string | null;
427
921
  schema: import("json-schema").JSONSchema7 | null;
922
+ types?: {
923
+ input: string;
924
+ output: string;
925
+ } | undefined;
428
926
  }[];
927
+ position: {
928
+ x: number;
929
+ y: number;
930
+ };
429
931
  alias?: string | undefined;
430
- configuration?: any;
932
+ inputTypes?: {
933
+ input: string;
934
+ output: string;
935
+ } | undefined;
936
+ size?: {
937
+ width?: number | undefined;
938
+ height?: number | undefined;
939
+ } | undefined;
940
+ } | {
941
+ id: string;
942
+ type: "exit";
943
+ position: {
944
+ x: number;
945
+ y: number;
946
+ };
947
+ alias?: string | undefined;
948
+ size?: {
949
+ width?: number | undefined;
950
+ height?: number | undefined;
951
+ } | undefined;
952
+ } | {
953
+ id: string;
954
+ type: "comment";
955
+ text: string;
956
+ position: {
957
+ x: number;
958
+ y: number;
959
+ };
960
+ alias?: string | undefined;
961
+ size?: {
962
+ width?: number | undefined;
963
+ height?: number | undefined;
964
+ } | undefined;
431
965
  };
432
966
  handle: OutputName;
433
967
  }[];