@requence/service 1.0.0-alpha.3 → 1.0.0-alpha.30

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 (92) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
  3. package/build/chunk-6w7td62p.js.map +10 -0
  4. package/build/cli.js +14 -9
  5. package/build/cli.js.map +3 -3
  6. package/build/index.js +801 -792
  7. package/build/index.js.map +17 -16
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +10 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +12 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +29 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +12 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +441 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +420 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +5 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  45. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts +17 -0
  47. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +354 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  55. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  58. package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  59. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  61. package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
  62. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  64. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  65. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  66. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  68. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  70. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/types.d.ts +4 -0
  72. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  73. package/build/types/service/src/createAmqpConnection.d.ts +19 -20
  74. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  75. package/build/types/service/src/helpers.d.ts +56 -100
  76. package/build/types/service/src/helpers.d.ts.map +1 -1
  77. package/build/types/service/src/index.d.ts +8 -5
  78. package/build/types/service/src/index.d.ts.map +1 -1
  79. package/build/types/service/src/macro.d.ts +2 -0
  80. package/build/types/service/src/macro.d.ts.map +1 -0
  81. package/build/types/service/src/mapInput.d.ts +2 -0
  82. package/build/types/service/src/mapInput.d.ts.map +1 -0
  83. package/package.json +7 -8
  84. package/build/chunk-0x9092n4.js.map +0 -12
  85. package/build/types/helpers/src/clone.d.ts +0 -3
  86. package/build/types/helpers/src/clone.d.ts.map +0 -1
  87. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  88. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  89. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  90. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  91. package/build/types/helpers/src/utils.d.ts.map +0 -1
  92. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,606 @@
1
+ import { z } from 'zod/v4';
2
+ import { ERROR } from './nodeType.ts';
3
+ export declare const treeNodesSchema: z.ZodPipe<z.ZodObject<{
4
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ id: z.ZodDefault<z.ZodUUID>;
6
+ type: z.ZodLiteral<"entry">;
7
+ alias: z.ZodOptional<z.ZodString>;
8
+ 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>]>>;
11
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ id: z.ZodDefault<z.ZodUUID>;
15
+ type: z.ZodLiteral<"service">;
16
+ alias: z.ZodOptional<z.ZodString>;
17
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
18
+ type: z.ZodLiteral<"object">;
19
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
20
+ type: z.ZodLiteral<"null">;
21
+ }, z.core.$strip>]>>;
22
+ name: z.ZodString;
23
+ version: z.ZodString;
24
+ configuration: z.ZodOptional<z.ZodAny>;
25
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
26
+ ttl: z.ZodOptional<z.ZodNumber>;
27
+ retry: z.ZodOptional<z.ZodNumber>;
28
+ 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>]>>;
31
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ id: z.ZodDefault<z.ZodUUID>;
35
+ type: z.ZodLiteral<"logic">;
36
+ alias: z.ZodOptional<z.ZodString>;
37
+ script: z.ZodString;
38
+ concurrency: z.ZodDefault<z.ZodBoolean>;
39
+ language: z.ZodDefault<z.ZodEnum<{
40
+ javascript: "javascript";
41
+ python: "python";
42
+ typescript: "typescript";
43
+ }>>;
44
+ 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>]>>;
47
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ id: z.ZodDefault<z.ZodUUID>;
51
+ type: z.ZodLiteral<"or">;
52
+ 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>]>>;
55
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ id: z.ZodDefault<z.ZodUUID>;
59
+ type: z.ZodLiteral<"reference">;
60
+ alias: z.ZodOptional<z.ZodString>;
61
+ reference: z.ZodString;
62
+ 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>]>>;
65
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ id: z.ZodDefault<z.ZodUUID>;
69
+ type: z.ZodLiteral<"exit">;
70
+ alias: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strict>]>>;
72
+ edges: z.ZodArray<z.ZodObject<{
73
+ source: z.ZodUUID;
74
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
75
+ target: z.ZodUUID;
76
+ }, z.core.$strip>>;
77
+ allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
78
+ }, z.core.$strict>, z.ZodTransform<{
79
+ nodes: ({
80
+ id: string;
81
+ type: "exit";
82
+ alias?: string | undefined;
83
+ } | {
84
+ id: string;
85
+ type: "entry";
86
+ inputSchema: import("json-schema").JSONSchema7;
87
+ outputs: {
88
+ name: string | typeof ERROR | null;
89
+ schema: import("json-schema").JSONSchema7 | null;
90
+ }[];
91
+ alias?: string | undefined;
92
+ } | {
93
+ id: string;
94
+ type: "service";
95
+ inputSchema: ({
96
+ type: "object";
97
+ } & import("json-schema").JSONSchema7) | {
98
+ type: "null";
99
+ };
100
+ name: string;
101
+ version: string;
102
+ configurationSchema: import("json-schema").JSONSchema7;
103
+ outputs: {
104
+ name: string | typeof ERROR | null;
105
+ schema: import("json-schema").JSONSchema7 | null;
106
+ }[];
107
+ alias?: string | undefined;
108
+ configuration?: any;
109
+ ttl?: number | undefined;
110
+ retry?: number | undefined;
111
+ retryDelay?: number | undefined;
112
+ } | {
113
+ id: string;
114
+ type: "logic";
115
+ script: string;
116
+ concurrency: boolean;
117
+ language: "javascript" | "python" | "typescript";
118
+ maxExecutionTime: number;
119
+ outputs: {
120
+ name: string | typeof ERROR | null;
121
+ schema: import("json-schema").JSONSchema7 | null;
122
+ }[];
123
+ alias?: string | undefined;
124
+ } | {
125
+ id: string;
126
+ type: "or";
127
+ outputs: {
128
+ name: string | typeof ERROR | null;
129
+ schema: import("json-schema").JSONSchema7 | null;
130
+ }[];
131
+ alias?: string | undefined;
132
+ } | {
133
+ id: string;
134
+ type: "reference";
135
+ reference: string;
136
+ outputs: {
137
+ name: string | typeof ERROR | null;
138
+ schema: import("json-schema").JSONSchema7 | null;
139
+ }[];
140
+ alias?: string | undefined;
141
+ configuration?: any;
142
+ })[];
143
+ edges: {
144
+ source: string;
145
+ sourceHandle: string | typeof ERROR | null;
146
+ target: string;
147
+ }[];
148
+ }, {
149
+ nodes: ({
150
+ id: string;
151
+ type: "exit";
152
+ alias?: string | undefined;
153
+ } | {
154
+ id: string;
155
+ type: "entry";
156
+ inputSchema: import("json-schema").JSONSchema7;
157
+ outputs: {
158
+ name: string | typeof ERROR | null;
159
+ schema: import("json-schema").JSONSchema7 | null;
160
+ }[];
161
+ alias?: string | undefined;
162
+ } | {
163
+ id: string;
164
+ type: "service";
165
+ inputSchema: ({
166
+ type: "object";
167
+ } & import("json-schema").JSONSchema7) | {
168
+ type: "null";
169
+ };
170
+ name: string;
171
+ version: string;
172
+ configurationSchema: import("json-schema").JSONSchema7;
173
+ outputs: {
174
+ name: string | typeof ERROR | null;
175
+ schema: import("json-schema").JSONSchema7 | null;
176
+ }[];
177
+ alias?: string | undefined;
178
+ configuration?: any;
179
+ ttl?: number | undefined;
180
+ retry?: number | undefined;
181
+ retryDelay?: number | undefined;
182
+ } | {
183
+ id: string;
184
+ type: "logic";
185
+ script: string;
186
+ concurrency: boolean;
187
+ language: "javascript" | "python" | "typescript";
188
+ maxExecutionTime: number;
189
+ outputs: {
190
+ name: string | typeof ERROR | null;
191
+ schema: import("json-schema").JSONSchema7 | null;
192
+ }[];
193
+ alias?: string | undefined;
194
+ } | {
195
+ id: string;
196
+ type: "or";
197
+ outputs: {
198
+ name: string | typeof ERROR | null;
199
+ schema: import("json-schema").JSONSchema7 | null;
200
+ }[];
201
+ alias?: string | undefined;
202
+ } | {
203
+ id: string;
204
+ type: "reference";
205
+ reference: string;
206
+ outputs: {
207
+ name: string | typeof ERROR | null;
208
+ schema: import("json-schema").JSONSchema7 | null;
209
+ }[];
210
+ alias?: string | undefined;
211
+ configuration?: any;
212
+ })[];
213
+ edges: {
214
+ source: string;
215
+ sourceHandle: string | typeof ERROR | null;
216
+ target: string;
217
+ }[];
218
+ allowMultipleOutputs: boolean;
219
+ }>>;
220
+ export declare const treeReferenceSchema: z.ZodObject<{
221
+ id: z.ZodString;
222
+ options: z.ZodObject<{
223
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
224
+ }, z.core.$strip>;
225
+ tree: z.ZodObject<{
226
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ id: z.ZodDefault<z.ZodUUID>;
228
+ type: z.ZodLiteral<"entry">;
229
+ alias: z.ZodOptional<z.ZodString>;
230
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
231
+ outputs: z.ZodArray<z.ZodObject<{
232
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
233
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ id: z.ZodDefault<z.ZodUUID>;
237
+ type: z.ZodLiteral<"service">;
238
+ alias: z.ZodOptional<z.ZodString>;
239
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
240
+ type: z.ZodLiteral<"object">;
241
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
242
+ type: z.ZodLiteral<"null">;
243
+ }, z.core.$strip>]>>;
244
+ name: z.ZodString;
245
+ version: z.ZodString;
246
+ configuration: z.ZodOptional<z.ZodAny>;
247
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
248
+ ttl: z.ZodOptional<z.ZodNumber>;
249
+ retry: z.ZodOptional<z.ZodNumber>;
250
+ retryDelay: z.ZodOptional<z.ZodNumber>;
251
+ outputs: z.ZodArray<z.ZodObject<{
252
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
253
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ id: z.ZodDefault<z.ZodUUID>;
257
+ type: z.ZodLiteral<"logic">;
258
+ alias: z.ZodOptional<z.ZodString>;
259
+ script: z.ZodString;
260
+ concurrency: z.ZodDefault<z.ZodBoolean>;
261
+ language: z.ZodDefault<z.ZodEnum<{
262
+ javascript: "javascript";
263
+ python: "python";
264
+ typescript: "typescript";
265
+ }>>;
266
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
267
+ outputs: z.ZodArray<z.ZodObject<{
268
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
269
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
270
+ }, z.core.$strip>>;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ id: z.ZodDefault<z.ZodUUID>;
273
+ type: z.ZodLiteral<"or">;
274
+ alias: z.ZodOptional<z.ZodString>;
275
+ outputs: z.ZodArray<z.ZodObject<{
276
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
277
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
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
+ configuration: z.ZodOptional<z.ZodAny>;
285
+ outputs: z.ZodArray<z.ZodObject<{
286
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
287
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
288
+ }, z.core.$strip>>;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ id: z.ZodDefault<z.ZodUUID>;
291
+ type: z.ZodLiteral<"exit">;
292
+ alias: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strict>]>>;
294
+ edges: z.ZodArray<z.ZodObject<{
295
+ source: z.ZodUUID;
296
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
297
+ target: z.ZodUUID;
298
+ }, z.core.$strip>>;
299
+ }, z.core.$strip>;
300
+ references: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>>;
301
+ }, z.core.$strip>;
302
+ export type TreeReference = z.infer<typeof treeReferenceSchema>;
303
+ export declare const treeNodesListSchema: z.ZodObject<{
304
+ tree: z.ZodPipe<z.ZodObject<{
305
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
306
+ id: z.ZodDefault<z.ZodUUID>;
307
+ type: z.ZodLiteral<"entry">;
308
+ alias: z.ZodOptional<z.ZodString>;
309
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
310
+ outputs: z.ZodArray<z.ZodObject<{
311
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
312
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ id: z.ZodDefault<z.ZodUUID>;
316
+ type: z.ZodLiteral<"service">;
317
+ alias: z.ZodOptional<z.ZodString>;
318
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
319
+ type: z.ZodLiteral<"object">;
320
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
321
+ type: z.ZodLiteral<"null">;
322
+ }, z.core.$strip>]>>;
323
+ name: z.ZodString;
324
+ version: z.ZodString;
325
+ configuration: z.ZodOptional<z.ZodAny>;
326
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
327
+ ttl: z.ZodOptional<z.ZodNumber>;
328
+ retry: z.ZodOptional<z.ZodNumber>;
329
+ retryDelay: z.ZodOptional<z.ZodNumber>;
330
+ outputs: z.ZodArray<z.ZodObject<{
331
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
332
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strict>, z.ZodObject<{
335
+ id: z.ZodDefault<z.ZodUUID>;
336
+ type: z.ZodLiteral<"logic">;
337
+ alias: z.ZodOptional<z.ZodString>;
338
+ script: z.ZodString;
339
+ concurrency: z.ZodDefault<z.ZodBoolean>;
340
+ language: z.ZodDefault<z.ZodEnum<{
341
+ javascript: "javascript";
342
+ python: "python";
343
+ typescript: "typescript";
344
+ }>>;
345
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
346
+ outputs: z.ZodArray<z.ZodObject<{
347
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
348
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
349
+ }, z.core.$strip>>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ id: z.ZodDefault<z.ZodUUID>;
352
+ type: z.ZodLiteral<"or">;
353
+ alias: z.ZodOptional<z.ZodString>;
354
+ outputs: z.ZodArray<z.ZodObject<{
355
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
356
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
357
+ }, z.core.$strip>>;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ id: z.ZodDefault<z.ZodUUID>;
360
+ type: z.ZodLiteral<"reference">;
361
+ alias: z.ZodOptional<z.ZodString>;
362
+ reference: z.ZodString;
363
+ configuration: z.ZodOptional<z.ZodAny>;
364
+ outputs: z.ZodArray<z.ZodObject<{
365
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
366
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
367
+ }, z.core.$strip>>;
368
+ }, z.core.$strict>, z.ZodObject<{
369
+ id: z.ZodDefault<z.ZodUUID>;
370
+ type: z.ZodLiteral<"exit">;
371
+ alias: z.ZodOptional<z.ZodString>;
372
+ }, z.core.$strict>]>>;
373
+ edges: z.ZodArray<z.ZodObject<{
374
+ source: z.ZodUUID;
375
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
376
+ target: z.ZodUUID;
377
+ }, z.core.$strip>>;
378
+ allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
379
+ }, z.core.$strict>, z.ZodTransform<{
380
+ nodes: ({
381
+ id: string;
382
+ type: "exit";
383
+ alias?: string | undefined;
384
+ } | {
385
+ id: string;
386
+ type: "entry";
387
+ inputSchema: import("json-schema").JSONSchema7;
388
+ outputs: {
389
+ name: string | typeof ERROR | null;
390
+ schema: import("json-schema").JSONSchema7 | null;
391
+ }[];
392
+ alias?: string | undefined;
393
+ } | {
394
+ id: string;
395
+ type: "service";
396
+ inputSchema: ({
397
+ type: "object";
398
+ } & import("json-schema").JSONSchema7) | {
399
+ type: "null";
400
+ };
401
+ name: string;
402
+ version: string;
403
+ configurationSchema: import("json-schema").JSONSchema7;
404
+ outputs: {
405
+ name: string | typeof ERROR | null;
406
+ schema: import("json-schema").JSONSchema7 | null;
407
+ }[];
408
+ alias?: string | undefined;
409
+ configuration?: any;
410
+ ttl?: number | undefined;
411
+ retry?: number | undefined;
412
+ retryDelay?: number | undefined;
413
+ } | {
414
+ id: string;
415
+ type: "logic";
416
+ script: string;
417
+ concurrency: boolean;
418
+ language: "javascript" | "python" | "typescript";
419
+ maxExecutionTime: number;
420
+ outputs: {
421
+ name: string | typeof ERROR | null;
422
+ schema: import("json-schema").JSONSchema7 | null;
423
+ }[];
424
+ alias?: string | undefined;
425
+ } | {
426
+ id: string;
427
+ type: "or";
428
+ outputs: {
429
+ name: string | typeof ERROR | null;
430
+ schema: import("json-schema").JSONSchema7 | null;
431
+ }[];
432
+ alias?: string | undefined;
433
+ } | {
434
+ id: string;
435
+ type: "reference";
436
+ reference: string;
437
+ outputs: {
438
+ name: string | typeof ERROR | null;
439
+ schema: import("json-schema").JSONSchema7 | null;
440
+ }[];
441
+ alias?: string | undefined;
442
+ configuration?: any;
443
+ })[];
444
+ edges: {
445
+ source: string;
446
+ sourceHandle: string | typeof ERROR | null;
447
+ target: string;
448
+ }[];
449
+ }, {
450
+ nodes: ({
451
+ id: string;
452
+ type: "exit";
453
+ alias?: string | undefined;
454
+ } | {
455
+ id: string;
456
+ type: "entry";
457
+ inputSchema: import("json-schema").JSONSchema7;
458
+ outputs: {
459
+ name: string | typeof ERROR | null;
460
+ schema: import("json-schema").JSONSchema7 | null;
461
+ }[];
462
+ alias?: string | undefined;
463
+ } | {
464
+ id: string;
465
+ type: "service";
466
+ inputSchema: ({
467
+ type: "object";
468
+ } & import("json-schema").JSONSchema7) | {
469
+ type: "null";
470
+ };
471
+ name: string;
472
+ version: string;
473
+ configurationSchema: import("json-schema").JSONSchema7;
474
+ outputs: {
475
+ name: string | typeof ERROR | null;
476
+ schema: import("json-schema").JSONSchema7 | null;
477
+ }[];
478
+ alias?: string | undefined;
479
+ configuration?: any;
480
+ ttl?: number | undefined;
481
+ retry?: number | undefined;
482
+ retryDelay?: number | undefined;
483
+ } | {
484
+ id: string;
485
+ type: "logic";
486
+ script: string;
487
+ concurrency: boolean;
488
+ language: "javascript" | "python" | "typescript";
489
+ maxExecutionTime: number;
490
+ outputs: {
491
+ name: string | typeof ERROR | null;
492
+ schema: import("json-schema").JSONSchema7 | null;
493
+ }[];
494
+ alias?: string | undefined;
495
+ } | {
496
+ id: string;
497
+ type: "or";
498
+ outputs: {
499
+ name: string | typeof ERROR | null;
500
+ schema: import("json-schema").JSONSchema7 | null;
501
+ }[];
502
+ alias?: string | undefined;
503
+ } | {
504
+ id: string;
505
+ type: "reference";
506
+ reference: string;
507
+ outputs: {
508
+ name: string | typeof ERROR | null;
509
+ schema: import("json-schema").JSONSchema7 | null;
510
+ }[];
511
+ alias?: string | undefined;
512
+ configuration?: any;
513
+ })[];
514
+ edges: {
515
+ source: string;
516
+ sourceHandle: string | typeof ERROR | null;
517
+ target: string;
518
+ }[];
519
+ allowMultipleOutputs: boolean;
520
+ }>>;
521
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ options: z.ZodObject<{
524
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
525
+ }, z.core.$strip>;
526
+ tree: z.ZodObject<{
527
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
528
+ id: z.ZodDefault<z.ZodUUID>;
529
+ type: z.ZodLiteral<"entry">;
530
+ alias: z.ZodOptional<z.ZodString>;
531
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
532
+ outputs: z.ZodArray<z.ZodObject<{
533
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
534
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
535
+ }, z.core.$strip>>;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ id: z.ZodDefault<z.ZodUUID>;
538
+ type: z.ZodLiteral<"service">;
539
+ alias: z.ZodOptional<z.ZodString>;
540
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
541
+ type: z.ZodLiteral<"object">;
542
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
543
+ type: z.ZodLiteral<"null">;
544
+ }, z.core.$strip>]>>;
545
+ name: z.ZodString;
546
+ version: z.ZodString;
547
+ configuration: z.ZodOptional<z.ZodAny>;
548
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
549
+ ttl: z.ZodOptional<z.ZodNumber>;
550
+ retry: z.ZodOptional<z.ZodNumber>;
551
+ retryDelay: z.ZodOptional<z.ZodNumber>;
552
+ outputs: z.ZodArray<z.ZodObject<{
553
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
554
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
555
+ }, z.core.$strip>>;
556
+ }, z.core.$strict>, z.ZodObject<{
557
+ id: z.ZodDefault<z.ZodUUID>;
558
+ type: z.ZodLiteral<"logic">;
559
+ alias: z.ZodOptional<z.ZodString>;
560
+ script: z.ZodString;
561
+ concurrency: z.ZodDefault<z.ZodBoolean>;
562
+ language: z.ZodDefault<z.ZodEnum<{
563
+ javascript: "javascript";
564
+ python: "python";
565
+ typescript: "typescript";
566
+ }>>;
567
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
568
+ outputs: z.ZodArray<z.ZodObject<{
569
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
570
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
571
+ }, z.core.$strip>>;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ id: z.ZodDefault<z.ZodUUID>;
574
+ type: z.ZodLiteral<"or">;
575
+ alias: z.ZodOptional<z.ZodString>;
576
+ outputs: z.ZodArray<z.ZodObject<{
577
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
578
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
579
+ }, z.core.$strip>>;
580
+ }, z.core.$strict>, z.ZodObject<{
581
+ id: z.ZodDefault<z.ZodUUID>;
582
+ type: z.ZodLiteral<"reference">;
583
+ alias: z.ZodOptional<z.ZodString>;
584
+ reference: z.ZodString;
585
+ configuration: z.ZodOptional<z.ZodAny>;
586
+ outputs: z.ZodArray<z.ZodObject<{
587
+ name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
588
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
589
+ }, z.core.$strip>>;
590
+ }, z.core.$strict>, z.ZodObject<{
591
+ id: z.ZodDefault<z.ZodUUID>;
592
+ type: z.ZodLiteral<"exit">;
593
+ alias: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strict>]>>;
595
+ edges: z.ZodArray<z.ZodObject<{
596
+ source: z.ZodUUID;
597
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
598
+ target: z.ZodUUID;
599
+ }, z.core.$strip>>;
600
+ }, z.core.$strip>;
601
+ references: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>>;
602
+ }, z.core.$strip>>>;
603
+ }, z.core.$strip>;
604
+ export type TreeList = z.infer<typeof treeNodesListSchema>;
605
+ export type InputTreeList = z.input<typeof treeNodesListSchema>;
606
+ //# sourceMappingURL=treeNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAI1B,OAAO,EAAE,KAAK,EAAkC,MAAM,eAAe,CAAA;AAGrE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8IzB,CAAA;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB5B,CAAA;AAEJ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}