@republicroad/seal-editor 1.0.0

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.
@@ -0,0 +1,868 @@
1
+ import { z } from 'zod';
2
+
3
+ export declare const anyNodeSchema: z.ZodObject<{
4
+ type: z.ZodString;
5
+ content: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
6
+ id: z.ZodDefault<z.ZodString>;
7
+ name: z.ZodString;
8
+ position: z.ZodDefault<z.ZodObject<{
9
+ x: z.ZodNumber;
10
+ y: z.ZodNumber;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+
14
+ export declare const COLUMN_FIELD_TYPE_OPTIONS: {
15
+ value: ColumnFieldType['type'];
16
+ label: string;
17
+ }[];
18
+
19
+ export declare type ColumnEnum = z.infer<typeof columnEnumSchema>;
20
+
21
+ export declare const columnEnumSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
22
+ type: z.ZodLiteral<"inline">;
23
+ values: z.ZodArray<z.ZodObject<{
24
+ label: z.ZodString;
25
+ value: z.ZodString;
26
+ }, z.core.$strip>>;
27
+ loose: z.ZodOptional<z.ZodBoolean>;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ type: z.ZodLiteral<"ref">;
30
+ ref: z.ZodString;
31
+ loose: z.ZodOptional<z.ZodBoolean>;
32
+ }, z.core.$strip>], "type">;
33
+
34
+ export declare type ColumnFieldType = z.infer<typeof columnFieldTypeSchema>;
35
+
36
+ export declare const columnFieldTypeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<"any">;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ type: z.ZodLiteral<"string">;
40
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
+ type: z.ZodLiteral<"inline">;
42
+ values: z.ZodArray<z.ZodObject<{
43
+ label: z.ZodString;
44
+ value: z.ZodString;
45
+ }, z.core.$strip>>;
46
+ loose: z.ZodOptional<z.ZodBoolean>;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ type: z.ZodLiteral<"ref">;
49
+ ref: z.ZodString;
50
+ loose: z.ZodOptional<z.ZodBoolean>;
51
+ }, z.core.$strip>], "type">>;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ type: z.ZodLiteral<"number">;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ type: z.ZodLiteral<"boolean">;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<"date">;
58
+ }, z.core.$strip>], "type">;
59
+
60
+ export declare const CustomKind = "customNode";
61
+
62
+ export declare const customNodeSchema: z.ZodObject<{
63
+ type: z.ZodLiteral<"customNode">;
64
+ content: z.ZodObject<{
65
+ kind: z.ZodString;
66
+ config: z.ZodAny;
67
+ }, z.core.$strip>;
68
+ id: z.ZodDefault<z.ZodString>;
69
+ name: z.ZodString;
70
+ position: z.ZodDefault<z.ZodObject<{
71
+ x: z.ZodNumber;
72
+ y: z.ZodNumber;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
75
+
76
+ export declare const DECISION_GRAPH_CONTENT_TYPE = "application/vnd.gorules.decision";
77
+
78
+ export declare const decisionModelSchema: z.ZodObject<{
79
+ nodes: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
80
+ type: z.ZodLiteral<NodeKind.Decision>;
81
+ content: z.ZodObject<{
82
+ key: z.ZodString;
83
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
84
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
85
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
86
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
87
+ single: "single";
88
+ loop: "loop";
89
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
90
+ }, z.core.$strip>;
91
+ id: z.ZodDefault<z.ZodString>;
92
+ name: z.ZodString;
93
+ position: z.ZodDefault<z.ZodObject<{
94
+ x: z.ZodNumber;
95
+ y: z.ZodNumber;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<NodeKind.Expression>;
99
+ content: z.ZodObject<{
100
+ expressions: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodDefault<z.ZodString>;
102
+ key: z.ZodDefault<z.ZodString>;
103
+ value: z.ZodDefault<z.ZodString>;
104
+ }, z.core.$strip>>;
105
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
106
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
107
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
108
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
109
+ single: "single";
110
+ loop: "loop";
111
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
112
+ }, z.core.$strip>;
113
+ id: z.ZodDefault<z.ZodString>;
114
+ name: z.ZodString;
115
+ position: z.ZodDefault<z.ZodObject<{
116
+ x: z.ZodNumber;
117
+ y: z.ZodNumber;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ type: z.ZodLiteral<NodeKind.Function>;
121
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodObject<{
122
+ source: z.ZodDefault<z.ZodString>;
123
+ }, z.core.$strip>]>>>;
124
+ id: z.ZodDefault<z.ZodString>;
125
+ name: z.ZodString;
126
+ position: z.ZodDefault<z.ZodObject<{
127
+ x: z.ZodNumber;
128
+ y: z.ZodNumber;
129
+ }, z.core.$strip>>;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ type: z.ZodLiteral<NodeKind.DecisionTable>;
132
+ content: z.ZodObject<{
133
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
134
+ first: "first";
135
+ collect: "collect";
136
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
137
+ rules: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>>>>;
138
+ inputs: z.ZodArray<z.ZodObject<{
139
+ id: z.ZodDefault<z.ZodString>;
140
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ fieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
144
+ type: z.ZodLiteral<"any">;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"string">;
147
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
148
+ type: z.ZodLiteral<"inline">;
149
+ values: z.ZodArray<z.ZodObject<{
150
+ label: z.ZodString;
151
+ value: z.ZodString;
152
+ }, z.core.$strip>>;
153
+ loose: z.ZodOptional<z.ZodBoolean>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ type: z.ZodLiteral<"ref">;
156
+ ref: z.ZodString;
157
+ loose: z.ZodOptional<z.ZodBoolean>;
158
+ }, z.core.$strip>], "type">>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ type: z.ZodLiteral<"number">;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ type: z.ZodLiteral<"boolean">;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ type: z.ZodLiteral<"date">;
165
+ }, z.core.$strip>], "type">>>;
166
+ }, z.core.$strip>>;
167
+ outputs: z.ZodArray<z.ZodObject<{
168
+ id: z.ZodDefault<z.ZodString>;
169
+ name: z.ZodString;
170
+ field: z.ZodString;
171
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ outputFieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ type: z.ZodLiteral<"auto">;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ type: z.ZodLiteral<"string">;
176
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ type: z.ZodLiteral<"inline">;
178
+ values: z.ZodArray<z.ZodObject<{
179
+ label: z.ZodString;
180
+ value: z.ZodString;
181
+ }, z.core.$strip>>;
182
+ loose: z.ZodOptional<z.ZodBoolean>;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ type: z.ZodLiteral<"ref">;
185
+ ref: z.ZodString;
186
+ loose: z.ZodOptional<z.ZodBoolean>;
187
+ }, z.core.$strip>], "type">>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ type: z.ZodLiteral<"string-array">;
190
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ type: z.ZodLiteral<"inline">;
192
+ values: z.ZodArray<z.ZodObject<{
193
+ label: z.ZodString;
194
+ value: z.ZodString;
195
+ }, z.core.$strip>>;
196
+ loose: z.ZodOptional<z.ZodBoolean>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"ref">;
199
+ ref: z.ZodString;
200
+ loose: z.ZodOptional<z.ZodBoolean>;
201
+ }, z.core.$strip>], "type">>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ type: z.ZodLiteral<"number">;
204
+ }, z.core.$strip>, z.ZodObject<{
205
+ type: z.ZodLiteral<"boolean">;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ type: z.ZodLiteral<"date">;
208
+ }, z.core.$strip>], "type">>>;
209
+ }, z.core.$strip>>;
210
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
211
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
212
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
213
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
214
+ single: "single";
215
+ loop: "loop";
216
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
217
+ }, z.core.$strip>;
218
+ id: z.ZodDefault<z.ZodString>;
219
+ name: z.ZodString;
220
+ position: z.ZodDefault<z.ZodObject<{
221
+ x: z.ZodNumber;
222
+ y: z.ZodNumber;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ type: z.ZodLiteral<NodeKind.Switch>;
226
+ content: z.ZodObject<{
227
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
228
+ first: "first";
229
+ collect: "collect";
230
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
231
+ statements: z.ZodArray<z.ZodObject<{
232
+ id: z.ZodDefault<z.ZodString>;
233
+ condition: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
234
+ isDefault: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>;
237
+ id: z.ZodDefault<z.ZodString>;
238
+ name: z.ZodString;
239
+ position: z.ZodDefault<z.ZodObject<{
240
+ x: z.ZodNumber;
241
+ y: z.ZodNumber;
242
+ }, z.core.$strip>>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<"customNode">;
245
+ content: z.ZodObject<{
246
+ kind: z.ZodString;
247
+ config: z.ZodAny;
248
+ }, z.core.$strip>;
249
+ id: z.ZodDefault<z.ZodString>;
250
+ name: z.ZodString;
251
+ position: z.ZodDefault<z.ZodObject<{
252
+ x: z.ZodNumber;
253
+ y: z.ZodNumber;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ type: z.ZodLiteral<NodeKind.Input>;
257
+ content: z.ZodDefault<z.ZodObject<{
258
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>>, z.ZodTransform<string, string | Record<string, any> | null | undefined>>;
259
+ expressions: z.ZodDefault<z.ZodArray<z.ZodObject<{
260
+ id: z.ZodDefault<z.ZodString>;
261
+ key: z.ZodDefault<z.ZodString>;
262
+ value: z.ZodDefault<z.ZodAny>;
263
+ type: z.ZodOptional<z.ZodString>;
264
+ }, z.core.$strip>>>;
265
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
266
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
267
+ }, z.core.$strip>>;
268
+ id: z.ZodDefault<z.ZodString>;
269
+ name: z.ZodString;
270
+ position: z.ZodDefault<z.ZodObject<{
271
+ x: z.ZodNumber;
272
+ y: z.ZodNumber;
273
+ }, z.core.$strip>>;
274
+ }, z.core.$strip>, z.ZodObject<{
275
+ type: z.ZodLiteral<NodeKind.Output>;
276
+ content: z.ZodDefault<z.ZodObject<{
277
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
278
+ }, z.core.$strip>>;
279
+ id: z.ZodDefault<z.ZodString>;
280
+ name: z.ZodString;
281
+ position: z.ZodDefault<z.ZodObject<{
282
+ x: z.ZodNumber;
283
+ y: z.ZodNumber;
284
+ }, z.core.$strip>>;
285
+ }, z.core.$strip>], "type">, z.ZodObject<{
286
+ type: z.ZodString;
287
+ content: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
288
+ id: z.ZodDefault<z.ZodString>;
289
+ name: z.ZodString;
290
+ position: z.ZodDefault<z.ZodObject<{
291
+ x: z.ZodNumber;
292
+ y: z.ZodNumber;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$strip>]>>>;
295
+ edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
296
+ id: z.ZodString;
297
+ sourceId: z.ZodString;
298
+ targetId: z.ZodString;
299
+ sourceHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ type: z.ZodEnum<{
301
+ edge: "edge";
302
+ }>;
303
+ }, z.core.$strip>>>;
304
+ }, z.core.$strip>;
305
+
306
+ export declare const decisionNodeSchema: z.ZodObject<{
307
+ type: z.ZodLiteral<NodeKind.Decision>;
308
+ content: z.ZodObject<{
309
+ key: z.ZodString;
310
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
311
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
312
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
313
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
314
+ single: "single";
315
+ loop: "loop";
316
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
317
+ }, z.core.$strip>;
318
+ id: z.ZodDefault<z.ZodString>;
319
+ name: z.ZodString;
320
+ position: z.ZodDefault<z.ZodObject<{
321
+ x: z.ZodNumber;
322
+ y: z.ZodNumber;
323
+ }, z.core.$strip>>;
324
+ }, z.core.$strip>;
325
+
326
+ export declare const decisionTableSchema: z.ZodObject<{
327
+ type: z.ZodLiteral<NodeKind.DecisionTable>;
328
+ content: z.ZodObject<{
329
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
330
+ first: "first";
331
+ collect: "collect";
332
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
333
+ rules: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>>>>;
334
+ inputs: z.ZodArray<z.ZodObject<{
335
+ id: z.ZodDefault<z.ZodString>;
336
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
+ fieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
340
+ type: z.ZodLiteral<"any">;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ type: z.ZodLiteral<"string">;
343
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ type: z.ZodLiteral<"inline">;
345
+ values: z.ZodArray<z.ZodObject<{
346
+ label: z.ZodString;
347
+ value: z.ZodString;
348
+ }, z.core.$strip>>;
349
+ loose: z.ZodOptional<z.ZodBoolean>;
350
+ }, z.core.$strip>, z.ZodObject<{
351
+ type: z.ZodLiteral<"ref">;
352
+ ref: z.ZodString;
353
+ loose: z.ZodOptional<z.ZodBoolean>;
354
+ }, z.core.$strip>], "type">>;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ type: z.ZodLiteral<"number">;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ type: z.ZodLiteral<"boolean">;
359
+ }, z.core.$strip>, z.ZodObject<{
360
+ type: z.ZodLiteral<"date">;
361
+ }, z.core.$strip>], "type">>>;
362
+ }, z.core.$strip>>;
363
+ outputs: z.ZodArray<z.ZodObject<{
364
+ id: z.ZodDefault<z.ZodString>;
365
+ name: z.ZodString;
366
+ field: z.ZodString;
367
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ outputFieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
369
+ type: z.ZodLiteral<"auto">;
370
+ }, z.core.$strip>, z.ZodObject<{
371
+ type: z.ZodLiteral<"string">;
372
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ type: z.ZodLiteral<"inline">;
374
+ values: z.ZodArray<z.ZodObject<{
375
+ label: z.ZodString;
376
+ value: z.ZodString;
377
+ }, z.core.$strip>>;
378
+ loose: z.ZodOptional<z.ZodBoolean>;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ type: z.ZodLiteral<"ref">;
381
+ ref: z.ZodString;
382
+ loose: z.ZodOptional<z.ZodBoolean>;
383
+ }, z.core.$strip>], "type">>;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ type: z.ZodLiteral<"string-array">;
386
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
387
+ type: z.ZodLiteral<"inline">;
388
+ values: z.ZodArray<z.ZodObject<{
389
+ label: z.ZodString;
390
+ value: z.ZodString;
391
+ }, z.core.$strip>>;
392
+ loose: z.ZodOptional<z.ZodBoolean>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ type: z.ZodLiteral<"ref">;
395
+ ref: z.ZodString;
396
+ loose: z.ZodOptional<z.ZodBoolean>;
397
+ }, z.core.$strip>], "type">>;
398
+ }, z.core.$strip>, z.ZodObject<{
399
+ type: z.ZodLiteral<"number">;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ type: z.ZodLiteral<"boolean">;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ type: z.ZodLiteral<"date">;
404
+ }, z.core.$strip>], "type">>>;
405
+ }, z.core.$strip>>;
406
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
407
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
408
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
409
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
410
+ single: "single";
411
+ loop: "loop";
412
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
413
+ }, z.core.$strip>;
414
+ id: z.ZodDefault<z.ZodString>;
415
+ name: z.ZodString;
416
+ position: z.ZodDefault<z.ZodObject<{
417
+ x: z.ZodNumber;
418
+ y: z.ZodNumber;
419
+ }, z.core.$strip>>;
420
+ }, z.core.$strip>;
421
+
422
+ export declare const edgeSchema: z.ZodObject<{
423
+ id: z.ZodString;
424
+ sourceId: z.ZodString;
425
+ targetId: z.ZodString;
426
+ sourceHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ type: z.ZodEnum<{
428
+ edge: "edge";
429
+ }>;
430
+ }, z.core.$strip>;
431
+
432
+ export declare const expressionNodeSchema: z.ZodObject<{
433
+ type: z.ZodLiteral<NodeKind.Expression>;
434
+ content: z.ZodObject<{
435
+ expressions: z.ZodArray<z.ZodObject<{
436
+ id: z.ZodDefault<z.ZodString>;
437
+ key: z.ZodDefault<z.ZodString>;
438
+ value: z.ZodDefault<z.ZodString>;
439
+ }, z.core.$strip>>;
440
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
441
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
442
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
443
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
444
+ single: "single";
445
+ loop: "loop";
446
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
447
+ }, z.core.$strip>;
448
+ id: z.ZodDefault<z.ZodString>;
449
+ name: z.ZodString;
450
+ position: z.ZodDefault<z.ZodObject<{
451
+ x: z.ZodNumber;
452
+ y: z.ZodNumber;
453
+ }, z.core.$strip>>;
454
+ }, z.core.$strip>;
455
+
456
+ export declare const functionNodeSchema: z.ZodObject<{
457
+ type: z.ZodLiteral<NodeKind.Function>;
458
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodObject<{
459
+ source: z.ZodDefault<z.ZodString>;
460
+ }, z.core.$strip>]>>>;
461
+ id: z.ZodDefault<z.ZodString>;
462
+ name: z.ZodString;
463
+ position: z.ZodDefault<z.ZodObject<{
464
+ x: z.ZodNumber;
465
+ y: z.ZodNumber;
466
+ }, z.core.$strip>>;
467
+ }, z.core.$strip>;
468
+
469
+ export declare const inputNodeSchema: z.ZodObject<{
470
+ type: z.ZodLiteral<NodeKind.Input>;
471
+ content: z.ZodDefault<z.ZodObject<{
472
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>>, z.ZodTransform<string, string | Record<string, any> | null | undefined>>;
473
+ expressions: z.ZodDefault<z.ZodArray<z.ZodObject<{
474
+ id: z.ZodDefault<z.ZodString>;
475
+ key: z.ZodDefault<z.ZodString>;
476
+ value: z.ZodDefault<z.ZodAny>;
477
+ type: z.ZodOptional<z.ZodString>;
478
+ }, z.core.$strip>>>;
479
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
480
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
481
+ }, z.core.$strip>>;
482
+ id: z.ZodDefault<z.ZodString>;
483
+ name: z.ZodString;
484
+ position: z.ZodDefault<z.ZodObject<{
485
+ x: z.ZodNumber;
486
+ y: z.ZodNumber;
487
+ }, z.core.$strip>>;
488
+ }, z.core.$strip>;
489
+
490
+ export declare enum NodeKind {
491
+ Input = "inputNode",
492
+ Output = "outputNode",
493
+ DecisionTable = "decisionTableNode",
494
+ Function = "functionNode",
495
+ Expression = "expressionNode",
496
+ Switch = "switchNode",
497
+ Decision = "decisionNode"
498
+ }
499
+
500
+ export declare const nodeSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
501
+ type: z.ZodLiteral<NodeKind.Decision>;
502
+ content: z.ZodObject<{
503
+ key: z.ZodString;
504
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
505
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
506
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
507
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
508
+ single: "single";
509
+ loop: "loop";
510
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
511
+ }, z.core.$strip>;
512
+ id: z.ZodDefault<z.ZodString>;
513
+ name: z.ZodString;
514
+ position: z.ZodDefault<z.ZodObject<{
515
+ x: z.ZodNumber;
516
+ y: z.ZodNumber;
517
+ }, z.core.$strip>>;
518
+ }, z.core.$strip>, z.ZodObject<{
519
+ type: z.ZodLiteral<NodeKind.Expression>;
520
+ content: z.ZodObject<{
521
+ expressions: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodDefault<z.ZodString>;
523
+ key: z.ZodDefault<z.ZodString>;
524
+ value: z.ZodDefault<z.ZodString>;
525
+ }, z.core.$strip>>;
526
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
527
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
528
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
529
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
530
+ single: "single";
531
+ loop: "loop";
532
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
533
+ }, z.core.$strip>;
534
+ id: z.ZodDefault<z.ZodString>;
535
+ name: z.ZodString;
536
+ position: z.ZodDefault<z.ZodObject<{
537
+ x: z.ZodNumber;
538
+ y: z.ZodNumber;
539
+ }, z.core.$strip>>;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ type: z.ZodLiteral<NodeKind.Function>;
542
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodObject<{
543
+ source: z.ZodDefault<z.ZodString>;
544
+ }, z.core.$strip>]>>>;
545
+ id: z.ZodDefault<z.ZodString>;
546
+ name: z.ZodString;
547
+ position: z.ZodDefault<z.ZodObject<{
548
+ x: z.ZodNumber;
549
+ y: z.ZodNumber;
550
+ }, z.core.$strip>>;
551
+ }, z.core.$strip>, z.ZodObject<{
552
+ type: z.ZodLiteral<NodeKind.DecisionTable>;
553
+ content: z.ZodObject<{
554
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
555
+ first: "first";
556
+ collect: "collect";
557
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
558
+ rules: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>>>>;
559
+ inputs: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodDefault<z.ZodString>;
561
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ fieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
565
+ type: z.ZodLiteral<"any">;
566
+ }, z.core.$strip>, z.ZodObject<{
567
+ type: z.ZodLiteral<"string">;
568
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
569
+ type: z.ZodLiteral<"inline">;
570
+ values: z.ZodArray<z.ZodObject<{
571
+ label: z.ZodString;
572
+ value: z.ZodString;
573
+ }, z.core.$strip>>;
574
+ loose: z.ZodOptional<z.ZodBoolean>;
575
+ }, z.core.$strip>, z.ZodObject<{
576
+ type: z.ZodLiteral<"ref">;
577
+ ref: z.ZodString;
578
+ loose: z.ZodOptional<z.ZodBoolean>;
579
+ }, z.core.$strip>], "type">>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ type: z.ZodLiteral<"number">;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ type: z.ZodLiteral<"boolean">;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ type: z.ZodLiteral<"date">;
586
+ }, z.core.$strip>], "type">>>;
587
+ }, z.core.$strip>>;
588
+ outputs: z.ZodArray<z.ZodObject<{
589
+ id: z.ZodDefault<z.ZodString>;
590
+ name: z.ZodString;
591
+ field: z.ZodString;
592
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ outputFieldType: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
594
+ type: z.ZodLiteral<"auto">;
595
+ }, z.core.$strip>, z.ZodObject<{
596
+ type: z.ZodLiteral<"string">;
597
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ type: z.ZodLiteral<"inline">;
599
+ values: z.ZodArray<z.ZodObject<{
600
+ label: z.ZodString;
601
+ value: z.ZodString;
602
+ }, z.core.$strip>>;
603
+ loose: z.ZodOptional<z.ZodBoolean>;
604
+ }, z.core.$strip>, z.ZodObject<{
605
+ type: z.ZodLiteral<"ref">;
606
+ ref: z.ZodString;
607
+ loose: z.ZodOptional<z.ZodBoolean>;
608
+ }, z.core.$strip>], "type">>;
609
+ }, z.core.$strip>, z.ZodObject<{
610
+ type: z.ZodLiteral<"string-array">;
611
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
612
+ type: z.ZodLiteral<"inline">;
613
+ values: z.ZodArray<z.ZodObject<{
614
+ label: z.ZodString;
615
+ value: z.ZodString;
616
+ }, z.core.$strip>>;
617
+ loose: z.ZodOptional<z.ZodBoolean>;
618
+ }, z.core.$strip>, z.ZodObject<{
619
+ type: z.ZodLiteral<"ref">;
620
+ ref: z.ZodString;
621
+ loose: z.ZodOptional<z.ZodBoolean>;
622
+ }, z.core.$strip>], "type">>;
623
+ }, z.core.$strip>, z.ZodObject<{
624
+ type: z.ZodLiteral<"number">;
625
+ }, z.core.$strip>, z.ZodObject<{
626
+ type: z.ZodLiteral<"boolean">;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ type: z.ZodLiteral<"date">;
629
+ }, z.core.$strip>], "type">>>;
630
+ }, z.core.$strip>>;
631
+ passThrough: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
632
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
633
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
634
+ executionMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
635
+ single: "single";
636
+ loop: "loop";
637
+ }>>>, z.ZodTransform<"single" | "loop", "single" | "loop" | null | undefined>>;
638
+ }, z.core.$strip>;
639
+ id: z.ZodDefault<z.ZodString>;
640
+ name: z.ZodString;
641
+ position: z.ZodDefault<z.ZodObject<{
642
+ x: z.ZodNumber;
643
+ y: z.ZodNumber;
644
+ }, z.core.$strip>>;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ type: z.ZodLiteral<NodeKind.Switch>;
647
+ content: z.ZodObject<{
648
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
649
+ first: "first";
650
+ collect: "collect";
651
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
652
+ statements: z.ZodArray<z.ZodObject<{
653
+ id: z.ZodDefault<z.ZodString>;
654
+ condition: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
655
+ isDefault: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
656
+ }, z.core.$strip>>;
657
+ }, z.core.$strip>;
658
+ id: z.ZodDefault<z.ZodString>;
659
+ name: z.ZodString;
660
+ position: z.ZodDefault<z.ZodObject<{
661
+ x: z.ZodNumber;
662
+ y: z.ZodNumber;
663
+ }, z.core.$strip>>;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ type: z.ZodLiteral<"customNode">;
666
+ content: z.ZodObject<{
667
+ kind: z.ZodString;
668
+ config: z.ZodAny;
669
+ }, z.core.$strip>;
670
+ id: z.ZodDefault<z.ZodString>;
671
+ name: z.ZodString;
672
+ position: z.ZodDefault<z.ZodObject<{
673
+ x: z.ZodNumber;
674
+ y: z.ZodNumber;
675
+ }, z.core.$strip>>;
676
+ }, z.core.$strip>, z.ZodObject<{
677
+ type: z.ZodLiteral<NodeKind.Input>;
678
+ content: z.ZodDefault<z.ZodObject<{
679
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>>, z.ZodTransform<string, string | Record<string, any> | null | undefined>>;
680
+ expressions: z.ZodDefault<z.ZodArray<z.ZodObject<{
681
+ id: z.ZodDefault<z.ZodString>;
682
+ key: z.ZodDefault<z.ZodString>;
683
+ value: z.ZodDefault<z.ZodAny>;
684
+ type: z.ZodOptional<z.ZodString>;
685
+ }, z.core.$strip>>>;
686
+ inputField: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
687
+ outputPath: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string | null, string | null>>;
688
+ }, z.core.$strip>>;
689
+ id: z.ZodDefault<z.ZodString>;
690
+ name: z.ZodString;
691
+ position: z.ZodDefault<z.ZodObject<{
692
+ x: z.ZodNumber;
693
+ y: z.ZodNumber;
694
+ }, z.core.$strip>>;
695
+ }, z.core.$strip>, z.ZodObject<{
696
+ type: z.ZodLiteral<NodeKind.Output>;
697
+ content: z.ZodDefault<z.ZodObject<{
698
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
699
+ }, z.core.$strip>>;
700
+ id: z.ZodDefault<z.ZodString>;
701
+ name: z.ZodString;
702
+ position: z.ZodDefault<z.ZodObject<{
703
+ x: z.ZodNumber;
704
+ y: z.ZodNumber;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>], "type">, z.ZodObject<{
707
+ type: z.ZodString;
708
+ content: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
709
+ id: z.ZodDefault<z.ZodString>;
710
+ name: z.ZodString;
711
+ position: z.ZodDefault<z.ZodObject<{
712
+ x: z.ZodNumber;
713
+ y: z.ZodNumber;
714
+ }, z.core.$strip>>;
715
+ }, z.core.$strip>]>;
716
+
717
+ export declare const OUTPUT_FIELD_TYPE_OPTIONS: {
718
+ value: OutputFieldType['type'];
719
+ label: string;
720
+ }[];
721
+
722
+ export declare type OutputFieldType = z.infer<typeof outputFieldTypeSchema>;
723
+
724
+ export declare const outputFieldTypeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
725
+ type: z.ZodLiteral<"auto">;
726
+ }, z.core.$strip>, z.ZodObject<{
727
+ type: z.ZodLiteral<"string">;
728
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"inline">;
730
+ values: z.ZodArray<z.ZodObject<{
731
+ label: z.ZodString;
732
+ value: z.ZodString;
733
+ }, z.core.$strip>>;
734
+ loose: z.ZodOptional<z.ZodBoolean>;
735
+ }, z.core.$strip>, z.ZodObject<{
736
+ type: z.ZodLiteral<"ref">;
737
+ ref: z.ZodString;
738
+ loose: z.ZodOptional<z.ZodBoolean>;
739
+ }, z.core.$strip>], "type">>;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ type: z.ZodLiteral<"string-array">;
742
+ enum: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
743
+ type: z.ZodLiteral<"inline">;
744
+ values: z.ZodArray<z.ZodObject<{
745
+ label: z.ZodString;
746
+ value: z.ZodString;
747
+ }, z.core.$strip>>;
748
+ loose: z.ZodOptional<z.ZodBoolean>;
749
+ }, z.core.$strip>, z.ZodObject<{
750
+ type: z.ZodLiteral<"ref">;
751
+ ref: z.ZodString;
752
+ loose: z.ZodOptional<z.ZodBoolean>;
753
+ }, z.core.$strip>], "type">>;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ type: z.ZodLiteral<"number">;
756
+ }, z.core.$strip>, z.ZodObject<{
757
+ type: z.ZodLiteral<"boolean">;
758
+ }, z.core.$strip>, z.ZodObject<{
759
+ type: z.ZodLiteral<"date">;
760
+ }, z.core.$strip>], "type">;
761
+
762
+ export declare const outputNodeSchema: z.ZodObject<{
763
+ type: z.ZodLiteral<NodeKind.Output>;
764
+ content: z.ZodDefault<z.ZodObject<{
765
+ schema: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
766
+ }, z.core.$strip>>;
767
+ id: z.ZodDefault<z.ZodString>;
768
+ name: z.ZodString;
769
+ position: z.ZodDefault<z.ZodObject<{
770
+ x: z.ZodNumber;
771
+ y: z.ZodNumber;
772
+ }, z.core.$strip>>;
773
+ }, z.core.$strip>;
774
+
775
+ export declare const switchNodeSchema: z.ZodObject<{
776
+ type: z.ZodLiteral<NodeKind.Switch>;
777
+ content: z.ZodObject<{
778
+ hitPolicy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
779
+ first: "first";
780
+ collect: "collect";
781
+ }>>>, z.ZodTransform<"first" | "collect", "first" | "collect" | null | undefined>>;
782
+ statements: z.ZodArray<z.ZodObject<{
783
+ id: z.ZodDefault<z.ZodString>;
784
+ condition: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
785
+ isDefault: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
786
+ }, z.core.$strip>>;
787
+ }, z.core.$strip>;
788
+ id: z.ZodDefault<z.ZodString>;
789
+ name: z.ZodString;
790
+ position: z.ZodDefault<z.ZodObject<{
791
+ x: z.ZodNumber;
792
+ y: z.ZodNumber;
793
+ }, z.core.$strip>>;
794
+ }, z.core.$strip>;
795
+
796
+ export declare const validationSchema: z.ZodObject<{
797
+ inputSchema: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
798
+ outputSchema: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
799
+ }, z.core.$strip>;
800
+
801
+ export { }
802
+
803
+
804
+ declare global {
805
+ interface Window {
806
+ monaco?: Monaco;
807
+ }
808
+ }
809
+
810
+
811
+ declare module '@gorules/zen-engine-wasm' {
812
+ interface VariableType {
813
+ __hash: string;
814
+ }
815
+ }
816
+
817
+
818
+ declare namespace ContextMenuSub {
819
+ var displayName: string;
820
+ }
821
+
822
+ declare namespace console {
823
+ function log(...args: any[]): void;
824
+ async function sleep(durationMs: number): Promise<void>;
825
+ }
826
+
827
+
828
+
829
+ declare namespace errorUtil {
830
+ type ErrMessage =
831
+ | string
832
+ | {
833
+ message?: string;
834
+ };
835
+ const errToObj: (message?: ErrMessage | undefined) => {
836
+ message?: string | undefined;
837
+ };
838
+ const toString: (message?: ErrMessage | undefined) => string | undefined;
839
+ }
840
+
841
+
842
+
843
+ declare namespace partialUtil {
844
+ type DeepPartial<T extends ZodTypeAny> =
845
+ T extends ZodObject<ZodRawShape>
846
+ ? ZodObject<
847
+ {
848
+ [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>>;
849
+ },
850
+ T['_def']['unknownKeys'],
851
+ T['_def']['catchall']
852
+ >
853
+ : T extends ZodArray<infer Type, infer Card>
854
+ ? ZodArray<DeepPartial<Type>, Card>
855
+ : T extends ZodOptional<infer Type>
856
+ ? ZodOptional<DeepPartial<Type>>
857
+ : T extends ZodNullable<infer Type>
858
+ ? ZodNullable<DeepPartial<Type>>
859
+ : T extends ZodTuple<infer Items>
860
+ ? {
861
+ [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
862
+ } extends infer PI
863
+ ? PI extends ZodTupleItems
864
+ ? ZodTuple<PI>
865
+ : never
866
+ : never
867
+ : T;
868
+ }