@requence/service 1.0.0-alpha.40 → 1.0.0-alpha.45

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 (34) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/build/index.js +6 -6
  3. package/build/index.js.map +3 -3
  4. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +1 -1
  5. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -1
  6. package/build/types/helpers/src/jsonschema/types.d.ts +1 -0
  7. package/build/types/helpers/src/jsonschema/types.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 +3 -0
  11. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  12. package/build/types/helpers/src/protocol/NodeTree.d.ts +610 -64
  13. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  14. package/build/types/helpers/src/protocol/command.d.ts +430 -48
  15. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  16. package/build/types/helpers/src/protocol/helpers.d.ts +2 -0
  17. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  18. package/build/types/helpers/src/protocol/index.d.ts +0 -1
  19. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  20. package/build/types/helpers/src/protocol/nodeType.d.ts +255 -104
  21. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  22. package/build/types/helpers/src/protocol/taskOptions.d.ts +1 -0
  23. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/treeNodes.d.ts +1014 -108
  25. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/update.d.ts +25 -0
  27. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  28. package/build/types/service/src/createAmqpConnection.d.ts +2 -2
  29. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  30. package/package.json +4 -2
  31. package/build/types/helpers/src/protocol/targetNodes.d.ts +0 -253
  32. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +0 -1
  33. package/build/types/helpers/src/utils/types.d.ts +0 -4
  34. package/build/types/helpers/src/utils/types.d.ts.map +0 -1
@@ -1,14 +1,25 @@
1
1
  import { z } from 'zod/v4';
2
- import { ERROR } from './nodeType.ts';
3
- export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
2
+ export declare const treeSchema: z.ZodObject<{
4
3
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5
4
  id: z.ZodDefault<z.ZodUUID>;
6
5
  type: z.ZodLiteral<"entry">;
7
6
  alias: z.ZodOptional<z.ZodString>;
8
7
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
9
- outputs: z.ZodArray<z.ZodObject<{
10
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
8
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
11
10
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
11
+ types: z.ZodOptional<z.ZodObject<{
12
+ input: z.ZodString;
13
+ output: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>>>;
16
+ position: z.ZodDefault<z.ZodObject<{
17
+ x: z.ZodNumber;
18
+ y: z.ZodNumber;
19
+ }, z.core.$strip>>;
20
+ size: z.ZodOptional<z.ZodObject<{
21
+ width: z.ZodOptional<z.ZodNumber>;
22
+ height: z.ZodOptional<z.ZodNumber>;
12
23
  }, z.core.$strip>>;
13
24
  }, z.core.$strict>, z.ZodObject<{
14
25
  id: z.ZodDefault<z.ZodUUID>;
@@ -18,7 +29,13 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
18
29
  type: z.ZodLiteral<"object">;
19
30
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
20
31
  type: z.ZodLiteral<"null">;
21
- }, z.core.$strip>]>>;
32
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
33
+ $ref: z.ZodString;
34
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
35
+ inputTypes: z.ZodOptional<z.ZodObject<{
36
+ input: z.ZodString;
37
+ output: z.ZodString;
38
+ }, z.core.$strip>>;
22
39
  name: z.ZodString;
23
40
  version: z.ZodString;
24
41
  configuration: z.ZodOptional<z.ZodAny>;
@@ -26,9 +43,21 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
26
43
  ttl: z.ZodOptional<z.ZodNumber>;
27
44
  retry: z.ZodOptional<z.ZodNumber>;
28
45
  retryDelay: z.ZodOptional<z.ZodNumber>;
29
- outputs: z.ZodArray<z.ZodObject<{
30
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
46
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
47
+ name: z.ZodNullable<z.ZodString>;
31
48
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
49
+ types: z.ZodOptional<z.ZodObject<{
50
+ input: z.ZodString;
51
+ output: z.ZodString;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>>>;
54
+ position: z.ZodDefault<z.ZodObject<{
55
+ x: z.ZodNumber;
56
+ y: z.ZodNumber;
57
+ }, z.core.$strip>>;
58
+ size: z.ZodOptional<z.ZodObject<{
59
+ width: z.ZodOptional<z.ZodNumber>;
60
+ height: z.ZodOptional<z.ZodNumber>;
32
61
  }, z.core.$strip>>;
33
62
  }, z.core.$strict>, z.ZodObject<{
34
63
  id: z.ZodDefault<z.ZodUUID>;
@@ -41,54 +70,292 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
41
70
  python: "python";
42
71
  typescript: "typescript";
43
72
  }>>;
73
+ outputNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
74
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
45
- outputs: z.ZodArray<z.ZodObject<{
46
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
75
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
76
+ name: z.ZodNullable<z.ZodString>;
47
77
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
78
+ types: z.ZodOptional<z.ZodObject<{
79
+ input: z.ZodString;
80
+ output: z.ZodString;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>>>;
83
+ position: z.ZodDefault<z.ZodObject<{
84
+ x: z.ZodNumber;
85
+ y: z.ZodNumber;
86
+ }, z.core.$strip>>;
87
+ size: z.ZodOptional<z.ZodObject<{
88
+ width: z.ZodOptional<z.ZodNumber>;
89
+ height: z.ZodOptional<z.ZodNumber>;
48
90
  }, z.core.$strip>>;
49
91
  }, z.core.$strict>, z.ZodObject<{
50
92
  id: z.ZodDefault<z.ZodUUID>;
51
93
  type: z.ZodLiteral<"or">;
52
94
  alias: z.ZodOptional<z.ZodString>;
53
- outputs: z.ZodArray<z.ZodObject<{
54
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
95
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
96
+ name: z.ZodNullable<z.ZodString>;
55
97
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
98
+ types: z.ZodOptional<z.ZodObject<{
99
+ input: z.ZodString;
100
+ output: z.ZodString;
101
+ }, z.core.$strip>>;
102
+ }, z.core.$strip>>>;
103
+ position: z.ZodDefault<z.ZodObject<{
104
+ x: z.ZodNumber;
105
+ y: z.ZodNumber;
106
+ }, z.core.$strip>>;
107
+ size: z.ZodOptional<z.ZodObject<{
108
+ width: z.ZodOptional<z.ZodNumber>;
109
+ height: z.ZodOptional<z.ZodNumber>;
56
110
  }, z.core.$strip>>;
57
111
  }, z.core.$strict>, z.ZodObject<{
58
112
  id: z.ZodDefault<z.ZodUUID>;
59
113
  type: z.ZodLiteral<"reference">;
60
114
  alias: z.ZodOptional<z.ZodString>;
61
115
  reference: z.ZodString;
116
+ inputTypes: z.ZodOptional<z.ZodObject<{
117
+ input: z.ZodString;
118
+ output: z.ZodString;
119
+ }, z.core.$strip>>;
120
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
121
+ name: z.ZodNullable<z.ZodString>;
122
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
123
+ types: z.ZodOptional<z.ZodObject<{
124
+ input: z.ZodString;
125
+ output: z.ZodString;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>>>;
128
+ position: z.ZodDefault<z.ZodObject<{
129
+ x: z.ZodNumber;
130
+ y: z.ZodNumber;
131
+ }, z.core.$strip>>;
132
+ size: z.ZodOptional<z.ZodObject<{
133
+ width: z.ZodOptional<z.ZodNumber>;
134
+ height: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ id: z.ZodDefault<z.ZodUUID>;
138
+ type: z.ZodLiteral<"exit">;
139
+ alias: z.ZodOptional<z.ZodString>;
140
+ position: z.ZodDefault<z.ZodObject<{
141
+ x: z.ZodNumber;
142
+ y: z.ZodNumber;
143
+ }, z.core.$strip>>;
144
+ size: z.ZodOptional<z.ZodObject<{
145
+ width: z.ZodOptional<z.ZodNumber>;
146
+ height: z.ZodOptional<z.ZodNumber>;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strict>, z.ZodObject<{
149
+ id: z.ZodDefault<z.ZodUUID>;
150
+ type: z.ZodLiteral<"comment">;
151
+ text: z.ZodDefault<z.ZodString>;
152
+ alias: z.ZodOptional<z.ZodString>;
153
+ position: z.ZodDefault<z.ZodObject<{
154
+ x: z.ZodNumber;
155
+ y: z.ZodNumber;
156
+ }, z.core.$strip>>;
157
+ size: z.ZodOptional<z.ZodObject<{
158
+ width: z.ZodOptional<z.ZodNumber>;
159
+ height: z.ZodOptional<z.ZodNumber>;
160
+ }, z.core.$strip>>;
161
+ }, z.core.$strip>]>>;
162
+ edges: z.ZodArray<z.ZodObject<{
163
+ id: z.ZodUUID;
164
+ source: z.ZodUUID;
165
+ sourceHandle: z.ZodNullable<z.ZodString>;
166
+ target: z.ZodUUID;
167
+ }, z.core.$strip>>;
168
+ allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
169
+ }, z.core.$strict>;
170
+ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
171
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
172
+ id: z.ZodDefault<z.ZodUUID>;
173
+ type: z.ZodLiteral<"entry">;
174
+ alias: z.ZodOptional<z.ZodString>;
175
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
176
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
177
+ name: z.ZodNullable<z.ZodString>;
178
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
179
+ types: z.ZodOptional<z.ZodObject<{
180
+ input: z.ZodString;
181
+ output: z.ZodString;
182
+ }, z.core.$strip>>;
183
+ }, z.core.$strip>>>;
184
+ position: z.ZodDefault<z.ZodObject<{
185
+ x: z.ZodNumber;
186
+ y: z.ZodNumber;
187
+ }, z.core.$strip>>;
188
+ size: z.ZodOptional<z.ZodObject<{
189
+ width: z.ZodOptional<z.ZodNumber>;
190
+ height: z.ZodOptional<z.ZodNumber>;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strict>, z.ZodObject<{
193
+ id: z.ZodDefault<z.ZodUUID>;
194
+ type: z.ZodLiteral<"service">;
195
+ alias: z.ZodOptional<z.ZodString>;
196
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
197
+ type: z.ZodLiteral<"object">;
198
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
199
+ type: z.ZodLiteral<"null">;
200
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
201
+ $ref: z.ZodString;
202
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
203
+ inputTypes: z.ZodOptional<z.ZodObject<{
204
+ input: z.ZodString;
205
+ output: z.ZodString;
206
+ }, z.core.$strip>>;
207
+ name: z.ZodString;
208
+ version: z.ZodString;
62
209
  configuration: z.ZodOptional<z.ZodAny>;
63
- outputs: z.ZodArray<z.ZodObject<{
64
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
210
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
211
+ ttl: z.ZodOptional<z.ZodNumber>;
212
+ retry: z.ZodOptional<z.ZodNumber>;
213
+ retryDelay: z.ZodOptional<z.ZodNumber>;
214
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
215
+ name: z.ZodNullable<z.ZodString>;
65
216
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
217
+ types: z.ZodOptional<z.ZodObject<{
218
+ input: z.ZodString;
219
+ output: z.ZodString;
220
+ }, z.core.$strip>>;
221
+ }, z.core.$strip>>>;
222
+ position: z.ZodDefault<z.ZodObject<{
223
+ x: z.ZodNumber;
224
+ y: z.ZodNumber;
225
+ }, z.core.$strip>>;
226
+ size: z.ZodOptional<z.ZodObject<{
227
+ width: z.ZodOptional<z.ZodNumber>;
228
+ height: z.ZodOptional<z.ZodNumber>;
229
+ }, z.core.$strip>>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ id: z.ZodDefault<z.ZodUUID>;
232
+ type: z.ZodLiteral<"logic">;
233
+ alias: z.ZodOptional<z.ZodString>;
234
+ script: z.ZodString;
235
+ concurrency: z.ZodDefault<z.ZodBoolean>;
236
+ language: z.ZodDefault<z.ZodEnum<{
237
+ javascript: "javascript";
238
+ python: "python";
239
+ typescript: "typescript";
240
+ }>>;
241
+ outputNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
243
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
244
+ name: z.ZodNullable<z.ZodString>;
245
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
246
+ types: z.ZodOptional<z.ZodObject<{
247
+ input: z.ZodString;
248
+ output: z.ZodString;
249
+ }, z.core.$strip>>;
250
+ }, z.core.$strip>>>;
251
+ position: z.ZodDefault<z.ZodObject<{
252
+ x: z.ZodNumber;
253
+ y: z.ZodNumber;
254
+ }, z.core.$strip>>;
255
+ size: z.ZodOptional<z.ZodObject<{
256
+ width: z.ZodOptional<z.ZodNumber>;
257
+ height: z.ZodOptional<z.ZodNumber>;
258
+ }, z.core.$strip>>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ id: z.ZodDefault<z.ZodUUID>;
261
+ type: z.ZodLiteral<"or">;
262
+ alias: z.ZodOptional<z.ZodString>;
263
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
264
+ name: z.ZodNullable<z.ZodString>;
265
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
266
+ types: z.ZodOptional<z.ZodObject<{
267
+ input: z.ZodString;
268
+ output: z.ZodString;
269
+ }, z.core.$strip>>;
270
+ }, z.core.$strip>>>;
271
+ position: z.ZodDefault<z.ZodObject<{
272
+ x: z.ZodNumber;
273
+ y: z.ZodNumber;
274
+ }, z.core.$strip>>;
275
+ size: z.ZodOptional<z.ZodObject<{
276
+ width: z.ZodOptional<z.ZodNumber>;
277
+ height: z.ZodOptional<z.ZodNumber>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ id: z.ZodDefault<z.ZodUUID>;
281
+ type: z.ZodLiteral<"reference">;
282
+ alias: z.ZodOptional<z.ZodString>;
283
+ reference: z.ZodString;
284
+ inputTypes: z.ZodOptional<z.ZodObject<{
285
+ input: z.ZodString;
286
+ output: z.ZodString;
287
+ }, z.core.$strip>>;
288
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
289
+ name: z.ZodNullable<z.ZodString>;
290
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
291
+ types: z.ZodOptional<z.ZodObject<{
292
+ input: z.ZodString;
293
+ output: z.ZodString;
294
+ }, z.core.$strip>>;
295
+ }, z.core.$strip>>>;
296
+ position: z.ZodDefault<z.ZodObject<{
297
+ x: z.ZodNumber;
298
+ y: z.ZodNumber;
299
+ }, z.core.$strip>>;
300
+ size: z.ZodOptional<z.ZodObject<{
301
+ width: z.ZodOptional<z.ZodNumber>;
302
+ height: z.ZodOptional<z.ZodNumber>;
66
303
  }, z.core.$strip>>;
67
304
  }, z.core.$strict>, z.ZodObject<{
68
305
  id: z.ZodDefault<z.ZodUUID>;
69
306
  type: z.ZodLiteral<"exit">;
70
307
  alias: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strict>]>>;
308
+ position: z.ZodDefault<z.ZodObject<{
309
+ x: z.ZodNumber;
310
+ y: z.ZodNumber;
311
+ }, z.core.$strip>>;
312
+ size: z.ZodOptional<z.ZodObject<{
313
+ width: z.ZodOptional<z.ZodNumber>;
314
+ height: z.ZodOptional<z.ZodNumber>;
315
+ }, z.core.$strip>>;
316
+ }, z.core.$strict>, z.ZodObject<{
317
+ id: z.ZodDefault<z.ZodUUID>;
318
+ type: z.ZodLiteral<"comment">;
319
+ text: z.ZodDefault<z.ZodString>;
320
+ alias: z.ZodOptional<z.ZodString>;
321
+ position: z.ZodDefault<z.ZodObject<{
322
+ x: z.ZodNumber;
323
+ y: z.ZodNumber;
324
+ }, z.core.$strip>>;
325
+ size: z.ZodOptional<z.ZodObject<{
326
+ width: z.ZodOptional<z.ZodNumber>;
327
+ height: z.ZodOptional<z.ZodNumber>;
328
+ }, z.core.$strip>>;
329
+ }, z.core.$strip>]>>;
72
330
  edges: z.ZodArray<z.ZodObject<{
331
+ id: z.ZodUUID;
73
332
  source: z.ZodUUID;
74
- sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
333
+ sourceHandle: z.ZodNullable<z.ZodString>;
75
334
  target: z.ZodUUID;
76
335
  }, z.core.$strip>>;
77
336
  allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
78
337
  }, z.core.$strict>, z.ZodTransform<{
79
338
  nodes: ({
80
- id: string;
81
- type: "exit";
82
- alias?: string | undefined;
83
- } | {
84
339
  id: string;
85
340
  type: "entry";
86
341
  inputSchema: import("json-schema").JSONSchema7;
87
342
  outputs: {
88
- name: string | typeof ERROR | null;
343
+ name: string | null;
89
344
  schema: import("json-schema").JSONSchema7 | null;
345
+ types?: {
346
+ input: string;
347
+ output: string;
348
+ } | undefined;
90
349
  }[];
350
+ position: {
351
+ x: number;
352
+ y: number;
353
+ };
91
354
  alias?: string | undefined;
355
+ size?: {
356
+ width?: number | undefined;
357
+ height?: number | undefined;
358
+ } | undefined;
92
359
  } | {
93
360
  id: string;
94
361
  type: "service";
@@ -96,19 +363,37 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
96
363
  type: "object";
97
364
  } & import("json-schema").JSONSchema7) | {
98
365
  type: "null";
99
- };
366
+ } | ({
367
+ $ref: string;
368
+ } & import("json-schema").JSONSchema7);
100
369
  name: string;
101
370
  version: string;
102
371
  configurationSchema: import("json-schema").JSONSchema7;
103
372
  outputs: {
104
- name: string | typeof ERROR | null;
373
+ name: string | null;
105
374
  schema: import("json-schema").JSONSchema7 | null;
375
+ types?: {
376
+ input: string;
377
+ output: string;
378
+ } | undefined;
106
379
  }[];
380
+ position: {
381
+ x: number;
382
+ y: number;
383
+ };
107
384
  alias?: string | undefined;
385
+ inputTypes?: {
386
+ input: string;
387
+ output: string;
388
+ } | undefined;
108
389
  configuration?: any;
109
390
  ttl?: number | undefined;
110
391
  retry?: number | undefined;
111
392
  retryDelay?: number | undefined;
393
+ size?: {
394
+ width?: number | undefined;
395
+ height?: number | undefined;
396
+ } | undefined;
112
397
  } | {
113
398
  id: string;
114
399
  type: "logic";
@@ -117,48 +402,122 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
117
402
  language: "javascript" | "python" | "typescript";
118
403
  maxExecutionTime: number;
119
404
  outputs: {
120
- name: string | typeof ERROR | null;
405
+ name: string | null;
121
406
  schema: import("json-schema").JSONSchema7 | null;
407
+ types?: {
408
+ input: string;
409
+ output: string;
410
+ } | undefined;
122
411
  }[];
412
+ position: {
413
+ x: number;
414
+ y: number;
415
+ };
123
416
  alias?: string | undefined;
417
+ outputNames?: string[] | undefined;
418
+ size?: {
419
+ width?: number | undefined;
420
+ height?: number | undefined;
421
+ } | undefined;
124
422
  } | {
125
423
  id: string;
126
424
  type: "or";
127
425
  outputs: {
128
- name: string | typeof ERROR | null;
426
+ name: string | null;
129
427
  schema: import("json-schema").JSONSchema7 | null;
428
+ types?: {
429
+ input: string;
430
+ output: string;
431
+ } | undefined;
130
432
  }[];
433
+ position: {
434
+ x: number;
435
+ y: number;
436
+ };
131
437
  alias?: string | undefined;
438
+ size?: {
439
+ width?: number | undefined;
440
+ height?: number | undefined;
441
+ } | undefined;
132
442
  } | {
133
443
  id: string;
134
444
  type: "reference";
135
445
  reference: string;
136
446
  outputs: {
137
- name: string | typeof ERROR | null;
447
+ name: string | null;
138
448
  schema: import("json-schema").JSONSchema7 | null;
449
+ types?: {
450
+ input: string;
451
+ output: string;
452
+ } | undefined;
139
453
  }[];
454
+ position: {
455
+ x: number;
456
+ y: number;
457
+ };
140
458
  alias?: string | undefined;
141
- configuration?: any;
459
+ inputTypes?: {
460
+ input: string;
461
+ output: string;
462
+ } | undefined;
463
+ size?: {
464
+ width?: number | undefined;
465
+ height?: number | undefined;
466
+ } | undefined;
467
+ } | {
468
+ id: string;
469
+ type: "exit";
470
+ position: {
471
+ x: number;
472
+ y: number;
473
+ };
474
+ alias?: string | undefined;
475
+ size?: {
476
+ width?: number | undefined;
477
+ height?: number | undefined;
478
+ } | undefined;
479
+ } | {
480
+ id: string;
481
+ type: "comment";
482
+ text: string;
483
+ position: {
484
+ x: number;
485
+ y: number;
486
+ };
487
+ alias?: string | undefined;
488
+ size?: {
489
+ width?: number | undefined;
490
+ height?: number | undefined;
491
+ } | undefined;
142
492
  })[];
143
493
  edges: {
494
+ id: string;
144
495
  source: string;
145
- sourceHandle: string | typeof ERROR | null;
496
+ sourceHandle: string | null;
146
497
  target: string;
147
498
  }[];
148
499
  }, {
149
500
  nodes: ({
150
- id: string;
151
- type: "exit";
152
- alias?: string | undefined;
153
- } | {
154
501
  id: string;
155
502
  type: "entry";
156
503
  inputSchema: import("json-schema").JSONSchema7;
157
504
  outputs: {
158
- name: string | typeof ERROR | null;
505
+ name: string | null;
159
506
  schema: import("json-schema").JSONSchema7 | null;
507
+ types?: {
508
+ input: string;
509
+ output: string;
510
+ } | undefined;
160
511
  }[];
512
+ position: {
513
+ x: number;
514
+ y: number;
515
+ };
161
516
  alias?: string | undefined;
517
+ size?: {
518
+ width?: number | undefined;
519
+ height?: number | undefined;
520
+ } | undefined;
162
521
  } | {
163
522
  id: string;
164
523
  type: "service";
@@ -166,19 +525,37 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
166
525
  type: "object";
167
526
  } & import("json-schema").JSONSchema7) | {
168
527
  type: "null";
169
- };
528
+ } | ({
529
+ $ref: string;
530
+ } & import("json-schema").JSONSchema7);
170
531
  name: string;
171
532
  version: string;
172
533
  configurationSchema: import("json-schema").JSONSchema7;
173
534
  outputs: {
174
- name: string | typeof ERROR | null;
535
+ name: string | null;
175
536
  schema: import("json-schema").JSONSchema7 | null;
537
+ types?: {
538
+ input: string;
539
+ output: string;
540
+ } | undefined;
176
541
  }[];
542
+ position: {
543
+ x: number;
544
+ y: number;
545
+ };
177
546
  alias?: string | undefined;
547
+ inputTypes?: {
548
+ input: string;
549
+ output: string;
550
+ } | undefined;
178
551
  configuration?: any;
179
552
  ttl?: number | undefined;
180
553
  retry?: number | undefined;
181
554
  retryDelay?: number | undefined;
555
+ size?: {
556
+ width?: number | undefined;
557
+ height?: number | undefined;
558
+ } | undefined;
182
559
  } | {
183
560
  id: string;
184
561
  type: "logic";
@@ -187,32 +564,98 @@ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
187
564
  language: "javascript" | "python" | "typescript";
188
565
  maxExecutionTime: number;
189
566
  outputs: {
190
- name: string | typeof ERROR | null;
567
+ name: string | null;
191
568
  schema: import("json-schema").JSONSchema7 | null;
569
+ types?: {
570
+ input: string;
571
+ output: string;
572
+ } | undefined;
192
573
  }[];
574
+ position: {
575
+ x: number;
576
+ y: number;
577
+ };
193
578
  alias?: string | undefined;
579
+ outputNames?: string[] | undefined;
580
+ size?: {
581
+ width?: number | undefined;
582
+ height?: number | undefined;
583
+ } | undefined;
194
584
  } | {
195
585
  id: string;
196
586
  type: "or";
197
587
  outputs: {
198
- name: string | typeof ERROR | null;
588
+ name: string | null;
199
589
  schema: import("json-schema").JSONSchema7 | null;
590
+ types?: {
591
+ input: string;
592
+ output: string;
593
+ } | undefined;
200
594
  }[];
595
+ position: {
596
+ x: number;
597
+ y: number;
598
+ };
201
599
  alias?: string | undefined;
600
+ size?: {
601
+ width?: number | undefined;
602
+ height?: number | undefined;
603
+ } | undefined;
202
604
  } | {
203
605
  id: string;
204
606
  type: "reference";
205
607
  reference: string;
206
608
  outputs: {
207
- name: string | typeof ERROR | null;
609
+ name: string | null;
208
610
  schema: import("json-schema").JSONSchema7 | null;
611
+ types?: {
612
+ input: string;
613
+ output: string;
614
+ } | undefined;
209
615
  }[];
616
+ position: {
617
+ x: number;
618
+ y: number;
619
+ };
210
620
  alias?: string | undefined;
211
- configuration?: any;
621
+ inputTypes?: {
622
+ input: string;
623
+ output: string;
624
+ } | undefined;
625
+ size?: {
626
+ width?: number | undefined;
627
+ height?: number | undefined;
628
+ } | undefined;
629
+ } | {
630
+ id: string;
631
+ type: "exit";
632
+ position: {
633
+ x: number;
634
+ y: number;
635
+ };
636
+ alias?: string | undefined;
637
+ size?: {
638
+ width?: number | undefined;
639
+ height?: number | undefined;
640
+ } | undefined;
641
+ } | {
642
+ id: string;
643
+ type: "comment";
644
+ text: string;
645
+ position: {
646
+ x: number;
647
+ y: number;
648
+ };
649
+ alias?: string | undefined;
650
+ size?: {
651
+ width?: number | undefined;
652
+ height?: number | undefined;
653
+ } | undefined;
212
654
  })[];
213
655
  edges: {
656
+ id: string;
214
657
  source: string;
215
- sourceHandle: string | typeof ERROR | null;
658
+ sourceHandle: string | null;
216
659
  target: string;
217
660
  }[];
218
661
  allowMultipleOutputs: boolean;
@@ -232,6 +675,7 @@ export declare const treeReferenceSchema: z.ZodObject<{
232
675
  uploadUrl: z.ZodOptional<z.ZodString>;
233
676
  streamUrl: z.ZodOptional<z.ZodString>;
234
677
  referencedBy: z.ZodOptional<z.ZodObject<{
678
+ rootTaskId: z.ZodUUID;
235
679
  taskId: z.ZodUUID;
236
680
  nodeId: z.ZodUUID;
237
681
  messageId: z.ZodUUID;
@@ -243,9 +687,21 @@ export declare const treeReferenceSchema: z.ZodObject<{
243
687
  type: z.ZodLiteral<"entry">;
244
688
  alias: z.ZodOptional<z.ZodString>;
245
689
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
246
- outputs: z.ZodArray<z.ZodObject<{
247
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
690
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
691
+ name: z.ZodNullable<z.ZodString>;
248
692
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
693
+ types: z.ZodOptional<z.ZodObject<{
694
+ input: z.ZodString;
695
+ output: z.ZodString;
696
+ }, z.core.$strip>>;
697
+ }, z.core.$strip>>>;
698
+ position: z.ZodDefault<z.ZodObject<{
699
+ x: z.ZodNumber;
700
+ y: z.ZodNumber;
701
+ }, z.core.$strip>>;
702
+ size: z.ZodOptional<z.ZodObject<{
703
+ width: z.ZodOptional<z.ZodNumber>;
704
+ height: z.ZodOptional<z.ZodNumber>;
249
705
  }, z.core.$strip>>;
250
706
  }, z.core.$strict>, z.ZodObject<{
251
707
  id: z.ZodDefault<z.ZodUUID>;
@@ -255,7 +711,13 @@ export declare const treeReferenceSchema: z.ZodObject<{
255
711
  type: z.ZodLiteral<"object">;
256
712
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
257
713
  type: z.ZodLiteral<"null">;
258
- }, z.core.$strip>]>>;
714
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
715
+ $ref: z.ZodString;
716
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
717
+ inputTypes: z.ZodOptional<z.ZodObject<{
718
+ input: z.ZodString;
719
+ output: z.ZodString;
720
+ }, z.core.$strip>>;
259
721
  name: z.ZodString;
260
722
  version: z.ZodString;
261
723
  configuration: z.ZodOptional<z.ZodAny>;
@@ -263,9 +725,21 @@ export declare const treeReferenceSchema: z.ZodObject<{
263
725
  ttl: z.ZodOptional<z.ZodNumber>;
264
726
  retry: z.ZodOptional<z.ZodNumber>;
265
727
  retryDelay: z.ZodOptional<z.ZodNumber>;
266
- outputs: z.ZodArray<z.ZodObject<{
267
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
728
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
729
+ name: z.ZodNullable<z.ZodString>;
268
730
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
731
+ types: z.ZodOptional<z.ZodObject<{
732
+ input: z.ZodString;
733
+ output: z.ZodString;
734
+ }, z.core.$strip>>;
735
+ }, z.core.$strip>>>;
736
+ position: z.ZodDefault<z.ZodObject<{
737
+ x: z.ZodNumber;
738
+ y: z.ZodNumber;
739
+ }, z.core.$strip>>;
740
+ size: z.ZodOptional<z.ZodObject<{
741
+ width: z.ZodOptional<z.ZodNumber>;
742
+ height: z.ZodOptional<z.ZodNumber>;
269
743
  }, z.core.$strip>>;
270
744
  }, z.core.$strict>, z.ZodObject<{
271
745
  id: z.ZodDefault<z.ZodUUID>;
@@ -278,53 +752,127 @@ export declare const treeReferenceSchema: z.ZodObject<{
278
752
  python: "python";
279
753
  typescript: "typescript";
280
754
  }>>;
755
+ outputNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
756
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
282
- outputs: z.ZodArray<z.ZodObject<{
283
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
757
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
758
+ name: z.ZodNullable<z.ZodString>;
284
759
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
760
+ types: z.ZodOptional<z.ZodObject<{
761
+ input: z.ZodString;
762
+ output: z.ZodString;
763
+ }, z.core.$strip>>;
764
+ }, z.core.$strip>>>;
765
+ position: z.ZodDefault<z.ZodObject<{
766
+ x: z.ZodNumber;
767
+ y: z.ZodNumber;
768
+ }, z.core.$strip>>;
769
+ size: z.ZodOptional<z.ZodObject<{
770
+ width: z.ZodOptional<z.ZodNumber>;
771
+ height: z.ZodOptional<z.ZodNumber>;
285
772
  }, z.core.$strip>>;
286
773
  }, z.core.$strict>, z.ZodObject<{
287
774
  id: z.ZodDefault<z.ZodUUID>;
288
775
  type: z.ZodLiteral<"or">;
289
776
  alias: z.ZodOptional<z.ZodString>;
290
- outputs: z.ZodArray<z.ZodObject<{
291
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
777
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
778
+ name: z.ZodNullable<z.ZodString>;
292
779
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
780
+ types: z.ZodOptional<z.ZodObject<{
781
+ input: z.ZodString;
782
+ output: z.ZodString;
783
+ }, z.core.$strip>>;
784
+ }, z.core.$strip>>>;
785
+ position: z.ZodDefault<z.ZodObject<{
786
+ x: z.ZodNumber;
787
+ y: z.ZodNumber;
788
+ }, z.core.$strip>>;
789
+ size: z.ZodOptional<z.ZodObject<{
790
+ width: z.ZodOptional<z.ZodNumber>;
791
+ height: z.ZodOptional<z.ZodNumber>;
293
792
  }, z.core.$strip>>;
294
793
  }, z.core.$strict>, z.ZodObject<{
295
794
  id: z.ZodDefault<z.ZodUUID>;
296
795
  type: z.ZodLiteral<"reference">;
297
796
  alias: z.ZodOptional<z.ZodString>;
298
797
  reference: z.ZodString;
299
- configuration: z.ZodOptional<z.ZodAny>;
300
- outputs: z.ZodArray<z.ZodObject<{
301
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
798
+ inputTypes: z.ZodOptional<z.ZodObject<{
799
+ input: z.ZodString;
800
+ output: z.ZodString;
801
+ }, z.core.$strip>>;
802
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
803
+ name: z.ZodNullable<z.ZodString>;
302
804
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
805
+ types: z.ZodOptional<z.ZodObject<{
806
+ input: z.ZodString;
807
+ output: z.ZodString;
808
+ }, z.core.$strip>>;
809
+ }, z.core.$strip>>>;
810
+ position: z.ZodDefault<z.ZodObject<{
811
+ x: z.ZodNumber;
812
+ y: z.ZodNumber;
813
+ }, z.core.$strip>>;
814
+ size: z.ZodOptional<z.ZodObject<{
815
+ width: z.ZodOptional<z.ZodNumber>;
816
+ height: z.ZodOptional<z.ZodNumber>;
303
817
  }, z.core.$strip>>;
304
818
  }, z.core.$strict>, z.ZodObject<{
305
819
  id: z.ZodDefault<z.ZodUUID>;
306
820
  type: z.ZodLiteral<"exit">;
307
821
  alias: z.ZodOptional<z.ZodString>;
308
- }, z.core.$strict>]>>;
822
+ position: z.ZodDefault<z.ZodObject<{
823
+ x: z.ZodNumber;
824
+ y: z.ZodNumber;
825
+ }, z.core.$strip>>;
826
+ size: z.ZodOptional<z.ZodObject<{
827
+ width: z.ZodOptional<z.ZodNumber>;
828
+ height: z.ZodOptional<z.ZodNumber>;
829
+ }, z.core.$strip>>;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ id: z.ZodDefault<z.ZodUUID>;
832
+ type: z.ZodLiteral<"comment">;
833
+ text: z.ZodDefault<z.ZodString>;
834
+ alias: z.ZodOptional<z.ZodString>;
835
+ position: z.ZodDefault<z.ZodObject<{
836
+ x: z.ZodNumber;
837
+ y: z.ZodNumber;
838
+ }, z.core.$strip>>;
839
+ size: z.ZodOptional<z.ZodObject<{
840
+ width: z.ZodOptional<z.ZodNumber>;
841
+ height: z.ZodOptional<z.ZodNumber>;
842
+ }, z.core.$strip>>;
843
+ }, z.core.$strip>]>>;
309
844
  edges: z.ZodArray<z.ZodObject<{
845
+ id: z.ZodUUID;
310
846
  source: z.ZodUUID;
311
- sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
847
+ sourceHandle: z.ZodNullable<z.ZodString>;
312
848
  target: z.ZodUUID;
313
849
  }, z.core.$strip>>;
314
850
  }, z.core.$strip>;
315
851
  references: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
316
852
  }, z.core.$strip>;
317
853
  export type TreeReference = z.infer<typeof treeReferenceSchema>;
318
- export declare const treeNodesListSchema: z.ZodObject<{
854
+ export declare const treeListSchema: z.ZodObject<{
319
855
  tree: z.ZodPipe<z.ZodObject<{
320
856
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
321
857
  id: z.ZodDefault<z.ZodUUID>;
322
858
  type: z.ZodLiteral<"entry">;
323
859
  alias: z.ZodOptional<z.ZodString>;
324
860
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
325
- outputs: z.ZodArray<z.ZodObject<{
326
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
861
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
862
+ name: z.ZodNullable<z.ZodString>;
327
863
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
864
+ types: z.ZodOptional<z.ZodObject<{
865
+ input: z.ZodString;
866
+ output: z.ZodString;
867
+ }, z.core.$strip>>;
868
+ }, z.core.$strip>>>;
869
+ position: z.ZodDefault<z.ZodObject<{
870
+ x: z.ZodNumber;
871
+ y: z.ZodNumber;
872
+ }, z.core.$strip>>;
873
+ size: z.ZodOptional<z.ZodObject<{
874
+ width: z.ZodOptional<z.ZodNumber>;
875
+ height: z.ZodOptional<z.ZodNumber>;
328
876
  }, z.core.$strip>>;
329
877
  }, z.core.$strict>, z.ZodObject<{
330
878
  id: z.ZodDefault<z.ZodUUID>;
@@ -334,7 +882,13 @@ export declare const treeNodesListSchema: z.ZodObject<{
334
882
  type: z.ZodLiteral<"object">;
335
883
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
336
884
  type: z.ZodLiteral<"null">;
337
- }, z.core.$strip>]>>;
885
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
886
+ $ref: z.ZodString;
887
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
888
+ inputTypes: z.ZodOptional<z.ZodObject<{
889
+ input: z.ZodString;
890
+ output: z.ZodString;
891
+ }, z.core.$strip>>;
338
892
  name: z.ZodString;
339
893
  version: z.ZodString;
340
894
  configuration: z.ZodOptional<z.ZodAny>;
@@ -342,9 +896,21 @@ export declare const treeNodesListSchema: z.ZodObject<{
342
896
  ttl: z.ZodOptional<z.ZodNumber>;
343
897
  retry: z.ZodOptional<z.ZodNumber>;
344
898
  retryDelay: z.ZodOptional<z.ZodNumber>;
345
- outputs: z.ZodArray<z.ZodObject<{
346
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
899
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
900
+ name: z.ZodNullable<z.ZodString>;
347
901
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
902
+ types: z.ZodOptional<z.ZodObject<{
903
+ input: z.ZodString;
904
+ output: z.ZodString;
905
+ }, z.core.$strip>>;
906
+ }, z.core.$strip>>>;
907
+ position: z.ZodDefault<z.ZodObject<{
908
+ x: z.ZodNumber;
909
+ y: z.ZodNumber;
910
+ }, z.core.$strip>>;
911
+ size: z.ZodOptional<z.ZodObject<{
912
+ width: z.ZodOptional<z.ZodNumber>;
913
+ height: z.ZodOptional<z.ZodNumber>;
348
914
  }, z.core.$strip>>;
349
915
  }, z.core.$strict>, z.ZodObject<{
350
916
  id: z.ZodDefault<z.ZodUUID>;
@@ -357,54 +923,124 @@ export declare const treeNodesListSchema: z.ZodObject<{
357
923
  python: "python";
358
924
  typescript: "typescript";
359
925
  }>>;
926
+ outputNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
360
927
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
361
- outputs: z.ZodArray<z.ZodObject<{
362
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
928
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
929
+ name: z.ZodNullable<z.ZodString>;
363
930
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
931
+ types: z.ZodOptional<z.ZodObject<{
932
+ input: z.ZodString;
933
+ output: z.ZodString;
934
+ }, z.core.$strip>>;
935
+ }, z.core.$strip>>>;
936
+ position: z.ZodDefault<z.ZodObject<{
937
+ x: z.ZodNumber;
938
+ y: z.ZodNumber;
939
+ }, z.core.$strip>>;
940
+ size: z.ZodOptional<z.ZodObject<{
941
+ width: z.ZodOptional<z.ZodNumber>;
942
+ height: z.ZodOptional<z.ZodNumber>;
364
943
  }, z.core.$strip>>;
365
944
  }, z.core.$strict>, z.ZodObject<{
366
945
  id: z.ZodDefault<z.ZodUUID>;
367
946
  type: z.ZodLiteral<"or">;
368
947
  alias: z.ZodOptional<z.ZodString>;
369
- outputs: z.ZodArray<z.ZodObject<{
370
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
948
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
949
+ name: z.ZodNullable<z.ZodString>;
371
950
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
951
+ types: z.ZodOptional<z.ZodObject<{
952
+ input: z.ZodString;
953
+ output: z.ZodString;
954
+ }, z.core.$strip>>;
955
+ }, z.core.$strip>>>;
956
+ position: z.ZodDefault<z.ZodObject<{
957
+ x: z.ZodNumber;
958
+ y: z.ZodNumber;
959
+ }, z.core.$strip>>;
960
+ size: z.ZodOptional<z.ZodObject<{
961
+ width: z.ZodOptional<z.ZodNumber>;
962
+ height: z.ZodOptional<z.ZodNumber>;
372
963
  }, z.core.$strip>>;
373
964
  }, z.core.$strict>, z.ZodObject<{
374
965
  id: z.ZodDefault<z.ZodUUID>;
375
966
  type: z.ZodLiteral<"reference">;
376
967
  alias: z.ZodOptional<z.ZodString>;
377
968
  reference: z.ZodString;
378
- configuration: z.ZodOptional<z.ZodAny>;
379
- outputs: z.ZodArray<z.ZodObject<{
380
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
969
+ inputTypes: z.ZodOptional<z.ZodObject<{
970
+ input: z.ZodString;
971
+ output: z.ZodString;
972
+ }, z.core.$strip>>;
973
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
974
+ name: z.ZodNullable<z.ZodString>;
381
975
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
976
+ types: z.ZodOptional<z.ZodObject<{
977
+ input: z.ZodString;
978
+ output: z.ZodString;
979
+ }, z.core.$strip>>;
980
+ }, z.core.$strip>>>;
981
+ position: z.ZodDefault<z.ZodObject<{
982
+ x: z.ZodNumber;
983
+ y: z.ZodNumber;
984
+ }, z.core.$strip>>;
985
+ size: z.ZodOptional<z.ZodObject<{
986
+ width: z.ZodOptional<z.ZodNumber>;
987
+ height: z.ZodOptional<z.ZodNumber>;
382
988
  }, z.core.$strip>>;
383
989
  }, z.core.$strict>, z.ZodObject<{
384
990
  id: z.ZodDefault<z.ZodUUID>;
385
991
  type: z.ZodLiteral<"exit">;
386
992
  alias: z.ZodOptional<z.ZodString>;
387
- }, z.core.$strict>]>>;
993
+ position: z.ZodDefault<z.ZodObject<{
994
+ x: z.ZodNumber;
995
+ y: z.ZodNumber;
996
+ }, z.core.$strip>>;
997
+ size: z.ZodOptional<z.ZodObject<{
998
+ width: z.ZodOptional<z.ZodNumber>;
999
+ height: z.ZodOptional<z.ZodNumber>;
1000
+ }, z.core.$strip>>;
1001
+ }, z.core.$strict>, z.ZodObject<{
1002
+ id: z.ZodDefault<z.ZodUUID>;
1003
+ type: z.ZodLiteral<"comment">;
1004
+ text: z.ZodDefault<z.ZodString>;
1005
+ alias: z.ZodOptional<z.ZodString>;
1006
+ position: z.ZodDefault<z.ZodObject<{
1007
+ x: z.ZodNumber;
1008
+ y: z.ZodNumber;
1009
+ }, z.core.$strip>>;
1010
+ size: z.ZodOptional<z.ZodObject<{
1011
+ width: z.ZodOptional<z.ZodNumber>;
1012
+ height: z.ZodOptional<z.ZodNumber>;
1013
+ }, z.core.$strip>>;
1014
+ }, z.core.$strip>]>>;
388
1015
  edges: z.ZodArray<z.ZodObject<{
1016
+ id: z.ZodUUID;
389
1017
  source: z.ZodUUID;
390
- sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1018
+ sourceHandle: z.ZodNullable<z.ZodString>;
391
1019
  target: z.ZodUUID;
392
1020
  }, z.core.$strip>>;
393
1021
  allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
394
1022
  }, z.core.$strict>, z.ZodTransform<{
395
1023
  nodes: ({
396
- id: string;
397
- type: "exit";
398
- alias?: string | undefined;
399
- } | {
400
1024
  id: string;
401
1025
  type: "entry";
402
1026
  inputSchema: import("json-schema").JSONSchema7;
403
1027
  outputs: {
404
- name: string | typeof ERROR | null;
1028
+ name: string | null;
405
1029
  schema: import("json-schema").JSONSchema7 | null;
1030
+ types?: {
1031
+ input: string;
1032
+ output: string;
1033
+ } | undefined;
406
1034
  }[];
1035
+ position: {
1036
+ x: number;
1037
+ y: number;
1038
+ };
407
1039
  alias?: string | undefined;
1040
+ size?: {
1041
+ width?: number | undefined;
1042
+ height?: number | undefined;
1043
+ } | undefined;
408
1044
  } | {
409
1045
  id: string;
410
1046
  type: "service";
@@ -412,19 +1048,37 @@ export declare const treeNodesListSchema: z.ZodObject<{
412
1048
  type: "object";
413
1049
  } & import("json-schema").JSONSchema7) | {
414
1050
  type: "null";
415
- };
1051
+ } | ({
1052
+ $ref: string;
1053
+ } & import("json-schema").JSONSchema7);
416
1054
  name: string;
417
1055
  version: string;
418
1056
  configurationSchema: import("json-schema").JSONSchema7;
419
1057
  outputs: {
420
- name: string | typeof ERROR | null;
1058
+ name: string | null;
421
1059
  schema: import("json-schema").JSONSchema7 | null;
1060
+ types?: {
1061
+ input: string;
1062
+ output: string;
1063
+ } | undefined;
422
1064
  }[];
1065
+ position: {
1066
+ x: number;
1067
+ y: number;
1068
+ };
423
1069
  alias?: string | undefined;
1070
+ inputTypes?: {
1071
+ input: string;
1072
+ output: string;
1073
+ } | undefined;
424
1074
  configuration?: any;
425
1075
  ttl?: number | undefined;
426
1076
  retry?: number | undefined;
427
1077
  retryDelay?: number | undefined;
1078
+ size?: {
1079
+ width?: number | undefined;
1080
+ height?: number | undefined;
1081
+ } | undefined;
428
1082
  } | {
429
1083
  id: string;
430
1084
  type: "logic";
@@ -433,48 +1087,122 @@ export declare const treeNodesListSchema: z.ZodObject<{
433
1087
  language: "javascript" | "python" | "typescript";
434
1088
  maxExecutionTime: number;
435
1089
  outputs: {
436
- name: string | typeof ERROR | null;
1090
+ name: string | null;
437
1091
  schema: import("json-schema").JSONSchema7 | null;
1092
+ types?: {
1093
+ input: string;
1094
+ output: string;
1095
+ } | undefined;
438
1096
  }[];
1097
+ position: {
1098
+ x: number;
1099
+ y: number;
1100
+ };
439
1101
  alias?: string | undefined;
1102
+ outputNames?: string[] | undefined;
1103
+ size?: {
1104
+ width?: number | undefined;
1105
+ height?: number | undefined;
1106
+ } | undefined;
440
1107
  } | {
441
1108
  id: string;
442
1109
  type: "or";
443
1110
  outputs: {
444
- name: string | typeof ERROR | null;
1111
+ name: string | null;
445
1112
  schema: import("json-schema").JSONSchema7 | null;
1113
+ types?: {
1114
+ input: string;
1115
+ output: string;
1116
+ } | undefined;
446
1117
  }[];
1118
+ position: {
1119
+ x: number;
1120
+ y: number;
1121
+ };
447
1122
  alias?: string | undefined;
1123
+ size?: {
1124
+ width?: number | undefined;
1125
+ height?: number | undefined;
1126
+ } | undefined;
448
1127
  } | {
449
1128
  id: string;
450
1129
  type: "reference";
451
1130
  reference: string;
452
1131
  outputs: {
453
- name: string | typeof ERROR | null;
1132
+ name: string | null;
454
1133
  schema: import("json-schema").JSONSchema7 | null;
1134
+ types?: {
1135
+ input: string;
1136
+ output: string;
1137
+ } | undefined;
455
1138
  }[];
1139
+ position: {
1140
+ x: number;
1141
+ y: number;
1142
+ };
456
1143
  alias?: string | undefined;
457
- configuration?: any;
1144
+ inputTypes?: {
1145
+ input: string;
1146
+ output: string;
1147
+ } | undefined;
1148
+ size?: {
1149
+ width?: number | undefined;
1150
+ height?: number | undefined;
1151
+ } | undefined;
1152
+ } | {
1153
+ id: string;
1154
+ type: "exit";
1155
+ position: {
1156
+ x: number;
1157
+ y: number;
1158
+ };
1159
+ alias?: string | undefined;
1160
+ size?: {
1161
+ width?: number | undefined;
1162
+ height?: number | undefined;
1163
+ } | undefined;
1164
+ } | {
1165
+ id: string;
1166
+ type: "comment";
1167
+ text: string;
1168
+ position: {
1169
+ x: number;
1170
+ y: number;
1171
+ };
1172
+ alias?: string | undefined;
1173
+ size?: {
1174
+ width?: number | undefined;
1175
+ height?: number | undefined;
1176
+ } | undefined;
458
1177
  })[];
459
1178
  edges: {
1179
+ id: string;
460
1180
  source: string;
461
- sourceHandle: string | typeof ERROR | null;
1181
+ sourceHandle: string | null;
462
1182
  target: string;
463
1183
  }[];
464
1184
  }, {
465
1185
  nodes: ({
466
- id: string;
467
- type: "exit";
468
- alias?: string | undefined;
469
- } | {
470
1186
  id: string;
471
1187
  type: "entry";
472
1188
  inputSchema: import("json-schema").JSONSchema7;
473
1189
  outputs: {
474
- name: string | typeof ERROR | null;
1190
+ name: string | null;
475
1191
  schema: import("json-schema").JSONSchema7 | null;
1192
+ types?: {
1193
+ input: string;
1194
+ output: string;
1195
+ } | undefined;
476
1196
  }[];
1197
+ position: {
1198
+ x: number;
1199
+ y: number;
1200
+ };
477
1201
  alias?: string | undefined;
1202
+ size?: {
1203
+ width?: number | undefined;
1204
+ height?: number | undefined;
1205
+ } | undefined;
478
1206
  } | {
479
1207
  id: string;
480
1208
  type: "service";
@@ -482,19 +1210,37 @@ export declare const treeNodesListSchema: z.ZodObject<{
482
1210
  type: "object";
483
1211
  } & import("json-schema").JSONSchema7) | {
484
1212
  type: "null";
485
- };
1213
+ } | ({
1214
+ $ref: string;
1215
+ } & import("json-schema").JSONSchema7);
486
1216
  name: string;
487
1217
  version: string;
488
1218
  configurationSchema: import("json-schema").JSONSchema7;
489
1219
  outputs: {
490
- name: string | typeof ERROR | null;
1220
+ name: string | null;
491
1221
  schema: import("json-schema").JSONSchema7 | null;
1222
+ types?: {
1223
+ input: string;
1224
+ output: string;
1225
+ } | undefined;
492
1226
  }[];
1227
+ position: {
1228
+ x: number;
1229
+ y: number;
1230
+ };
493
1231
  alias?: string | undefined;
1232
+ inputTypes?: {
1233
+ input: string;
1234
+ output: string;
1235
+ } | undefined;
494
1236
  configuration?: any;
495
1237
  ttl?: number | undefined;
496
1238
  retry?: number | undefined;
497
1239
  retryDelay?: number | undefined;
1240
+ size?: {
1241
+ width?: number | undefined;
1242
+ height?: number | undefined;
1243
+ } | undefined;
498
1244
  } | {
499
1245
  id: string;
500
1246
  type: "logic";
@@ -503,32 +1249,98 @@ export declare const treeNodesListSchema: z.ZodObject<{
503
1249
  language: "javascript" | "python" | "typescript";
504
1250
  maxExecutionTime: number;
505
1251
  outputs: {
506
- name: string | typeof ERROR | null;
1252
+ name: string | null;
507
1253
  schema: import("json-schema").JSONSchema7 | null;
1254
+ types?: {
1255
+ input: string;
1256
+ output: string;
1257
+ } | undefined;
508
1258
  }[];
1259
+ position: {
1260
+ x: number;
1261
+ y: number;
1262
+ };
509
1263
  alias?: string | undefined;
1264
+ outputNames?: string[] | undefined;
1265
+ size?: {
1266
+ width?: number | undefined;
1267
+ height?: number | undefined;
1268
+ } | undefined;
510
1269
  } | {
511
1270
  id: string;
512
1271
  type: "or";
513
1272
  outputs: {
514
- name: string | typeof ERROR | null;
1273
+ name: string | null;
515
1274
  schema: import("json-schema").JSONSchema7 | null;
1275
+ types?: {
1276
+ input: string;
1277
+ output: string;
1278
+ } | undefined;
516
1279
  }[];
1280
+ position: {
1281
+ x: number;
1282
+ y: number;
1283
+ };
517
1284
  alias?: string | undefined;
1285
+ size?: {
1286
+ width?: number | undefined;
1287
+ height?: number | undefined;
1288
+ } | undefined;
518
1289
  } | {
519
1290
  id: string;
520
1291
  type: "reference";
521
1292
  reference: string;
522
1293
  outputs: {
523
- name: string | typeof ERROR | null;
1294
+ name: string | null;
524
1295
  schema: import("json-schema").JSONSchema7 | null;
1296
+ types?: {
1297
+ input: string;
1298
+ output: string;
1299
+ } | undefined;
525
1300
  }[];
1301
+ position: {
1302
+ x: number;
1303
+ y: number;
1304
+ };
526
1305
  alias?: string | undefined;
527
- configuration?: any;
1306
+ inputTypes?: {
1307
+ input: string;
1308
+ output: string;
1309
+ } | undefined;
1310
+ size?: {
1311
+ width?: number | undefined;
1312
+ height?: number | undefined;
1313
+ } | undefined;
1314
+ } | {
1315
+ id: string;
1316
+ type: "exit";
1317
+ position: {
1318
+ x: number;
1319
+ y: number;
1320
+ };
1321
+ alias?: string | undefined;
1322
+ size?: {
1323
+ width?: number | undefined;
1324
+ height?: number | undefined;
1325
+ } | undefined;
1326
+ } | {
1327
+ id: string;
1328
+ type: "comment";
1329
+ text: string;
1330
+ position: {
1331
+ x: number;
1332
+ y: number;
1333
+ };
1334
+ alias?: string | undefined;
1335
+ size?: {
1336
+ width?: number | undefined;
1337
+ height?: number | undefined;
1338
+ } | undefined;
528
1339
  })[];
529
1340
  edges: {
1341
+ id: string;
530
1342
  source: string;
531
- sourceHandle: string | typeof ERROR | null;
1343
+ sourceHandle: string | null;
532
1344
  target: string;
533
1345
  }[];
534
1346
  allowMultipleOutputs: boolean;
@@ -548,6 +1360,7 @@ export declare const treeNodesListSchema: z.ZodObject<{
548
1360
  uploadUrl: z.ZodOptional<z.ZodString>;
549
1361
  streamUrl: z.ZodOptional<z.ZodString>;
550
1362
  referencedBy: z.ZodOptional<z.ZodObject<{
1363
+ rootTaskId: z.ZodUUID;
551
1364
  taskId: z.ZodUUID;
552
1365
  nodeId: z.ZodUUID;
553
1366
  messageId: z.ZodUUID;
@@ -559,9 +1372,21 @@ export declare const treeNodesListSchema: z.ZodObject<{
559
1372
  type: z.ZodLiteral<"entry">;
560
1373
  alias: z.ZodOptional<z.ZodString>;
561
1374
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
562
- outputs: z.ZodArray<z.ZodObject<{
563
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1375
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1376
+ name: z.ZodNullable<z.ZodString>;
564
1377
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
1378
+ types: z.ZodOptional<z.ZodObject<{
1379
+ input: z.ZodString;
1380
+ output: z.ZodString;
1381
+ }, z.core.$strip>>;
1382
+ }, z.core.$strip>>>;
1383
+ position: z.ZodDefault<z.ZodObject<{
1384
+ x: z.ZodNumber;
1385
+ y: z.ZodNumber;
1386
+ }, z.core.$strip>>;
1387
+ size: z.ZodOptional<z.ZodObject<{
1388
+ width: z.ZodOptional<z.ZodNumber>;
1389
+ height: z.ZodOptional<z.ZodNumber>;
565
1390
  }, z.core.$strip>>;
566
1391
  }, z.core.$strict>, z.ZodObject<{
567
1392
  id: z.ZodDefault<z.ZodUUID>;
@@ -571,7 +1396,13 @@ export declare const treeNodesListSchema: z.ZodObject<{
571
1396
  type: z.ZodLiteral<"object">;
572
1397
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
573
1398
  type: z.ZodLiteral<"null">;
574
- }, z.core.$strip>]>>;
1399
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1400
+ $ref: z.ZodString;
1401
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
1402
+ inputTypes: z.ZodOptional<z.ZodObject<{
1403
+ input: z.ZodString;
1404
+ output: z.ZodString;
1405
+ }, z.core.$strip>>;
575
1406
  name: z.ZodString;
576
1407
  version: z.ZodString;
577
1408
  configuration: z.ZodOptional<z.ZodAny>;
@@ -579,9 +1410,21 @@ export declare const treeNodesListSchema: z.ZodObject<{
579
1410
  ttl: z.ZodOptional<z.ZodNumber>;
580
1411
  retry: z.ZodOptional<z.ZodNumber>;
581
1412
  retryDelay: z.ZodOptional<z.ZodNumber>;
582
- outputs: z.ZodArray<z.ZodObject<{
583
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1413
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1414
+ name: z.ZodNullable<z.ZodString>;
584
1415
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
1416
+ types: z.ZodOptional<z.ZodObject<{
1417
+ input: z.ZodString;
1418
+ output: z.ZodString;
1419
+ }, z.core.$strip>>;
1420
+ }, z.core.$strip>>>;
1421
+ position: z.ZodDefault<z.ZodObject<{
1422
+ x: z.ZodNumber;
1423
+ y: z.ZodNumber;
1424
+ }, z.core.$strip>>;
1425
+ size: z.ZodOptional<z.ZodObject<{
1426
+ width: z.ZodOptional<z.ZodNumber>;
1427
+ height: z.ZodOptional<z.ZodNumber>;
585
1428
  }, z.core.$strip>>;
586
1429
  }, z.core.$strict>, z.ZodObject<{
587
1430
  id: z.ZodDefault<z.ZodUUID>;
@@ -594,43 +1437,106 @@ export declare const treeNodesListSchema: z.ZodObject<{
594
1437
  python: "python";
595
1438
  typescript: "typescript";
596
1439
  }>>;
1440
+ outputNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
597
1441
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
598
- outputs: z.ZodArray<z.ZodObject<{
599
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1442
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1443
+ name: z.ZodNullable<z.ZodString>;
600
1444
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
1445
+ types: z.ZodOptional<z.ZodObject<{
1446
+ input: z.ZodString;
1447
+ output: z.ZodString;
1448
+ }, z.core.$strip>>;
1449
+ }, z.core.$strip>>>;
1450
+ position: z.ZodDefault<z.ZodObject<{
1451
+ x: z.ZodNumber;
1452
+ y: z.ZodNumber;
1453
+ }, z.core.$strip>>;
1454
+ size: z.ZodOptional<z.ZodObject<{
1455
+ width: z.ZodOptional<z.ZodNumber>;
1456
+ height: z.ZodOptional<z.ZodNumber>;
601
1457
  }, z.core.$strip>>;
602
1458
  }, z.core.$strict>, z.ZodObject<{
603
1459
  id: z.ZodDefault<z.ZodUUID>;
604
1460
  type: z.ZodLiteral<"or">;
605
1461
  alias: z.ZodOptional<z.ZodString>;
606
- outputs: z.ZodArray<z.ZodObject<{
607
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1462
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1463
+ name: z.ZodNullable<z.ZodString>;
608
1464
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
1465
+ types: z.ZodOptional<z.ZodObject<{
1466
+ input: z.ZodString;
1467
+ output: z.ZodString;
1468
+ }, z.core.$strip>>;
1469
+ }, z.core.$strip>>>;
1470
+ position: z.ZodDefault<z.ZodObject<{
1471
+ x: z.ZodNumber;
1472
+ y: z.ZodNumber;
1473
+ }, z.core.$strip>>;
1474
+ size: z.ZodOptional<z.ZodObject<{
1475
+ width: z.ZodOptional<z.ZodNumber>;
1476
+ height: z.ZodOptional<z.ZodNumber>;
609
1477
  }, z.core.$strip>>;
610
1478
  }, z.core.$strict>, z.ZodObject<{
611
1479
  id: z.ZodDefault<z.ZodUUID>;
612
1480
  type: z.ZodLiteral<"reference">;
613
1481
  alias: z.ZodOptional<z.ZodString>;
614
1482
  reference: z.ZodString;
615
- configuration: z.ZodOptional<z.ZodAny>;
616
- outputs: z.ZodArray<z.ZodObject<{
617
- name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1483
+ inputTypes: z.ZodOptional<z.ZodObject<{
1484
+ input: z.ZodString;
1485
+ output: z.ZodString;
1486
+ }, z.core.$strip>>;
1487
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1488
+ name: z.ZodNullable<z.ZodString>;
618
1489
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
1490
+ types: z.ZodOptional<z.ZodObject<{
1491
+ input: z.ZodString;
1492
+ output: z.ZodString;
1493
+ }, z.core.$strip>>;
1494
+ }, z.core.$strip>>>;
1495
+ position: z.ZodDefault<z.ZodObject<{
1496
+ x: z.ZodNumber;
1497
+ y: z.ZodNumber;
1498
+ }, z.core.$strip>>;
1499
+ size: z.ZodOptional<z.ZodObject<{
1500
+ width: z.ZodOptional<z.ZodNumber>;
1501
+ height: z.ZodOptional<z.ZodNumber>;
619
1502
  }, z.core.$strip>>;
620
1503
  }, z.core.$strict>, z.ZodObject<{
621
1504
  id: z.ZodDefault<z.ZodUUID>;
622
1505
  type: z.ZodLiteral<"exit">;
623
1506
  alias: z.ZodOptional<z.ZodString>;
624
- }, z.core.$strict>]>>;
1507
+ position: z.ZodDefault<z.ZodObject<{
1508
+ x: z.ZodNumber;
1509
+ y: z.ZodNumber;
1510
+ }, z.core.$strip>>;
1511
+ size: z.ZodOptional<z.ZodObject<{
1512
+ width: z.ZodOptional<z.ZodNumber>;
1513
+ height: z.ZodOptional<z.ZodNumber>;
1514
+ }, z.core.$strip>>;
1515
+ }, z.core.$strict>, z.ZodObject<{
1516
+ id: z.ZodDefault<z.ZodUUID>;
1517
+ type: z.ZodLiteral<"comment">;
1518
+ text: z.ZodDefault<z.ZodString>;
1519
+ alias: z.ZodOptional<z.ZodString>;
1520
+ position: z.ZodDefault<z.ZodObject<{
1521
+ x: z.ZodNumber;
1522
+ y: z.ZodNumber;
1523
+ }, z.core.$strip>>;
1524
+ size: z.ZodOptional<z.ZodObject<{
1525
+ width: z.ZodOptional<z.ZodNumber>;
1526
+ height: z.ZodOptional<z.ZodNumber>;
1527
+ }, z.core.$strip>>;
1528
+ }, z.core.$strip>]>>;
625
1529
  edges: z.ZodArray<z.ZodObject<{
1530
+ id: z.ZodUUID;
626
1531
  source: z.ZodUUID;
627
- sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
1532
+ sourceHandle: z.ZodNullable<z.ZodString>;
628
1533
  target: z.ZodUUID;
629
1534
  }, z.core.$strip>>;
630
1535
  }, z.core.$strip>;
631
1536
  references: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
632
1537
  }, z.core.$strip>>>;
1538
+ schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
633
1539
  }, z.core.$strip>;
634
- export type TreeList = z.infer<typeof treeNodesListSchema>;
635
- export type InputTreeList = z.input<typeof treeNodesListSchema>;
1540
+ export type TreeList = z.output<typeof treeListSchema>;
1541
+ export type InputTreeList = z.input<typeof treeListSchema>;
636
1542
  //# sourceMappingURL=treeNodes.d.ts.map