@anchrd/intel-contract 0.2.0 → 0.2.2

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.
@@ -10,10 +10,17 @@ export declare const ProblemDetails: z.ZodObject<{
10
10
  code: z.ZodOptional<z.ZodString>;
11
11
  }, z.core.$strict>;
12
12
  export type ProblemDetails = z.infer<typeof ProblemDetails>;
13
+ export declare const SessionUser: z.ZodObject<{
14
+ id: z.ZodString;
15
+ email: z.ZodEmail;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strict>;
18
+ export type SessionUser = z.infer<typeof SessionUser>;
13
19
  export declare const KnowledgeNodeKind: z.ZodEnum<{
14
20
  folder: "folder";
15
21
  document: "document";
16
22
  attachment: "attachment";
23
+ table: "table";
17
24
  }>;
18
25
  export type KnowledgeNodeKind = z.infer<typeof KnowledgeNodeKind>;
19
26
  export declare const ContextPolicy: z.ZodEnum<{
@@ -22,13 +29,13 @@ export declare const ContextPolicy: z.ZodEnum<{
22
29
  explicit: "explicit";
23
30
  }>;
24
31
  export type ContextPolicy = z.infer<typeof ContextPolicy>;
25
- export declare const ResourceRole: z.ZodEnum<{
26
- viewer: "viewer";
27
- commenter: "commenter";
28
- editor: "editor";
29
- manager: "manager";
32
+ export declare const ResourceVerb: z.ZodEnum<{
33
+ read: "read";
34
+ write: "write";
35
+ execute: "execute";
36
+ share: "share";
30
37
  }>;
31
- export type ResourceRole = z.infer<typeof ResourceRole>;
38
+ export type ResourceVerb = z.infer<typeof ResourceVerb>;
32
39
  export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
40
  type: z.ZodLiteral<"user">;
34
41
  id: z.ZodString;
@@ -46,6 +53,7 @@ export declare const KnowledgeNode: z.ZodObject<{
46
53
  folder: "folder";
47
54
  document: "document";
48
55
  attachment: "attachment";
56
+ table: "table";
49
57
  }>;
50
58
  title: z.ZodString;
51
59
  description: z.ZodNullable<z.ZodString>;
@@ -92,6 +100,7 @@ export declare const CreateKnowledgeNodeInput: z.ZodObject<{
92
100
  folder: "folder";
93
101
  document: "document";
94
102
  attachment: "attachment";
103
+ table: "table";
95
104
  }>;
96
105
  title: z.ZodString;
97
106
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -148,6 +157,7 @@ export declare const KnowledgeNodeList: z.ZodObject<{
148
157
  folder: "folder";
149
158
  document: "document";
150
159
  attachment: "attachment";
160
+ table: "table";
151
161
  }>;
152
162
  title: z.ZodString;
153
163
  description: z.ZodNullable<z.ZodString>;
@@ -186,6 +196,7 @@ export declare const KnowledgeDocument: z.ZodObject<{
186
196
  folder: "folder";
187
197
  document: "document";
188
198
  attachment: "attachment";
199
+ table: "table";
189
200
  }>;
190
201
  title: z.ZodString;
191
202
  description: z.ZodNullable<z.ZodString>;
@@ -222,6 +233,7 @@ export declare const KnowledgeAttachment: z.ZodObject<{
222
233
  folder: "folder";
223
234
  document: "document";
224
235
  attachment: "attachment";
236
+ table: "table";
225
237
  }>;
226
238
  title: z.ZodString;
227
239
  description: z.ZodNullable<z.ZodString>;
@@ -250,6 +262,91 @@ export declare const KnowledgeAttachment: z.ZodObject<{
250
262
  resourceUri: z.ZodString;
251
263
  }, z.core.$strict>;
252
264
  export type KnowledgeAttachment = z.infer<typeof KnowledgeAttachment>;
265
+ export declare const TableMediaType = "text/csv";
266
+ export declare const TableColumn: z.ZodString;
267
+ export declare const TableCell: z.ZodString;
268
+ export declare const TableRow: z.ZodArray<z.ZodString>;
269
+ export declare const DefineKnowledgeTableInput: z.ZodObject<{
270
+ nodeId: z.ZodString;
271
+ columns: z.ZodArray<z.ZodString>;
272
+ idempotencyKey: z.ZodString;
273
+ }, z.core.$strict>;
274
+ export type DefineKnowledgeTableInput = z.infer<typeof DefineKnowledgeTableInput>;
275
+ export declare const AppendKnowledgeTableRowsInput: z.ZodObject<{
276
+ nodeId: z.ZodString;
277
+ rows: z.ZodArray<z.ZodArray<z.ZodString>>;
278
+ idempotencyKey: z.ZodString;
279
+ }, z.core.$strict>;
280
+ export type AppendKnowledgeTableRowsInput = z.infer<typeof AppendKnowledgeTableRowsInput>;
281
+ export declare const GetKnowledgeTableInput: z.ZodObject<{
282
+ nodeId: z.ZodString;
283
+ }, z.core.$strict>;
284
+ export type GetKnowledgeTableInput = z.infer<typeof GetKnowledgeTableInput>;
285
+ export declare const KnowledgeTable: z.ZodObject<{
286
+ node: z.ZodObject<{
287
+ id: z.ZodString;
288
+ parentId: z.ZodNullable<z.ZodString>;
289
+ kind: z.ZodEnum<{
290
+ folder: "folder";
291
+ document: "document";
292
+ attachment: "attachment";
293
+ table: "table";
294
+ }>;
295
+ title: z.ZodString;
296
+ description: z.ZodNullable<z.ZodString>;
297
+ contextPolicy: z.ZodEnum<{
298
+ pinned: "pinned";
299
+ relevant: "relevant";
300
+ explicit: "explicit";
301
+ }>;
302
+ ownerId: z.ZodString;
303
+ currentVersionId: z.ZodNullable<z.ZodString>;
304
+ createdAt: z.ZodISODateTime;
305
+ updatedAt: z.ZodISODateTime;
306
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
307
+ }, z.core.$strict>;
308
+ columns: z.ZodArray<z.ZodString>;
309
+ rows: z.ZodArray<z.ZodArray<z.ZodString>>;
310
+ versionId: z.ZodNullable<z.ZodString>;
311
+ }, z.core.$strict>;
312
+ export type KnowledgeTable = z.infer<typeof KnowledgeTable>;
313
+ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
314
+ node: z.ZodObject<{
315
+ id: z.ZodString;
316
+ parentId: z.ZodNullable<z.ZodString>;
317
+ kind: z.ZodEnum<{
318
+ folder: "folder";
319
+ document: "document";
320
+ attachment: "attachment";
321
+ table: "table";
322
+ }>;
323
+ title: z.ZodString;
324
+ description: z.ZodNullable<z.ZodString>;
325
+ contextPolicy: z.ZodEnum<{
326
+ pinned: "pinned";
327
+ relevant: "relevant";
328
+ explicit: "explicit";
329
+ }>;
330
+ ownerId: z.ZodString;
331
+ currentVersionId: z.ZodNullable<z.ZodString>;
332
+ createdAt: z.ZodISODateTime;
333
+ updatedAt: z.ZodISODateTime;
334
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
335
+ }, z.core.$strict>;
336
+ version: z.ZodObject<{
337
+ id: z.ZodString;
338
+ nodeId: z.ZodString;
339
+ sequence: z.ZodNumber;
340
+ contentKey: z.ZodString;
341
+ mediaType: z.ZodString;
342
+ contentHash: z.ZodString;
343
+ size: z.ZodNumber;
344
+ createdBy: z.ZodString;
345
+ createdAt: z.ZodISODateTime;
346
+ }, z.core.$strict>;
347
+ appended: z.ZodNumber;
348
+ }, z.core.$strict>;
349
+ export type AppendKnowledgeTableRowsResult = z.infer<typeof AppendKnowledgeTableRowsResult>;
253
350
  export declare const KnowledgeLinkRelation: z.ZodEnum<{
254
351
  references: "references";
255
352
  related: "related";
@@ -257,6 +354,11 @@ export declare const KnowledgeLinkRelation: z.ZodEnum<{
257
354
  implements: "implements";
258
355
  }>;
259
356
  export type KnowledgeLinkRelation = z.infer<typeof KnowledgeLinkRelation>;
357
+ export declare const KnowledgeLinkOrigin: z.ZodEnum<{
358
+ text: "text";
359
+ manual: "manual";
360
+ }>;
361
+ export type KnowledgeLinkOrigin = z.infer<typeof KnowledgeLinkOrigin>;
260
362
  export declare const KnowledgeLink: z.ZodObject<{
261
363
  id: z.ZodString;
262
364
  sourceNodeId: z.ZodString;
@@ -267,6 +369,10 @@ export declare const KnowledgeLink: z.ZodObject<{
267
369
  depends_on: "depends_on";
268
370
  implements: "implements";
269
371
  }>;
372
+ origin: z.ZodEnum<{
373
+ text: "text";
374
+ manual: "manual";
375
+ }>;
270
376
  label: z.ZodNullable<z.ZodString>;
271
377
  createdBy: z.ZodString;
272
378
  createdAt: z.ZodISODateTime;
@@ -283,31 +389,33 @@ export declare const KnowledgeLinkList: z.ZodObject<{
283
389
  depends_on: "depends_on";
284
390
  implements: "implements";
285
391
  }>;
392
+ origin: z.ZodEnum<{
393
+ text: "text";
394
+ manual: "manual";
395
+ }>;
286
396
  label: z.ZodNullable<z.ZodString>;
287
397
  createdBy: z.ZodString;
288
398
  createdAt: z.ZodISODateTime;
289
399
  }, z.core.$strict>>;
290
400
  }, z.core.$strict>;
291
401
  export type KnowledgeLinkList = z.infer<typeof KnowledgeLinkList>;
292
- export declare const CreateKnowledgeLinkInput: z.ZodObject<{
293
- sourceNodeId: z.ZodString;
294
- targetNodeId: z.ZodString;
295
- relation: z.ZodEnum<{
296
- references: "references";
297
- related: "related";
298
- depends_on: "depends_on";
299
- implements: "implements";
300
- }>;
301
- label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
302
- idempotencyKey: z.ZodString;
402
+ export declare const DocumentLinkInlineType = "documentLink";
403
+ export declare const ResolveKnowledgeLinksInput: z.ZodObject<{
404
+ nodeIds: z.ZodArray<z.ZodString>;
303
405
  }, z.core.$strict>;
304
- export type CreateKnowledgeLinkInput = z.infer<typeof CreateKnowledgeLinkInput>;
305
- export declare const DeleteKnowledgeLinkInput: z.ZodObject<{
306
- sourceNodeId: z.ZodString;
307
- linkId: z.ZodString;
308
- idempotencyKey: z.ZodString;
406
+ export type ResolveKnowledgeLinksInput = z.infer<typeof ResolveKnowledgeLinksInput>;
407
+ export declare const ResolvedKnowledgeLink: z.ZodObject<{
408
+ nodeId: z.ZodString;
409
+ title: z.ZodString;
309
410
  }, z.core.$strict>;
310
- export type DeleteKnowledgeLinkInput = z.infer<typeof DeleteKnowledgeLinkInput>;
411
+ export type ResolvedKnowledgeLink = z.infer<typeof ResolvedKnowledgeLink>;
412
+ export declare const ResolveKnowledgeLinksResult: z.ZodObject<{
413
+ items: z.ZodArray<z.ZodObject<{
414
+ nodeId: z.ZodString;
415
+ title: z.ZodString;
416
+ }, z.core.$strict>>;
417
+ }, z.core.$strict>;
418
+ export type ResolveKnowledgeLinksResult = z.infer<typeof ResolveKnowledgeLinksResult>;
311
419
  export declare const KnowledgeGraphInput: z.ZodObject<{
312
420
  limit: z.ZodDefault<z.ZodNumber>;
313
421
  }, z.core.$strict>;
@@ -320,6 +428,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
320
428
  folder: "folder";
321
429
  document: "document";
322
430
  attachment: "attachment";
431
+ table: "table";
323
432
  }>;
324
433
  title: z.ZodString;
325
434
  description: z.ZodNullable<z.ZodString>;
@@ -344,6 +453,10 @@ export declare const KnowledgeGraph: z.ZodObject<{
344
453
  depends_on: "depends_on";
345
454
  implements: "implements";
346
455
  }>;
456
+ origin: z.ZodEnum<{
457
+ text: "text";
458
+ manual: "manual";
459
+ }>;
347
460
  label: z.ZodNullable<z.ZodString>;
348
461
  createdBy: z.ZodString;
349
462
  createdAt: z.ZodISODateTime;
@@ -370,11 +483,11 @@ export declare const ResourceGrant: z.ZodObject<{
370
483
  }, z.core.$strict>, z.ZodObject<{
371
484
  type: z.ZodLiteral<"organization">;
372
485
  }, z.core.$strict>], "type">;
373
- role: z.ZodEnum<{
374
- viewer: "viewer";
375
- commenter: "commenter";
376
- editor: "editor";
377
- manager: "manager";
486
+ verb: z.ZodEnum<{
487
+ read: "read";
488
+ write: "write";
489
+ execute: "execute";
490
+ share: "share";
378
491
  }>;
379
492
  expiresAt: z.ZodNullable<z.ZodISODateTime>;
380
493
  createdBy: z.ZodString;
@@ -392,11 +505,11 @@ export declare const ShareKnowledgeInput: z.ZodObject<{
392
505
  }, z.core.$strict>, z.ZodObject<{
393
506
  type: z.ZodLiteral<"organization">;
394
507
  }, z.core.$strict>], "type">;
395
- role: z.ZodEnum<{
396
- viewer: "viewer";
397
- commenter: "commenter";
398
- editor: "editor";
399
- manager: "manager";
508
+ verb: z.ZodEnum<{
509
+ read: "read";
510
+ write: "write";
511
+ execute: "execute";
512
+ share: "share";
400
513
  }>;
401
514
  expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
402
515
  idempotencyKey: z.ZodString;
@@ -408,7 +521,48 @@ export declare const RevokeKnowledgeGrantInput: z.ZodObject<{
408
521
  idempotencyKey: z.ZodString;
409
522
  }, z.core.$strict>;
410
523
  export type RevokeKnowledgeGrantInput = z.infer<typeof RevokeKnowledgeGrantInput>;
524
+ export declare const UnreadableKnowledge: z.ZodObject<{
525
+ titles: z.ZodArray<z.ZodString>;
526
+ hidden: z.ZodNumber;
527
+ }, z.core.$strict>;
528
+ export type UnreadableKnowledge = z.infer<typeof UnreadableKnowledge>;
529
+ export declare const ShareKnowledgeResult: z.ZodObject<{
530
+ grant: z.ZodObject<{
531
+ id: z.ZodString;
532
+ resourceId: z.ZodString;
533
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
534
+ type: z.ZodLiteral<"user">;
535
+ id: z.ZodString;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ type: z.ZodLiteral<"email">;
538
+ email: z.ZodEmail;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ type: z.ZodLiteral<"organization">;
541
+ }, z.core.$strict>], "type">;
542
+ verb: z.ZodEnum<{
543
+ read: "read";
544
+ write: "write";
545
+ execute: "execute";
546
+ share: "share";
547
+ }>;
548
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
549
+ createdBy: z.ZodString;
550
+ createdAt: z.ZodISODateTime;
551
+ }, z.core.$strict>;
552
+ unreadable: z.ZodObject<{
553
+ titles: z.ZodArray<z.ZodString>;
554
+ hidden: z.ZodNumber;
555
+ }, z.core.$strict>;
556
+ }, z.core.$strict>;
557
+ export type ShareKnowledgeResult = z.infer<typeof ShareKnowledgeResult>;
411
558
  export declare const ResourceGrantList: z.ZodObject<{
559
+ resourceId: z.ZodString;
560
+ applicableVerbs: z.ZodArray<z.ZodEnum<{
561
+ read: "read";
562
+ write: "write";
563
+ execute: "execute";
564
+ share: "share";
565
+ }>>;
412
566
  items: z.ZodArray<z.ZodObject<{
413
567
  id: z.ZodString;
414
568
  resourceId: z.ZodString;
@@ -421,11 +575,11 @@ export declare const ResourceGrantList: z.ZodObject<{
421
575
  }, z.core.$strict>, z.ZodObject<{
422
576
  type: z.ZodLiteral<"organization">;
423
577
  }, z.core.$strict>], "type">;
424
- role: z.ZodEnum<{
425
- viewer: "viewer";
426
- commenter: "commenter";
427
- editor: "editor";
428
- manager: "manager";
578
+ verb: z.ZodEnum<{
579
+ read: "read";
580
+ write: "write";
581
+ execute: "execute";
582
+ share: "share";
429
583
  }>;
430
584
  expiresAt: z.ZodNullable<z.ZodISODateTime>;
431
585
  createdBy: z.ZodString;
@@ -478,10 +632,6 @@ export declare const RevokeGrantResult: z.ZodObject<{
478
632
  revoked: z.ZodBoolean;
479
633
  }, z.core.$strict>;
480
634
  export type RevokeGrantResult = z.infer<typeof RevokeGrantResult>;
481
- export declare const DeleteKnowledgeLinkResult: z.ZodObject<{
482
- deleted: z.ZodBoolean;
483
- }, z.core.$strict>;
484
- export type DeleteKnowledgeLinkResult = z.infer<typeof DeleteKnowledgeLinkResult>;
485
635
  export declare const ToolSourceUrl: z.ZodURL;
486
636
  export declare const ToolName: z.ZodString;
487
637
  export declare const ToolAnnotations: z.ZodObject<{
@@ -548,24 +698,32 @@ export declare const FlowPosition: z.ZodObject<{
548
698
  x: z.ZodNumber;
549
699
  y: z.ZodNumber;
550
700
  }, z.core.$strict>;
701
+ export declare const SubflowVersionMode: z.ZodEnum<{
702
+ pinned: "pinned";
703
+ latest: "latest";
704
+ follows: "follows";
705
+ }>;
706
+ export type SubflowVersionMode = z.infer<typeof SubflowVersionMode>;
707
+ export declare const SubflowVersion: z.ZodDiscriminatedUnion<[z.ZodObject<{
708
+ mode: z.ZodLiteral<"latest">;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ mode: z.ZodLiteral<"follows">;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ mode: z.ZodLiteral<"pinned">;
713
+ versionId: z.ZodString;
714
+ }, z.core.$strict>], "mode">;
715
+ export type SubflowVersion = z.infer<typeof SubflowVersion>;
551
716
  export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
552
717
  kind: z.ZodLiteral<"trigger">;
553
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
718
+ configuration: z.ZodObject<{
554
719
  mode: z.ZodLiteral<"manual">;
555
- }, z.core.$strict>, z.ZodObject<{
556
- mode: z.ZodLiteral<"webhook">;
557
- event: z.ZodString;
558
- }, z.core.$strict>, z.ZodObject<{
559
- mode: z.ZodLiteral<"schedule">;
560
- cron: z.ZodString;
561
- }, z.core.$strict>], "mode">;
720
+ }, z.core.$strict>;
562
721
  id: z.ZodString;
563
722
  position: z.ZodObject<{
564
723
  x: z.ZodNumber;
565
724
  y: z.ZodNumber;
566
725
  }, z.core.$strict>;
567
726
  label: z.ZodString;
568
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
569
727
  }, z.core.$strict>, z.ZodObject<{
570
728
  kind: z.ZodLiteral<"instruction">;
571
729
  configuration: z.ZodObject<{
@@ -577,7 +735,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
577
735
  y: z.ZodNumber;
578
736
  }, z.core.$strict>;
579
737
  label: z.ZodString;
580
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
581
738
  }, z.core.$strict>, z.ZodObject<{
582
739
  kind: z.ZodLiteral<"knowledge">;
583
740
  configuration: z.ZodObject<{
@@ -594,7 +751,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
594
751
  y: z.ZodNumber;
595
752
  }, z.core.$strict>;
596
753
  label: z.ZodString;
597
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
598
754
  }, z.core.$strict>, z.ZodObject<{
599
755
  kind: z.ZodLiteral<"tool">;
600
756
  configuration: z.ZodObject<{
@@ -608,7 +764,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
608
764
  y: z.ZodNumber;
609
765
  }, z.core.$strict>;
610
766
  label: z.ZodString;
611
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
612
767
  }, z.core.$strict>, z.ZodObject<{
613
768
  kind: z.ZodLiteral<"condition">;
614
769
  configuration: z.ZodObject<{
@@ -621,7 +776,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
621
776
  y: z.ZodNumber;
622
777
  }, z.core.$strict>;
623
778
  label: z.ZodString;
624
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
625
779
  }, z.core.$strict>, z.ZodObject<{
626
780
  kind: z.ZodLiteral<"approval">;
627
781
  configuration: z.ZodObject<{
@@ -634,7 +788,25 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
634
788
  y: z.ZodNumber;
635
789
  }, z.core.$strict>;
636
790
  label: z.ZodString;
637
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
791
+ }, z.core.$strict>, z.ZodObject<{
792
+ kind: z.ZodLiteral<"subflow">;
793
+ configuration: z.ZodObject<{
794
+ flowId: z.ZodString;
795
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
796
+ mode: z.ZodLiteral<"latest">;
797
+ }, z.core.$strict>, z.ZodObject<{
798
+ mode: z.ZodLiteral<"follows">;
799
+ }, z.core.$strict>, z.ZodObject<{
800
+ mode: z.ZodLiteral<"pinned">;
801
+ versionId: z.ZodString;
802
+ }, z.core.$strict>], "mode">>;
803
+ }, z.core.$strict>;
804
+ id: z.ZodString;
805
+ position: z.ZodObject<{
806
+ x: z.ZodNumber;
807
+ y: z.ZodNumber;
808
+ }, z.core.$strict>;
809
+ label: z.ZodString;
638
810
  }, z.core.$strict>, z.ZodObject<{
639
811
  kind: z.ZodLiteral<"output">;
640
812
  configuration: z.ZodObject<{
@@ -646,13 +818,21 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
818
  y: z.ZodNumber;
647
819
  }, z.core.$strict>;
648
820
  label: z.ZodString;
649
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
650
821
  }, z.core.$strict>], "kind">;
651
822
  export type FlowNode = z.infer<typeof FlowNode>;
823
+ export declare const FlowEdgeKind: z.ZodEnum<{
824
+ flow: "flow";
825
+ context: "context";
826
+ }>;
827
+ export type FlowEdgeKind = z.infer<typeof FlowEdgeKind>;
652
828
  export declare const FlowEdge: z.ZodObject<{
653
829
  id: z.ZodString;
654
830
  source: z.ZodString;
655
831
  target: z.ZodString;
832
+ kind: z.ZodDefault<z.ZodEnum<{
833
+ flow: "flow";
834
+ context: "context";
835
+ }>>;
656
836
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
657
837
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
658
838
  }, z.core.$strict>;
@@ -660,22 +840,15 @@ export type FlowEdge = z.infer<typeof FlowEdge>;
660
840
  export declare const FlowGraph: z.ZodObject<{
661
841
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
662
842
  kind: z.ZodLiteral<"trigger">;
663
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
843
+ configuration: z.ZodObject<{
664
844
  mode: z.ZodLiteral<"manual">;
665
- }, z.core.$strict>, z.ZodObject<{
666
- mode: z.ZodLiteral<"webhook">;
667
- event: z.ZodString;
668
- }, z.core.$strict>, z.ZodObject<{
669
- mode: z.ZodLiteral<"schedule">;
670
- cron: z.ZodString;
671
- }, z.core.$strict>], "mode">;
845
+ }, z.core.$strict>;
672
846
  id: z.ZodString;
673
847
  position: z.ZodObject<{
674
848
  x: z.ZodNumber;
675
849
  y: z.ZodNumber;
676
850
  }, z.core.$strict>;
677
851
  label: z.ZodString;
678
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
679
852
  }, z.core.$strict>, z.ZodObject<{
680
853
  kind: z.ZodLiteral<"instruction">;
681
854
  configuration: z.ZodObject<{
@@ -687,7 +860,6 @@ export declare const FlowGraph: z.ZodObject<{
687
860
  y: z.ZodNumber;
688
861
  }, z.core.$strict>;
689
862
  label: z.ZodString;
690
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
691
863
  }, z.core.$strict>, z.ZodObject<{
692
864
  kind: z.ZodLiteral<"knowledge">;
693
865
  configuration: z.ZodObject<{
@@ -704,7 +876,6 @@ export declare const FlowGraph: z.ZodObject<{
704
876
  y: z.ZodNumber;
705
877
  }, z.core.$strict>;
706
878
  label: z.ZodString;
707
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
708
879
  }, z.core.$strict>, z.ZodObject<{
709
880
  kind: z.ZodLiteral<"tool">;
710
881
  configuration: z.ZodObject<{
@@ -718,7 +889,6 @@ export declare const FlowGraph: z.ZodObject<{
718
889
  y: z.ZodNumber;
719
890
  }, z.core.$strict>;
720
891
  label: z.ZodString;
721
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
722
892
  }, z.core.$strict>, z.ZodObject<{
723
893
  kind: z.ZodLiteral<"condition">;
724
894
  configuration: z.ZodObject<{
@@ -731,7 +901,6 @@ export declare const FlowGraph: z.ZodObject<{
731
901
  y: z.ZodNumber;
732
902
  }, z.core.$strict>;
733
903
  label: z.ZodString;
734
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
735
904
  }, z.core.$strict>, z.ZodObject<{
736
905
  kind: z.ZodLiteral<"approval">;
737
906
  configuration: z.ZodObject<{
@@ -744,7 +913,25 @@ export declare const FlowGraph: z.ZodObject<{
744
913
  y: z.ZodNumber;
745
914
  }, z.core.$strict>;
746
915
  label: z.ZodString;
747
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ kind: z.ZodLiteral<"subflow">;
918
+ configuration: z.ZodObject<{
919
+ flowId: z.ZodString;
920
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
921
+ mode: z.ZodLiteral<"latest">;
922
+ }, z.core.$strict>, z.ZodObject<{
923
+ mode: z.ZodLiteral<"follows">;
924
+ }, z.core.$strict>, z.ZodObject<{
925
+ mode: z.ZodLiteral<"pinned">;
926
+ versionId: z.ZodString;
927
+ }, z.core.$strict>], "mode">>;
928
+ }, z.core.$strict>;
929
+ id: z.ZodString;
930
+ position: z.ZodObject<{
931
+ x: z.ZodNumber;
932
+ y: z.ZodNumber;
933
+ }, z.core.$strict>;
934
+ label: z.ZodString;
748
935
  }, z.core.$strict>, z.ZodObject<{
749
936
  kind: z.ZodLiteral<"output">;
750
937
  configuration: z.ZodObject<{
@@ -756,12 +943,15 @@ export declare const FlowGraph: z.ZodObject<{
756
943
  y: z.ZodNumber;
757
944
  }, z.core.$strict>;
758
945
  label: z.ZodString;
759
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
760
946
  }, z.core.$strict>], "kind">>;
761
947
  edges: z.ZodArray<z.ZodObject<{
762
948
  id: z.ZodString;
763
949
  source: z.ZodString;
764
950
  target: z.ZodString;
951
+ kind: z.ZodDefault<z.ZodEnum<{
952
+ flow: "flow";
953
+ context: "context";
954
+ }>>;
765
955
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
766
956
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
767
957
  }, z.core.$strict>>;
@@ -769,6 +959,7 @@ export declare const FlowGraph: z.ZodObject<{
769
959
  export type FlowGraph = z.infer<typeof FlowGraph>;
770
960
  export declare const Flow: z.ZodObject<{
771
961
  id: z.ZodString;
962
+ parentId: z.ZodNullable<z.ZodString>;
772
963
  title: z.ZodString;
773
964
  description: z.ZodNullable<z.ZodString>;
774
965
  ownerId: z.ZodString;
@@ -786,22 +977,15 @@ export declare const FlowVersion: z.ZodObject<{
786
977
  graph: z.ZodObject<{
787
978
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
788
979
  kind: z.ZodLiteral<"trigger">;
789
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
980
+ configuration: z.ZodObject<{
790
981
  mode: z.ZodLiteral<"manual">;
791
- }, z.core.$strict>, z.ZodObject<{
792
- mode: z.ZodLiteral<"webhook">;
793
- event: z.ZodString;
794
- }, z.core.$strict>, z.ZodObject<{
795
- mode: z.ZodLiteral<"schedule">;
796
- cron: z.ZodString;
797
- }, z.core.$strict>], "mode">;
982
+ }, z.core.$strict>;
798
983
  id: z.ZodString;
799
984
  position: z.ZodObject<{
800
985
  x: z.ZodNumber;
801
986
  y: z.ZodNumber;
802
987
  }, z.core.$strict>;
803
988
  label: z.ZodString;
804
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
805
989
  }, z.core.$strict>, z.ZodObject<{
806
990
  kind: z.ZodLiteral<"instruction">;
807
991
  configuration: z.ZodObject<{
@@ -813,7 +997,6 @@ export declare const FlowVersion: z.ZodObject<{
813
997
  y: z.ZodNumber;
814
998
  }, z.core.$strict>;
815
999
  label: z.ZodString;
816
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
817
1000
  }, z.core.$strict>, z.ZodObject<{
818
1001
  kind: z.ZodLiteral<"knowledge">;
819
1002
  configuration: z.ZodObject<{
@@ -830,7 +1013,6 @@ export declare const FlowVersion: z.ZodObject<{
830
1013
  y: z.ZodNumber;
831
1014
  }, z.core.$strict>;
832
1015
  label: z.ZodString;
833
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
834
1016
  }, z.core.$strict>, z.ZodObject<{
835
1017
  kind: z.ZodLiteral<"tool">;
836
1018
  configuration: z.ZodObject<{
@@ -844,7 +1026,6 @@ export declare const FlowVersion: z.ZodObject<{
844
1026
  y: z.ZodNumber;
845
1027
  }, z.core.$strict>;
846
1028
  label: z.ZodString;
847
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
848
1029
  }, z.core.$strict>, z.ZodObject<{
849
1030
  kind: z.ZodLiteral<"condition">;
850
1031
  configuration: z.ZodObject<{
@@ -857,7 +1038,6 @@ export declare const FlowVersion: z.ZodObject<{
857
1038
  y: z.ZodNumber;
858
1039
  }, z.core.$strict>;
859
1040
  label: z.ZodString;
860
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
861
1041
  }, z.core.$strict>, z.ZodObject<{
862
1042
  kind: z.ZodLiteral<"approval">;
863
1043
  configuration: z.ZodObject<{
@@ -870,7 +1050,25 @@ export declare const FlowVersion: z.ZodObject<{
870
1050
  y: z.ZodNumber;
871
1051
  }, z.core.$strict>;
872
1052
  label: z.ZodString;
873
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1053
+ }, z.core.$strict>, z.ZodObject<{
1054
+ kind: z.ZodLiteral<"subflow">;
1055
+ configuration: z.ZodObject<{
1056
+ flowId: z.ZodString;
1057
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
+ mode: z.ZodLiteral<"latest">;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ mode: z.ZodLiteral<"follows">;
1061
+ }, z.core.$strict>, z.ZodObject<{
1062
+ mode: z.ZodLiteral<"pinned">;
1063
+ versionId: z.ZodString;
1064
+ }, z.core.$strict>], "mode">>;
1065
+ }, z.core.$strict>;
1066
+ id: z.ZodString;
1067
+ position: z.ZodObject<{
1068
+ x: z.ZodNumber;
1069
+ y: z.ZodNumber;
1070
+ }, z.core.$strict>;
1071
+ label: z.ZodString;
874
1072
  }, z.core.$strict>, z.ZodObject<{
875
1073
  kind: z.ZodLiteral<"output">;
876
1074
  configuration: z.ZodObject<{
@@ -882,12 +1080,15 @@ export declare const FlowVersion: z.ZodObject<{
882
1080
  y: z.ZodNumber;
883
1081
  }, z.core.$strict>;
884
1082
  label: z.ZodString;
885
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
886
1083
  }, z.core.$strict>], "kind">>;
887
1084
  edges: z.ZodArray<z.ZodObject<{
888
1085
  id: z.ZodString;
889
1086
  source: z.ZodString;
890
1087
  target: z.ZodString;
1088
+ kind: z.ZodDefault<z.ZodEnum<{
1089
+ flow: "flow";
1090
+ context: "context";
1091
+ }>>;
891
1092
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
892
1093
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
893
1094
  }, z.core.$strict>>;
@@ -899,6 +1100,7 @@ export type FlowVersion = z.infer<typeof FlowVersion>;
899
1100
  export declare const FlowDocument: z.ZodObject<{
900
1101
  flow: z.ZodObject<{
901
1102
  id: z.ZodString;
1103
+ parentId: z.ZodNullable<z.ZodString>;
902
1104
  title: z.ZodString;
903
1105
  description: z.ZodNullable<z.ZodString>;
904
1106
  ownerId: z.ZodString;
@@ -915,22 +1117,15 @@ export declare const FlowDocument: z.ZodObject<{
915
1117
  graph: z.ZodObject<{
916
1118
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
917
1119
  kind: z.ZodLiteral<"trigger">;
918
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1120
+ configuration: z.ZodObject<{
919
1121
  mode: z.ZodLiteral<"manual">;
920
- }, z.core.$strict>, z.ZodObject<{
921
- mode: z.ZodLiteral<"webhook">;
922
- event: z.ZodString;
923
- }, z.core.$strict>, z.ZodObject<{
924
- mode: z.ZodLiteral<"schedule">;
925
- cron: z.ZodString;
926
- }, z.core.$strict>], "mode">;
1122
+ }, z.core.$strict>;
927
1123
  id: z.ZodString;
928
1124
  position: z.ZodObject<{
929
1125
  x: z.ZodNumber;
930
1126
  y: z.ZodNumber;
931
1127
  }, z.core.$strict>;
932
1128
  label: z.ZodString;
933
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
934
1129
  }, z.core.$strict>, z.ZodObject<{
935
1130
  kind: z.ZodLiteral<"instruction">;
936
1131
  configuration: z.ZodObject<{
@@ -942,7 +1137,6 @@ export declare const FlowDocument: z.ZodObject<{
942
1137
  y: z.ZodNumber;
943
1138
  }, z.core.$strict>;
944
1139
  label: z.ZodString;
945
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
946
1140
  }, z.core.$strict>, z.ZodObject<{
947
1141
  kind: z.ZodLiteral<"knowledge">;
948
1142
  configuration: z.ZodObject<{
@@ -959,7 +1153,6 @@ export declare const FlowDocument: z.ZodObject<{
959
1153
  y: z.ZodNumber;
960
1154
  }, z.core.$strict>;
961
1155
  label: z.ZodString;
962
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
963
1156
  }, z.core.$strict>, z.ZodObject<{
964
1157
  kind: z.ZodLiteral<"tool">;
965
1158
  configuration: z.ZodObject<{
@@ -973,7 +1166,6 @@ export declare const FlowDocument: z.ZodObject<{
973
1166
  y: z.ZodNumber;
974
1167
  }, z.core.$strict>;
975
1168
  label: z.ZodString;
976
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
977
1169
  }, z.core.$strict>, z.ZodObject<{
978
1170
  kind: z.ZodLiteral<"condition">;
979
1171
  configuration: z.ZodObject<{
@@ -986,7 +1178,6 @@ export declare const FlowDocument: z.ZodObject<{
986
1178
  y: z.ZodNumber;
987
1179
  }, z.core.$strict>;
988
1180
  label: z.ZodString;
989
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
990
1181
  }, z.core.$strict>, z.ZodObject<{
991
1182
  kind: z.ZodLiteral<"approval">;
992
1183
  configuration: z.ZodObject<{
@@ -999,7 +1190,25 @@ export declare const FlowDocument: z.ZodObject<{
999
1190
  y: z.ZodNumber;
1000
1191
  }, z.core.$strict>;
1001
1192
  label: z.ZodString;
1002
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1193
+ }, z.core.$strict>, z.ZodObject<{
1194
+ kind: z.ZodLiteral<"subflow">;
1195
+ configuration: z.ZodObject<{
1196
+ flowId: z.ZodString;
1197
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1198
+ mode: z.ZodLiteral<"latest">;
1199
+ }, z.core.$strict>, z.ZodObject<{
1200
+ mode: z.ZodLiteral<"follows">;
1201
+ }, z.core.$strict>, z.ZodObject<{
1202
+ mode: z.ZodLiteral<"pinned">;
1203
+ versionId: z.ZodString;
1204
+ }, z.core.$strict>], "mode">>;
1205
+ }, z.core.$strict>;
1206
+ id: z.ZodString;
1207
+ position: z.ZodObject<{
1208
+ x: z.ZodNumber;
1209
+ y: z.ZodNumber;
1210
+ }, z.core.$strict>;
1211
+ label: z.ZodString;
1003
1212
  }, z.core.$strict>, z.ZodObject<{
1004
1213
  kind: z.ZodLiteral<"output">;
1005
1214
  configuration: z.ZodObject<{
@@ -1011,12 +1220,15 @@ export declare const FlowDocument: z.ZodObject<{
1011
1220
  y: z.ZodNumber;
1012
1221
  }, z.core.$strict>;
1013
1222
  label: z.ZodString;
1014
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1015
1223
  }, z.core.$strict>], "kind">>;
1016
1224
  edges: z.ZodArray<z.ZodObject<{
1017
1225
  id: z.ZodString;
1018
1226
  source: z.ZodString;
1019
1227
  target: z.ZodString;
1228
+ kind: z.ZodDefault<z.ZodEnum<{
1229
+ flow: "flow";
1230
+ context: "context";
1231
+ }>>;
1020
1232
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1021
1233
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1022
1234
  }, z.core.$strict>>;
@@ -1029,6 +1241,7 @@ export type FlowDocument = z.infer<typeof FlowDocument>;
1029
1241
  export declare const FlowList: z.ZodObject<{
1030
1242
  items: z.ZodArray<z.ZodObject<{
1031
1243
  id: z.ZodString;
1244
+ parentId: z.ZodNullable<z.ZodString>;
1032
1245
  title: z.ZodString;
1033
1246
  description: z.ZodNullable<z.ZodString>;
1034
1247
  ownerId: z.ZodString;
@@ -1040,12 +1253,42 @@ export declare const FlowList: z.ZodObject<{
1040
1253
  }, z.core.$strict>>;
1041
1254
  }, z.core.$strict>;
1042
1255
  export type FlowList = z.infer<typeof FlowList>;
1256
+ export declare const FlowKnowledgeReference: z.ZodObject<{
1257
+ id: z.ZodString;
1258
+ title: z.ZodString;
1259
+ }, z.core.$strict>;
1260
+ export type FlowKnowledgeReference = z.infer<typeof FlowKnowledgeReference>;
1261
+ export declare const FlowRequirements: z.ZodObject<{
1262
+ flowId: z.ZodString;
1263
+ versionId: z.ZodNullable<z.ZodString>;
1264
+ knowledge: z.ZodArray<z.ZodObject<{
1265
+ id: z.ZodString;
1266
+ title: z.ZodString;
1267
+ }, z.core.$strict>>;
1268
+ hiddenKnowledge: z.ZodNumber;
1269
+ tools: z.ZodArray<z.ZodString>;
1270
+ }, z.core.$strict>;
1271
+ export type FlowRequirements = z.infer<typeof FlowRequirements>;
1043
1272
  export declare const CreateFlowInput: z.ZodObject<{
1273
+ parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1044
1274
  title: z.ZodString;
1045
1275
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1046
1276
  idempotencyKey: z.ZodString;
1047
1277
  }, z.core.$strict>;
1048
1278
  export type CreateFlowInput = z.infer<typeof CreateFlowInput>;
1279
+ export declare const UpdateFlowInput: z.ZodObject<{
1280
+ flowId: z.ZodString;
1281
+ baseUpdatedAt: z.ZodISODateTime;
1282
+ title: z.ZodOptional<z.ZodString>;
1283
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1285
+ idempotencyKey: z.ZodString;
1286
+ }, z.core.$strict>;
1287
+ export type UpdateFlowInput = z.infer<typeof UpdateFlowInput>;
1288
+ export declare const ListFlowsInput: z.ZodObject<{
1289
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1290
+ }, z.core.$strict>;
1291
+ export type ListFlowsInput = z.infer<typeof ListFlowsInput>;
1049
1292
  export declare const GetFlowInput: z.ZodObject<{
1050
1293
  flowId: z.ZodString;
1051
1294
  }, z.core.$strict>;
@@ -1056,22 +1299,15 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1056
1299
  graph: z.ZodObject<{
1057
1300
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
1301
  kind: z.ZodLiteral<"trigger">;
1059
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1302
+ configuration: z.ZodObject<{
1060
1303
  mode: z.ZodLiteral<"manual">;
1061
- }, z.core.$strict>, z.ZodObject<{
1062
- mode: z.ZodLiteral<"webhook">;
1063
- event: z.ZodString;
1064
- }, z.core.$strict>, z.ZodObject<{
1065
- mode: z.ZodLiteral<"schedule">;
1066
- cron: z.ZodString;
1067
- }, z.core.$strict>], "mode">;
1304
+ }, z.core.$strict>;
1068
1305
  id: z.ZodString;
1069
1306
  position: z.ZodObject<{
1070
1307
  x: z.ZodNumber;
1071
1308
  y: z.ZodNumber;
1072
1309
  }, z.core.$strict>;
1073
1310
  label: z.ZodString;
1074
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1075
1311
  }, z.core.$strict>, z.ZodObject<{
1076
1312
  kind: z.ZodLiteral<"instruction">;
1077
1313
  configuration: z.ZodObject<{
@@ -1083,7 +1319,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1083
1319
  y: z.ZodNumber;
1084
1320
  }, z.core.$strict>;
1085
1321
  label: z.ZodString;
1086
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1087
1322
  }, z.core.$strict>, z.ZodObject<{
1088
1323
  kind: z.ZodLiteral<"knowledge">;
1089
1324
  configuration: z.ZodObject<{
@@ -1100,7 +1335,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1100
1335
  y: z.ZodNumber;
1101
1336
  }, z.core.$strict>;
1102
1337
  label: z.ZodString;
1103
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1104
1338
  }, z.core.$strict>, z.ZodObject<{
1105
1339
  kind: z.ZodLiteral<"tool">;
1106
1340
  configuration: z.ZodObject<{
@@ -1114,7 +1348,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1114
1348
  y: z.ZodNumber;
1115
1349
  }, z.core.$strict>;
1116
1350
  label: z.ZodString;
1117
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1118
1351
  }, z.core.$strict>, z.ZodObject<{
1119
1352
  kind: z.ZodLiteral<"condition">;
1120
1353
  configuration: z.ZodObject<{
@@ -1127,7 +1360,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1127
1360
  y: z.ZodNumber;
1128
1361
  }, z.core.$strict>;
1129
1362
  label: z.ZodString;
1130
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1131
1363
  }, z.core.$strict>, z.ZodObject<{
1132
1364
  kind: z.ZodLiteral<"approval">;
1133
1365
  configuration: z.ZodObject<{
@@ -1140,7 +1372,25 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1140
1372
  y: z.ZodNumber;
1141
1373
  }, z.core.$strict>;
1142
1374
  label: z.ZodString;
1143
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1375
+ }, z.core.$strict>, z.ZodObject<{
1376
+ kind: z.ZodLiteral<"subflow">;
1377
+ configuration: z.ZodObject<{
1378
+ flowId: z.ZodString;
1379
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1380
+ mode: z.ZodLiteral<"latest">;
1381
+ }, z.core.$strict>, z.ZodObject<{
1382
+ mode: z.ZodLiteral<"follows">;
1383
+ }, z.core.$strict>, z.ZodObject<{
1384
+ mode: z.ZodLiteral<"pinned">;
1385
+ versionId: z.ZodString;
1386
+ }, z.core.$strict>], "mode">>;
1387
+ }, z.core.$strict>;
1388
+ id: z.ZodString;
1389
+ position: z.ZodObject<{
1390
+ x: z.ZodNumber;
1391
+ y: z.ZodNumber;
1392
+ }, z.core.$strict>;
1393
+ label: z.ZodString;
1144
1394
  }, z.core.$strict>, z.ZodObject<{
1145
1395
  kind: z.ZodLiteral<"output">;
1146
1396
  configuration: z.ZodObject<{
@@ -1152,12 +1402,15 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
1152
1402
  y: z.ZodNumber;
1153
1403
  }, z.core.$strict>;
1154
1404
  label: z.ZodString;
1155
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1156
1405
  }, z.core.$strict>], "kind">>;
1157
1406
  edges: z.ZodArray<z.ZodObject<{
1158
1407
  id: z.ZodString;
1159
1408
  source: z.ZodString;
1160
1409
  target: z.ZodString;
1410
+ kind: z.ZodDefault<z.ZodEnum<{
1411
+ flow: "flow";
1412
+ context: "context";
1413
+ }>>;
1161
1414
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1162
1415
  sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1163
1416
  }, z.core.$strict>>;
@@ -1171,37 +1424,130 @@ export declare const PublishFlowInput: z.ZodObject<{
1171
1424
  idempotencyKey: z.ZodString;
1172
1425
  }, z.core.$strict>;
1173
1426
  export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
1174
- export declare const ListFlowGrantsInput: z.ZodObject<{
1175
- resourceId: z.ZodString;
1427
+ export declare const PreviewFlowPublishInput: z.ZodObject<{
1428
+ flowId: z.ZodString;
1429
+ versionId: z.ZodString;
1176
1430
  }, z.core.$strict>;
1177
- export type ListFlowGrantsInput = z.infer<typeof ListFlowGrantsInput>;
1178
- export declare const ShareFlowInput: z.ZodObject<{
1179
- resourceId: z.ZodString;
1180
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1181
- type: z.ZodLiteral<"user">;
1182
- id: z.ZodString;
1183
- }, z.core.$strict>, z.ZodObject<{
1184
- type: z.ZodLiteral<"email">;
1185
- email: z.ZodEmail;
1186
- }, z.core.$strict>, z.ZodObject<{
1187
- type: z.ZodLiteral<"organization">;
1188
- }, z.core.$strict>], "type">;
1189
- role: z.ZodEnum<{
1190
- viewer: "viewer";
1191
- commenter: "commenter";
1192
- editor: "editor";
1193
- manager: "manager";
1431
+ export type PreviewFlowPublishInput = z.infer<typeof PreviewFlowPublishInput>;
1432
+ export declare const FlowPublishCall: z.ZodObject<{
1433
+ nodeId: z.ZodString;
1434
+ nodeLabel: z.ZodString;
1435
+ calleeId: z.ZodString;
1436
+ calleeTitle: z.ZodString;
1437
+ mode: z.ZodEnum<{
1438
+ pinned: "pinned";
1439
+ latest: "latest";
1440
+ follows: "follows";
1194
1441
  }>;
1195
- expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
1196
- idempotencyKey: z.ZodString;
1442
+ versionId: z.ZodNullable<z.ZodString>;
1443
+ versionSequence: z.ZodNullable<z.ZodNumber>;
1444
+ freezes: z.ZodBoolean;
1445
+ available: z.ZodBoolean;
1197
1446
  }, z.core.$strict>;
1198
- export type ShareFlowInput = z.infer<typeof ShareFlowInput>;
1199
- export declare const RevokeFlowGrantInput: z.ZodObject<{
1200
- resourceId: z.ZodString;
1201
- grantId: z.ZodString;
1202
- idempotencyKey: z.ZodString;
1447
+ export type FlowPublishCall = z.infer<typeof FlowPublishCall>;
1448
+ export declare const FlowPublishPreview: z.ZodObject<{
1449
+ flowId: z.ZodString;
1450
+ versionId: z.ZodString;
1451
+ calls: z.ZodArray<z.ZodObject<{
1452
+ nodeId: z.ZodString;
1453
+ nodeLabel: z.ZodString;
1454
+ calleeId: z.ZodString;
1455
+ calleeTitle: z.ZodString;
1456
+ mode: z.ZodEnum<{
1457
+ pinned: "pinned";
1458
+ latest: "latest";
1459
+ follows: "follows";
1460
+ }>;
1461
+ versionId: z.ZodNullable<z.ZodString>;
1462
+ versionSequence: z.ZodNullable<z.ZodNumber>;
1463
+ freezes: z.ZodBoolean;
1464
+ available: z.ZodBoolean;
1465
+ }, z.core.$strict>>;
1466
+ }, z.core.$strict>;
1467
+ export type FlowPublishPreview = z.infer<typeof FlowPublishPreview>;
1468
+ export declare const RelationNodeKind: z.ZodEnum<{
1469
+ folder: "folder";
1470
+ document: "document";
1471
+ attachment: "attachment";
1472
+ table: "table";
1473
+ flow: "flow";
1474
+ }>;
1475
+ export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
1476
+ export declare const RelationNode: z.ZodObject<{
1477
+ id: z.ZodString;
1478
+ kind: z.ZodEnum<{
1479
+ folder: "folder";
1480
+ document: "document";
1481
+ attachment: "attachment";
1482
+ table: "table";
1483
+ flow: "flow";
1484
+ }>;
1485
+ title: z.ZodString;
1486
+ inScope: z.ZodBoolean;
1203
1487
  }, z.core.$strict>;
1204
- export type RevokeFlowGrantInput = z.infer<typeof RevokeFlowGrantInput>;
1488
+ export type RelationNode = z.infer<typeof RelationNode>;
1489
+ export declare const RelationEdge: z.ZodObject<{
1490
+ id: z.ZodString;
1491
+ source: z.ZodString;
1492
+ target: z.ZodString;
1493
+ relation: z.ZodEnum<{
1494
+ calls: "calls";
1495
+ reads: "reads";
1496
+ }>;
1497
+ }, z.core.$strict>;
1498
+ export type RelationEdge = z.infer<typeof RelationEdge>;
1499
+ export declare const RelationGraphScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1500
+ of: z.ZodLiteral<"folder">;
1501
+ folderId: z.ZodNullable<z.ZodString>;
1502
+ }, z.core.$strict>, z.ZodObject<{
1503
+ of: z.ZodLiteral<"flow">;
1504
+ flowId: z.ZodString;
1505
+ }, z.core.$strict>], "of">;
1506
+ export type RelationGraphScope = z.infer<typeof RelationGraphScope>;
1507
+ export declare const RelationGraphInput: z.ZodObject<{
1508
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1509
+ of: z.ZodLiteral<"folder">;
1510
+ folderId: z.ZodNullable<z.ZodString>;
1511
+ }, z.core.$strict>, z.ZodObject<{
1512
+ of: z.ZodLiteral<"flow">;
1513
+ flowId: z.ZodString;
1514
+ }, z.core.$strict>], "of">;
1515
+ limit: z.ZodDefault<z.ZodNumber>;
1516
+ }, z.core.$strict>;
1517
+ export type RelationGraphInput = z.infer<typeof RelationGraphInput>;
1518
+ export declare const RelationGraph: z.ZodObject<{
1519
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1520
+ of: z.ZodLiteral<"folder">;
1521
+ folderId: z.ZodNullable<z.ZodString>;
1522
+ }, z.core.$strict>, z.ZodObject<{
1523
+ of: z.ZodLiteral<"flow">;
1524
+ flowId: z.ZodString;
1525
+ }, z.core.$strict>], "of">;
1526
+ nodes: z.ZodArray<z.ZodObject<{
1527
+ id: z.ZodString;
1528
+ kind: z.ZodEnum<{
1529
+ folder: "folder";
1530
+ document: "document";
1531
+ attachment: "attachment";
1532
+ table: "table";
1533
+ flow: "flow";
1534
+ }>;
1535
+ title: z.ZodString;
1536
+ inScope: z.ZodBoolean;
1537
+ }, z.core.$strict>>;
1538
+ edges: z.ZodArray<z.ZodObject<{
1539
+ id: z.ZodString;
1540
+ source: z.ZodString;
1541
+ target: z.ZodString;
1542
+ relation: z.ZodEnum<{
1543
+ calls: "calls";
1544
+ reads: "reads";
1545
+ }>;
1546
+ }, z.core.$strict>>;
1547
+ omitted: z.ZodNumber;
1548
+ limit: z.ZodNumber;
1549
+ }, z.core.$strict>;
1550
+ export type RelationGraph = z.infer<typeof RelationGraph>;
1205
1551
  export declare const FlowRunStatus: z.ZodEnum<{
1206
1552
  queued: "queued";
1207
1553
  running: "running";
@@ -1228,11 +1574,21 @@ export declare const FlowRun: z.ZodObject<{
1228
1574
  output: z.ZodNullable<z.ZodUnknown>;
1229
1575
  error: z.ZodNullable<z.ZodString>;
1230
1576
  initiatedBy: z.ZodString;
1577
+ parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1578
+ parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1231
1579
  createdAt: z.ZodISODateTime;
1232
1580
  updatedAt: z.ZodISODateTime;
1233
1581
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1234
1582
  }, z.core.$strict>;
1235
1583
  export type FlowRun = z.infer<typeof FlowRun>;
1584
+ export declare const FlowRunTrailEntry: z.ZodObject<{
1585
+ runId: z.ZodString;
1586
+ flowId: z.ZodString;
1587
+ flowTitle: z.ZodString;
1588
+ nodeId: z.ZodNullable<z.ZodString>;
1589
+ nodeLabel: z.ZodNullable<z.ZodString>;
1590
+ }, z.core.$strict>;
1591
+ export type FlowRunTrailEntry = z.infer<typeof FlowRunTrailEntry>;
1236
1592
  export declare const FlowRunStep: z.ZodObject<{
1237
1593
  run: z.ZodObject<{
1238
1594
  id: z.ZodString;
@@ -1251,28 +1607,23 @@ export declare const FlowRunStep: z.ZodObject<{
1251
1607
  output: z.ZodNullable<z.ZodUnknown>;
1252
1608
  error: z.ZodNullable<z.ZodString>;
1253
1609
  initiatedBy: z.ZodString;
1610
+ parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1611
+ parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1254
1612
  createdAt: z.ZodISODateTime;
1255
1613
  updatedAt: z.ZodISODateTime;
1256
1614
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1257
1615
  }, z.core.$strict>;
1258
1616
  node: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1259
1617
  kind: z.ZodLiteral<"trigger">;
1260
- configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1618
+ configuration: z.ZodObject<{
1261
1619
  mode: z.ZodLiteral<"manual">;
1262
- }, z.core.$strict>, z.ZodObject<{
1263
- mode: z.ZodLiteral<"webhook">;
1264
- event: z.ZodString;
1265
- }, z.core.$strict>, z.ZodObject<{
1266
- mode: z.ZodLiteral<"schedule">;
1267
- cron: z.ZodString;
1268
- }, z.core.$strict>], "mode">;
1620
+ }, z.core.$strict>;
1269
1621
  id: z.ZodString;
1270
1622
  position: z.ZodObject<{
1271
1623
  x: z.ZodNumber;
1272
1624
  y: z.ZodNumber;
1273
1625
  }, z.core.$strict>;
1274
1626
  label: z.ZodString;
1275
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1276
1627
  }, z.core.$strict>, z.ZodObject<{
1277
1628
  kind: z.ZodLiteral<"instruction">;
1278
1629
  configuration: z.ZodObject<{
@@ -1284,7 +1635,6 @@ export declare const FlowRunStep: z.ZodObject<{
1284
1635
  y: z.ZodNumber;
1285
1636
  }, z.core.$strict>;
1286
1637
  label: z.ZodString;
1287
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1288
1638
  }, z.core.$strict>, z.ZodObject<{
1289
1639
  kind: z.ZodLiteral<"knowledge">;
1290
1640
  configuration: z.ZodObject<{
@@ -1301,7 +1651,6 @@ export declare const FlowRunStep: z.ZodObject<{
1301
1651
  y: z.ZodNumber;
1302
1652
  }, z.core.$strict>;
1303
1653
  label: z.ZodString;
1304
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1305
1654
  }, z.core.$strict>, z.ZodObject<{
1306
1655
  kind: z.ZodLiteral<"tool">;
1307
1656
  configuration: z.ZodObject<{
@@ -1315,7 +1664,6 @@ export declare const FlowRunStep: z.ZodObject<{
1315
1664
  y: z.ZodNumber;
1316
1665
  }, z.core.$strict>;
1317
1666
  label: z.ZodString;
1318
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1319
1667
  }, z.core.$strict>, z.ZodObject<{
1320
1668
  kind: z.ZodLiteral<"condition">;
1321
1669
  configuration: z.ZodObject<{
@@ -1328,7 +1676,6 @@ export declare const FlowRunStep: z.ZodObject<{
1328
1676
  y: z.ZodNumber;
1329
1677
  }, z.core.$strict>;
1330
1678
  label: z.ZodString;
1331
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1332
1679
  }, z.core.$strict>, z.ZodObject<{
1333
1680
  kind: z.ZodLiteral<"approval">;
1334
1681
  configuration: z.ZodObject<{
@@ -1341,7 +1688,25 @@ export declare const FlowRunStep: z.ZodObject<{
1341
1688
  y: z.ZodNumber;
1342
1689
  }, z.core.$strict>;
1343
1690
  label: z.ZodString;
1344
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1691
+ }, z.core.$strict>, z.ZodObject<{
1692
+ kind: z.ZodLiteral<"subflow">;
1693
+ configuration: z.ZodObject<{
1694
+ flowId: z.ZodString;
1695
+ version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1696
+ mode: z.ZodLiteral<"latest">;
1697
+ }, z.core.$strict>, z.ZodObject<{
1698
+ mode: z.ZodLiteral<"follows">;
1699
+ }, z.core.$strict>, z.ZodObject<{
1700
+ mode: z.ZodLiteral<"pinned">;
1701
+ versionId: z.ZodString;
1702
+ }, z.core.$strict>], "mode">>;
1703
+ }, z.core.$strict>;
1704
+ id: z.ZodString;
1705
+ position: z.ZodObject<{
1706
+ x: z.ZodNumber;
1707
+ y: z.ZodNumber;
1708
+ }, z.core.$strict>;
1709
+ label: z.ZodString;
1345
1710
  }, z.core.$strict>, z.ZodObject<{
1346
1711
  kind: z.ZodLiteral<"output">;
1347
1712
  configuration: z.ZodObject<{
@@ -1353,13 +1718,23 @@ export declare const FlowRunStep: z.ZodObject<{
1353
1718
  y: z.ZodNumber;
1354
1719
  }, z.core.$strict>;
1355
1720
  label: z.ZodString;
1356
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1357
1721
  }, z.core.$strict>], "kind">>;
1722
+ trail: z.ZodDefault<z.ZodArray<z.ZodObject<{
1723
+ runId: z.ZodString;
1724
+ flowId: z.ZodString;
1725
+ flowTitle: z.ZodString;
1726
+ nodeId: z.ZodNullable<z.ZodString>;
1727
+ nodeLabel: z.ZodNullable<z.ZodString>;
1728
+ }, z.core.$strict>>>;
1358
1729
  }, z.core.$strict>;
1359
1730
  export type FlowRunStep = z.infer<typeof FlowRunStep>;
1360
1731
  export declare const StartFlowRunInput: z.ZodObject<{
1361
1732
  flowId: z.ZodString;
1362
1733
  input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1734
+ parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1735
+ runId: z.ZodString;
1736
+ nodeId: z.ZodString;
1737
+ }, z.core.$strict>>>;
1363
1738
  idempotencyKey: z.ZodString;
1364
1739
  }, z.core.$strict>;
1365
1740
  export type StartFlowRunInput = z.infer<typeof StartFlowRunInput>;
@@ -1380,3 +1755,128 @@ export declare const CompleteFlowRunStepInput: z.ZodObject<{
1380
1755
  idempotencyKey: z.ZodString;
1381
1756
  }, z.core.$strict>;
1382
1757
  export type CompleteFlowRunStepInput = z.infer<typeof CompleteFlowRunStepInput>;
1758
+ export declare const FlowRunTrigger: z.ZodEnum<{
1759
+ manual: "manual";
1760
+ subflow: "subflow";
1761
+ }>;
1762
+ export type FlowRunTrigger = z.infer<typeof FlowRunTrigger>;
1763
+ export declare const FlowRunFailure: z.ZodObject<{
1764
+ nodeId: z.ZodString;
1765
+ nodeLabel: z.ZodString;
1766
+ detail: z.ZodString;
1767
+ calledRunId: z.ZodNullable<z.ZodString>;
1768
+ }, z.core.$strict>;
1769
+ export type FlowRunFailure = z.infer<typeof FlowRunFailure>;
1770
+ export declare const FlowRunSummary: z.ZodObject<{
1771
+ id: z.ZodString;
1772
+ flowId: z.ZodString;
1773
+ versionId: z.ZodString;
1774
+ status: z.ZodEnum<{
1775
+ queued: "queued";
1776
+ running: "running";
1777
+ waiting: "waiting";
1778
+ completed: "completed";
1779
+ failed: "failed";
1780
+ cancelled: "cancelled";
1781
+ }>;
1782
+ trigger: z.ZodEnum<{
1783
+ manual: "manual";
1784
+ subflow: "subflow";
1785
+ }>;
1786
+ startedAt: z.ZodISODateTime;
1787
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1788
+ durationMs: z.ZodNullable<z.ZodNumber>;
1789
+ initiatedBy: z.ZodString;
1790
+ parentRunId: z.ZodNullable<z.ZodString>;
1791
+ failure: z.ZodNullable<z.ZodObject<{
1792
+ nodeId: z.ZodString;
1793
+ nodeLabel: z.ZodString;
1794
+ detail: z.ZodString;
1795
+ calledRunId: z.ZodNullable<z.ZodString>;
1796
+ }, z.core.$strict>>;
1797
+ }, z.core.$strict>;
1798
+ export type FlowRunSummary = z.infer<typeof FlowRunSummary>;
1799
+ export declare const ListFlowRunsInput: z.ZodObject<{
1800
+ flowId: z.ZodString;
1801
+ failedOnly: z.ZodDefault<z.ZodBoolean>;
1802
+ limit: z.ZodDefault<z.ZodNumber>;
1803
+ cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1804
+ }, z.core.$strict>;
1805
+ export type ListFlowRunsInput = z.infer<typeof ListFlowRunsInput>;
1806
+ export declare const FlowRunList: z.ZodObject<{
1807
+ items: z.ZodArray<z.ZodObject<{
1808
+ id: z.ZodString;
1809
+ flowId: z.ZodString;
1810
+ versionId: z.ZodString;
1811
+ status: z.ZodEnum<{
1812
+ queued: "queued";
1813
+ running: "running";
1814
+ waiting: "waiting";
1815
+ completed: "completed";
1816
+ failed: "failed";
1817
+ cancelled: "cancelled";
1818
+ }>;
1819
+ trigger: z.ZodEnum<{
1820
+ manual: "manual";
1821
+ subflow: "subflow";
1822
+ }>;
1823
+ startedAt: z.ZodISODateTime;
1824
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1825
+ durationMs: z.ZodNullable<z.ZodNumber>;
1826
+ initiatedBy: z.ZodString;
1827
+ parentRunId: z.ZodNullable<z.ZodString>;
1828
+ failure: z.ZodNullable<z.ZodObject<{
1829
+ nodeId: z.ZodString;
1830
+ nodeLabel: z.ZodString;
1831
+ detail: z.ZodString;
1832
+ calledRunId: z.ZodNullable<z.ZodString>;
1833
+ }, z.core.$strict>>;
1834
+ }, z.core.$strict>>;
1835
+ nextCursor: z.ZodNullable<z.ZodString>;
1836
+ }, z.core.$strict>;
1837
+ export type FlowRunList = z.infer<typeof FlowRunList>;
1838
+ export declare const FlowRunStepRecord: z.ZodObject<{
1839
+ nodeId: z.ZodString;
1840
+ nodeLabel: z.ZodString;
1841
+ outcome: z.ZodEnum<{
1842
+ completed: "completed";
1843
+ failed: "failed";
1844
+ }>;
1845
+ branch: z.ZodNullable<z.ZodString>;
1846
+ detail: z.ZodNullable<z.ZodString>;
1847
+ calledRunId: z.ZodNullable<z.ZodString>;
1848
+ completedAt: z.ZodISODateTime;
1849
+ }, z.core.$strict>;
1850
+ export type FlowRunStepRecord = z.infer<typeof FlowRunStepRecord>;
1851
+ export declare const FlowRunHistory: z.ZodObject<{
1852
+ runId: z.ZodString;
1853
+ flowId: z.ZodString;
1854
+ status: z.ZodEnum<{
1855
+ queued: "queued";
1856
+ running: "running";
1857
+ waiting: "waiting";
1858
+ completed: "completed";
1859
+ failed: "failed";
1860
+ cancelled: "cancelled";
1861
+ }>;
1862
+ steps: z.ZodArray<z.ZodObject<{
1863
+ nodeId: z.ZodString;
1864
+ nodeLabel: z.ZodString;
1865
+ outcome: z.ZodEnum<{
1866
+ completed: "completed";
1867
+ failed: "failed";
1868
+ }>;
1869
+ branch: z.ZodNullable<z.ZodString>;
1870
+ detail: z.ZodNullable<z.ZodString>;
1871
+ calledRunId: z.ZodNullable<z.ZodString>;
1872
+ completedAt: z.ZodISODateTime;
1873
+ }, z.core.$strict>>;
1874
+ trail: z.ZodArray<z.ZodObject<{
1875
+ runId: z.ZodString;
1876
+ flowId: z.ZodString;
1877
+ flowTitle: z.ZodString;
1878
+ nodeId: z.ZodNullable<z.ZodString>;
1879
+ nodeLabel: z.ZodNullable<z.ZodString>;
1880
+ }, z.core.$strict>>;
1881
+ }, z.core.$strict>;
1882
+ export type FlowRunHistory = z.infer<typeof FlowRunHistory>;