@anchrd/intel-contract 0.2.1 → 0.3.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.
@@ -20,21 +20,16 @@ export declare const KnowledgeNodeKind: z.ZodEnum<{
20
20
  folder: "folder";
21
21
  document: "document";
22
22
  attachment: "attachment";
23
+ table: "table";
23
24
  }>;
24
25
  export type KnowledgeNodeKind = z.infer<typeof KnowledgeNodeKind>;
25
- export declare const ContextPolicy: z.ZodEnum<{
26
- pinned: "pinned";
27
- relevant: "relevant";
28
- explicit: "explicit";
29
- }>;
30
- export type ContextPolicy = z.infer<typeof ContextPolicy>;
31
- export declare const ResourceRole: z.ZodEnum<{
32
- viewer: "viewer";
33
- commenter: "commenter";
34
- editor: "editor";
35
- manager: "manager";
26
+ export declare const ResourceVerb: z.ZodEnum<{
27
+ read: "read";
28
+ write: "write";
29
+ execute: "execute";
30
+ share: "share";
36
31
  }>;
37
- export type ResourceRole = z.infer<typeof ResourceRole>;
32
+ export type ResourceVerb = z.infer<typeof ResourceVerb>;
38
33
  export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
34
  type: z.ZodLiteral<"user">;
40
35
  id: z.ZodString;
@@ -52,14 +47,10 @@ export declare const KnowledgeNode: z.ZodObject<{
52
47
  folder: "folder";
53
48
  document: "document";
54
49
  attachment: "attachment";
50
+ table: "table";
55
51
  }>;
56
52
  title: z.ZodString;
57
53
  description: z.ZodNullable<z.ZodString>;
58
- contextPolicy: z.ZodEnum<{
59
- pinned: "pinned";
60
- relevant: "relevant";
61
- explicit: "explicit";
62
- }>;
63
54
  ownerId: z.ZodString;
64
55
  currentVersionId: z.ZodNullable<z.ZodString>;
65
56
  createdAt: z.ZodISODateTime;
@@ -98,14 +89,10 @@ export declare const CreateKnowledgeNodeInput: z.ZodObject<{
98
89
  folder: "folder";
99
90
  document: "document";
100
91
  attachment: "attachment";
92
+ table: "table";
101
93
  }>;
102
94
  title: z.ZodString;
103
95
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
104
- contextPolicy: z.ZodDefault<z.ZodEnum<{
105
- pinned: "pinned";
106
- relevant: "relevant";
107
- explicit: "explicit";
108
- }>>;
109
96
  idempotencyKey: z.ZodString;
110
97
  }, z.core.$strict>;
111
98
  export type CreateKnowledgeNodeInput = z.infer<typeof CreateKnowledgeNodeInput>;
@@ -130,11 +117,6 @@ export declare const UpdateKnowledgeNodeInput: z.ZodObject<{
130
117
  baseUpdatedAt: z.ZodISODateTime;
131
118
  title: z.ZodOptional<z.ZodString>;
132
119
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
- contextPolicy: z.ZodOptional<z.ZodEnum<{
134
- pinned: "pinned";
135
- relevant: "relevant";
136
- explicit: "explicit";
137
- }>>;
138
120
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
121
  idempotencyKey: z.ZodString;
140
122
  }, z.core.$strict>;
@@ -154,14 +136,10 @@ export declare const KnowledgeNodeList: z.ZodObject<{
154
136
  folder: "folder";
155
137
  document: "document";
156
138
  attachment: "attachment";
139
+ table: "table";
157
140
  }>;
158
141
  title: z.ZodString;
159
142
  description: z.ZodNullable<z.ZodString>;
160
- contextPolicy: z.ZodEnum<{
161
- pinned: "pinned";
162
- relevant: "relevant";
163
- explicit: "explicit";
164
- }>;
165
143
  ownerId: z.ZodString;
166
144
  currentVersionId: z.ZodNullable<z.ZodString>;
167
145
  createdAt: z.ZodISODateTime;
@@ -192,14 +170,10 @@ export declare const KnowledgeDocument: z.ZodObject<{
192
170
  folder: "folder";
193
171
  document: "document";
194
172
  attachment: "attachment";
173
+ table: "table";
195
174
  }>;
196
175
  title: z.ZodString;
197
176
  description: z.ZodNullable<z.ZodString>;
198
- contextPolicy: z.ZodEnum<{
199
- pinned: "pinned";
200
- relevant: "relevant";
201
- explicit: "explicit";
202
- }>;
203
177
  ownerId: z.ZodString;
204
178
  currentVersionId: z.ZodNullable<z.ZodString>;
205
179
  createdAt: z.ZodISODateTime;
@@ -228,14 +202,10 @@ export declare const KnowledgeAttachment: z.ZodObject<{
228
202
  folder: "folder";
229
203
  document: "document";
230
204
  attachment: "attachment";
205
+ table: "table";
231
206
  }>;
232
207
  title: z.ZodString;
233
208
  description: z.ZodNullable<z.ZodString>;
234
- contextPolicy: z.ZodEnum<{
235
- pinned: "pinned";
236
- relevant: "relevant";
237
- explicit: "explicit";
238
- }>;
239
209
  ownerId: z.ZodString;
240
210
  currentVersionId: z.ZodNullable<z.ZodString>;
241
211
  createdAt: z.ZodISODateTime;
@@ -256,6 +226,81 @@ export declare const KnowledgeAttachment: z.ZodObject<{
256
226
  resourceUri: z.ZodString;
257
227
  }, z.core.$strict>;
258
228
  export type KnowledgeAttachment = z.infer<typeof KnowledgeAttachment>;
229
+ export declare const TableMediaType = "text/csv";
230
+ export declare const TableColumn: z.ZodString;
231
+ export declare const TableCell: z.ZodString;
232
+ export declare const TableRow: z.ZodArray<z.ZodString>;
233
+ export declare const DefineKnowledgeTableInput: z.ZodObject<{
234
+ nodeId: z.ZodString;
235
+ columns: z.ZodArray<z.ZodString>;
236
+ idempotencyKey: z.ZodString;
237
+ }, z.core.$strict>;
238
+ export type DefineKnowledgeTableInput = z.infer<typeof DefineKnowledgeTableInput>;
239
+ export declare const AppendKnowledgeTableRowsInput: z.ZodObject<{
240
+ nodeId: z.ZodString;
241
+ rows: z.ZodArray<z.ZodArray<z.ZodString>>;
242
+ idempotencyKey: z.ZodString;
243
+ }, z.core.$strict>;
244
+ export type AppendKnowledgeTableRowsInput = z.infer<typeof AppendKnowledgeTableRowsInput>;
245
+ export declare const GetKnowledgeTableInput: z.ZodObject<{
246
+ nodeId: z.ZodString;
247
+ }, z.core.$strict>;
248
+ export type GetKnowledgeTableInput = z.infer<typeof GetKnowledgeTableInput>;
249
+ export declare const KnowledgeTable: z.ZodObject<{
250
+ node: z.ZodObject<{
251
+ id: z.ZodString;
252
+ parentId: z.ZodNullable<z.ZodString>;
253
+ kind: z.ZodEnum<{
254
+ folder: "folder";
255
+ document: "document";
256
+ attachment: "attachment";
257
+ table: "table";
258
+ }>;
259
+ title: z.ZodString;
260
+ description: z.ZodNullable<z.ZodString>;
261
+ ownerId: z.ZodString;
262
+ currentVersionId: z.ZodNullable<z.ZodString>;
263
+ createdAt: z.ZodISODateTime;
264
+ updatedAt: z.ZodISODateTime;
265
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
266
+ }, z.core.$strict>;
267
+ columns: z.ZodArray<z.ZodString>;
268
+ rows: z.ZodArray<z.ZodArray<z.ZodString>>;
269
+ versionId: z.ZodNullable<z.ZodString>;
270
+ }, z.core.$strict>;
271
+ export type KnowledgeTable = z.infer<typeof KnowledgeTable>;
272
+ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
273
+ node: z.ZodObject<{
274
+ id: z.ZodString;
275
+ parentId: z.ZodNullable<z.ZodString>;
276
+ kind: z.ZodEnum<{
277
+ folder: "folder";
278
+ document: "document";
279
+ attachment: "attachment";
280
+ table: "table";
281
+ }>;
282
+ title: z.ZodString;
283
+ description: z.ZodNullable<z.ZodString>;
284
+ ownerId: z.ZodString;
285
+ currentVersionId: z.ZodNullable<z.ZodString>;
286
+ createdAt: z.ZodISODateTime;
287
+ updatedAt: z.ZodISODateTime;
288
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
289
+ }, z.core.$strict>;
290
+ version: z.ZodObject<{
291
+ id: z.ZodString;
292
+ nodeId: z.ZodString;
293
+ sequence: z.ZodNumber;
294
+ contentKey: z.ZodString;
295
+ mediaType: z.ZodString;
296
+ contentHash: z.ZodString;
297
+ size: z.ZodNumber;
298
+ createdBy: z.ZodString;
299
+ createdAt: z.ZodISODateTime;
300
+ }, z.core.$strict>;
301
+ appended: z.ZodNumber;
302
+ }, z.core.$strict>;
303
+ export type AppendKnowledgeTableRowsResult = z.infer<typeof AppendKnowledgeTableRowsResult>;
259
304
  export declare const KnowledgeLinkRelation: z.ZodEnum<{
260
305
  references: "references";
261
306
  related: "related";
@@ -263,6 +308,11 @@ export declare const KnowledgeLinkRelation: z.ZodEnum<{
263
308
  implements: "implements";
264
309
  }>;
265
310
  export type KnowledgeLinkRelation = z.infer<typeof KnowledgeLinkRelation>;
311
+ export declare const KnowledgeLinkOrigin: z.ZodEnum<{
312
+ text: "text";
313
+ manual: "manual";
314
+ }>;
315
+ export type KnowledgeLinkOrigin = z.infer<typeof KnowledgeLinkOrigin>;
266
316
  export declare const KnowledgeLink: z.ZodObject<{
267
317
  id: z.ZodString;
268
318
  sourceNodeId: z.ZodString;
@@ -273,6 +323,10 @@ export declare const KnowledgeLink: z.ZodObject<{
273
323
  depends_on: "depends_on";
274
324
  implements: "implements";
275
325
  }>;
326
+ origin: z.ZodEnum<{
327
+ text: "text";
328
+ manual: "manual";
329
+ }>;
276
330
  label: z.ZodNullable<z.ZodString>;
277
331
  createdBy: z.ZodString;
278
332
  createdAt: z.ZodISODateTime;
@@ -289,31 +343,33 @@ export declare const KnowledgeLinkList: z.ZodObject<{
289
343
  depends_on: "depends_on";
290
344
  implements: "implements";
291
345
  }>;
346
+ origin: z.ZodEnum<{
347
+ text: "text";
348
+ manual: "manual";
349
+ }>;
292
350
  label: z.ZodNullable<z.ZodString>;
293
351
  createdBy: z.ZodString;
294
352
  createdAt: z.ZodISODateTime;
295
353
  }, z.core.$strict>>;
296
354
  }, z.core.$strict>;
297
355
  export type KnowledgeLinkList = z.infer<typeof KnowledgeLinkList>;
298
- export declare const CreateKnowledgeLinkInput: z.ZodObject<{
299
- sourceNodeId: z.ZodString;
300
- targetNodeId: z.ZodString;
301
- relation: z.ZodEnum<{
302
- references: "references";
303
- related: "related";
304
- depends_on: "depends_on";
305
- implements: "implements";
306
- }>;
307
- label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
308
- idempotencyKey: z.ZodString;
356
+ export declare const DocumentLinkInlineType = "documentLink";
357
+ export declare const ResolveKnowledgeLinksInput: z.ZodObject<{
358
+ nodeIds: z.ZodArray<z.ZodString>;
309
359
  }, z.core.$strict>;
310
- export type CreateKnowledgeLinkInput = z.infer<typeof CreateKnowledgeLinkInput>;
311
- export declare const DeleteKnowledgeLinkInput: z.ZodObject<{
312
- sourceNodeId: z.ZodString;
313
- linkId: z.ZodString;
314
- idempotencyKey: z.ZodString;
360
+ export type ResolveKnowledgeLinksInput = z.infer<typeof ResolveKnowledgeLinksInput>;
361
+ export declare const ResolvedKnowledgeLink: z.ZodObject<{
362
+ nodeId: z.ZodString;
363
+ title: z.ZodString;
315
364
  }, z.core.$strict>;
316
- export type DeleteKnowledgeLinkInput = z.infer<typeof DeleteKnowledgeLinkInput>;
365
+ export type ResolvedKnowledgeLink = z.infer<typeof ResolvedKnowledgeLink>;
366
+ export declare const ResolveKnowledgeLinksResult: z.ZodObject<{
367
+ items: z.ZodArray<z.ZodObject<{
368
+ nodeId: z.ZodString;
369
+ title: z.ZodString;
370
+ }, z.core.$strict>>;
371
+ }, z.core.$strict>;
372
+ export type ResolveKnowledgeLinksResult = z.infer<typeof ResolveKnowledgeLinksResult>;
317
373
  export declare const KnowledgeGraphInput: z.ZodObject<{
318
374
  limit: z.ZodDefault<z.ZodNumber>;
319
375
  }, z.core.$strict>;
@@ -326,14 +382,10 @@ export declare const KnowledgeGraph: z.ZodObject<{
326
382
  folder: "folder";
327
383
  document: "document";
328
384
  attachment: "attachment";
385
+ table: "table";
329
386
  }>;
330
387
  title: z.ZodString;
331
388
  description: z.ZodNullable<z.ZodString>;
332
- contextPolicy: z.ZodEnum<{
333
- pinned: "pinned";
334
- relevant: "relevant";
335
- explicit: "explicit";
336
- }>;
337
389
  ownerId: z.ZodString;
338
390
  currentVersionId: z.ZodNullable<z.ZodString>;
339
391
  createdAt: z.ZodISODateTime;
@@ -350,6 +402,10 @@ export declare const KnowledgeGraph: z.ZodObject<{
350
402
  depends_on: "depends_on";
351
403
  implements: "implements";
352
404
  }>;
405
+ origin: z.ZodEnum<{
406
+ text: "text";
407
+ manual: "manual";
408
+ }>;
353
409
  label: z.ZodNullable<z.ZodString>;
354
410
  createdBy: z.ZodString;
355
411
  createdAt: z.ZodISODateTime;
@@ -376,11 +432,11 @@ export declare const ResourceGrant: z.ZodObject<{
376
432
  }, z.core.$strict>, z.ZodObject<{
377
433
  type: z.ZodLiteral<"organization">;
378
434
  }, z.core.$strict>], "type">;
379
- role: z.ZodEnum<{
380
- viewer: "viewer";
381
- commenter: "commenter";
382
- editor: "editor";
383
- manager: "manager";
435
+ verb: z.ZodEnum<{
436
+ read: "read";
437
+ write: "write";
438
+ execute: "execute";
439
+ share: "share";
384
440
  }>;
385
441
  expiresAt: z.ZodNullable<z.ZodISODateTime>;
386
442
  createdBy: z.ZodString;
@@ -398,11 +454,11 @@ export declare const ShareKnowledgeInput: z.ZodObject<{
398
454
  }, z.core.$strict>, z.ZodObject<{
399
455
  type: z.ZodLiteral<"organization">;
400
456
  }, z.core.$strict>], "type">;
401
- role: z.ZodEnum<{
402
- viewer: "viewer";
403
- commenter: "commenter";
404
- editor: "editor";
405
- manager: "manager";
457
+ verb: z.ZodEnum<{
458
+ read: "read";
459
+ write: "write";
460
+ execute: "execute";
461
+ share: "share";
406
462
  }>;
407
463
  expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
408
464
  idempotencyKey: z.ZodString;
@@ -414,7 +470,48 @@ export declare const RevokeKnowledgeGrantInput: z.ZodObject<{
414
470
  idempotencyKey: z.ZodString;
415
471
  }, z.core.$strict>;
416
472
  export type RevokeKnowledgeGrantInput = z.infer<typeof RevokeKnowledgeGrantInput>;
473
+ export declare const UnreadableKnowledge: z.ZodObject<{
474
+ titles: z.ZodArray<z.ZodString>;
475
+ hidden: z.ZodNumber;
476
+ }, z.core.$strict>;
477
+ export type UnreadableKnowledge = z.infer<typeof UnreadableKnowledge>;
478
+ export declare const ShareKnowledgeResult: z.ZodObject<{
479
+ grant: z.ZodObject<{
480
+ id: z.ZodString;
481
+ resourceId: z.ZodString;
482
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
+ type: z.ZodLiteral<"user">;
484
+ id: z.ZodString;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ type: z.ZodLiteral<"email">;
487
+ email: z.ZodEmail;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ type: z.ZodLiteral<"organization">;
490
+ }, z.core.$strict>], "type">;
491
+ verb: z.ZodEnum<{
492
+ read: "read";
493
+ write: "write";
494
+ execute: "execute";
495
+ share: "share";
496
+ }>;
497
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
498
+ createdBy: z.ZodString;
499
+ createdAt: z.ZodISODateTime;
500
+ }, z.core.$strict>;
501
+ unreadable: z.ZodObject<{
502
+ titles: z.ZodArray<z.ZodString>;
503
+ hidden: z.ZodNumber;
504
+ }, z.core.$strict>;
505
+ }, z.core.$strict>;
506
+ export type ShareKnowledgeResult = z.infer<typeof ShareKnowledgeResult>;
417
507
  export declare const ResourceGrantList: z.ZodObject<{
508
+ resourceId: z.ZodString;
509
+ applicableVerbs: z.ZodArray<z.ZodEnum<{
510
+ read: "read";
511
+ write: "write";
512
+ execute: "execute";
513
+ share: "share";
514
+ }>>;
418
515
  items: z.ZodArray<z.ZodObject<{
419
516
  id: z.ZodString;
420
517
  resourceId: z.ZodString;
@@ -427,11 +524,11 @@ export declare const ResourceGrantList: z.ZodObject<{
427
524
  }, z.core.$strict>, z.ZodObject<{
428
525
  type: z.ZodLiteral<"organization">;
429
526
  }, z.core.$strict>], "type">;
430
- role: z.ZodEnum<{
431
- viewer: "viewer";
432
- commenter: "commenter";
433
- editor: "editor";
434
- manager: "manager";
527
+ verb: z.ZodEnum<{
528
+ read: "read";
529
+ write: "write";
530
+ execute: "execute";
531
+ share: "share";
435
532
  }>;
436
533
  expiresAt: z.ZodNullable<z.ZodISODateTime>;
437
534
  createdBy: z.ZodString;
@@ -484,10 +581,6 @@ export declare const RevokeGrantResult: z.ZodObject<{
484
581
  revoked: z.ZodBoolean;
485
582
  }, z.core.$strict>;
486
583
  export type RevokeGrantResult = z.infer<typeof RevokeGrantResult>;
487
- export declare const DeleteKnowledgeLinkResult: z.ZodObject<{
488
- deleted: z.ZodBoolean;
489
- }, z.core.$strict>;
490
- export type DeleteKnowledgeLinkResult = z.infer<typeof DeleteKnowledgeLinkResult>;
491
584
  export declare const ToolSourceUrl: z.ZodURL;
492
585
  export declare const ToolName: z.ZodString;
493
586
  export declare const ToolAnnotations: z.ZodObject<{
@@ -554,24 +647,50 @@ export declare const FlowPosition: z.ZodObject<{
554
647
  x: z.ZodNumber;
555
648
  y: z.ZodNumber;
556
649
  }, z.core.$strict>;
650
+ export declare const SubflowVersionMode: z.ZodEnum<{
651
+ latest: "latest";
652
+ follows: "follows";
653
+ pinned: "pinned";
654
+ }>;
655
+ export type SubflowVersionMode = z.infer<typeof SubflowVersionMode>;
656
+ export declare const SubflowVersion: z.ZodDiscriminatedUnion<[z.ZodObject<{
657
+ mode: z.ZodLiteral<"latest">;
658
+ }, z.core.$strict>, z.ZodObject<{
659
+ mode: z.ZodLiteral<"follows">;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ mode: z.ZodLiteral<"pinned">;
662
+ versionId: z.ZodString;
663
+ }, z.core.$strict>], "mode">;
664
+ export type SubflowVersion = z.infer<typeof SubflowVersion>;
665
+ export declare const FlowNodeLayer: z.ZodEnum<{
666
+ marker: "marker";
667
+ step: "step";
668
+ link: "link";
669
+ }>;
670
+ export type FlowNodeLayer = z.infer<typeof FlowNodeLayer>;
671
+ export declare const flowNodeLayer: {
672
+ readonly trigger: "marker";
673
+ readonly output: "marker";
674
+ readonly instruction: "step";
675
+ readonly condition: "step";
676
+ readonly subflow: "step";
677
+ readonly folder: "link";
678
+ readonly document: "link";
679
+ readonly upload: "link";
680
+ readonly table: "link";
681
+ readonly tool: "link";
682
+ };
557
683
  export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
558
684
  kind: z.ZodLiteral<"trigger">;
559
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
685
+ configuration: z.ZodObject<{
560
686
  mode: z.ZodLiteral<"manual">;
561
- }, z.core.$strict>, z.ZodObject<{
562
- mode: z.ZodLiteral<"webhook">;
563
- event: z.ZodString;
564
- }, z.core.$strict>, z.ZodObject<{
565
- mode: z.ZodLiteral<"schedule">;
566
- cron: z.ZodString;
567
- }, z.core.$strict>], "mode">;
687
+ }, z.core.$strict>;
568
688
  id: z.ZodString;
569
689
  position: z.ZodObject<{
570
690
  x: z.ZodNumber;
571
691
  y: z.ZodNumber;
572
692
  }, z.core.$strict>;
573
693
  label: z.ZodString;
574
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
575
694
  }, z.core.$strict>, z.ZodObject<{
576
695
  kind: z.ZodLiteral<"instruction">;
577
696
  configuration: z.ZodObject<{
@@ -583,16 +702,43 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
583
702
  y: z.ZodNumber;
584
703
  }, z.core.$strict>;
585
704
  label: z.ZodString;
586
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
587
705
  }, z.core.$strict>, z.ZodObject<{
588
- kind: z.ZodLiteral<"knowledge">;
706
+ kind: z.ZodLiteral<"folder">;
589
707
  configuration: z.ZodObject<{
590
- resourceIds: z.ZodArray<z.ZodString>;
591
- mode: z.ZodEnum<{
592
- relevant: "relevant";
593
- full: "full";
594
- }>;
595
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
708
+ resourceId: z.ZodString;
709
+ }, z.core.$strict>;
710
+ id: z.ZodString;
711
+ position: z.ZodObject<{
712
+ x: z.ZodNumber;
713
+ y: z.ZodNumber;
714
+ }, z.core.$strict>;
715
+ label: z.ZodString;
716
+ }, z.core.$strict>, z.ZodObject<{
717
+ kind: z.ZodLiteral<"document">;
718
+ configuration: z.ZodObject<{
719
+ resourceId: z.ZodString;
720
+ }, z.core.$strict>;
721
+ id: z.ZodString;
722
+ position: z.ZodObject<{
723
+ x: z.ZodNumber;
724
+ y: z.ZodNumber;
725
+ }, z.core.$strict>;
726
+ label: z.ZodString;
727
+ }, z.core.$strict>, z.ZodObject<{
728
+ kind: z.ZodLiteral<"upload">;
729
+ configuration: z.ZodObject<{
730
+ resourceId: z.ZodString;
731
+ }, z.core.$strict>;
732
+ id: z.ZodString;
733
+ position: z.ZodObject<{
734
+ x: z.ZodNumber;
735
+ y: z.ZodNumber;
736
+ }, z.core.$strict>;
737
+ label: z.ZodString;
738
+ }, z.core.$strict>, z.ZodObject<{
739
+ kind: z.ZodLiteral<"table">;
740
+ configuration: z.ZodObject<{
741
+ resourceId: z.ZodString;
596
742
  }, z.core.$strict>;
597
743
  id: z.ZodString;
598
744
  position: z.ZodObject<{
@@ -600,7 +746,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
600
746
  y: z.ZodNumber;
601
747
  }, z.core.$strict>;
602
748
  label: z.ZodString;
603
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
604
749
  }, z.core.$strict>, z.ZodObject<{
605
750
  kind: z.ZodLiteral<"tool">;
606
751
  configuration: z.ZodObject<{
@@ -614,7 +759,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
614
759
  y: z.ZodNumber;
615
760
  }, z.core.$strict>;
616
761
  label: z.ZodString;
617
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
618
762
  }, z.core.$strict>, z.ZodObject<{
619
763
  kind: z.ZodLiteral<"condition">;
620
764
  configuration: z.ZodObject<{
@@ -627,12 +771,18 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
627
771
  y: z.ZodNumber;
628
772
  }, z.core.$strict>;
629
773
  label: z.ZodString;
630
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
631
774
  }, z.core.$strict>, z.ZodObject<{
632
- kind: z.ZodLiteral<"approval">;
775
+ kind: z.ZodLiteral<"subflow">;
633
776
  configuration: z.ZodObject<{
634
- prompt: z.ZodString;
635
- timeout: z.ZodString;
777
+ flowId: z.ZodString;
778
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
779
+ mode: z.ZodLiteral<"latest">;
780
+ }, z.core.$strict>, z.ZodObject<{
781
+ mode: z.ZodLiteral<"follows">;
782
+ }, z.core.$strict>, z.ZodObject<{
783
+ mode: z.ZodLiteral<"pinned">;
784
+ versionId: z.ZodString;
785
+ }, z.core.$strict>], "mode">>;
636
786
  }, z.core.$strict>;
637
787
  id: z.ZodString;
638
788
  position: z.ZodObject<{
@@ -640,25 +790,30 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
640
790
  y: z.ZodNumber;
641
791
  }, z.core.$strict>;
642
792
  label: z.ZodString;
643
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
644
793
  }, z.core.$strict>, z.ZodObject<{
645
794
  kind: z.ZodLiteral<"output">;
646
- configuration: z.ZodObject<{
647
- template: z.ZodDefault<z.ZodString>;
648
- }, z.core.$strict>;
795
+ configuration: z.ZodObject<{}, z.core.$strict>;
649
796
  id: z.ZodString;
650
797
  position: z.ZodObject<{
651
798
  x: z.ZodNumber;
652
799
  y: z.ZodNumber;
653
800
  }, z.core.$strict>;
654
801
  label: z.ZodString;
655
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
656
802
  }, z.core.$strict>], "kind">;
657
803
  export type FlowNode = z.infer<typeof FlowNode>;
804
+ export declare const FlowEdgeKind: z.ZodEnum<{
805
+ flow: "flow";
806
+ context: "context";
807
+ }>;
808
+ export type FlowEdgeKind = z.infer<typeof FlowEdgeKind>;
658
809
  export declare const FlowEdge: z.ZodObject<{
659
810
  id: z.ZodString;
660
811
  source: z.ZodString;
661
812
  target: z.ZodString;
813
+ kind: z.ZodDefault<z.ZodEnum<{
814
+ flow: "flow";
815
+ context: "context";
816
+ }>>;
662
817
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
663
818
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
664
819
  }, z.core.$strict>;
@@ -666,22 +821,15 @@ export type FlowEdge = z.infer<typeof FlowEdge>;
666
821
  export declare const FlowGraph: z.ZodObject<{
667
822
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
668
823
  kind: z.ZodLiteral<"trigger">;
669
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
824
+ configuration: z.ZodObject<{
670
825
  mode: z.ZodLiteral<"manual">;
671
- }, z.core.$strict>, z.ZodObject<{
672
- mode: z.ZodLiteral<"webhook">;
673
- event: z.ZodString;
674
- }, z.core.$strict>, z.ZodObject<{
675
- mode: z.ZodLiteral<"schedule">;
676
- cron: z.ZodString;
677
- }, z.core.$strict>], "mode">;
826
+ }, z.core.$strict>;
678
827
  id: z.ZodString;
679
828
  position: z.ZodObject<{
680
829
  x: z.ZodNumber;
681
830
  y: z.ZodNumber;
682
831
  }, z.core.$strict>;
683
832
  label: z.ZodString;
684
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
685
833
  }, z.core.$strict>, z.ZodObject<{
686
834
  kind: z.ZodLiteral<"instruction">;
687
835
  configuration: z.ZodObject<{
@@ -693,16 +841,43 @@ export declare const FlowGraph: z.ZodObject<{
693
841
  y: z.ZodNumber;
694
842
  }, z.core.$strict>;
695
843
  label: z.ZodString;
696
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
697
844
  }, z.core.$strict>, z.ZodObject<{
698
- kind: z.ZodLiteral<"knowledge">;
845
+ kind: z.ZodLiteral<"folder">;
846
+ configuration: z.ZodObject<{
847
+ resourceId: z.ZodString;
848
+ }, z.core.$strict>;
849
+ id: z.ZodString;
850
+ position: z.ZodObject<{
851
+ x: z.ZodNumber;
852
+ y: z.ZodNumber;
853
+ }, z.core.$strict>;
854
+ label: z.ZodString;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ kind: z.ZodLiteral<"document">;
857
+ configuration: z.ZodObject<{
858
+ resourceId: z.ZodString;
859
+ }, z.core.$strict>;
860
+ id: z.ZodString;
861
+ position: z.ZodObject<{
862
+ x: z.ZodNumber;
863
+ y: z.ZodNumber;
864
+ }, z.core.$strict>;
865
+ label: z.ZodString;
866
+ }, z.core.$strict>, z.ZodObject<{
867
+ kind: z.ZodLiteral<"upload">;
868
+ configuration: z.ZodObject<{
869
+ resourceId: z.ZodString;
870
+ }, z.core.$strict>;
871
+ id: z.ZodString;
872
+ position: z.ZodObject<{
873
+ x: z.ZodNumber;
874
+ y: z.ZodNumber;
875
+ }, z.core.$strict>;
876
+ label: z.ZodString;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ kind: z.ZodLiteral<"table">;
699
879
  configuration: z.ZodObject<{
700
- resourceIds: z.ZodArray<z.ZodString>;
701
- mode: z.ZodEnum<{
702
- relevant: "relevant";
703
- full: "full";
704
- }>;
705
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
880
+ resourceId: z.ZodString;
706
881
  }, z.core.$strict>;
707
882
  id: z.ZodString;
708
883
  position: z.ZodObject<{
@@ -710,7 +885,6 @@ export declare const FlowGraph: z.ZodObject<{
710
885
  y: z.ZodNumber;
711
886
  }, z.core.$strict>;
712
887
  label: z.ZodString;
713
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
714
888
  }, z.core.$strict>, z.ZodObject<{
715
889
  kind: z.ZodLiteral<"tool">;
716
890
  configuration: z.ZodObject<{
@@ -724,7 +898,6 @@ export declare const FlowGraph: z.ZodObject<{
724
898
  y: z.ZodNumber;
725
899
  }, z.core.$strict>;
726
900
  label: z.ZodString;
727
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
728
901
  }, z.core.$strict>, z.ZodObject<{
729
902
  kind: z.ZodLiteral<"condition">;
730
903
  configuration: z.ZodObject<{
@@ -737,12 +910,18 @@ export declare const FlowGraph: z.ZodObject<{
737
910
  y: z.ZodNumber;
738
911
  }, z.core.$strict>;
739
912
  label: z.ZodString;
740
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
741
913
  }, z.core.$strict>, z.ZodObject<{
742
- kind: z.ZodLiteral<"approval">;
914
+ kind: z.ZodLiteral<"subflow">;
743
915
  configuration: z.ZodObject<{
744
- prompt: z.ZodString;
745
- timeout: z.ZodString;
916
+ flowId: z.ZodString;
917
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
918
+ mode: z.ZodLiteral<"latest">;
919
+ }, z.core.$strict>, z.ZodObject<{
920
+ mode: z.ZodLiteral<"follows">;
921
+ }, z.core.$strict>, z.ZodObject<{
922
+ mode: z.ZodLiteral<"pinned">;
923
+ versionId: z.ZodString;
924
+ }, z.core.$strict>], "mode">>;
746
925
  }, z.core.$strict>;
747
926
  id: z.ZodString;
748
927
  position: z.ZodObject<{
@@ -750,24 +929,24 @@ export declare const FlowGraph: z.ZodObject<{
750
929
  y: z.ZodNumber;
751
930
  }, z.core.$strict>;
752
931
  label: z.ZodString;
753
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
754
932
  }, z.core.$strict>, z.ZodObject<{
755
933
  kind: z.ZodLiteral<"output">;
756
- configuration: z.ZodObject<{
757
- template: z.ZodDefault<z.ZodString>;
758
- }, z.core.$strict>;
934
+ configuration: z.ZodObject<{}, z.core.$strict>;
759
935
  id: z.ZodString;
760
936
  position: z.ZodObject<{
761
937
  x: z.ZodNumber;
762
938
  y: z.ZodNumber;
763
939
  }, z.core.$strict>;
764
940
  label: z.ZodString;
765
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
766
941
  }, z.core.$strict>], "kind">>;
767
942
  edges: z.ZodArray<z.ZodObject<{
768
943
  id: z.ZodString;
769
944
  source: z.ZodString;
770
945
  target: z.ZodString;
946
+ kind: z.ZodDefault<z.ZodEnum<{
947
+ flow: "flow";
948
+ context: "context";
949
+ }>>;
771
950
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
772
951
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
773
952
  }, z.core.$strict>>;
@@ -793,22 +972,15 @@ export declare const FlowVersion: z.ZodObject<{
793
972
  graph: z.ZodObject<{
794
973
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
795
974
  kind: z.ZodLiteral<"trigger">;
796
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
975
+ configuration: z.ZodObject<{
797
976
  mode: z.ZodLiteral<"manual">;
798
- }, z.core.$strict>, z.ZodObject<{
799
- mode: z.ZodLiteral<"webhook">;
800
- event: z.ZodString;
801
- }, z.core.$strict>, z.ZodObject<{
802
- mode: z.ZodLiteral<"schedule">;
803
- cron: z.ZodString;
804
- }, z.core.$strict>], "mode">;
977
+ }, z.core.$strict>;
805
978
  id: z.ZodString;
806
979
  position: z.ZodObject<{
807
980
  x: z.ZodNumber;
808
981
  y: z.ZodNumber;
809
982
  }, z.core.$strict>;
810
983
  label: z.ZodString;
811
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
812
984
  }, z.core.$strict>, z.ZodObject<{
813
985
  kind: z.ZodLiteral<"instruction">;
814
986
  configuration: z.ZodObject<{
@@ -820,16 +992,43 @@ export declare const FlowVersion: z.ZodObject<{
820
992
  y: z.ZodNumber;
821
993
  }, z.core.$strict>;
822
994
  label: z.ZodString;
823
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
824
995
  }, z.core.$strict>, z.ZodObject<{
825
- kind: z.ZodLiteral<"knowledge">;
996
+ kind: z.ZodLiteral<"folder">;
997
+ configuration: z.ZodObject<{
998
+ resourceId: z.ZodString;
999
+ }, z.core.$strict>;
1000
+ id: z.ZodString;
1001
+ position: z.ZodObject<{
1002
+ x: z.ZodNumber;
1003
+ y: z.ZodNumber;
1004
+ }, z.core.$strict>;
1005
+ label: z.ZodString;
1006
+ }, z.core.$strict>, z.ZodObject<{
1007
+ kind: z.ZodLiteral<"document">;
1008
+ configuration: z.ZodObject<{
1009
+ resourceId: z.ZodString;
1010
+ }, z.core.$strict>;
1011
+ id: z.ZodString;
1012
+ position: z.ZodObject<{
1013
+ x: z.ZodNumber;
1014
+ y: z.ZodNumber;
1015
+ }, z.core.$strict>;
1016
+ label: z.ZodString;
1017
+ }, z.core.$strict>, z.ZodObject<{
1018
+ kind: z.ZodLiteral<"upload">;
826
1019
  configuration: z.ZodObject<{
827
- resourceIds: z.ZodArray<z.ZodString>;
828
- mode: z.ZodEnum<{
829
- relevant: "relevant";
830
- full: "full";
831
- }>;
832
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1020
+ resourceId: z.ZodString;
1021
+ }, z.core.$strict>;
1022
+ id: z.ZodString;
1023
+ position: z.ZodObject<{
1024
+ x: z.ZodNumber;
1025
+ y: z.ZodNumber;
1026
+ }, z.core.$strict>;
1027
+ label: z.ZodString;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ kind: z.ZodLiteral<"table">;
1030
+ configuration: z.ZodObject<{
1031
+ resourceId: z.ZodString;
833
1032
  }, z.core.$strict>;
834
1033
  id: z.ZodString;
835
1034
  position: z.ZodObject<{
@@ -837,7 +1036,6 @@ export declare const FlowVersion: z.ZodObject<{
837
1036
  y: z.ZodNumber;
838
1037
  }, z.core.$strict>;
839
1038
  label: z.ZodString;
840
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
841
1039
  }, z.core.$strict>, z.ZodObject<{
842
1040
  kind: z.ZodLiteral<"tool">;
843
1041
  configuration: z.ZodObject<{
@@ -851,7 +1049,6 @@ export declare const FlowVersion: z.ZodObject<{
851
1049
  y: z.ZodNumber;
852
1050
  }, z.core.$strict>;
853
1051
  label: z.ZodString;
854
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
855
1052
  }, z.core.$strict>, z.ZodObject<{
856
1053
  kind: z.ZodLiteral<"condition">;
857
1054
  configuration: z.ZodObject<{
@@ -864,12 +1061,18 @@ export declare const FlowVersion: z.ZodObject<{
864
1061
  y: z.ZodNumber;
865
1062
  }, z.core.$strict>;
866
1063
  label: z.ZodString;
867
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
868
1064
  }, z.core.$strict>, z.ZodObject<{
869
- kind: z.ZodLiteral<"approval">;
1065
+ kind: z.ZodLiteral<"subflow">;
870
1066
  configuration: z.ZodObject<{
871
- prompt: z.ZodString;
872
- timeout: z.ZodString;
1067
+ flowId: z.ZodString;
1068
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1069
+ mode: z.ZodLiteral<"latest">;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ mode: z.ZodLiteral<"follows">;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ mode: z.ZodLiteral<"pinned">;
1074
+ versionId: z.ZodString;
1075
+ }, z.core.$strict>], "mode">>;
873
1076
  }, z.core.$strict>;
874
1077
  id: z.ZodString;
875
1078
  position: z.ZodObject<{
@@ -877,24 +1080,24 @@ export declare const FlowVersion: z.ZodObject<{
877
1080
  y: z.ZodNumber;
878
1081
  }, z.core.$strict>;
879
1082
  label: z.ZodString;
880
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
881
1083
  }, z.core.$strict>, z.ZodObject<{
882
1084
  kind: z.ZodLiteral<"output">;
883
- configuration: z.ZodObject<{
884
- template: z.ZodDefault<z.ZodString>;
885
- }, z.core.$strict>;
1085
+ configuration: z.ZodObject<{}, z.core.$strict>;
886
1086
  id: z.ZodString;
887
1087
  position: z.ZodObject<{
888
1088
  x: z.ZodNumber;
889
1089
  y: z.ZodNumber;
890
1090
  }, z.core.$strict>;
891
1091
  label: z.ZodString;
892
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
893
1092
  }, z.core.$strict>], "kind">>;
894
1093
  edges: z.ZodArray<z.ZodObject<{
895
1094
  id: z.ZodString;
896
1095
  source: z.ZodString;
897
1096
  target: z.ZodString;
1097
+ kind: z.ZodDefault<z.ZodEnum<{
1098
+ flow: "flow";
1099
+ context: "context";
1100
+ }>>;
898
1101
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
899
1102
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
900
1103
  }, z.core.$strict>>;
@@ -923,22 +1126,15 @@ export declare const FlowDocument: z.ZodObject<{
923
1126
  graph: z.ZodObject<{
924
1127
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
925
1128
  kind: z.ZodLiteral<"trigger">;
926
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1129
+ configuration: z.ZodObject<{
927
1130
  mode: z.ZodLiteral<"manual">;
928
- }, z.core.$strict>, z.ZodObject<{
929
- mode: z.ZodLiteral<"webhook">;
930
- event: z.ZodString;
931
- }, z.core.$strict>, z.ZodObject<{
932
- mode: z.ZodLiteral<"schedule">;
933
- cron: z.ZodString;
934
- }, z.core.$strict>], "mode">;
1131
+ }, z.core.$strict>;
935
1132
  id: z.ZodString;
936
1133
  position: z.ZodObject<{
937
1134
  x: z.ZodNumber;
938
1135
  y: z.ZodNumber;
939
1136
  }, z.core.$strict>;
940
1137
  label: z.ZodString;
941
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
942
1138
  }, z.core.$strict>, z.ZodObject<{
943
1139
  kind: z.ZodLiteral<"instruction">;
944
1140
  configuration: z.ZodObject<{
@@ -950,16 +1146,43 @@ export declare const FlowDocument: z.ZodObject<{
950
1146
  y: z.ZodNumber;
951
1147
  }, z.core.$strict>;
952
1148
  label: z.ZodString;
953
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
954
1149
  }, z.core.$strict>, z.ZodObject<{
955
- kind: z.ZodLiteral<"knowledge">;
1150
+ kind: z.ZodLiteral<"folder">;
1151
+ configuration: z.ZodObject<{
1152
+ resourceId: z.ZodString;
1153
+ }, z.core.$strict>;
1154
+ id: z.ZodString;
1155
+ position: z.ZodObject<{
1156
+ x: z.ZodNumber;
1157
+ y: z.ZodNumber;
1158
+ }, z.core.$strict>;
1159
+ label: z.ZodString;
1160
+ }, z.core.$strict>, z.ZodObject<{
1161
+ kind: z.ZodLiteral<"document">;
1162
+ configuration: z.ZodObject<{
1163
+ resourceId: z.ZodString;
1164
+ }, z.core.$strict>;
1165
+ id: z.ZodString;
1166
+ position: z.ZodObject<{
1167
+ x: z.ZodNumber;
1168
+ y: z.ZodNumber;
1169
+ }, z.core.$strict>;
1170
+ label: z.ZodString;
1171
+ }, z.core.$strict>, z.ZodObject<{
1172
+ kind: z.ZodLiteral<"upload">;
1173
+ configuration: z.ZodObject<{
1174
+ resourceId: z.ZodString;
1175
+ }, z.core.$strict>;
1176
+ id: z.ZodString;
1177
+ position: z.ZodObject<{
1178
+ x: z.ZodNumber;
1179
+ y: z.ZodNumber;
1180
+ }, z.core.$strict>;
1181
+ label: z.ZodString;
1182
+ }, z.core.$strict>, z.ZodObject<{
1183
+ kind: z.ZodLiteral<"table">;
956
1184
  configuration: z.ZodObject<{
957
- resourceIds: z.ZodArray<z.ZodString>;
958
- mode: z.ZodEnum<{
959
- relevant: "relevant";
960
- full: "full";
961
- }>;
962
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1185
+ resourceId: z.ZodString;
963
1186
  }, z.core.$strict>;
964
1187
  id: z.ZodString;
965
1188
  position: z.ZodObject<{
@@ -967,7 +1190,6 @@ export declare const FlowDocument: z.ZodObject<{
967
1190
  y: z.ZodNumber;
968
1191
  }, z.core.$strict>;
969
1192
  label: z.ZodString;
970
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
971
1193
  }, z.core.$strict>, z.ZodObject<{
972
1194
  kind: z.ZodLiteral<"tool">;
973
1195
  configuration: z.ZodObject<{
@@ -981,7 +1203,6 @@ export declare const FlowDocument: z.ZodObject<{
981
1203
  y: z.ZodNumber;
982
1204
  }, z.core.$strict>;
983
1205
  label: z.ZodString;
984
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
985
1206
  }, z.core.$strict>, z.ZodObject<{
986
1207
  kind: z.ZodLiteral<"condition">;
987
1208
  configuration: z.ZodObject<{
@@ -994,12 +1215,18 @@ export declare const FlowDocument: z.ZodObject<{
994
1215
  y: z.ZodNumber;
995
1216
  }, z.core.$strict>;
996
1217
  label: z.ZodString;
997
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
998
1218
  }, z.core.$strict>, z.ZodObject<{
999
- kind: z.ZodLiteral<"approval">;
1219
+ kind: z.ZodLiteral<"subflow">;
1000
1220
  configuration: z.ZodObject<{
1001
- prompt: z.ZodString;
1002
- timeout: z.ZodString;
1221
+ flowId: z.ZodString;
1222
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1223
+ mode: z.ZodLiteral<"latest">;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ mode: z.ZodLiteral<"follows">;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ mode: z.ZodLiteral<"pinned">;
1228
+ versionId: z.ZodString;
1229
+ }, z.core.$strict>], "mode">>;
1003
1230
  }, z.core.$strict>;
1004
1231
  id: z.ZodString;
1005
1232
  position: z.ZodObject<{
@@ -1007,24 +1234,24 @@ export declare const FlowDocument: z.ZodObject<{
1007
1234
  y: z.ZodNumber;
1008
1235
  }, z.core.$strict>;
1009
1236
  label: z.ZodString;
1010
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1011
1237
  }, z.core.$strict>, z.ZodObject<{
1012
1238
  kind: z.ZodLiteral<"output">;
1013
- configuration: z.ZodObject<{
1014
- template: z.ZodDefault<z.ZodString>;
1015
- }, z.core.$strict>;
1239
+ configuration: z.ZodObject<{}, z.core.$strict>;
1016
1240
  id: z.ZodString;
1017
1241
  position: z.ZodObject<{
1018
1242
  x: z.ZodNumber;
1019
1243
  y: z.ZodNumber;
1020
1244
  }, z.core.$strict>;
1021
1245
  label: z.ZodString;
1022
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1023
1246
  }, z.core.$strict>], "kind">>;
1024
1247
  edges: z.ZodArray<z.ZodObject<{
1025
1248
  id: z.ZodString;
1026
1249
  source: z.ZodString;
1027
1250
  target: z.ZodString;
1251
+ kind: z.ZodDefault<z.ZodEnum<{
1252
+ flow: "flow";
1253
+ context: "context";
1254
+ }>>;
1028
1255
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1029
1256
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1030
1257
  }, z.core.$strict>>;
@@ -1049,6 +1276,32 @@ export declare const FlowList: z.ZodObject<{
1049
1276
  }, z.core.$strict>>;
1050
1277
  }, z.core.$strict>;
1051
1278
  export type FlowList = z.infer<typeof FlowList>;
1279
+ export declare const FlowKnowledgeReference: z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ title: z.ZodString;
1282
+ }, z.core.$strict>;
1283
+ export type FlowKnowledgeReference = z.infer<typeof FlowKnowledgeReference>;
1284
+ export declare const FlowRequirements: z.ZodObject<{
1285
+ flowId: z.ZodString;
1286
+ versionId: z.ZodNullable<z.ZodString>;
1287
+ knowledge: z.ZodArray<z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ title: z.ZodString;
1290
+ }, z.core.$strict>>;
1291
+ hiddenKnowledge: z.ZodNumber;
1292
+ tools: z.ZodArray<z.ZodString>;
1293
+ }, z.core.$strict>;
1294
+ export type FlowRequirements = z.infer<typeof FlowRequirements>;
1295
+ export declare const FlowValidation: z.ZodObject<{
1296
+ flowId: z.ZodString;
1297
+ versionId: z.ZodNullable<z.ZodString>;
1298
+ problems: z.ZodArray<z.ZodObject<{
1299
+ code: z.ZodString;
1300
+ detail: z.ZodString;
1301
+ }, z.core.$strict>>;
1302
+ checkedAt: z.ZodISODateTime;
1303
+ }, z.core.$strict>;
1304
+ export type FlowValidation = z.infer<typeof FlowValidation>;
1052
1305
  export declare const CreateFlowInput: z.ZodObject<{
1053
1306
  parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1054
1307
  title: z.ZodString;
@@ -1079,22 +1332,15 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1079
1332
  graph: z.ZodObject<{
1080
1333
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
1334
  kind: z.ZodLiteral<"trigger">;
1082
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1335
+ configuration: z.ZodObject<{
1083
1336
  mode: z.ZodLiteral<"manual">;
1084
- }, z.core.$strict>, z.ZodObject<{
1085
- mode: z.ZodLiteral<"webhook">;
1086
- event: z.ZodString;
1087
- }, z.core.$strict>, z.ZodObject<{
1088
- mode: z.ZodLiteral<"schedule">;
1089
- cron: z.ZodString;
1090
- }, z.core.$strict>], "mode">;
1337
+ }, z.core.$strict>;
1091
1338
  id: z.ZodString;
1092
1339
  position: z.ZodObject<{
1093
1340
  x: z.ZodNumber;
1094
1341
  y: z.ZodNumber;
1095
1342
  }, z.core.$strict>;
1096
1343
  label: z.ZodString;
1097
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1098
1344
  }, z.core.$strict>, z.ZodObject<{
1099
1345
  kind: z.ZodLiteral<"instruction">;
1100
1346
  configuration: z.ZodObject<{
@@ -1106,16 +1352,43 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1106
1352
  y: z.ZodNumber;
1107
1353
  }, z.core.$strict>;
1108
1354
  label: z.ZodString;
1109
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1110
1355
  }, z.core.$strict>, z.ZodObject<{
1111
- kind: z.ZodLiteral<"knowledge">;
1356
+ kind: z.ZodLiteral<"folder">;
1112
1357
  configuration: z.ZodObject<{
1113
- resourceIds: z.ZodArray<z.ZodString>;
1114
- mode: z.ZodEnum<{
1115
- relevant: "relevant";
1116
- full: "full";
1117
- }>;
1118
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1358
+ resourceId: z.ZodString;
1359
+ }, z.core.$strict>;
1360
+ id: z.ZodString;
1361
+ position: z.ZodObject<{
1362
+ x: z.ZodNumber;
1363
+ y: z.ZodNumber;
1364
+ }, z.core.$strict>;
1365
+ label: z.ZodString;
1366
+ }, z.core.$strict>, z.ZodObject<{
1367
+ kind: z.ZodLiteral<"document">;
1368
+ configuration: z.ZodObject<{
1369
+ resourceId: z.ZodString;
1370
+ }, z.core.$strict>;
1371
+ id: z.ZodString;
1372
+ position: z.ZodObject<{
1373
+ x: z.ZodNumber;
1374
+ y: z.ZodNumber;
1375
+ }, z.core.$strict>;
1376
+ label: z.ZodString;
1377
+ }, z.core.$strict>, z.ZodObject<{
1378
+ kind: z.ZodLiteral<"upload">;
1379
+ configuration: z.ZodObject<{
1380
+ resourceId: z.ZodString;
1381
+ }, z.core.$strict>;
1382
+ id: z.ZodString;
1383
+ position: z.ZodObject<{
1384
+ x: z.ZodNumber;
1385
+ y: z.ZodNumber;
1386
+ }, z.core.$strict>;
1387
+ label: z.ZodString;
1388
+ }, z.core.$strict>, z.ZodObject<{
1389
+ kind: z.ZodLiteral<"table">;
1390
+ configuration: z.ZodObject<{
1391
+ resourceId: z.ZodString;
1119
1392
  }, z.core.$strict>;
1120
1393
  id: z.ZodString;
1121
1394
  position: z.ZodObject<{
@@ -1123,7 +1396,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1123
1396
  y: z.ZodNumber;
1124
1397
  }, z.core.$strict>;
1125
1398
  label: z.ZodString;
1126
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1127
1399
  }, z.core.$strict>, z.ZodObject<{
1128
1400
  kind: z.ZodLiteral<"tool">;
1129
1401
  configuration: z.ZodObject<{
@@ -1137,7 +1409,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1137
1409
  y: z.ZodNumber;
1138
1410
  }, z.core.$strict>;
1139
1411
  label: z.ZodString;
1140
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1141
1412
  }, z.core.$strict>, z.ZodObject<{
1142
1413
  kind: z.ZodLiteral<"condition">;
1143
1414
  configuration: z.ZodObject<{
@@ -1150,12 +1421,18 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1150
1421
  y: z.ZodNumber;
1151
1422
  }, z.core.$strict>;
1152
1423
  label: z.ZodString;
1153
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1154
1424
  }, z.core.$strict>, z.ZodObject<{
1155
- kind: z.ZodLiteral<"approval">;
1425
+ kind: z.ZodLiteral<"subflow">;
1156
1426
  configuration: z.ZodObject<{
1157
- prompt: z.ZodString;
1158
- timeout: z.ZodString;
1427
+ flowId: z.ZodString;
1428
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1429
+ mode: z.ZodLiteral<"latest">;
1430
+ }, z.core.$strict>, z.ZodObject<{
1431
+ mode: z.ZodLiteral<"follows">;
1432
+ }, z.core.$strict>, z.ZodObject<{
1433
+ mode: z.ZodLiteral<"pinned">;
1434
+ versionId: z.ZodString;
1435
+ }, z.core.$strict>], "mode">>;
1159
1436
  }, z.core.$strict>;
1160
1437
  id: z.ZodString;
1161
1438
  position: z.ZodObject<{
@@ -1163,24 +1440,24 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1163
1440
  y: z.ZodNumber;
1164
1441
  }, z.core.$strict>;
1165
1442
  label: z.ZodString;
1166
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1167
1443
  }, z.core.$strict>, z.ZodObject<{
1168
1444
  kind: z.ZodLiteral<"output">;
1169
- configuration: z.ZodObject<{
1170
- template: z.ZodDefault<z.ZodString>;
1171
- }, z.core.$strict>;
1445
+ configuration: z.ZodObject<{}, z.core.$strict>;
1172
1446
  id: z.ZodString;
1173
1447
  position: z.ZodObject<{
1174
1448
  x: z.ZodNumber;
1175
1449
  y: z.ZodNumber;
1176
1450
  }, z.core.$strict>;
1177
1451
  label: z.ZodString;
1178
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1179
1452
  }, z.core.$strict>], "kind">>;
1180
1453
  edges: z.ZodArray<z.ZodObject<{
1181
1454
  id: z.ZodString;
1182
1455
  source: z.ZodString;
1183
1456
  target: z.ZodString;
1457
+ kind: z.ZodDefault<z.ZodEnum<{
1458
+ flow: "flow";
1459
+ context: "context";
1460
+ }>>;
1184
1461
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1185
1462
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1186
1463
  }, z.core.$strict>>;
@@ -1194,41 +1471,133 @@ export declare const PublishFlowInput: z.ZodObject<{
1194
1471
  idempotencyKey: z.ZodString;
1195
1472
  }, z.core.$strict>;
1196
1473
  export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
1197
- export declare const ListFlowGrantsInput: z.ZodObject<{
1198
- resourceId: z.ZodString;
1474
+ export declare const PreviewFlowPublishInput: z.ZodObject<{
1475
+ flowId: z.ZodString;
1476
+ versionId: z.ZodString;
1199
1477
  }, z.core.$strict>;
1200
- export type ListFlowGrantsInput = z.infer<typeof ListFlowGrantsInput>;
1201
- export declare const ShareFlowInput: z.ZodObject<{
1202
- resourceId: z.ZodString;
1203
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1204
- type: z.ZodLiteral<"user">;
1205
- id: z.ZodString;
1206
- }, z.core.$strict>, z.ZodObject<{
1207
- type: z.ZodLiteral<"email">;
1208
- email: z.ZodEmail;
1209
- }, z.core.$strict>, z.ZodObject<{
1210
- type: z.ZodLiteral<"organization">;
1211
- }, z.core.$strict>], "type">;
1212
- role: z.ZodEnum<{
1213
- viewer: "viewer";
1214
- commenter: "commenter";
1215
- editor: "editor";
1216
- manager: "manager";
1478
+ export type PreviewFlowPublishInput = z.infer<typeof PreviewFlowPublishInput>;
1479
+ export declare const FlowPublishCall: z.ZodObject<{
1480
+ nodeId: z.ZodString;
1481
+ nodeLabel: z.ZodString;
1482
+ calleeId: z.ZodString;
1483
+ calleeTitle: z.ZodString;
1484
+ mode: z.ZodEnum<{
1485
+ latest: "latest";
1486
+ follows: "follows";
1487
+ pinned: "pinned";
1217
1488
  }>;
1218
- expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
1219
- idempotencyKey: z.ZodString;
1489
+ versionId: z.ZodNullable<z.ZodString>;
1490
+ versionSequence: z.ZodNullable<z.ZodNumber>;
1491
+ freezes: z.ZodBoolean;
1492
+ available: z.ZodBoolean;
1220
1493
  }, z.core.$strict>;
1221
- export type ShareFlowInput = z.infer<typeof ShareFlowInput>;
1222
- export declare const RevokeFlowGrantInput: z.ZodObject<{
1223
- resourceId: z.ZodString;
1224
- grantId: z.ZodString;
1225
- idempotencyKey: z.ZodString;
1494
+ export type FlowPublishCall = z.infer<typeof FlowPublishCall>;
1495
+ export declare const FlowPublishPreview: z.ZodObject<{
1496
+ flowId: z.ZodString;
1497
+ versionId: z.ZodString;
1498
+ calls: z.ZodArray<z.ZodObject<{
1499
+ nodeId: z.ZodString;
1500
+ nodeLabel: z.ZodString;
1501
+ calleeId: z.ZodString;
1502
+ calleeTitle: z.ZodString;
1503
+ mode: z.ZodEnum<{
1504
+ latest: "latest";
1505
+ follows: "follows";
1506
+ pinned: "pinned";
1507
+ }>;
1508
+ versionId: z.ZodNullable<z.ZodString>;
1509
+ versionSequence: z.ZodNullable<z.ZodNumber>;
1510
+ freezes: z.ZodBoolean;
1511
+ available: z.ZodBoolean;
1512
+ }, z.core.$strict>>;
1226
1513
  }, z.core.$strict>;
1227
- export type RevokeFlowGrantInput = z.infer<typeof RevokeFlowGrantInput>;
1514
+ export type FlowPublishPreview = z.infer<typeof FlowPublishPreview>;
1515
+ export declare const RelationNodeKind: z.ZodEnum<{
1516
+ folder: "folder";
1517
+ document: "document";
1518
+ attachment: "attachment";
1519
+ table: "table";
1520
+ flow: "flow";
1521
+ }>;
1522
+ export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
1523
+ export declare const RelationNode: z.ZodObject<{
1524
+ id: z.ZodString;
1525
+ kind: z.ZodEnum<{
1526
+ folder: "folder";
1527
+ document: "document";
1528
+ attachment: "attachment";
1529
+ table: "table";
1530
+ flow: "flow";
1531
+ }>;
1532
+ title: z.ZodString;
1533
+ inScope: z.ZodBoolean;
1534
+ }, z.core.$strict>;
1535
+ export type RelationNode = z.infer<typeof RelationNode>;
1536
+ export declare const RelationEdge: z.ZodObject<{
1537
+ id: z.ZodString;
1538
+ source: z.ZodString;
1539
+ target: z.ZodString;
1540
+ relation: z.ZodEnum<{
1541
+ calls: "calls";
1542
+ reads: "reads";
1543
+ }>;
1544
+ }, z.core.$strict>;
1545
+ export type RelationEdge = z.infer<typeof RelationEdge>;
1546
+ export declare const RelationGraphScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1547
+ of: z.ZodLiteral<"folder">;
1548
+ folderId: z.ZodNullable<z.ZodString>;
1549
+ }, z.core.$strict>, z.ZodObject<{
1550
+ of: z.ZodLiteral<"flow">;
1551
+ flowId: z.ZodString;
1552
+ }, z.core.$strict>], "of">;
1553
+ export type RelationGraphScope = z.infer<typeof RelationGraphScope>;
1554
+ export declare const RelationGraphInput: z.ZodObject<{
1555
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1556
+ of: z.ZodLiteral<"folder">;
1557
+ folderId: z.ZodNullable<z.ZodString>;
1558
+ }, z.core.$strict>, z.ZodObject<{
1559
+ of: z.ZodLiteral<"flow">;
1560
+ flowId: z.ZodString;
1561
+ }, z.core.$strict>], "of">;
1562
+ limit: z.ZodDefault<z.ZodNumber>;
1563
+ }, z.core.$strict>;
1564
+ export type RelationGraphInput = z.infer<typeof RelationGraphInput>;
1565
+ export declare const RelationGraph: z.ZodObject<{
1566
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1567
+ of: z.ZodLiteral<"folder">;
1568
+ folderId: z.ZodNullable<z.ZodString>;
1569
+ }, z.core.$strict>, z.ZodObject<{
1570
+ of: z.ZodLiteral<"flow">;
1571
+ flowId: z.ZodString;
1572
+ }, z.core.$strict>], "of">;
1573
+ nodes: z.ZodArray<z.ZodObject<{
1574
+ id: z.ZodString;
1575
+ kind: z.ZodEnum<{
1576
+ folder: "folder";
1577
+ document: "document";
1578
+ attachment: "attachment";
1579
+ table: "table";
1580
+ flow: "flow";
1581
+ }>;
1582
+ title: z.ZodString;
1583
+ inScope: z.ZodBoolean;
1584
+ }, z.core.$strict>>;
1585
+ edges: z.ZodArray<z.ZodObject<{
1586
+ id: z.ZodString;
1587
+ source: z.ZodString;
1588
+ target: z.ZodString;
1589
+ relation: z.ZodEnum<{
1590
+ calls: "calls";
1591
+ reads: "reads";
1592
+ }>;
1593
+ }, z.core.$strict>>;
1594
+ omitted: z.ZodNumber;
1595
+ limit: z.ZodNumber;
1596
+ }, z.core.$strict>;
1597
+ export type RelationGraph = z.infer<typeof RelationGraph>;
1228
1598
  export declare const FlowRunStatus: z.ZodEnum<{
1229
1599
  queued: "queued";
1230
1600
  running: "running";
1231
- waiting: "waiting";
1232
1601
  completed: "completed";
1233
1602
  failed: "failed";
1234
1603
  cancelled: "cancelled";
@@ -1241,7 +1610,6 @@ export declare const FlowRun: z.ZodObject<{
1241
1610
  status: z.ZodEnum<{
1242
1611
  queued: "queued";
1243
1612
  running: "running";
1244
- waiting: "waiting";
1245
1613
  completed: "completed";
1246
1614
  failed: "failed";
1247
1615
  cancelled: "cancelled";
@@ -1251,11 +1619,21 @@ export declare const FlowRun: z.ZodObject<{
1251
1619
  output: z.ZodNullable<z.ZodUnknown>;
1252
1620
  error: z.ZodNullable<z.ZodString>;
1253
1621
  initiatedBy: z.ZodString;
1622
+ parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1623
+ parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1254
1624
  createdAt: z.ZodISODateTime;
1255
1625
  updatedAt: z.ZodISODateTime;
1256
1626
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1257
1627
  }, z.core.$strict>;
1258
1628
  export type FlowRun = z.infer<typeof FlowRun>;
1629
+ export declare const FlowRunTrailEntry: z.ZodObject<{
1630
+ runId: z.ZodString;
1631
+ flowId: z.ZodString;
1632
+ flowTitle: z.ZodString;
1633
+ nodeId: z.ZodNullable<z.ZodString>;
1634
+ nodeLabel: z.ZodNullable<z.ZodString>;
1635
+ }, z.core.$strict>;
1636
+ export type FlowRunTrailEntry = z.infer<typeof FlowRunTrailEntry>;
1259
1637
  export declare const FlowRunStep: z.ZodObject<{
1260
1638
  run: z.ZodObject<{
1261
1639
  id: z.ZodString;
@@ -1264,7 +1642,6 @@ export declare const FlowRunStep: z.ZodObject<{
1264
1642
  status: z.ZodEnum<{
1265
1643
  queued: "queued";
1266
1644
  running: "running";
1267
- waiting: "waiting";
1268
1645
  completed: "completed";
1269
1646
  failed: "failed";
1270
1647
  cancelled: "cancelled";
@@ -1274,28 +1651,23 @@ export declare const FlowRunStep: z.ZodObject<{
1274
1651
  output: z.ZodNullable<z.ZodUnknown>;
1275
1652
  error: z.ZodNullable<z.ZodString>;
1276
1653
  initiatedBy: z.ZodString;
1654
+ parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1655
+ parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1277
1656
  createdAt: z.ZodISODateTime;
1278
1657
  updatedAt: z.ZodISODateTime;
1279
1658
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1280
1659
  }, z.core.$strict>;
1281
1660
  node: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1282
1661
  kind: z.ZodLiteral<"trigger">;
1283
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1662
+ configuration: z.ZodObject<{
1284
1663
  mode: z.ZodLiteral<"manual">;
1285
- }, z.core.$strict>, z.ZodObject<{
1286
- mode: z.ZodLiteral<"webhook">;
1287
- event: z.ZodString;
1288
- }, z.core.$strict>, z.ZodObject<{
1289
- mode: z.ZodLiteral<"schedule">;
1290
- cron: z.ZodString;
1291
- }, z.core.$strict>], "mode">;
1664
+ }, z.core.$strict>;
1292
1665
  id: z.ZodString;
1293
1666
  position: z.ZodObject<{
1294
1667
  x: z.ZodNumber;
1295
1668
  y: z.ZodNumber;
1296
1669
  }, z.core.$strict>;
1297
1670
  label: z.ZodString;
1298
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1299
1671
  }, z.core.$strict>, z.ZodObject<{
1300
1672
  kind: z.ZodLiteral<"instruction">;
1301
1673
  configuration: z.ZodObject<{
@@ -1307,16 +1679,43 @@ export declare const FlowRunStep: z.ZodObject<{
1307
1679
  y: z.ZodNumber;
1308
1680
  }, z.core.$strict>;
1309
1681
  label: z.ZodString;
1310
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1311
1682
  }, z.core.$strict>, z.ZodObject<{
1312
- kind: z.ZodLiteral<"knowledge">;
1683
+ kind: z.ZodLiteral<"folder">;
1684
+ configuration: z.ZodObject<{
1685
+ resourceId: z.ZodString;
1686
+ }, z.core.$strict>;
1687
+ id: z.ZodString;
1688
+ position: z.ZodObject<{
1689
+ x: z.ZodNumber;
1690
+ y: z.ZodNumber;
1691
+ }, z.core.$strict>;
1692
+ label: z.ZodString;
1693
+ }, z.core.$strict>, z.ZodObject<{
1694
+ kind: z.ZodLiteral<"document">;
1695
+ configuration: z.ZodObject<{
1696
+ resourceId: z.ZodString;
1697
+ }, z.core.$strict>;
1698
+ id: z.ZodString;
1699
+ position: z.ZodObject<{
1700
+ x: z.ZodNumber;
1701
+ y: z.ZodNumber;
1702
+ }, z.core.$strict>;
1703
+ label: z.ZodString;
1704
+ }, z.core.$strict>, z.ZodObject<{
1705
+ kind: z.ZodLiteral<"upload">;
1313
1706
  configuration: z.ZodObject<{
1314
- resourceIds: z.ZodArray<z.ZodString>;
1315
- mode: z.ZodEnum<{
1316
- relevant: "relevant";
1317
- full: "full";
1318
- }>;
1319
- query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1707
+ resourceId: z.ZodString;
1708
+ }, z.core.$strict>;
1709
+ id: z.ZodString;
1710
+ position: z.ZodObject<{
1711
+ x: z.ZodNumber;
1712
+ y: z.ZodNumber;
1713
+ }, z.core.$strict>;
1714
+ label: z.ZodString;
1715
+ }, z.core.$strict>, z.ZodObject<{
1716
+ kind: z.ZodLiteral<"table">;
1717
+ configuration: z.ZodObject<{
1718
+ resourceId: z.ZodString;
1320
1719
  }, z.core.$strict>;
1321
1720
  id: z.ZodString;
1322
1721
  position: z.ZodObject<{
@@ -1324,7 +1723,6 @@ export declare const FlowRunStep: z.ZodObject<{
1324
1723
  y: z.ZodNumber;
1325
1724
  }, z.core.$strict>;
1326
1725
  label: z.ZodString;
1327
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1328
1726
  }, z.core.$strict>, z.ZodObject<{
1329
1727
  kind: z.ZodLiteral<"tool">;
1330
1728
  configuration: z.ZodObject<{
@@ -1338,7 +1736,6 @@ export declare const FlowRunStep: z.ZodObject<{
1338
1736
  y: z.ZodNumber;
1339
1737
  }, z.core.$strict>;
1340
1738
  label: z.ZodString;
1341
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1342
1739
  }, z.core.$strict>, z.ZodObject<{
1343
1740
  kind: z.ZodLiteral<"condition">;
1344
1741
  configuration: z.ZodObject<{
@@ -1351,12 +1748,18 @@ export declare const FlowRunStep: z.ZodObject<{
1351
1748
  y: z.ZodNumber;
1352
1749
  }, z.core.$strict>;
1353
1750
  label: z.ZodString;
1354
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1355
1751
  }, z.core.$strict>, z.ZodObject<{
1356
- kind: z.ZodLiteral<"approval">;
1752
+ kind: z.ZodLiteral<"subflow">;
1357
1753
  configuration: z.ZodObject<{
1358
- prompt: z.ZodString;
1359
- timeout: z.ZodString;
1754
+ flowId: z.ZodString;
1755
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1756
+ mode: z.ZodLiteral<"latest">;
1757
+ }, z.core.$strict>, z.ZodObject<{
1758
+ mode: z.ZodLiteral<"follows">;
1759
+ }, z.core.$strict>, z.ZodObject<{
1760
+ mode: z.ZodLiteral<"pinned">;
1761
+ versionId: z.ZodString;
1762
+ }, z.core.$strict>], "mode">>;
1360
1763
  }, z.core.$strict>;
1361
1764
  id: z.ZodString;
1362
1765
  position: z.ZodObject<{
@@ -1364,25 +1767,32 @@ export declare const FlowRunStep: z.ZodObject<{
1364
1767
  y: z.ZodNumber;
1365
1768
  }, z.core.$strict>;
1366
1769
  label: z.ZodString;
1367
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1368
1770
  }, z.core.$strict>, z.ZodObject<{
1369
1771
  kind: z.ZodLiteral<"output">;
1370
- configuration: z.ZodObject<{
1371
- template: z.ZodDefault<z.ZodString>;
1372
- }, z.core.$strict>;
1772
+ configuration: z.ZodObject<{}, z.core.$strict>;
1373
1773
  id: z.ZodString;
1374
1774
  position: z.ZodObject<{
1375
1775
  x: z.ZodNumber;
1376
1776
  y: z.ZodNumber;
1377
1777
  }, z.core.$strict>;
1378
1778
  label: z.ZodString;
1379
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1380
1779
  }, z.core.$strict>], "kind">>;
1780
+ trail: z.ZodDefault<z.ZodArray<z.ZodObject<{
1781
+ runId: z.ZodString;
1782
+ flowId: z.ZodString;
1783
+ flowTitle: z.ZodString;
1784
+ nodeId: z.ZodNullable<z.ZodString>;
1785
+ nodeLabel: z.ZodNullable<z.ZodString>;
1786
+ }, z.core.$strict>>>;
1381
1787
  }, z.core.$strict>;
1382
1788
  export type FlowRunStep = z.infer<typeof FlowRunStep>;
1383
1789
  export declare const StartFlowRunInput: z.ZodObject<{
1384
1790
  flowId: z.ZodString;
1385
1791
  input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1792
+ parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1793
+ runId: z.ZodString;
1794
+ nodeId: z.ZodString;
1795
+ }, z.core.$strict>>>;
1386
1796
  idempotencyKey: z.ZodString;
1387
1797
  }, z.core.$strict>;
1388
1798
  export type StartFlowRunInput = z.infer<typeof StartFlowRunInput>;
@@ -1403,3 +1813,125 @@ export declare const CompleteFlowRunStepInput: z.ZodObject<{
1403
1813
  idempotencyKey: z.ZodString;
1404
1814
  }, z.core.$strict>;
1405
1815
  export type CompleteFlowRunStepInput = z.infer<typeof CompleteFlowRunStepInput>;
1816
+ export declare const FlowRunTrigger: z.ZodEnum<{
1817
+ manual: "manual";
1818
+ subflow: "subflow";
1819
+ }>;
1820
+ export type FlowRunTrigger = z.infer<typeof FlowRunTrigger>;
1821
+ export declare const FlowRunFailure: z.ZodObject<{
1822
+ nodeId: z.ZodString;
1823
+ nodeLabel: z.ZodString;
1824
+ detail: z.ZodString;
1825
+ calledRunId: z.ZodNullable<z.ZodString>;
1826
+ }, z.core.$strict>;
1827
+ export type FlowRunFailure = z.infer<typeof FlowRunFailure>;
1828
+ export declare const FlowRunSummary: z.ZodObject<{
1829
+ id: z.ZodString;
1830
+ flowId: z.ZodString;
1831
+ versionId: z.ZodString;
1832
+ status: z.ZodEnum<{
1833
+ queued: "queued";
1834
+ running: "running";
1835
+ completed: "completed";
1836
+ failed: "failed";
1837
+ cancelled: "cancelled";
1838
+ }>;
1839
+ trigger: z.ZodEnum<{
1840
+ manual: "manual";
1841
+ subflow: "subflow";
1842
+ }>;
1843
+ startedAt: z.ZodISODateTime;
1844
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1845
+ durationMs: z.ZodNullable<z.ZodNumber>;
1846
+ initiatedBy: z.ZodString;
1847
+ parentRunId: z.ZodNullable<z.ZodString>;
1848
+ failure: z.ZodNullable<z.ZodObject<{
1849
+ nodeId: z.ZodString;
1850
+ nodeLabel: z.ZodString;
1851
+ detail: z.ZodString;
1852
+ calledRunId: z.ZodNullable<z.ZodString>;
1853
+ }, z.core.$strict>>;
1854
+ }, z.core.$strict>;
1855
+ export type FlowRunSummary = z.infer<typeof FlowRunSummary>;
1856
+ export declare const ListFlowRunsInput: z.ZodObject<{
1857
+ flowId: z.ZodString;
1858
+ failedOnly: z.ZodDefault<z.ZodBoolean>;
1859
+ limit: z.ZodDefault<z.ZodNumber>;
1860
+ cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1861
+ }, z.core.$strict>;
1862
+ export type ListFlowRunsInput = z.infer<typeof ListFlowRunsInput>;
1863
+ export declare const FlowRunList: z.ZodObject<{
1864
+ items: z.ZodArray<z.ZodObject<{
1865
+ id: z.ZodString;
1866
+ flowId: z.ZodString;
1867
+ versionId: z.ZodString;
1868
+ status: z.ZodEnum<{
1869
+ queued: "queued";
1870
+ running: "running";
1871
+ completed: "completed";
1872
+ failed: "failed";
1873
+ cancelled: "cancelled";
1874
+ }>;
1875
+ trigger: z.ZodEnum<{
1876
+ manual: "manual";
1877
+ subflow: "subflow";
1878
+ }>;
1879
+ startedAt: z.ZodISODateTime;
1880
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1881
+ durationMs: z.ZodNullable<z.ZodNumber>;
1882
+ initiatedBy: z.ZodString;
1883
+ parentRunId: z.ZodNullable<z.ZodString>;
1884
+ failure: z.ZodNullable<z.ZodObject<{
1885
+ nodeId: z.ZodString;
1886
+ nodeLabel: z.ZodString;
1887
+ detail: z.ZodString;
1888
+ calledRunId: z.ZodNullable<z.ZodString>;
1889
+ }, z.core.$strict>>;
1890
+ }, z.core.$strict>>;
1891
+ nextCursor: z.ZodNullable<z.ZodString>;
1892
+ }, z.core.$strict>;
1893
+ export type FlowRunList = z.infer<typeof FlowRunList>;
1894
+ export declare const FlowRunStepRecord: z.ZodObject<{
1895
+ nodeId: z.ZodString;
1896
+ nodeLabel: z.ZodString;
1897
+ outcome: z.ZodEnum<{
1898
+ completed: "completed";
1899
+ failed: "failed";
1900
+ }>;
1901
+ branch: z.ZodNullable<z.ZodString>;
1902
+ detail: z.ZodNullable<z.ZodString>;
1903
+ calledRunId: z.ZodNullable<z.ZodString>;
1904
+ completedAt: z.ZodISODateTime;
1905
+ }, z.core.$strict>;
1906
+ export type FlowRunStepRecord = z.infer<typeof FlowRunStepRecord>;
1907
+ export declare const FlowRunHistory: z.ZodObject<{
1908
+ runId: z.ZodString;
1909
+ flowId: z.ZodString;
1910
+ status: z.ZodEnum<{
1911
+ queued: "queued";
1912
+ running: "running";
1913
+ completed: "completed";
1914
+ failed: "failed";
1915
+ cancelled: "cancelled";
1916
+ }>;
1917
+ steps: z.ZodArray<z.ZodObject<{
1918
+ nodeId: z.ZodString;
1919
+ nodeLabel: z.ZodString;
1920
+ outcome: z.ZodEnum<{
1921
+ completed: "completed";
1922
+ failed: "failed";
1923
+ }>;
1924
+ branch: z.ZodNullable<z.ZodString>;
1925
+ detail: z.ZodNullable<z.ZodString>;
1926
+ calledRunId: z.ZodNullable<z.ZodString>;
1927
+ completedAt: z.ZodISODateTime;
1928
+ }, z.core.$strict>>;
1929
+ trail: z.ZodArray<z.ZodObject<{
1930
+ runId: z.ZodString;
1931
+ flowId: z.ZodString;
1932
+ flowTitle: z.ZodString;
1933
+ nodeId: z.ZodNullable<z.ZodString>;
1934
+ nodeLabel: z.ZodNullable<z.ZodString>;
1935
+ }, z.core.$strict>>;
1936
+ }, z.core.$strict>;
1937
+ export type FlowRunHistory = z.infer<typeof FlowRunHistory>;