@anchrd/intel-contract 0.13.0 → 0.15.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,995 @@
1
+ import { z } from "zod";
2
+ export declare const FlowNodeId: z.ZodString;
3
+ export declare const FlowPosition: z.ZodObject<{
4
+ x: z.ZodNumber;
5
+ y: z.ZodNumber;
6
+ }, z.core.$strict>;
7
+ export declare const SubflowVersionMode: z.ZodEnum<{
8
+ latest: "latest";
9
+ follows: "follows";
10
+ pinned: "pinned";
11
+ }>;
12
+ export type SubflowVersionMode = z.infer<typeof SubflowVersionMode>;
13
+ export declare const SubflowVersion: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
+ mode: z.ZodLiteral<"latest">;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ mode: z.ZodLiteral<"follows">;
17
+ }, z.core.$strict>, z.ZodObject<{
18
+ mode: z.ZodLiteral<"pinned">;
19
+ versionId: z.ZodString;
20
+ }, z.core.$strict>], "mode">;
21
+ export type SubflowVersion = z.infer<typeof SubflowVersion>;
22
+ export declare const FlowNodeLayer: z.ZodEnum<{
23
+ marker: "marker";
24
+ step: "step";
25
+ link: "link";
26
+ }>;
27
+ export type FlowNodeLayer = z.infer<typeof FlowNodeLayer>;
28
+ export declare const flowNodeLayer: {
29
+ readonly trigger: "marker";
30
+ readonly output: "marker";
31
+ readonly instruction: "step";
32
+ readonly condition: "step";
33
+ readonly subflow: "step";
34
+ readonly folder: "link";
35
+ readonly document: "link";
36
+ readonly upload: "link";
37
+ readonly table: "link";
38
+ readonly tool: "link";
39
+ };
40
+ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
41
+ kind: z.ZodLiteral<"trigger">;
42
+ configuration: z.ZodObject<{
43
+ mode: z.ZodLiteral<"manual">;
44
+ }, z.core.$strict>;
45
+ id: z.ZodString;
46
+ position: z.ZodObject<{
47
+ x: z.ZodNumber;
48
+ y: z.ZodNumber;
49
+ }, z.core.$strict>;
50
+ label: z.ZodString;
51
+ }, z.core.$strict>, z.ZodObject<{
52
+ kind: z.ZodLiteral<"instruction">;
53
+ configuration: z.ZodObject<{
54
+ prompt: z.ZodString;
55
+ }, z.core.$strict>;
56
+ id: z.ZodString;
57
+ position: z.ZodObject<{
58
+ x: z.ZodNumber;
59
+ y: z.ZodNumber;
60
+ }, z.core.$strict>;
61
+ label: z.ZodString;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ kind: z.ZodLiteral<"folder">;
64
+ configuration: z.ZodObject<{
65
+ resourceId: z.ZodString;
66
+ }, z.core.$strict>;
67
+ id: z.ZodString;
68
+ position: z.ZodObject<{
69
+ x: z.ZodNumber;
70
+ y: z.ZodNumber;
71
+ }, z.core.$strict>;
72
+ label: z.ZodString;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ kind: z.ZodLiteral<"document">;
75
+ configuration: z.ZodObject<{
76
+ resourceId: z.ZodString;
77
+ }, z.core.$strict>;
78
+ id: z.ZodString;
79
+ position: z.ZodObject<{
80
+ x: z.ZodNumber;
81
+ y: z.ZodNumber;
82
+ }, z.core.$strict>;
83
+ label: z.ZodString;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ kind: z.ZodLiteral<"upload">;
86
+ configuration: z.ZodObject<{
87
+ resourceId: z.ZodString;
88
+ }, z.core.$strict>;
89
+ id: z.ZodString;
90
+ position: z.ZodObject<{
91
+ x: z.ZodNumber;
92
+ y: z.ZodNumber;
93
+ }, z.core.$strict>;
94
+ label: z.ZodString;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ kind: z.ZodLiteral<"table">;
97
+ configuration: z.ZodObject<{
98
+ resourceId: z.ZodString;
99
+ }, z.core.$strict>;
100
+ id: z.ZodString;
101
+ position: z.ZodObject<{
102
+ x: z.ZodNumber;
103
+ y: z.ZodNumber;
104
+ }, z.core.$strict>;
105
+ label: z.ZodString;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ kind: z.ZodLiteral<"tool">;
108
+ configuration: z.ZodObject<{
109
+ toolName: z.ZodString;
110
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
111
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ }, z.core.$strict>;
113
+ id: z.ZodString;
114
+ position: z.ZodObject<{
115
+ x: z.ZodNumber;
116
+ y: z.ZodNumber;
117
+ }, z.core.$strict>;
118
+ label: z.ZodString;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"condition">;
121
+ configuration: z.ZodObject<{
122
+ mode: z.ZodLiteral<"semantic">;
123
+ instruction: z.ZodString;
124
+ }, z.core.$strict>;
125
+ id: z.ZodString;
126
+ position: z.ZodObject<{
127
+ x: z.ZodNumber;
128
+ y: z.ZodNumber;
129
+ }, z.core.$strict>;
130
+ label: z.ZodString;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"subflow">;
133
+ configuration: z.ZodObject<{
134
+ flowId: z.ZodString;
135
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ mode: z.ZodLiteral<"latest">;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ mode: z.ZodLiteral<"follows">;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ mode: z.ZodLiteral<"pinned">;
141
+ versionId: z.ZodString;
142
+ }, z.core.$strict>], "mode">>;
143
+ }, z.core.$strict>;
144
+ id: z.ZodString;
145
+ position: z.ZodObject<{
146
+ x: z.ZodNumber;
147
+ y: z.ZodNumber;
148
+ }, z.core.$strict>;
149
+ label: z.ZodString;
150
+ }, z.core.$strict>, z.ZodObject<{
151
+ kind: z.ZodLiteral<"output">;
152
+ configuration: z.ZodObject<{}, z.core.$strict>;
153
+ id: z.ZodString;
154
+ position: z.ZodObject<{
155
+ x: z.ZodNumber;
156
+ y: z.ZodNumber;
157
+ }, z.core.$strict>;
158
+ label: z.ZodString;
159
+ }, z.core.$strict>], "kind">;
160
+ export type FlowNode = z.infer<typeof FlowNode>;
161
+ export declare const FlowEdgeKind: z.ZodEnum<{
162
+ flow: "flow";
163
+ context: "context";
164
+ }>;
165
+ export type FlowEdgeKind = z.infer<typeof FlowEdgeKind>;
166
+ export declare const FlowEdge: z.ZodObject<{
167
+ id: z.ZodString;
168
+ source: z.ZodString;
169
+ target: z.ZodString;
170
+ kind: z.ZodDefault<z.ZodEnum<{
171
+ flow: "flow";
172
+ context: "context";
173
+ }>>;
174
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
175
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
176
+ }, z.core.$strict>;
177
+ export type FlowEdge = z.infer<typeof FlowEdge>;
178
+ export declare const FlowGraph: z.ZodObject<{
179
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
+ kind: z.ZodLiteral<"trigger">;
181
+ configuration: z.ZodObject<{
182
+ mode: z.ZodLiteral<"manual">;
183
+ }, z.core.$strict>;
184
+ id: z.ZodString;
185
+ position: z.ZodObject<{
186
+ x: z.ZodNumber;
187
+ y: z.ZodNumber;
188
+ }, z.core.$strict>;
189
+ label: z.ZodString;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ kind: z.ZodLiteral<"instruction">;
192
+ configuration: z.ZodObject<{
193
+ prompt: z.ZodString;
194
+ }, z.core.$strict>;
195
+ id: z.ZodString;
196
+ position: z.ZodObject<{
197
+ x: z.ZodNumber;
198
+ y: z.ZodNumber;
199
+ }, z.core.$strict>;
200
+ label: z.ZodString;
201
+ }, z.core.$strict>, z.ZodObject<{
202
+ kind: z.ZodLiteral<"folder">;
203
+ configuration: z.ZodObject<{
204
+ resourceId: z.ZodString;
205
+ }, z.core.$strict>;
206
+ id: z.ZodString;
207
+ position: z.ZodObject<{
208
+ x: z.ZodNumber;
209
+ y: z.ZodNumber;
210
+ }, z.core.$strict>;
211
+ label: z.ZodString;
212
+ }, z.core.$strict>, z.ZodObject<{
213
+ kind: z.ZodLiteral<"document">;
214
+ configuration: z.ZodObject<{
215
+ resourceId: z.ZodString;
216
+ }, z.core.$strict>;
217
+ id: z.ZodString;
218
+ position: z.ZodObject<{
219
+ x: z.ZodNumber;
220
+ y: z.ZodNumber;
221
+ }, z.core.$strict>;
222
+ label: z.ZodString;
223
+ }, z.core.$strict>, z.ZodObject<{
224
+ kind: z.ZodLiteral<"upload">;
225
+ configuration: z.ZodObject<{
226
+ resourceId: z.ZodString;
227
+ }, z.core.$strict>;
228
+ id: z.ZodString;
229
+ position: z.ZodObject<{
230
+ x: z.ZodNumber;
231
+ y: z.ZodNumber;
232
+ }, z.core.$strict>;
233
+ label: z.ZodString;
234
+ }, z.core.$strict>, z.ZodObject<{
235
+ kind: z.ZodLiteral<"table">;
236
+ configuration: z.ZodObject<{
237
+ resourceId: z.ZodString;
238
+ }, z.core.$strict>;
239
+ id: z.ZodString;
240
+ position: z.ZodObject<{
241
+ x: z.ZodNumber;
242
+ y: z.ZodNumber;
243
+ }, z.core.$strict>;
244
+ label: z.ZodString;
245
+ }, z.core.$strict>, z.ZodObject<{
246
+ kind: z.ZodLiteral<"tool">;
247
+ configuration: z.ZodObject<{
248
+ toolName: z.ZodString;
249
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
250
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
251
+ }, z.core.$strict>;
252
+ id: z.ZodString;
253
+ position: z.ZodObject<{
254
+ x: z.ZodNumber;
255
+ y: z.ZodNumber;
256
+ }, z.core.$strict>;
257
+ label: z.ZodString;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"condition">;
260
+ configuration: z.ZodObject<{
261
+ mode: z.ZodLiteral<"semantic">;
262
+ instruction: z.ZodString;
263
+ }, z.core.$strict>;
264
+ id: z.ZodString;
265
+ position: z.ZodObject<{
266
+ x: z.ZodNumber;
267
+ y: z.ZodNumber;
268
+ }, z.core.$strict>;
269
+ label: z.ZodString;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ kind: z.ZodLiteral<"subflow">;
272
+ configuration: z.ZodObject<{
273
+ flowId: z.ZodString;
274
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
275
+ mode: z.ZodLiteral<"latest">;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ mode: z.ZodLiteral<"follows">;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ mode: z.ZodLiteral<"pinned">;
280
+ versionId: z.ZodString;
281
+ }, z.core.$strict>], "mode">>;
282
+ }, z.core.$strict>;
283
+ id: z.ZodString;
284
+ position: z.ZodObject<{
285
+ x: z.ZodNumber;
286
+ y: z.ZodNumber;
287
+ }, z.core.$strict>;
288
+ label: z.ZodString;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ kind: z.ZodLiteral<"output">;
291
+ configuration: z.ZodObject<{}, z.core.$strict>;
292
+ id: z.ZodString;
293
+ position: z.ZodObject<{
294
+ x: z.ZodNumber;
295
+ y: z.ZodNumber;
296
+ }, z.core.$strict>;
297
+ label: z.ZodString;
298
+ }, z.core.$strict>], "kind">>;
299
+ edges: z.ZodArray<z.ZodObject<{
300
+ id: z.ZodString;
301
+ source: z.ZodString;
302
+ target: z.ZodString;
303
+ kind: z.ZodDefault<z.ZodEnum<{
304
+ flow: "flow";
305
+ context: "context";
306
+ }>>;
307
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
308
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
+ }, z.core.$strict>>;
310
+ }, z.core.$strict>;
311
+ export type FlowGraph = z.infer<typeof FlowGraph>;
312
+ export declare const Flow: z.ZodObject<{
313
+ id: z.ZodString;
314
+ parentId: z.ZodNullable<z.ZodString>;
315
+ title: z.ZodString;
316
+ description: z.ZodNullable<z.ZodString>;
317
+ ownerId: z.ZodString;
318
+ currentVersionId: z.ZodNullable<z.ZodString>;
319
+ publishedVersionId: z.ZodNullable<z.ZodString>;
320
+ createdAt: z.ZodISODateTime;
321
+ updatedAt: z.ZodISODateTime;
322
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
323
+ }, z.core.$strict>;
324
+ export type Flow = z.infer<typeof Flow>;
325
+ export declare const FlowVersion: z.ZodObject<{
326
+ id: z.ZodString;
327
+ flowId: z.ZodString;
328
+ sequence: z.ZodNumber;
329
+ graph: z.ZodObject<{
330
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
331
+ kind: z.ZodLiteral<"trigger">;
332
+ configuration: z.ZodObject<{
333
+ mode: z.ZodLiteral<"manual">;
334
+ }, z.core.$strict>;
335
+ id: z.ZodString;
336
+ position: z.ZodObject<{
337
+ x: z.ZodNumber;
338
+ y: z.ZodNumber;
339
+ }, z.core.$strict>;
340
+ label: z.ZodString;
341
+ }, z.core.$strict>, z.ZodObject<{
342
+ kind: z.ZodLiteral<"instruction">;
343
+ configuration: z.ZodObject<{
344
+ prompt: z.ZodString;
345
+ }, z.core.$strict>;
346
+ id: z.ZodString;
347
+ position: z.ZodObject<{
348
+ x: z.ZodNumber;
349
+ y: z.ZodNumber;
350
+ }, z.core.$strict>;
351
+ label: z.ZodString;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ kind: z.ZodLiteral<"folder">;
354
+ configuration: z.ZodObject<{
355
+ resourceId: z.ZodString;
356
+ }, z.core.$strict>;
357
+ id: z.ZodString;
358
+ position: z.ZodObject<{
359
+ x: z.ZodNumber;
360
+ y: z.ZodNumber;
361
+ }, z.core.$strict>;
362
+ label: z.ZodString;
363
+ }, z.core.$strict>, z.ZodObject<{
364
+ kind: z.ZodLiteral<"document">;
365
+ configuration: z.ZodObject<{
366
+ resourceId: z.ZodString;
367
+ }, z.core.$strict>;
368
+ id: z.ZodString;
369
+ position: z.ZodObject<{
370
+ x: z.ZodNumber;
371
+ y: z.ZodNumber;
372
+ }, z.core.$strict>;
373
+ label: z.ZodString;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ kind: z.ZodLiteral<"upload">;
376
+ configuration: z.ZodObject<{
377
+ resourceId: z.ZodString;
378
+ }, z.core.$strict>;
379
+ id: z.ZodString;
380
+ position: z.ZodObject<{
381
+ x: z.ZodNumber;
382
+ y: z.ZodNumber;
383
+ }, z.core.$strict>;
384
+ label: z.ZodString;
385
+ }, z.core.$strict>, z.ZodObject<{
386
+ kind: z.ZodLiteral<"table">;
387
+ configuration: z.ZodObject<{
388
+ resourceId: z.ZodString;
389
+ }, z.core.$strict>;
390
+ id: z.ZodString;
391
+ position: z.ZodObject<{
392
+ x: z.ZodNumber;
393
+ y: z.ZodNumber;
394
+ }, z.core.$strict>;
395
+ label: z.ZodString;
396
+ }, z.core.$strict>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"tool">;
398
+ configuration: z.ZodObject<{
399
+ toolName: z.ZodString;
400
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
401
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
+ }, z.core.$strict>;
403
+ id: z.ZodString;
404
+ position: z.ZodObject<{
405
+ x: z.ZodNumber;
406
+ y: z.ZodNumber;
407
+ }, z.core.$strict>;
408
+ label: z.ZodString;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ kind: z.ZodLiteral<"condition">;
411
+ configuration: z.ZodObject<{
412
+ mode: z.ZodLiteral<"semantic">;
413
+ instruction: z.ZodString;
414
+ }, z.core.$strict>;
415
+ id: z.ZodString;
416
+ position: z.ZodObject<{
417
+ x: z.ZodNumber;
418
+ y: z.ZodNumber;
419
+ }, z.core.$strict>;
420
+ label: z.ZodString;
421
+ }, z.core.$strict>, z.ZodObject<{
422
+ kind: z.ZodLiteral<"subflow">;
423
+ configuration: z.ZodObject<{
424
+ flowId: z.ZodString;
425
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
426
+ mode: z.ZodLiteral<"latest">;
427
+ }, z.core.$strict>, z.ZodObject<{
428
+ mode: z.ZodLiteral<"follows">;
429
+ }, z.core.$strict>, z.ZodObject<{
430
+ mode: z.ZodLiteral<"pinned">;
431
+ versionId: z.ZodString;
432
+ }, z.core.$strict>], "mode">>;
433
+ }, z.core.$strict>;
434
+ id: z.ZodString;
435
+ position: z.ZodObject<{
436
+ x: z.ZodNumber;
437
+ y: z.ZodNumber;
438
+ }, z.core.$strict>;
439
+ label: z.ZodString;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ kind: z.ZodLiteral<"output">;
442
+ configuration: z.ZodObject<{}, z.core.$strict>;
443
+ id: z.ZodString;
444
+ position: z.ZodObject<{
445
+ x: z.ZodNumber;
446
+ y: z.ZodNumber;
447
+ }, z.core.$strict>;
448
+ label: z.ZodString;
449
+ }, z.core.$strict>], "kind">>;
450
+ edges: z.ZodArray<z.ZodObject<{
451
+ id: z.ZodString;
452
+ source: z.ZodString;
453
+ target: z.ZodString;
454
+ kind: z.ZodDefault<z.ZodEnum<{
455
+ flow: "flow";
456
+ context: "context";
457
+ }>>;
458
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
459
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
460
+ }, z.core.$strict>>;
461
+ }, z.core.$strict>;
462
+ createdBy: z.ZodString;
463
+ createdAt: z.ZodISODateTime;
464
+ }, z.core.$strict>;
465
+ export type FlowVersion = z.infer<typeof FlowVersion>;
466
+ export declare const FlowDocument: z.ZodObject<{
467
+ flow: z.ZodObject<{
468
+ id: z.ZodString;
469
+ parentId: z.ZodNullable<z.ZodString>;
470
+ title: z.ZodString;
471
+ description: z.ZodNullable<z.ZodString>;
472
+ ownerId: z.ZodString;
473
+ currentVersionId: z.ZodNullable<z.ZodString>;
474
+ publishedVersionId: z.ZodNullable<z.ZodString>;
475
+ createdAt: z.ZodISODateTime;
476
+ updatedAt: z.ZodISODateTime;
477
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
478
+ }, z.core.$strict>;
479
+ version: z.ZodNullable<z.ZodObject<{
480
+ id: z.ZodString;
481
+ flowId: z.ZodString;
482
+ sequence: z.ZodNumber;
483
+ graph: z.ZodObject<{
484
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
485
+ kind: z.ZodLiteral<"trigger">;
486
+ configuration: z.ZodObject<{
487
+ mode: z.ZodLiteral<"manual">;
488
+ }, z.core.$strict>;
489
+ id: z.ZodString;
490
+ position: z.ZodObject<{
491
+ x: z.ZodNumber;
492
+ y: z.ZodNumber;
493
+ }, z.core.$strict>;
494
+ label: z.ZodString;
495
+ }, z.core.$strict>, z.ZodObject<{
496
+ kind: z.ZodLiteral<"instruction">;
497
+ configuration: z.ZodObject<{
498
+ prompt: z.ZodString;
499
+ }, z.core.$strict>;
500
+ id: z.ZodString;
501
+ position: z.ZodObject<{
502
+ x: z.ZodNumber;
503
+ y: z.ZodNumber;
504
+ }, z.core.$strict>;
505
+ label: z.ZodString;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ kind: z.ZodLiteral<"folder">;
508
+ configuration: z.ZodObject<{
509
+ resourceId: z.ZodString;
510
+ }, z.core.$strict>;
511
+ id: z.ZodString;
512
+ position: z.ZodObject<{
513
+ x: z.ZodNumber;
514
+ y: z.ZodNumber;
515
+ }, z.core.$strict>;
516
+ label: z.ZodString;
517
+ }, z.core.$strict>, z.ZodObject<{
518
+ kind: z.ZodLiteral<"document">;
519
+ configuration: z.ZodObject<{
520
+ resourceId: z.ZodString;
521
+ }, z.core.$strict>;
522
+ id: z.ZodString;
523
+ position: z.ZodObject<{
524
+ x: z.ZodNumber;
525
+ y: z.ZodNumber;
526
+ }, z.core.$strict>;
527
+ label: z.ZodString;
528
+ }, z.core.$strict>, z.ZodObject<{
529
+ kind: z.ZodLiteral<"upload">;
530
+ configuration: z.ZodObject<{
531
+ resourceId: z.ZodString;
532
+ }, z.core.$strict>;
533
+ id: z.ZodString;
534
+ position: z.ZodObject<{
535
+ x: z.ZodNumber;
536
+ y: z.ZodNumber;
537
+ }, z.core.$strict>;
538
+ label: z.ZodString;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"table">;
541
+ configuration: z.ZodObject<{
542
+ resourceId: z.ZodString;
543
+ }, z.core.$strict>;
544
+ id: z.ZodString;
545
+ position: z.ZodObject<{
546
+ x: z.ZodNumber;
547
+ y: z.ZodNumber;
548
+ }, z.core.$strict>;
549
+ label: z.ZodString;
550
+ }, z.core.$strict>, z.ZodObject<{
551
+ kind: z.ZodLiteral<"tool">;
552
+ configuration: z.ZodObject<{
553
+ toolName: z.ZodString;
554
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
555
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
556
+ }, z.core.$strict>;
557
+ id: z.ZodString;
558
+ position: z.ZodObject<{
559
+ x: z.ZodNumber;
560
+ y: z.ZodNumber;
561
+ }, z.core.$strict>;
562
+ label: z.ZodString;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ kind: z.ZodLiteral<"condition">;
565
+ configuration: z.ZodObject<{
566
+ mode: z.ZodLiteral<"semantic">;
567
+ instruction: z.ZodString;
568
+ }, z.core.$strict>;
569
+ id: z.ZodString;
570
+ position: z.ZodObject<{
571
+ x: z.ZodNumber;
572
+ y: z.ZodNumber;
573
+ }, z.core.$strict>;
574
+ label: z.ZodString;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ kind: z.ZodLiteral<"subflow">;
577
+ configuration: z.ZodObject<{
578
+ flowId: z.ZodString;
579
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
580
+ mode: z.ZodLiteral<"latest">;
581
+ }, z.core.$strict>, z.ZodObject<{
582
+ mode: z.ZodLiteral<"follows">;
583
+ }, z.core.$strict>, z.ZodObject<{
584
+ mode: z.ZodLiteral<"pinned">;
585
+ versionId: z.ZodString;
586
+ }, z.core.$strict>], "mode">>;
587
+ }, z.core.$strict>;
588
+ id: z.ZodString;
589
+ position: z.ZodObject<{
590
+ x: z.ZodNumber;
591
+ y: z.ZodNumber;
592
+ }, z.core.$strict>;
593
+ label: z.ZodString;
594
+ }, z.core.$strict>, z.ZodObject<{
595
+ kind: z.ZodLiteral<"output">;
596
+ configuration: z.ZodObject<{}, z.core.$strict>;
597
+ id: z.ZodString;
598
+ position: z.ZodObject<{
599
+ x: z.ZodNumber;
600
+ y: z.ZodNumber;
601
+ }, z.core.$strict>;
602
+ label: z.ZodString;
603
+ }, z.core.$strict>], "kind">>;
604
+ edges: z.ZodArray<z.ZodObject<{
605
+ id: z.ZodString;
606
+ source: z.ZodString;
607
+ target: z.ZodString;
608
+ kind: z.ZodDefault<z.ZodEnum<{
609
+ flow: "flow";
610
+ context: "context";
611
+ }>>;
612
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
613
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
614
+ }, z.core.$strict>>;
615
+ }, z.core.$strict>;
616
+ createdBy: z.ZodString;
617
+ createdAt: z.ZodISODateTime;
618
+ }, z.core.$strict>>;
619
+ }, z.core.$strict>;
620
+ export type FlowDocument = z.infer<typeof FlowDocument>;
621
+ export declare const FlowVersionSummary: z.ZodObject<{
622
+ id: z.ZodString;
623
+ flowId: z.ZodString;
624
+ sequence: z.ZodNumber;
625
+ createdBy: z.ZodString;
626
+ createdAt: z.ZodISODateTime;
627
+ published: z.ZodBoolean;
628
+ }, z.core.$strict>;
629
+ export type FlowVersionSummary = z.infer<typeof FlowVersionSummary>;
630
+ export declare const FlowVersionList: z.ZodObject<{
631
+ flowId: z.ZodString;
632
+ items: z.ZodArray<z.ZodObject<{
633
+ id: z.ZodString;
634
+ flowId: z.ZodString;
635
+ sequence: z.ZodNumber;
636
+ createdBy: z.ZodString;
637
+ createdAt: z.ZodISODateTime;
638
+ published: z.ZodBoolean;
639
+ }, z.core.$strict>>;
640
+ }, z.core.$strict>;
641
+ export type FlowVersionList = z.infer<typeof FlowVersionList>;
642
+ export declare const GetFlowVersionInput: z.ZodObject<{
643
+ flowId: z.ZodString;
644
+ versionId: z.ZodString;
645
+ }, z.core.$strict>;
646
+ export type GetFlowVersionInput = z.infer<typeof GetFlowVersionInput>;
647
+ export declare const FlowList: z.ZodObject<{
648
+ items: z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ parentId: z.ZodNullable<z.ZodString>;
651
+ title: z.ZodString;
652
+ description: z.ZodNullable<z.ZodString>;
653
+ ownerId: z.ZodString;
654
+ currentVersionId: z.ZodNullable<z.ZodString>;
655
+ publishedVersionId: z.ZodNullable<z.ZodString>;
656
+ createdAt: z.ZodISODateTime;
657
+ updatedAt: z.ZodISODateTime;
658
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
659
+ }, z.core.$strict>>;
660
+ withCalls: z.ZodDefault<z.ZodArray<z.ZodString>>;
661
+ }, z.core.$strict>;
662
+ export type FlowList = z.infer<typeof FlowList>;
663
+ export declare const ReferencedNode: z.ZodObject<{
664
+ id: z.ZodString;
665
+ title: z.ZodString;
666
+ }, z.core.$strict>;
667
+ export type ReferencedNode = z.infer<typeof ReferencedNode>;
668
+ export declare const FlowRequirements: z.ZodObject<{
669
+ flowId: z.ZodString;
670
+ versionId: z.ZodNullable<z.ZodString>;
671
+ nodes: z.ZodArray<z.ZodObject<{
672
+ id: z.ZodString;
673
+ title: z.ZodString;
674
+ }, z.core.$strict>>;
675
+ hiddenNodes: z.ZodNumber;
676
+ tools: z.ZodArray<z.ZodString>;
677
+ }, z.core.$strict>;
678
+ export type FlowRequirements = z.infer<typeof FlowRequirements>;
679
+ export declare const FlowValidation: z.ZodObject<{
680
+ flowId: z.ZodString;
681
+ versionId: z.ZodNullable<z.ZodString>;
682
+ problems: z.ZodArray<z.ZodObject<{
683
+ code: z.ZodString;
684
+ detail: z.ZodString;
685
+ }, z.core.$strict>>;
686
+ checkedAt: z.ZodISODateTime;
687
+ }, z.core.$strict>;
688
+ export type FlowValidation = z.infer<typeof FlowValidation>;
689
+ export declare const CreateFlowInput: z.ZodObject<{
690
+ parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
691
+ title: z.ZodString;
692
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
693
+ idempotencyKey: z.ZodString;
694
+ }, z.core.$strict>;
695
+ export type CreateFlowInput = z.infer<typeof CreateFlowInput>;
696
+ export declare const UpdateFlowInput: z.ZodObject<{
697
+ flowId: z.ZodString;
698
+ baseUpdatedAt: z.ZodISODateTime;
699
+ title: z.ZodOptional<z.ZodString>;
700
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ idempotencyKey: z.ZodString;
703
+ }, z.core.$strict>;
704
+ export type UpdateFlowInput = z.infer<typeof UpdateFlowInput>;
705
+ export declare const ArchiveFlowInput: z.ZodObject<{
706
+ flowId: z.ZodString;
707
+ baseUpdatedAt: z.ZodISODateTime;
708
+ archived: z.ZodBoolean;
709
+ idempotencyKey: z.ZodString;
710
+ }, z.core.$strict>;
711
+ export type ArchiveFlowInput = z.infer<typeof ArchiveFlowInput>;
712
+ export declare const ListFlowsInput: z.ZodObject<{
713
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
715
+ archivedOnly: z.ZodOptional<z.ZodBoolean>;
716
+ }, z.core.$strict>;
717
+ export type ListFlowsInput = z.infer<typeof ListFlowsInput>;
718
+ export declare const GetFlowInput: z.ZodObject<{
719
+ flowId: z.ZodString;
720
+ }, z.core.$strict>;
721
+ export type GetFlowInput = z.infer<typeof GetFlowInput>;
722
+ export declare const SaveFlowVersionInput: z.ZodObject<{
723
+ flowId: z.ZodString;
724
+ baseVersionId: z.ZodNullable<z.ZodString>;
725
+ graph: z.ZodObject<{
726
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
727
+ kind: z.ZodLiteral<"trigger">;
728
+ configuration: z.ZodObject<{
729
+ mode: z.ZodLiteral<"manual">;
730
+ }, z.core.$strict>;
731
+ id: z.ZodString;
732
+ position: z.ZodObject<{
733
+ x: z.ZodNumber;
734
+ y: z.ZodNumber;
735
+ }, z.core.$strict>;
736
+ label: z.ZodString;
737
+ }, z.core.$strict>, z.ZodObject<{
738
+ kind: z.ZodLiteral<"instruction">;
739
+ configuration: z.ZodObject<{
740
+ prompt: z.ZodString;
741
+ }, z.core.$strict>;
742
+ id: z.ZodString;
743
+ position: z.ZodObject<{
744
+ x: z.ZodNumber;
745
+ y: z.ZodNumber;
746
+ }, z.core.$strict>;
747
+ label: z.ZodString;
748
+ }, z.core.$strict>, z.ZodObject<{
749
+ kind: z.ZodLiteral<"folder">;
750
+ configuration: z.ZodObject<{
751
+ resourceId: z.ZodString;
752
+ }, z.core.$strict>;
753
+ id: z.ZodString;
754
+ position: z.ZodObject<{
755
+ x: z.ZodNumber;
756
+ y: z.ZodNumber;
757
+ }, z.core.$strict>;
758
+ label: z.ZodString;
759
+ }, z.core.$strict>, z.ZodObject<{
760
+ kind: z.ZodLiteral<"document">;
761
+ configuration: z.ZodObject<{
762
+ resourceId: z.ZodString;
763
+ }, z.core.$strict>;
764
+ id: z.ZodString;
765
+ position: z.ZodObject<{
766
+ x: z.ZodNumber;
767
+ y: z.ZodNumber;
768
+ }, z.core.$strict>;
769
+ label: z.ZodString;
770
+ }, z.core.$strict>, z.ZodObject<{
771
+ kind: z.ZodLiteral<"upload">;
772
+ configuration: z.ZodObject<{
773
+ resourceId: z.ZodString;
774
+ }, z.core.$strict>;
775
+ id: z.ZodString;
776
+ position: z.ZodObject<{
777
+ x: z.ZodNumber;
778
+ y: z.ZodNumber;
779
+ }, z.core.$strict>;
780
+ label: z.ZodString;
781
+ }, z.core.$strict>, z.ZodObject<{
782
+ kind: z.ZodLiteral<"table">;
783
+ configuration: z.ZodObject<{
784
+ resourceId: z.ZodString;
785
+ }, z.core.$strict>;
786
+ id: z.ZodString;
787
+ position: z.ZodObject<{
788
+ x: z.ZodNumber;
789
+ y: z.ZodNumber;
790
+ }, z.core.$strict>;
791
+ label: z.ZodString;
792
+ }, z.core.$strict>, z.ZodObject<{
793
+ kind: z.ZodLiteral<"tool">;
794
+ configuration: z.ZodObject<{
795
+ toolName: z.ZodString;
796
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
797
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
798
+ }, z.core.$strict>;
799
+ id: z.ZodString;
800
+ position: z.ZodObject<{
801
+ x: z.ZodNumber;
802
+ y: z.ZodNumber;
803
+ }, z.core.$strict>;
804
+ label: z.ZodString;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ kind: z.ZodLiteral<"condition">;
807
+ configuration: z.ZodObject<{
808
+ mode: z.ZodLiteral<"semantic">;
809
+ instruction: z.ZodString;
810
+ }, z.core.$strict>;
811
+ id: z.ZodString;
812
+ position: z.ZodObject<{
813
+ x: z.ZodNumber;
814
+ y: z.ZodNumber;
815
+ }, z.core.$strict>;
816
+ label: z.ZodString;
817
+ }, z.core.$strict>, z.ZodObject<{
818
+ kind: z.ZodLiteral<"subflow">;
819
+ configuration: z.ZodObject<{
820
+ flowId: z.ZodString;
821
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
822
+ mode: z.ZodLiteral<"latest">;
823
+ }, z.core.$strict>, z.ZodObject<{
824
+ mode: z.ZodLiteral<"follows">;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ mode: z.ZodLiteral<"pinned">;
827
+ versionId: z.ZodString;
828
+ }, z.core.$strict>], "mode">>;
829
+ }, z.core.$strict>;
830
+ id: z.ZodString;
831
+ position: z.ZodObject<{
832
+ x: z.ZodNumber;
833
+ y: z.ZodNumber;
834
+ }, z.core.$strict>;
835
+ label: z.ZodString;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ kind: z.ZodLiteral<"output">;
838
+ configuration: z.ZodObject<{}, z.core.$strict>;
839
+ id: z.ZodString;
840
+ position: z.ZodObject<{
841
+ x: z.ZodNumber;
842
+ y: z.ZodNumber;
843
+ }, z.core.$strict>;
844
+ label: z.ZodString;
845
+ }, z.core.$strict>], "kind">>;
846
+ edges: z.ZodArray<z.ZodObject<{
847
+ id: z.ZodString;
848
+ source: z.ZodString;
849
+ target: z.ZodString;
850
+ kind: z.ZodDefault<z.ZodEnum<{
851
+ flow: "flow";
852
+ context: "context";
853
+ }>>;
854
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
855
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
856
+ }, z.core.$strict>>;
857
+ }, z.core.$strict>;
858
+ idempotencyKey: z.ZodString;
859
+ }, z.core.$strict>;
860
+ export type SaveFlowVersionInput = z.infer<typeof SaveFlowVersionInput>;
861
+ export declare const PublishFlowInput: z.ZodObject<{
862
+ flowId: z.ZodString;
863
+ versionId: z.ZodString;
864
+ idempotencyKey: z.ZodString;
865
+ }, z.core.$strict>;
866
+ export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
867
+ export declare const UnpublishFlowInput: z.ZodObject<{
868
+ flowId: z.ZodString;
869
+ idempotencyKey: z.ZodString;
870
+ }, z.core.$strict>;
871
+ export type UnpublishFlowInput = z.infer<typeof UnpublishFlowInput>;
872
+ export declare const PreviewFlowPublishInput: z.ZodObject<{
873
+ flowId: z.ZodString;
874
+ versionId: z.ZodString;
875
+ }, z.core.$strict>;
876
+ export type PreviewFlowPublishInput = z.infer<typeof PreviewFlowPublishInput>;
877
+ export declare const FlowPublishCall: z.ZodObject<{
878
+ nodeId: z.ZodString;
879
+ nodeLabel: z.ZodString;
880
+ calleeId: z.ZodString;
881
+ calleeTitle: z.ZodString;
882
+ mode: z.ZodEnum<{
883
+ latest: "latest";
884
+ follows: "follows";
885
+ pinned: "pinned";
886
+ }>;
887
+ versionId: z.ZodNullable<z.ZodString>;
888
+ versionSequence: z.ZodNullable<z.ZodNumber>;
889
+ freezes: z.ZodBoolean;
890
+ available: z.ZodBoolean;
891
+ }, z.core.$strict>;
892
+ export type FlowPublishCall = z.infer<typeof FlowPublishCall>;
893
+ export declare const FlowPublishPreview: z.ZodObject<{
894
+ flowId: z.ZodString;
895
+ versionId: z.ZodString;
896
+ calls: z.ZodArray<z.ZodObject<{
897
+ nodeId: z.ZodString;
898
+ nodeLabel: z.ZodString;
899
+ calleeId: z.ZodString;
900
+ calleeTitle: z.ZodString;
901
+ mode: z.ZodEnum<{
902
+ latest: "latest";
903
+ follows: "follows";
904
+ pinned: "pinned";
905
+ }>;
906
+ versionId: z.ZodNullable<z.ZodString>;
907
+ versionSequence: z.ZodNullable<z.ZodNumber>;
908
+ freezes: z.ZodBoolean;
909
+ available: z.ZodBoolean;
910
+ }, z.core.$strict>>;
911
+ }, z.core.$strict>;
912
+ export type FlowPublishPreview = z.infer<typeof FlowPublishPreview>;
913
+ export declare const RelationNodeKind: z.ZodEnum<{
914
+ folder: "folder";
915
+ document: "document";
916
+ table: "table";
917
+ attachment: "attachment";
918
+ flow: "flow";
919
+ }>;
920
+ export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
921
+ export declare const RelationNode: z.ZodObject<{
922
+ id: z.ZodString;
923
+ kind: z.ZodEnum<{
924
+ folder: "folder";
925
+ document: "document";
926
+ table: "table";
927
+ attachment: "attachment";
928
+ flow: "flow";
929
+ }>;
930
+ title: z.ZodString;
931
+ inScope: z.ZodBoolean;
932
+ }, z.core.$strict>;
933
+ export type RelationNode = z.infer<typeof RelationNode>;
934
+ export declare const RelationEdge: z.ZodObject<{
935
+ id: z.ZodString;
936
+ source: z.ZodString;
937
+ target: z.ZodString;
938
+ relation: z.ZodEnum<{
939
+ calls: "calls";
940
+ reads: "reads";
941
+ }>;
942
+ }, z.core.$strict>;
943
+ export type RelationEdge = z.infer<typeof RelationEdge>;
944
+ export declare const RelationGraphScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
945
+ of: z.ZodLiteral<"folder">;
946
+ folderId: z.ZodNullable<z.ZodString>;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ of: z.ZodLiteral<"flow">;
949
+ flowId: z.ZodString;
950
+ }, z.core.$strict>], "of">;
951
+ export type RelationGraphScope = z.infer<typeof RelationGraphScope>;
952
+ export declare const RelationGraphInput: z.ZodObject<{
953
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
954
+ of: z.ZodLiteral<"folder">;
955
+ folderId: z.ZodNullable<z.ZodString>;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ of: z.ZodLiteral<"flow">;
958
+ flowId: z.ZodString;
959
+ }, z.core.$strict>], "of">;
960
+ limit: z.ZodDefault<z.ZodNumber>;
961
+ }, z.core.$strict>;
962
+ export type RelationGraphInput = z.infer<typeof RelationGraphInput>;
963
+ export declare const RelationGraph: z.ZodObject<{
964
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
965
+ of: z.ZodLiteral<"folder">;
966
+ folderId: z.ZodNullable<z.ZodString>;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ of: z.ZodLiteral<"flow">;
969
+ flowId: z.ZodString;
970
+ }, z.core.$strict>], "of">;
971
+ nodes: z.ZodArray<z.ZodObject<{
972
+ id: z.ZodString;
973
+ kind: z.ZodEnum<{
974
+ folder: "folder";
975
+ document: "document";
976
+ table: "table";
977
+ attachment: "attachment";
978
+ flow: "flow";
979
+ }>;
980
+ title: z.ZodString;
981
+ inScope: z.ZodBoolean;
982
+ }, z.core.$strict>>;
983
+ edges: z.ZodArray<z.ZodObject<{
984
+ id: z.ZodString;
985
+ source: z.ZodString;
986
+ target: z.ZodString;
987
+ relation: z.ZodEnum<{
988
+ calls: "calls";
989
+ reads: "reads";
990
+ }>;
991
+ }, z.core.$strict>>;
992
+ omitted: z.ZodNumber;
993
+ limit: z.ZodNumber;
994
+ }, z.core.$strict>;
995
+ export type RelationGraph = z.infer<typeof RelationGraph>;