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

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 (94) hide show
  1. package/CHANGELOG.md +216 -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 +19 -12
  5. package/build/cli.js.map +3 -3
  6. package/build/index.js +930 -863
  7. package/build/index.js.map +18 -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 +447 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +471 -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 +22 -0
  47. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +636 -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 +72 -99
  76. package/build/types/service/src/helpers.d.ts.map +1 -1
  77. package/build/types/service/src/index.d.ts +8 -4
  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/build/types/service/src/utils.d.ts +6 -0
  84. package/build/types/service/src/utils.d.ts.map +1 -0
  85. package/package.json +7 -8
  86. package/build/chunk-0x9092n4.js.map +0 -12
  87. package/build/types/helpers/src/clone.d.ts +0 -3
  88. package/build/types/helpers/src/clone.d.ts.map +0 -1
  89. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  90. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  91. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  92. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  93. package/build/types/helpers/src/utils.d.ts.map +0 -1
  94. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,636 @@
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
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
225
+ "mcp-tool": "mcp-tool";
226
+ }>>>;
227
+ mode: z.ZodDefault<z.ZodEnum<{
228
+ linear: "linear";
229
+ continuous: "continuous";
230
+ }>>;
231
+ priority: z.ZodDefault<z.ZodInt>;
232
+ uploadUrl: z.ZodOptional<z.ZodString>;
233
+ streamUrl: z.ZodOptional<z.ZodString>;
234
+ referencedBy: z.ZodOptional<z.ZodObject<{
235
+ taskId: z.ZodUUID;
236
+ nodeId: z.ZodUUID;
237
+ messageId: z.ZodUUID;
238
+ }, z.core.$strip>>;
239
+ }, z.core.$strip>;
240
+ tree: z.ZodObject<{
241
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ id: z.ZodDefault<z.ZodUUID>;
243
+ type: z.ZodLiteral<"entry">;
244
+ alias: z.ZodOptional<z.ZodString>;
245
+ 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>]>>;
248
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
249
+ }, z.core.$strip>>;
250
+ }, z.core.$strict>, z.ZodObject<{
251
+ id: z.ZodDefault<z.ZodUUID>;
252
+ type: z.ZodLiteral<"service">;
253
+ alias: z.ZodOptional<z.ZodString>;
254
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
255
+ type: z.ZodLiteral<"object">;
256
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
257
+ type: z.ZodLiteral<"null">;
258
+ }, z.core.$strip>]>>;
259
+ name: z.ZodString;
260
+ version: z.ZodString;
261
+ configuration: z.ZodOptional<z.ZodAny>;
262
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
263
+ ttl: z.ZodOptional<z.ZodNumber>;
264
+ retry: z.ZodOptional<z.ZodNumber>;
265
+ 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>]>>;
268
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
269
+ }, z.core.$strip>>;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ id: z.ZodDefault<z.ZodUUID>;
272
+ type: z.ZodLiteral<"logic">;
273
+ alias: z.ZodOptional<z.ZodString>;
274
+ script: z.ZodString;
275
+ concurrency: z.ZodDefault<z.ZodBoolean>;
276
+ language: z.ZodDefault<z.ZodEnum<{
277
+ javascript: "javascript";
278
+ python: "python";
279
+ typescript: "typescript";
280
+ }>>;
281
+ 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>]>>;
284
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
285
+ }, z.core.$strip>>;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ id: z.ZodDefault<z.ZodUUID>;
288
+ type: z.ZodLiteral<"or">;
289
+ 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>]>>;
292
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$strict>, z.ZodObject<{
295
+ id: z.ZodDefault<z.ZodUUID>;
296
+ type: z.ZodLiteral<"reference">;
297
+ alias: z.ZodOptional<z.ZodString>;
298
+ 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>]>>;
302
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ id: z.ZodDefault<z.ZodUUID>;
306
+ type: z.ZodLiteral<"exit">;
307
+ alias: z.ZodOptional<z.ZodString>;
308
+ }, z.core.$strict>]>>;
309
+ edges: z.ZodArray<z.ZodObject<{
310
+ source: z.ZodUUID;
311
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
312
+ target: z.ZodUUID;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strip>;
315
+ references: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
316
+ }, z.core.$strip>;
317
+ export type TreeReference = z.infer<typeof treeReferenceSchema>;
318
+ export declare const treeNodesListSchema: z.ZodObject<{
319
+ tree: z.ZodPipe<z.ZodObject<{
320
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
321
+ id: z.ZodDefault<z.ZodUUID>;
322
+ type: z.ZodLiteral<"entry">;
323
+ alias: z.ZodOptional<z.ZodString>;
324
+ 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>]>>;
327
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
328
+ }, z.core.$strip>>;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ id: z.ZodDefault<z.ZodUUID>;
331
+ type: z.ZodLiteral<"service">;
332
+ alias: z.ZodOptional<z.ZodString>;
333
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
334
+ type: z.ZodLiteral<"object">;
335
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
336
+ type: z.ZodLiteral<"null">;
337
+ }, z.core.$strip>]>>;
338
+ name: z.ZodString;
339
+ version: z.ZodString;
340
+ configuration: z.ZodOptional<z.ZodAny>;
341
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
342
+ ttl: z.ZodOptional<z.ZodNumber>;
343
+ retry: z.ZodOptional<z.ZodNumber>;
344
+ 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>]>>;
347
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$strict>, z.ZodObject<{
350
+ id: z.ZodDefault<z.ZodUUID>;
351
+ type: z.ZodLiteral<"logic">;
352
+ alias: z.ZodOptional<z.ZodString>;
353
+ script: z.ZodString;
354
+ concurrency: z.ZodDefault<z.ZodBoolean>;
355
+ language: z.ZodDefault<z.ZodEnum<{
356
+ javascript: "javascript";
357
+ python: "python";
358
+ typescript: "typescript";
359
+ }>>;
360
+ 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>]>>;
363
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
364
+ }, z.core.$strip>>;
365
+ }, z.core.$strict>, z.ZodObject<{
366
+ id: z.ZodDefault<z.ZodUUID>;
367
+ type: z.ZodLiteral<"or">;
368
+ 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>]>>;
371
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
372
+ }, z.core.$strip>>;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ id: z.ZodDefault<z.ZodUUID>;
375
+ type: z.ZodLiteral<"reference">;
376
+ alias: z.ZodOptional<z.ZodString>;
377
+ 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>]>>;
381
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
382
+ }, z.core.$strip>>;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ id: z.ZodDefault<z.ZodUUID>;
385
+ type: z.ZodLiteral<"exit">;
386
+ alias: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strict>]>>;
388
+ edges: z.ZodArray<z.ZodObject<{
389
+ source: z.ZodUUID;
390
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
391
+ target: z.ZodUUID;
392
+ }, z.core.$strip>>;
393
+ allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
394
+ }, z.core.$strict>, z.ZodTransform<{
395
+ nodes: ({
396
+ id: string;
397
+ type: "exit";
398
+ alias?: string | undefined;
399
+ } | {
400
+ id: string;
401
+ type: "entry";
402
+ inputSchema: import("json-schema").JSONSchema7;
403
+ outputs: {
404
+ name: string | typeof ERROR | null;
405
+ schema: import("json-schema").JSONSchema7 | null;
406
+ }[];
407
+ alias?: string | undefined;
408
+ } | {
409
+ id: string;
410
+ type: "service";
411
+ inputSchema: ({
412
+ type: "object";
413
+ } & import("json-schema").JSONSchema7) | {
414
+ type: "null";
415
+ };
416
+ name: string;
417
+ version: string;
418
+ configurationSchema: import("json-schema").JSONSchema7;
419
+ outputs: {
420
+ name: string | typeof ERROR | null;
421
+ schema: import("json-schema").JSONSchema7 | null;
422
+ }[];
423
+ alias?: string | undefined;
424
+ configuration?: any;
425
+ ttl?: number | undefined;
426
+ retry?: number | undefined;
427
+ retryDelay?: number | undefined;
428
+ } | {
429
+ id: string;
430
+ type: "logic";
431
+ script: string;
432
+ concurrency: boolean;
433
+ language: "javascript" | "python" | "typescript";
434
+ maxExecutionTime: number;
435
+ outputs: {
436
+ name: string | typeof ERROR | null;
437
+ schema: import("json-schema").JSONSchema7 | null;
438
+ }[];
439
+ alias?: string | undefined;
440
+ } | {
441
+ id: string;
442
+ type: "or";
443
+ outputs: {
444
+ name: string | typeof ERROR | null;
445
+ schema: import("json-schema").JSONSchema7 | null;
446
+ }[];
447
+ alias?: string | undefined;
448
+ } | {
449
+ id: string;
450
+ type: "reference";
451
+ reference: string;
452
+ outputs: {
453
+ name: string | typeof ERROR | null;
454
+ schema: import("json-schema").JSONSchema7 | null;
455
+ }[];
456
+ alias?: string | undefined;
457
+ configuration?: any;
458
+ })[];
459
+ edges: {
460
+ source: string;
461
+ sourceHandle: string | typeof ERROR | null;
462
+ target: string;
463
+ }[];
464
+ }, {
465
+ nodes: ({
466
+ id: string;
467
+ type: "exit";
468
+ alias?: string | undefined;
469
+ } | {
470
+ id: string;
471
+ type: "entry";
472
+ inputSchema: import("json-schema").JSONSchema7;
473
+ outputs: {
474
+ name: string | typeof ERROR | null;
475
+ schema: import("json-schema").JSONSchema7 | null;
476
+ }[];
477
+ alias?: string | undefined;
478
+ } | {
479
+ id: string;
480
+ type: "service";
481
+ inputSchema: ({
482
+ type: "object";
483
+ } & import("json-schema").JSONSchema7) | {
484
+ type: "null";
485
+ };
486
+ name: string;
487
+ version: string;
488
+ configurationSchema: import("json-schema").JSONSchema7;
489
+ outputs: {
490
+ name: string | typeof ERROR | null;
491
+ schema: import("json-schema").JSONSchema7 | null;
492
+ }[];
493
+ alias?: string | undefined;
494
+ configuration?: any;
495
+ ttl?: number | undefined;
496
+ retry?: number | undefined;
497
+ retryDelay?: number | undefined;
498
+ } | {
499
+ id: string;
500
+ type: "logic";
501
+ script: string;
502
+ concurrency: boolean;
503
+ language: "javascript" | "python" | "typescript";
504
+ maxExecutionTime: number;
505
+ outputs: {
506
+ name: string | typeof ERROR | null;
507
+ schema: import("json-schema").JSONSchema7 | null;
508
+ }[];
509
+ alias?: string | undefined;
510
+ } | {
511
+ id: string;
512
+ type: "or";
513
+ outputs: {
514
+ name: string | typeof ERROR | null;
515
+ schema: import("json-schema").JSONSchema7 | null;
516
+ }[];
517
+ alias?: string | undefined;
518
+ } | {
519
+ id: string;
520
+ type: "reference";
521
+ reference: string;
522
+ outputs: {
523
+ name: string | typeof ERROR | null;
524
+ schema: import("json-schema").JSONSchema7 | null;
525
+ }[];
526
+ alias?: string | undefined;
527
+ configuration?: any;
528
+ })[];
529
+ edges: {
530
+ source: string;
531
+ sourceHandle: string | typeof ERROR | null;
532
+ target: string;
533
+ }[];
534
+ allowMultipleOutputs: boolean;
535
+ }>>;
536
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
537
+ id: z.ZodString;
538
+ options: z.ZodObject<{
539
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
540
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
541
+ "mcp-tool": "mcp-tool";
542
+ }>>>;
543
+ mode: z.ZodDefault<z.ZodEnum<{
544
+ linear: "linear";
545
+ continuous: "continuous";
546
+ }>>;
547
+ priority: z.ZodDefault<z.ZodInt>;
548
+ uploadUrl: z.ZodOptional<z.ZodString>;
549
+ streamUrl: z.ZodOptional<z.ZodString>;
550
+ referencedBy: z.ZodOptional<z.ZodObject<{
551
+ taskId: z.ZodUUID;
552
+ nodeId: z.ZodUUID;
553
+ messageId: z.ZodUUID;
554
+ }, z.core.$strip>>;
555
+ }, z.core.$strip>;
556
+ tree: z.ZodObject<{
557
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
558
+ id: z.ZodDefault<z.ZodUUID>;
559
+ type: z.ZodLiteral<"entry">;
560
+ alias: z.ZodOptional<z.ZodString>;
561
+ 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>]>>;
564
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
565
+ }, z.core.$strip>>;
566
+ }, z.core.$strict>, z.ZodObject<{
567
+ id: z.ZodDefault<z.ZodUUID>;
568
+ type: z.ZodLiteral<"service">;
569
+ alias: z.ZodOptional<z.ZodString>;
570
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
571
+ type: z.ZodLiteral<"object">;
572
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
573
+ type: z.ZodLiteral<"null">;
574
+ }, z.core.$strip>]>>;
575
+ name: z.ZodString;
576
+ version: z.ZodString;
577
+ configuration: z.ZodOptional<z.ZodAny>;
578
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
579
+ ttl: z.ZodOptional<z.ZodNumber>;
580
+ retry: z.ZodOptional<z.ZodNumber>;
581
+ 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>]>>;
584
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
585
+ }, z.core.$strip>>;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ id: z.ZodDefault<z.ZodUUID>;
588
+ type: z.ZodLiteral<"logic">;
589
+ alias: z.ZodOptional<z.ZodString>;
590
+ script: z.ZodString;
591
+ concurrency: z.ZodDefault<z.ZodBoolean>;
592
+ language: z.ZodDefault<z.ZodEnum<{
593
+ javascript: "javascript";
594
+ python: "python";
595
+ typescript: "typescript";
596
+ }>>;
597
+ 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>]>>;
600
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
601
+ }, z.core.$strip>>;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ id: z.ZodDefault<z.ZodUUID>;
604
+ type: z.ZodLiteral<"or">;
605
+ 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>]>>;
608
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ id: z.ZodDefault<z.ZodUUID>;
612
+ type: z.ZodLiteral<"reference">;
613
+ alias: z.ZodOptional<z.ZodString>;
614
+ 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>]>>;
618
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
619
+ }, z.core.$strip>>;
620
+ }, z.core.$strict>, z.ZodObject<{
621
+ id: z.ZodDefault<z.ZodUUID>;
622
+ type: z.ZodLiteral<"exit">;
623
+ alias: z.ZodOptional<z.ZodString>;
624
+ }, z.core.$strict>]>>;
625
+ edges: z.ZodArray<z.ZodObject<{
626
+ source: z.ZodUUID;
627
+ sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
628
+ target: z.ZodUUID;
629
+ }, z.core.$strip>>;
630
+ }, z.core.$strip>;
631
+ references: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
632
+ }, z.core.$strip>>>;
633
+ }, z.core.$strip>;
634
+ export type TreeList = z.infer<typeof treeNodesListSchema>;
635
+ export type InputTreeList = z.input<typeof treeNodesListSchema>;
636
+ //# 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"}