@requence/service 0.7.1 → 0.8.1

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 (87) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -0
  3. package/build/{chunk-6w7td62p.js → chunk-8r349zge.js} +46 -3
  4. package/build/chunk-8r349zge.js.map +11 -0
  5. package/build/cli.js +17 -7
  6. package/build/cli.js.map +3 -3
  7. package/build/index.js +1261 -446
  8. package/build/index.js.map +28 -14
  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 +450 -144
  16. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/command.d.ts +364 -142
  18. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  19. package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
  20. package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
  21. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  22. package/build/types/helpers/src/protocol/index.d.ts +4 -0
  23. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
  25. package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
  26. package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
  27. package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
  28. package/build/types/helpers/src/protocol/nodeType.d.ts +73 -27
  29. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  30. package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
  31. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  32. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
  33. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  34. package/build/types/helpers/src/protocol/treeNodes.d.ts +476 -164
  35. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  36. package/build/types/helpers/src/protocol/update.d.ts +22 -22
  37. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
  38. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
  39. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
  40. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
  41. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +5 -0
  42. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
  43. package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
  44. package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
  45. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
  46. package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
  47. package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
  48. package/build/types/helpers/src/utils/mapData.d.ts +1 -1
  49. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  50. package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
  51. package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
  52. package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
  53. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
  54. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
  55. package/build/types/service/src/boundary.d.ts +75 -0
  56. package/build/types/service/src/boundary.d.ts.map +1 -0
  57. package/build/types/service/src/createAmqpConnection.d.ts +21 -4
  58. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  59. package/build/types/service/src/errors.d.ts +31 -0
  60. package/build/types/service/src/errors.d.ts.map +1 -1
  61. package/build/types/service/src/helpers.d.ts +59 -56
  62. package/build/types/service/src/helpers.d.ts.map +1 -1
  63. package/build/types/service/src/index.d.ts +7 -1
  64. package/build/types/service/src/index.d.ts.map +1 -1
  65. package/build/types/service/src/transformer.d.ts +16 -0
  66. package/build/types/service/src/transformer.d.ts.map +1 -0
  67. package/package.json +6 -3
  68. package/build/chunk-6w7td62p.js.map +0 -10
  69. package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
  70. package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
  71. package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
  72. package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
  73. package/build/types/helpers/src/files/index.d.ts +0 -7
  74. package/build/types/helpers/src/files/index.d.ts.map +0 -1
  75. package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
  76. package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
  77. package/build/types/helpers/src/files/types.d.ts +0 -4
  78. package/build/types/helpers/src/files/types.d.ts.map +0 -1
  79. package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
  80. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
  81. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
  82. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
  83. package/build/types/service/src/mapInput.d.ts +0 -2
  84. package/build/types/service/src/mapInput.d.ts.map +0 -1
  85. /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
  86. /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
  87. /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +0 -0
@@ -38,64 +38,115 @@ export declare class NodeTree {
38
38
  pack(): readonly [({
39
39
  id: string;
40
40
  type: "entry";
41
- inputSchema: import("json-schema").JSONSchema7;
42
41
  alias?: string | undefined;
42
+ inputSchema: import("json-schema").JSONSchema7;
43
43
  } | {
44
+ outputs: {
45
+ name: string | null;
46
+ schema: import("json-schema").JSONSchema7 | null;
47
+ }[];
44
48
  id: string;
45
49
  type: "service";
46
- inputSchema: ({
47
- type: "object";
48
- } & import("json-schema").JSONSchema7) | {
50
+ alias?: string | undefined;
51
+ inputSchema: {
49
52
  type: "null";
50
53
  } | ({
54
+ type: "object";
55
+ } & import("json-schema").JSONSchema7) | ({
51
56
  $ref: string;
57
+ } & import("json-schema").JSONSchema7) | ({
58
+ oneOf: ({
59
+ type: "null";
60
+ } | ({
61
+ type: "object";
62
+ } & import("json-schema").JSONSchema7) | ({
63
+ $ref: string;
64
+ } & import("json-schema").JSONSchema7))[];
52
65
  } & import("json-schema").JSONSchema7);
53
66
  name: string;
54
67
  version: string;
68
+ configuration?: any;
55
69
  configurationSchema: import("json-schema").JSONSchema7;
56
- mode: "LINEAR" | "CONTINUOUS";
70
+ ttl?: number | undefined;
71
+ retry: number;
72
+ retryDelay?: number | undefined;
73
+ mode: "CONTINUOUS" | "LINEAR";
74
+ privileged: boolean;
75
+ configurationServices?: {
76
+ outputs: {
77
+ name: string | null;
78
+ schema: import("json-schema").JSONSchema7 | null;
79
+ }[];
80
+ id: string;
81
+ type: "service";
82
+ alias?: string | undefined;
83
+ inputSchema: {
84
+ type: "null";
85
+ } | ({
86
+ type: "object";
87
+ } & import("json-schema").JSONSchema7) | ({
88
+ $ref: string;
89
+ } & import("json-schema").JSONSchema7) | ({
90
+ oneOf: ({
91
+ type: "null";
92
+ } | ({
93
+ type: "object";
94
+ } & import("json-schema").JSONSchema7) | ({
95
+ $ref: string;
96
+ } & import("json-schema").JSONSchema7))[];
97
+ } & import("json-schema").JSONSchema7);
98
+ name: string;
99
+ version: string;
100
+ configuration?: any;
101
+ configurationSchema: import("json-schema").JSONSchema7;
102
+ ttl?: number | undefined;
103
+ retry: number;
104
+ retryDelay?: number | undefined;
105
+ mode: "CONTINUOUS" | "LINEAR";
106
+ privileged: boolean;
107
+ configurationServices?: /*elided*/ any[] | undefined;
108
+ }[] | undefined;
109
+ } | {
57
110
  outputs: {
58
111
  name: string | null;
59
112
  schema: import("json-schema").JSONSchema7 | null;
60
113
  }[];
61
- alias?: string | undefined;
62
- configuration?: any;
63
- ttl?: number | undefined;
64
- retry?: number | undefined;
65
- retryDelay?: number | undefined;
66
- } | {
67
114
  id: string;
68
115
  type: "logic";
116
+ alias?: string | undefined;
69
117
  script: string;
70
118
  concurrency: boolean;
71
119
  language: "javascript" | "python" | "typescript";
72
120
  maxExecutionTime: number;
73
- outputs: {
74
- name: string | null;
75
- schema: import("json-schema").JSONSchema7 | null;
76
- }[];
77
- alias?: string | undefined;
78
121
  } | {
79
122
  id: string;
80
123
  type: "or";
81
124
  alias?: string | undefined;
82
125
  } | {
126
+ outputs: {
127
+ name: string | null;
128
+ schema: import("json-schema").JSONSchema7 | null;
129
+ }[];
83
130
  id: string;
84
131
  type: "reference";
132
+ alias?: string | undefined;
85
133
  reference: string;
86
134
  enabled: boolean;
87
- inputSchema: ({
88
- type: "object";
89
- } & import("json-schema").JSONSchema7) | {
135
+ inputSchema: {
90
136
  type: "null";
91
137
  } | ({
138
+ type: "object";
139
+ } & import("json-schema").JSONSchema7) | ({
92
140
  $ref: string;
141
+ } & import("json-schema").JSONSchema7) | ({
142
+ oneOf: ({
143
+ type: "null";
144
+ } | ({
145
+ type: "object";
146
+ } & import("json-schema").JSONSchema7) | ({
147
+ $ref: string;
148
+ } & import("json-schema").JSONSchema7))[];
93
149
  } & import("json-schema").JSONSchema7);
94
- outputs: {
95
- name: string | null;
96
- schema: import("json-schema").JSONSchema7 | null;
97
- }[];
98
- alias?: string | undefined;
99
150
  } | {
100
151
  id: string;
101
152
  type: "exit";
@@ -116,64 +167,115 @@ export declare class NodeTree {
116
167
  getNodes(condition?: (node: Node) => boolean): ({
117
168
  id: string;
118
169
  type: "entry";
119
- inputSchema: import("json-schema").JSONSchema7;
120
170
  alias?: string | undefined;
171
+ inputSchema: import("json-schema").JSONSchema7;
121
172
  } | {
173
+ outputs: {
174
+ name: string | null;
175
+ schema: import("json-schema").JSONSchema7 | null;
176
+ }[];
122
177
  id: string;
123
178
  type: "service";
124
- inputSchema: ({
125
- type: "object";
126
- } & import("json-schema").JSONSchema7) | {
179
+ alias?: string | undefined;
180
+ inputSchema: {
127
181
  type: "null";
128
182
  } | ({
183
+ type: "object";
184
+ } & import("json-schema").JSONSchema7) | ({
129
185
  $ref: string;
186
+ } & import("json-schema").JSONSchema7) | ({
187
+ oneOf: ({
188
+ type: "null";
189
+ } | ({
190
+ type: "object";
191
+ } & import("json-schema").JSONSchema7) | ({
192
+ $ref: string;
193
+ } & import("json-schema").JSONSchema7))[];
130
194
  } & import("json-schema").JSONSchema7);
131
195
  name: string;
132
196
  version: string;
197
+ configuration?: any;
133
198
  configurationSchema: import("json-schema").JSONSchema7;
134
- mode: "LINEAR" | "CONTINUOUS";
199
+ ttl?: number | undefined;
200
+ retry: number;
201
+ retryDelay?: number | undefined;
202
+ mode: "CONTINUOUS" | "LINEAR";
203
+ privileged: boolean;
204
+ configurationServices?: {
205
+ outputs: {
206
+ name: string | null;
207
+ schema: import("json-schema").JSONSchema7 | null;
208
+ }[];
209
+ id: string;
210
+ type: "service";
211
+ alias?: string | undefined;
212
+ inputSchema: {
213
+ type: "null";
214
+ } | ({
215
+ type: "object";
216
+ } & import("json-schema").JSONSchema7) | ({
217
+ $ref: string;
218
+ } & import("json-schema").JSONSchema7) | ({
219
+ oneOf: ({
220
+ type: "null";
221
+ } | ({
222
+ type: "object";
223
+ } & import("json-schema").JSONSchema7) | ({
224
+ $ref: string;
225
+ } & import("json-schema").JSONSchema7))[];
226
+ } & import("json-schema").JSONSchema7);
227
+ name: string;
228
+ version: string;
229
+ configuration?: any;
230
+ configurationSchema: import("json-schema").JSONSchema7;
231
+ ttl?: number | undefined;
232
+ retry: number;
233
+ retryDelay?: number | undefined;
234
+ mode: "CONTINUOUS" | "LINEAR";
235
+ privileged: boolean;
236
+ configurationServices?: /*elided*/ any[] | undefined;
237
+ }[] | undefined;
238
+ } | {
135
239
  outputs: {
136
240
  name: string | null;
137
241
  schema: import("json-schema").JSONSchema7 | null;
138
242
  }[];
139
- alias?: string | undefined;
140
- configuration?: any;
141
- ttl?: number | undefined;
142
- retry?: number | undefined;
143
- retryDelay?: number | undefined;
144
- } | {
145
243
  id: string;
146
244
  type: "logic";
245
+ alias?: string | undefined;
147
246
  script: string;
148
247
  concurrency: boolean;
149
248
  language: "javascript" | "python" | "typescript";
150
249
  maxExecutionTime: number;
151
- outputs: {
152
- name: string | null;
153
- schema: import("json-schema").JSONSchema7 | null;
154
- }[];
155
- alias?: string | undefined;
156
250
  } | {
157
251
  id: string;
158
252
  type: "or";
159
253
  alias?: string | undefined;
160
254
  } | {
255
+ outputs: {
256
+ name: string | null;
257
+ schema: import("json-schema").JSONSchema7 | null;
258
+ }[];
161
259
  id: string;
162
260
  type: "reference";
261
+ alias?: string | undefined;
163
262
  reference: string;
164
263
  enabled: boolean;
165
- inputSchema: ({
166
- type: "object";
167
- } & import("json-schema").JSONSchema7) | {
264
+ inputSchema: {
168
265
  type: "null";
169
266
  } | ({
267
+ type: "object";
268
+ } & import("json-schema").JSONSchema7) | ({
170
269
  $ref: string;
270
+ } & import("json-schema").JSONSchema7) | ({
271
+ oneOf: ({
272
+ type: "null";
273
+ } | ({
274
+ type: "object";
275
+ } & import("json-schema").JSONSchema7) | ({
276
+ $ref: string;
277
+ } & import("json-schema").JSONSchema7))[];
171
278
  } & import("json-schema").JSONSchema7);
172
- outputs: {
173
- name: string | null;
174
- schema: import("json-schema").JSONSchema7 | null;
175
- }[];
176
- alias?: string | undefined;
177
279
  } | {
178
280
  id: string;
179
281
  type: "exit";
@@ -189,64 +291,115 @@ export declare class NodeTree {
189
291
  getChildren(nodeId: string, outputName: OutputName): ({
190
292
  id: string;
191
293
  type: "entry";
192
- inputSchema: import("json-schema").JSONSchema7;
193
294
  alias?: string | undefined;
295
+ inputSchema: import("json-schema").JSONSchema7;
194
296
  } | {
297
+ outputs: {
298
+ name: string | null;
299
+ schema: import("json-schema").JSONSchema7 | null;
300
+ }[];
195
301
  id: string;
196
302
  type: "service";
197
- inputSchema: ({
198
- type: "object";
199
- } & import("json-schema").JSONSchema7) | {
303
+ alias?: string | undefined;
304
+ inputSchema: {
200
305
  type: "null";
201
306
  } | ({
307
+ type: "object";
308
+ } & import("json-schema").JSONSchema7) | ({
202
309
  $ref: string;
310
+ } & import("json-schema").JSONSchema7) | ({
311
+ oneOf: ({
312
+ type: "null";
313
+ } | ({
314
+ type: "object";
315
+ } & import("json-schema").JSONSchema7) | ({
316
+ $ref: string;
317
+ } & import("json-schema").JSONSchema7))[];
203
318
  } & import("json-schema").JSONSchema7);
204
319
  name: string;
205
320
  version: string;
321
+ configuration?: any;
206
322
  configurationSchema: import("json-schema").JSONSchema7;
207
- mode: "LINEAR" | "CONTINUOUS";
323
+ ttl?: number | undefined;
324
+ retry: number;
325
+ retryDelay?: number | undefined;
326
+ mode: "CONTINUOUS" | "LINEAR";
327
+ privileged: boolean;
328
+ configurationServices?: {
329
+ outputs: {
330
+ name: string | null;
331
+ schema: import("json-schema").JSONSchema7 | null;
332
+ }[];
333
+ id: string;
334
+ type: "service";
335
+ alias?: string | undefined;
336
+ inputSchema: {
337
+ type: "null";
338
+ } | ({
339
+ type: "object";
340
+ } & import("json-schema").JSONSchema7) | ({
341
+ $ref: string;
342
+ } & import("json-schema").JSONSchema7) | ({
343
+ oneOf: ({
344
+ type: "null";
345
+ } | ({
346
+ type: "object";
347
+ } & import("json-schema").JSONSchema7) | ({
348
+ $ref: string;
349
+ } & import("json-schema").JSONSchema7))[];
350
+ } & import("json-schema").JSONSchema7);
351
+ name: string;
352
+ version: string;
353
+ configuration?: any;
354
+ configurationSchema: import("json-schema").JSONSchema7;
355
+ ttl?: number | undefined;
356
+ retry: number;
357
+ retryDelay?: number | undefined;
358
+ mode: "CONTINUOUS" | "LINEAR";
359
+ privileged: boolean;
360
+ configurationServices?: /*elided*/ any[] | undefined;
361
+ }[] | undefined;
362
+ } | {
208
363
  outputs: {
209
364
  name: string | null;
210
365
  schema: import("json-schema").JSONSchema7 | null;
211
366
  }[];
212
- alias?: string | undefined;
213
- configuration?: any;
214
- ttl?: number | undefined;
215
- retry?: number | undefined;
216
- retryDelay?: number | undefined;
217
- } | {
218
367
  id: string;
219
368
  type: "logic";
369
+ alias?: string | undefined;
220
370
  script: string;
221
371
  concurrency: boolean;
222
372
  language: "javascript" | "python" | "typescript";
223
373
  maxExecutionTime: number;
224
- outputs: {
225
- name: string | null;
226
- schema: import("json-schema").JSONSchema7 | null;
227
- }[];
228
- alias?: string | undefined;
229
374
  } | {
230
375
  id: string;
231
376
  type: "or";
232
377
  alias?: string | undefined;
233
378
  } | {
379
+ outputs: {
380
+ name: string | null;
381
+ schema: import("json-schema").JSONSchema7 | null;
382
+ }[];
234
383
  id: string;
235
384
  type: "reference";
385
+ alias?: string | undefined;
236
386
  reference: string;
237
387
  enabled: boolean;
238
- inputSchema: ({
239
- type: "object";
240
- } & import("json-schema").JSONSchema7) | {
388
+ inputSchema: {
241
389
  type: "null";
242
390
  } | ({
391
+ type: "object";
392
+ } & import("json-schema").JSONSchema7) | ({
243
393
  $ref: string;
394
+ } & import("json-schema").JSONSchema7) | ({
395
+ oneOf: ({
396
+ type: "null";
397
+ } | ({
398
+ type: "object";
399
+ } & import("json-schema").JSONSchema7) | ({
400
+ $ref: string;
401
+ } & import("json-schema").JSONSchema7))[];
244
402
  } & import("json-schema").JSONSchema7);
245
- outputs: {
246
- name: string | null;
247
- schema: import("json-schema").JSONSchema7 | null;
248
- }[];
249
- alias?: string | undefined;
250
403
  } | {
251
404
  id: string;
252
405
  type: "exit";
@@ -262,64 +415,115 @@ export declare class NodeTree {
262
415
  getParents(nodeId: string): ({
263
416
  id: string;
264
417
  type: "entry";
265
- inputSchema: import("json-schema").JSONSchema7;
266
418
  alias?: string | undefined;
419
+ inputSchema: import("json-schema").JSONSchema7;
267
420
  } | {
421
+ outputs: {
422
+ name: string | null;
423
+ schema: import("json-schema").JSONSchema7 | null;
424
+ }[];
268
425
  id: string;
269
426
  type: "service";
270
- inputSchema: ({
271
- type: "object";
272
- } & import("json-schema").JSONSchema7) | {
427
+ alias?: string | undefined;
428
+ inputSchema: {
273
429
  type: "null";
274
430
  } | ({
431
+ type: "object";
432
+ } & import("json-schema").JSONSchema7) | ({
275
433
  $ref: string;
434
+ } & import("json-schema").JSONSchema7) | ({
435
+ oneOf: ({
436
+ type: "null";
437
+ } | ({
438
+ type: "object";
439
+ } & import("json-schema").JSONSchema7) | ({
440
+ $ref: string;
441
+ } & import("json-schema").JSONSchema7))[];
276
442
  } & import("json-schema").JSONSchema7);
277
443
  name: string;
278
444
  version: string;
445
+ configuration?: any;
279
446
  configurationSchema: import("json-schema").JSONSchema7;
280
- mode: "LINEAR" | "CONTINUOUS";
447
+ ttl?: number | undefined;
448
+ retry: number;
449
+ retryDelay?: number | undefined;
450
+ mode: "CONTINUOUS" | "LINEAR";
451
+ privileged: boolean;
452
+ configurationServices?: {
453
+ outputs: {
454
+ name: string | null;
455
+ schema: import("json-schema").JSONSchema7 | null;
456
+ }[];
457
+ id: string;
458
+ type: "service";
459
+ alias?: string | undefined;
460
+ inputSchema: {
461
+ type: "null";
462
+ } | ({
463
+ type: "object";
464
+ } & import("json-schema").JSONSchema7) | ({
465
+ $ref: string;
466
+ } & import("json-schema").JSONSchema7) | ({
467
+ oneOf: ({
468
+ type: "null";
469
+ } | ({
470
+ type: "object";
471
+ } & import("json-schema").JSONSchema7) | ({
472
+ $ref: string;
473
+ } & import("json-schema").JSONSchema7))[];
474
+ } & import("json-schema").JSONSchema7);
475
+ name: string;
476
+ version: string;
477
+ configuration?: any;
478
+ configurationSchema: import("json-schema").JSONSchema7;
479
+ ttl?: number | undefined;
480
+ retry: number;
481
+ retryDelay?: number | undefined;
482
+ mode: "CONTINUOUS" | "LINEAR";
483
+ privileged: boolean;
484
+ configurationServices?: /*elided*/ any[] | undefined;
485
+ }[] | undefined;
486
+ } | {
281
487
  outputs: {
282
488
  name: string | null;
283
489
  schema: import("json-schema").JSONSchema7 | null;
284
490
  }[];
285
- alias?: string | undefined;
286
- configuration?: any;
287
- ttl?: number | undefined;
288
- retry?: number | undefined;
289
- retryDelay?: number | undefined;
290
- } | {
291
491
  id: string;
292
492
  type: "logic";
493
+ alias?: string | undefined;
293
494
  script: string;
294
495
  concurrency: boolean;
295
496
  language: "javascript" | "python" | "typescript";
296
497
  maxExecutionTime: number;
297
- outputs: {
298
- name: string | null;
299
- schema: import("json-schema").JSONSchema7 | null;
300
- }[];
301
- alias?: string | undefined;
302
498
  } | {
303
499
  id: string;
304
500
  type: "or";
305
501
  alias?: string | undefined;
306
502
  } | {
503
+ outputs: {
504
+ name: string | null;
505
+ schema: import("json-schema").JSONSchema7 | null;
506
+ }[];
307
507
  id: string;
308
508
  type: "reference";
509
+ alias?: string | undefined;
309
510
  reference: string;
310
511
  enabled: boolean;
311
- inputSchema: ({
312
- type: "object";
313
- } & import("json-schema").JSONSchema7) | {
512
+ inputSchema: {
314
513
  type: "null";
315
514
  } | ({
515
+ type: "object";
516
+ } & import("json-schema").JSONSchema7) | ({
316
517
  $ref: string;
518
+ } & import("json-schema").JSONSchema7) | ({
519
+ oneOf: ({
520
+ type: "null";
521
+ } | ({
522
+ type: "object";
523
+ } & import("json-schema").JSONSchema7) | ({
524
+ $ref: string;
525
+ } & import("json-schema").JSONSchema7))[];
317
526
  } & import("json-schema").JSONSchema7);
318
- outputs: {
319
- name: string | null;
320
- schema: import("json-schema").JSONSchema7 | null;
321
- }[];
322
- alias?: string | undefined;
323
527
  } | {
324
528
  id: string;
325
529
  type: "exit";
@@ -334,64 +538,115 @@ export declare class NodeTree {
334
538
  getAllParents(nodeId: string): ({
335
539
  id: string;
336
540
  type: "entry";
337
- inputSchema: import("json-schema").JSONSchema7;
338
541
  alias?: string | undefined;
542
+ inputSchema: import("json-schema").JSONSchema7;
339
543
  } | {
544
+ outputs: {
545
+ name: string | null;
546
+ schema: import("json-schema").JSONSchema7 | null;
547
+ }[];
340
548
  id: string;
341
549
  type: "service";
342
- inputSchema: ({
343
- type: "object";
344
- } & import("json-schema").JSONSchema7) | {
550
+ alias?: string | undefined;
551
+ inputSchema: {
345
552
  type: "null";
346
553
  } | ({
554
+ type: "object";
555
+ } & import("json-schema").JSONSchema7) | ({
347
556
  $ref: string;
557
+ } & import("json-schema").JSONSchema7) | ({
558
+ oneOf: ({
559
+ type: "null";
560
+ } | ({
561
+ type: "object";
562
+ } & import("json-schema").JSONSchema7) | ({
563
+ $ref: string;
564
+ } & import("json-schema").JSONSchema7))[];
348
565
  } & import("json-schema").JSONSchema7);
349
566
  name: string;
350
567
  version: string;
568
+ configuration?: any;
351
569
  configurationSchema: import("json-schema").JSONSchema7;
352
- mode: "LINEAR" | "CONTINUOUS";
570
+ ttl?: number | undefined;
571
+ retry: number;
572
+ retryDelay?: number | undefined;
573
+ mode: "CONTINUOUS" | "LINEAR";
574
+ privileged: boolean;
575
+ configurationServices?: {
576
+ outputs: {
577
+ name: string | null;
578
+ schema: import("json-schema").JSONSchema7 | null;
579
+ }[];
580
+ id: string;
581
+ type: "service";
582
+ alias?: string | undefined;
583
+ inputSchema: {
584
+ type: "null";
585
+ } | ({
586
+ type: "object";
587
+ } & import("json-schema").JSONSchema7) | ({
588
+ $ref: string;
589
+ } & import("json-schema").JSONSchema7) | ({
590
+ oneOf: ({
591
+ type: "null";
592
+ } | ({
593
+ type: "object";
594
+ } & import("json-schema").JSONSchema7) | ({
595
+ $ref: string;
596
+ } & import("json-schema").JSONSchema7))[];
597
+ } & import("json-schema").JSONSchema7);
598
+ name: string;
599
+ version: string;
600
+ configuration?: any;
601
+ configurationSchema: import("json-schema").JSONSchema7;
602
+ ttl?: number | undefined;
603
+ retry: number;
604
+ retryDelay?: number | undefined;
605
+ mode: "CONTINUOUS" | "LINEAR";
606
+ privileged: boolean;
607
+ configurationServices?: /*elided*/ any[] | undefined;
608
+ }[] | undefined;
609
+ } | {
353
610
  outputs: {
354
611
  name: string | null;
355
612
  schema: import("json-schema").JSONSchema7 | null;
356
613
  }[];
357
- alias?: string | undefined;
358
- configuration?: any;
359
- ttl?: number | undefined;
360
- retry?: number | undefined;
361
- retryDelay?: number | undefined;
362
- } | {
363
614
  id: string;
364
615
  type: "logic";
616
+ alias?: string | undefined;
365
617
  script: string;
366
618
  concurrency: boolean;
367
619
  language: "javascript" | "python" | "typescript";
368
620
  maxExecutionTime: number;
369
- outputs: {
370
- name: string | null;
371
- schema: import("json-schema").JSONSchema7 | null;
372
- }[];
373
- alias?: string | undefined;
374
621
  } | {
375
622
  id: string;
376
623
  type: "or";
377
624
  alias?: string | undefined;
378
625
  } | {
626
+ outputs: {
627
+ name: string | null;
628
+ schema: import("json-schema").JSONSchema7 | null;
629
+ }[];
379
630
  id: string;
380
631
  type: "reference";
632
+ alias?: string | undefined;
381
633
  reference: string;
382
634
  enabled: boolean;
383
- inputSchema: ({
384
- type: "object";
385
- } & import("json-schema").JSONSchema7) | {
635
+ inputSchema: {
386
636
  type: "null";
387
637
  } | ({
638
+ type: "object";
639
+ } & import("json-schema").JSONSchema7) | ({
388
640
  $ref: string;
641
+ } & import("json-schema").JSONSchema7) | ({
642
+ oneOf: ({
643
+ type: "null";
644
+ } | ({
645
+ type: "object";
646
+ } & import("json-schema").JSONSchema7) | ({
647
+ $ref: string;
648
+ } & import("json-schema").JSONSchema7))[];
389
649
  } & import("json-schema").JSONSchema7);
390
- outputs: {
391
- name: string | null;
392
- schema: import("json-schema").JSONSchema7 | null;
393
- }[];
394
- alias?: string | undefined;
395
650
  } | {
396
651
  id: string;
397
652
  type: "exit";
@@ -419,64 +674,115 @@ export declare class NodeTree {
419
674
  node: {
420
675
  id: string;
421
676
  type: "entry";
422
- inputSchema: import("json-schema").JSONSchema7;
423
677
  alias?: string | undefined;
678
+ inputSchema: import("json-schema").JSONSchema7;
424
679
  } | {
680
+ outputs: {
681
+ name: string | null;
682
+ schema: import("json-schema").JSONSchema7 | null;
683
+ }[];
425
684
  id: string;
426
685
  type: "service";
427
- inputSchema: ({
428
- type: "object";
429
- } & import("json-schema").JSONSchema7) | {
686
+ alias?: string | undefined;
687
+ inputSchema: {
430
688
  type: "null";
431
689
  } | ({
690
+ type: "object";
691
+ } & import("json-schema").JSONSchema7) | ({
432
692
  $ref: string;
693
+ } & import("json-schema").JSONSchema7) | ({
694
+ oneOf: ({
695
+ type: "null";
696
+ } | ({
697
+ type: "object";
698
+ } & import("json-schema").JSONSchema7) | ({
699
+ $ref: string;
700
+ } & import("json-schema").JSONSchema7))[];
433
701
  } & import("json-schema").JSONSchema7);
434
702
  name: string;
435
703
  version: string;
704
+ configuration?: any;
436
705
  configurationSchema: import("json-schema").JSONSchema7;
437
- mode: "LINEAR" | "CONTINUOUS";
706
+ ttl?: number | undefined;
707
+ retry: number;
708
+ retryDelay?: number | undefined;
709
+ mode: "CONTINUOUS" | "LINEAR";
710
+ privileged: boolean;
711
+ configurationServices?: {
712
+ outputs: {
713
+ name: string | null;
714
+ schema: import("json-schema").JSONSchema7 | null;
715
+ }[];
716
+ id: string;
717
+ type: "service";
718
+ alias?: string | undefined;
719
+ inputSchema: {
720
+ type: "null";
721
+ } | ({
722
+ type: "object";
723
+ } & import("json-schema").JSONSchema7) | ({
724
+ $ref: string;
725
+ } & import("json-schema").JSONSchema7) | ({
726
+ oneOf: ({
727
+ type: "null";
728
+ } | ({
729
+ type: "object";
730
+ } & import("json-schema").JSONSchema7) | ({
731
+ $ref: string;
732
+ } & import("json-schema").JSONSchema7))[];
733
+ } & import("json-schema").JSONSchema7);
734
+ name: string;
735
+ version: string;
736
+ configuration?: any;
737
+ configurationSchema: import("json-schema").JSONSchema7;
738
+ ttl?: number | undefined;
739
+ retry: number;
740
+ retryDelay?: number | undefined;
741
+ mode: "CONTINUOUS" | "LINEAR";
742
+ privileged: boolean;
743
+ configurationServices?: /*elided*/ any[] | undefined;
744
+ }[] | undefined;
745
+ } | {
438
746
  outputs: {
439
747
  name: string | null;
440
748
  schema: import("json-schema").JSONSchema7 | null;
441
749
  }[];
442
- alias?: string | undefined;
443
- configuration?: any;
444
- ttl?: number | undefined;
445
- retry?: number | undefined;
446
- retryDelay?: number | undefined;
447
- } | {
448
750
  id: string;
449
751
  type: "logic";
752
+ alias?: string | undefined;
450
753
  script: string;
451
754
  concurrency: boolean;
452
755
  language: "javascript" | "python" | "typescript";
453
756
  maxExecutionTime: number;
454
- outputs: {
455
- name: string | null;
456
- schema: import("json-schema").JSONSchema7 | null;
457
- }[];
458
- alias?: string | undefined;
459
757
  } | {
460
758
  id: string;
461
759
  type: "or";
462
760
  alias?: string | undefined;
463
761
  } | {
762
+ outputs: {
763
+ name: string | null;
764
+ schema: import("json-schema").JSONSchema7 | null;
765
+ }[];
464
766
  id: string;
465
767
  type: "reference";
768
+ alias?: string | undefined;
466
769
  reference: string;
467
770
  enabled: boolean;
468
- inputSchema: ({
469
- type: "object";
470
- } & import("json-schema").JSONSchema7) | {
771
+ inputSchema: {
471
772
  type: "null";
472
773
  } | ({
774
+ type: "object";
775
+ } & import("json-schema").JSONSchema7) | ({
473
776
  $ref: string;
777
+ } & import("json-schema").JSONSchema7) | ({
778
+ oneOf: ({
779
+ type: "null";
780
+ } | ({
781
+ type: "object";
782
+ } & import("json-schema").JSONSchema7) | ({
783
+ $ref: string;
784
+ } & import("json-schema").JSONSchema7))[];
474
785
  } & import("json-schema").JSONSchema7);
475
- outputs: {
476
- name: string | null;
477
- schema: import("json-schema").JSONSchema7 | null;
478
- }[];
479
- alias?: string | undefined;
480
786
  } | {
481
787
  id: string;
482
788
  type: "exit";