@anchrd/intel-contract 0.2.1 → 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.
- package/dist/contract/contract.d.ts +636 -159
- package/dist/contract/contract.js +344 -39
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ 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
26
|
export declare const ContextPolicy: z.ZodEnum<{
|
|
@@ -28,13 +29,13 @@ export declare const ContextPolicy: z.ZodEnum<{
|
|
|
28
29
|
explicit: "explicit";
|
|
29
30
|
}>;
|
|
30
31
|
export type ContextPolicy = z.infer<typeof ContextPolicy>;
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
export declare const ResourceVerb: z.ZodEnum<{
|
|
33
|
+
read: "read";
|
|
34
|
+
write: "write";
|
|
35
|
+
execute: "execute";
|
|
36
|
+
share: "share";
|
|
36
37
|
}>;
|
|
37
|
-
export type
|
|
38
|
+
export type ResourceVerb = z.infer<typeof ResourceVerb>;
|
|
38
39
|
export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
40
|
type: z.ZodLiteral<"user">;
|
|
40
41
|
id: z.ZodString;
|
|
@@ -52,6 +53,7 @@ export declare const KnowledgeNode: z.ZodObject<{
|
|
|
52
53
|
folder: "folder";
|
|
53
54
|
document: "document";
|
|
54
55
|
attachment: "attachment";
|
|
56
|
+
table: "table";
|
|
55
57
|
}>;
|
|
56
58
|
title: z.ZodString;
|
|
57
59
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +100,7 @@ export declare const CreateKnowledgeNodeInput: z.ZodObject<{
|
|
|
98
100
|
folder: "folder";
|
|
99
101
|
document: "document";
|
|
100
102
|
attachment: "attachment";
|
|
103
|
+
table: "table";
|
|
101
104
|
}>;
|
|
102
105
|
title: z.ZodString;
|
|
103
106
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -154,6 +157,7 @@ export declare const KnowledgeNodeList: z.ZodObject<{
|
|
|
154
157
|
folder: "folder";
|
|
155
158
|
document: "document";
|
|
156
159
|
attachment: "attachment";
|
|
160
|
+
table: "table";
|
|
157
161
|
}>;
|
|
158
162
|
title: z.ZodString;
|
|
159
163
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -192,6 +196,7 @@ export declare const KnowledgeDocument: z.ZodObject<{
|
|
|
192
196
|
folder: "folder";
|
|
193
197
|
document: "document";
|
|
194
198
|
attachment: "attachment";
|
|
199
|
+
table: "table";
|
|
195
200
|
}>;
|
|
196
201
|
title: z.ZodString;
|
|
197
202
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -228,6 +233,7 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
228
233
|
folder: "folder";
|
|
229
234
|
document: "document";
|
|
230
235
|
attachment: "attachment";
|
|
236
|
+
table: "table";
|
|
231
237
|
}>;
|
|
232
238
|
title: z.ZodString;
|
|
233
239
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -256,6 +262,91 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
256
262
|
resourceUri: z.ZodString;
|
|
257
263
|
}, z.core.$strict>;
|
|
258
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>;
|
|
259
350
|
export declare const KnowledgeLinkRelation: z.ZodEnum<{
|
|
260
351
|
references: "references";
|
|
261
352
|
related: "related";
|
|
@@ -263,6 +354,11 @@ export declare const KnowledgeLinkRelation: z.ZodEnum<{
|
|
|
263
354
|
implements: "implements";
|
|
264
355
|
}>;
|
|
265
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>;
|
|
266
362
|
export declare const KnowledgeLink: z.ZodObject<{
|
|
267
363
|
id: z.ZodString;
|
|
268
364
|
sourceNodeId: z.ZodString;
|
|
@@ -273,6 +369,10 @@ export declare const KnowledgeLink: z.ZodObject<{
|
|
|
273
369
|
depends_on: "depends_on";
|
|
274
370
|
implements: "implements";
|
|
275
371
|
}>;
|
|
372
|
+
origin: z.ZodEnum<{
|
|
373
|
+
text: "text";
|
|
374
|
+
manual: "manual";
|
|
375
|
+
}>;
|
|
276
376
|
label: z.ZodNullable<z.ZodString>;
|
|
277
377
|
createdBy: z.ZodString;
|
|
278
378
|
createdAt: z.ZodISODateTime;
|
|
@@ -289,31 +389,33 @@ export declare const KnowledgeLinkList: z.ZodObject<{
|
|
|
289
389
|
depends_on: "depends_on";
|
|
290
390
|
implements: "implements";
|
|
291
391
|
}>;
|
|
392
|
+
origin: z.ZodEnum<{
|
|
393
|
+
text: "text";
|
|
394
|
+
manual: "manual";
|
|
395
|
+
}>;
|
|
292
396
|
label: z.ZodNullable<z.ZodString>;
|
|
293
397
|
createdBy: z.ZodString;
|
|
294
398
|
createdAt: z.ZodISODateTime;
|
|
295
399
|
}, z.core.$strict>>;
|
|
296
400
|
}, z.core.$strict>;
|
|
297
401
|
export type KnowledgeLinkList = z.infer<typeof KnowledgeLinkList>;
|
|
298
|
-
export declare const
|
|
299
|
-
|
|
300
|
-
|
|
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;
|
|
402
|
+
export declare const DocumentLinkInlineType = "documentLink";
|
|
403
|
+
export declare const ResolveKnowledgeLinksInput: z.ZodObject<{
|
|
404
|
+
nodeIds: z.ZodArray<z.ZodString>;
|
|
309
405
|
}, z.core.$strict>;
|
|
310
|
-
export type
|
|
311
|
-
export declare const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
406
|
+
export type ResolveKnowledgeLinksInput = z.infer<typeof ResolveKnowledgeLinksInput>;
|
|
407
|
+
export declare const ResolvedKnowledgeLink: z.ZodObject<{
|
|
408
|
+
nodeId: z.ZodString;
|
|
409
|
+
title: z.ZodString;
|
|
410
|
+
}, z.core.$strict>;
|
|
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>>;
|
|
315
417
|
}, z.core.$strict>;
|
|
316
|
-
export type
|
|
418
|
+
export type ResolveKnowledgeLinksResult = z.infer<typeof ResolveKnowledgeLinksResult>;
|
|
317
419
|
export declare const KnowledgeGraphInput: z.ZodObject<{
|
|
318
420
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
319
421
|
}, z.core.$strict>;
|
|
@@ -326,6 +428,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
326
428
|
folder: "folder";
|
|
327
429
|
document: "document";
|
|
328
430
|
attachment: "attachment";
|
|
431
|
+
table: "table";
|
|
329
432
|
}>;
|
|
330
433
|
title: z.ZodString;
|
|
331
434
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -350,6 +453,10 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
350
453
|
depends_on: "depends_on";
|
|
351
454
|
implements: "implements";
|
|
352
455
|
}>;
|
|
456
|
+
origin: z.ZodEnum<{
|
|
457
|
+
text: "text";
|
|
458
|
+
manual: "manual";
|
|
459
|
+
}>;
|
|
353
460
|
label: z.ZodNullable<z.ZodString>;
|
|
354
461
|
createdBy: z.ZodString;
|
|
355
462
|
createdAt: z.ZodISODateTime;
|
|
@@ -376,11 +483,11 @@ export declare const ResourceGrant: z.ZodObject<{
|
|
|
376
483
|
}, z.core.$strict>, z.ZodObject<{
|
|
377
484
|
type: z.ZodLiteral<"organization">;
|
|
378
485
|
}, z.core.$strict>], "type">;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
486
|
+
verb: z.ZodEnum<{
|
|
487
|
+
read: "read";
|
|
488
|
+
write: "write";
|
|
489
|
+
execute: "execute";
|
|
490
|
+
share: "share";
|
|
384
491
|
}>;
|
|
385
492
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
386
493
|
createdBy: z.ZodString;
|
|
@@ -398,11 +505,11 @@ export declare const ShareKnowledgeInput: z.ZodObject<{
|
|
|
398
505
|
}, z.core.$strict>, z.ZodObject<{
|
|
399
506
|
type: z.ZodLiteral<"organization">;
|
|
400
507
|
}, z.core.$strict>], "type">;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
508
|
+
verb: z.ZodEnum<{
|
|
509
|
+
read: "read";
|
|
510
|
+
write: "write";
|
|
511
|
+
execute: "execute";
|
|
512
|
+
share: "share";
|
|
406
513
|
}>;
|
|
407
514
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
408
515
|
idempotencyKey: z.ZodString;
|
|
@@ -414,7 +521,48 @@ export declare const RevokeKnowledgeGrantInput: z.ZodObject<{
|
|
|
414
521
|
idempotencyKey: z.ZodString;
|
|
415
522
|
}, z.core.$strict>;
|
|
416
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>;
|
|
417
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
|
+
}>>;
|
|
418
566
|
items: z.ZodArray<z.ZodObject<{
|
|
419
567
|
id: z.ZodString;
|
|
420
568
|
resourceId: z.ZodString;
|
|
@@ -427,11 +575,11 @@ export declare const ResourceGrantList: z.ZodObject<{
|
|
|
427
575
|
}, z.core.$strict>, z.ZodObject<{
|
|
428
576
|
type: z.ZodLiteral<"organization">;
|
|
429
577
|
}, z.core.$strict>], "type">;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
578
|
+
verb: z.ZodEnum<{
|
|
579
|
+
read: "read";
|
|
580
|
+
write: "write";
|
|
581
|
+
execute: "execute";
|
|
582
|
+
share: "share";
|
|
435
583
|
}>;
|
|
436
584
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
437
585
|
createdBy: z.ZodString;
|
|
@@ -484,10 +632,6 @@ export declare const RevokeGrantResult: z.ZodObject<{
|
|
|
484
632
|
revoked: z.ZodBoolean;
|
|
485
633
|
}, z.core.$strict>;
|
|
486
634
|
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
635
|
export declare const ToolSourceUrl: z.ZodURL;
|
|
492
636
|
export declare const ToolName: z.ZodString;
|
|
493
637
|
export declare const ToolAnnotations: z.ZodObject<{
|
|
@@ -554,24 +698,32 @@ export declare const FlowPosition: z.ZodObject<{
|
|
|
554
698
|
x: z.ZodNumber;
|
|
555
699
|
y: z.ZodNumber;
|
|
556
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>;
|
|
557
716
|
export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
558
717
|
kind: z.ZodLiteral<"trigger">;
|
|
559
|
-
configuration: z.
|
|
718
|
+
configuration: z.ZodObject<{
|
|
560
719
|
mode: z.ZodLiteral<"manual">;
|
|
561
|
-
}, z.core.$strict
|
|
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">;
|
|
720
|
+
}, z.core.$strict>;
|
|
568
721
|
id: z.ZodString;
|
|
569
722
|
position: z.ZodObject<{
|
|
570
723
|
x: z.ZodNumber;
|
|
571
724
|
y: z.ZodNumber;
|
|
572
725
|
}, z.core.$strict>;
|
|
573
726
|
label: z.ZodString;
|
|
574
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
575
727
|
}, z.core.$strict>, z.ZodObject<{
|
|
576
728
|
kind: z.ZodLiteral<"instruction">;
|
|
577
729
|
configuration: z.ZodObject<{
|
|
@@ -583,7 +735,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
583
735
|
y: z.ZodNumber;
|
|
584
736
|
}, z.core.$strict>;
|
|
585
737
|
label: z.ZodString;
|
|
586
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
587
738
|
}, z.core.$strict>, z.ZodObject<{
|
|
588
739
|
kind: z.ZodLiteral<"knowledge">;
|
|
589
740
|
configuration: z.ZodObject<{
|
|
@@ -600,7 +751,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
600
751
|
y: z.ZodNumber;
|
|
601
752
|
}, z.core.$strict>;
|
|
602
753
|
label: z.ZodString;
|
|
603
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
604
754
|
}, z.core.$strict>, z.ZodObject<{
|
|
605
755
|
kind: z.ZodLiteral<"tool">;
|
|
606
756
|
configuration: z.ZodObject<{
|
|
@@ -614,7 +764,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
614
764
|
y: z.ZodNumber;
|
|
615
765
|
}, z.core.$strict>;
|
|
616
766
|
label: z.ZodString;
|
|
617
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
618
767
|
}, z.core.$strict>, z.ZodObject<{
|
|
619
768
|
kind: z.ZodLiteral<"condition">;
|
|
620
769
|
configuration: z.ZodObject<{
|
|
@@ -627,7 +776,6 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
627
776
|
y: z.ZodNumber;
|
|
628
777
|
}, z.core.$strict>;
|
|
629
778
|
label: z.ZodString;
|
|
630
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
631
779
|
}, z.core.$strict>, z.ZodObject<{
|
|
632
780
|
kind: z.ZodLiteral<"approval">;
|
|
633
781
|
configuration: z.ZodObject<{
|
|
@@ -640,7 +788,25 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
640
788
|
y: z.ZodNumber;
|
|
641
789
|
}, z.core.$strict>;
|
|
642
790
|
label: z.ZodString;
|
|
643
|
-
|
|
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;
|
|
644
810
|
}, z.core.$strict>, z.ZodObject<{
|
|
645
811
|
kind: z.ZodLiteral<"output">;
|
|
646
812
|
configuration: z.ZodObject<{
|
|
@@ -652,13 +818,21 @@ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
652
818
|
y: z.ZodNumber;
|
|
653
819
|
}, z.core.$strict>;
|
|
654
820
|
label: z.ZodString;
|
|
655
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
656
821
|
}, z.core.$strict>], "kind">;
|
|
657
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>;
|
|
658
828
|
export declare const FlowEdge: z.ZodObject<{
|
|
659
829
|
id: z.ZodString;
|
|
660
830
|
source: z.ZodString;
|
|
661
831
|
target: z.ZodString;
|
|
832
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
833
|
+
flow: "flow";
|
|
834
|
+
context: "context";
|
|
835
|
+
}>>;
|
|
662
836
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
663
837
|
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
664
838
|
}, z.core.$strict>;
|
|
@@ -666,22 +840,15 @@ export type FlowEdge = z.infer<typeof FlowEdge>;
|
|
|
666
840
|
export declare const FlowGraph: z.ZodObject<{
|
|
667
841
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
668
842
|
kind: z.ZodLiteral<"trigger">;
|
|
669
|
-
configuration: z.
|
|
843
|
+
configuration: z.ZodObject<{
|
|
670
844
|
mode: z.ZodLiteral<"manual">;
|
|
671
|
-
}, z.core.$strict
|
|
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">;
|
|
845
|
+
}, z.core.$strict>;
|
|
678
846
|
id: z.ZodString;
|
|
679
847
|
position: z.ZodObject<{
|
|
680
848
|
x: z.ZodNumber;
|
|
681
849
|
y: z.ZodNumber;
|
|
682
850
|
}, z.core.$strict>;
|
|
683
851
|
label: z.ZodString;
|
|
684
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
685
852
|
}, z.core.$strict>, z.ZodObject<{
|
|
686
853
|
kind: z.ZodLiteral<"instruction">;
|
|
687
854
|
configuration: z.ZodObject<{
|
|
@@ -693,7 +860,6 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
693
860
|
y: z.ZodNumber;
|
|
694
861
|
}, z.core.$strict>;
|
|
695
862
|
label: z.ZodString;
|
|
696
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
697
863
|
}, z.core.$strict>, z.ZodObject<{
|
|
698
864
|
kind: z.ZodLiteral<"knowledge">;
|
|
699
865
|
configuration: z.ZodObject<{
|
|
@@ -710,7 +876,6 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
710
876
|
y: z.ZodNumber;
|
|
711
877
|
}, z.core.$strict>;
|
|
712
878
|
label: z.ZodString;
|
|
713
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
714
879
|
}, z.core.$strict>, z.ZodObject<{
|
|
715
880
|
kind: z.ZodLiteral<"tool">;
|
|
716
881
|
configuration: z.ZodObject<{
|
|
@@ -724,7 +889,6 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
724
889
|
y: z.ZodNumber;
|
|
725
890
|
}, z.core.$strict>;
|
|
726
891
|
label: z.ZodString;
|
|
727
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
728
892
|
}, z.core.$strict>, z.ZodObject<{
|
|
729
893
|
kind: z.ZodLiteral<"condition">;
|
|
730
894
|
configuration: z.ZodObject<{
|
|
@@ -737,7 +901,6 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
737
901
|
y: z.ZodNumber;
|
|
738
902
|
}, z.core.$strict>;
|
|
739
903
|
label: z.ZodString;
|
|
740
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
741
904
|
}, z.core.$strict>, z.ZodObject<{
|
|
742
905
|
kind: z.ZodLiteral<"approval">;
|
|
743
906
|
configuration: z.ZodObject<{
|
|
@@ -750,7 +913,25 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
750
913
|
y: z.ZodNumber;
|
|
751
914
|
}, z.core.$strict>;
|
|
752
915
|
label: z.ZodString;
|
|
753
|
-
|
|
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;
|
|
754
935
|
}, z.core.$strict>, z.ZodObject<{
|
|
755
936
|
kind: z.ZodLiteral<"output">;
|
|
756
937
|
configuration: z.ZodObject<{
|
|
@@ -762,12 +943,15 @@ export declare const FlowGraph: z.ZodObject<{
|
|
|
762
943
|
y: z.ZodNumber;
|
|
763
944
|
}, z.core.$strict>;
|
|
764
945
|
label: z.ZodString;
|
|
765
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
766
946
|
}, z.core.$strict>], "kind">>;
|
|
767
947
|
edges: z.ZodArray<z.ZodObject<{
|
|
768
948
|
id: z.ZodString;
|
|
769
949
|
source: z.ZodString;
|
|
770
950
|
target: z.ZodString;
|
|
951
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
952
|
+
flow: "flow";
|
|
953
|
+
context: "context";
|
|
954
|
+
}>>;
|
|
771
955
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
772
956
|
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
773
957
|
}, z.core.$strict>>;
|
|
@@ -793,22 +977,15 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
793
977
|
graph: z.ZodObject<{
|
|
794
978
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
795
979
|
kind: z.ZodLiteral<"trigger">;
|
|
796
|
-
configuration: z.
|
|
980
|
+
configuration: z.ZodObject<{
|
|
797
981
|
mode: z.ZodLiteral<"manual">;
|
|
798
|
-
}, z.core.$strict
|
|
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">;
|
|
982
|
+
}, z.core.$strict>;
|
|
805
983
|
id: z.ZodString;
|
|
806
984
|
position: z.ZodObject<{
|
|
807
985
|
x: z.ZodNumber;
|
|
808
986
|
y: z.ZodNumber;
|
|
809
987
|
}, z.core.$strict>;
|
|
810
988
|
label: z.ZodString;
|
|
811
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
812
989
|
}, z.core.$strict>, z.ZodObject<{
|
|
813
990
|
kind: z.ZodLiteral<"instruction">;
|
|
814
991
|
configuration: z.ZodObject<{
|
|
@@ -820,7 +997,6 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
820
997
|
y: z.ZodNumber;
|
|
821
998
|
}, z.core.$strict>;
|
|
822
999
|
label: z.ZodString;
|
|
823
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
824
1000
|
}, z.core.$strict>, z.ZodObject<{
|
|
825
1001
|
kind: z.ZodLiteral<"knowledge">;
|
|
826
1002
|
configuration: z.ZodObject<{
|
|
@@ -837,7 +1013,6 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
837
1013
|
y: z.ZodNumber;
|
|
838
1014
|
}, z.core.$strict>;
|
|
839
1015
|
label: z.ZodString;
|
|
840
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
841
1016
|
}, z.core.$strict>, z.ZodObject<{
|
|
842
1017
|
kind: z.ZodLiteral<"tool">;
|
|
843
1018
|
configuration: z.ZodObject<{
|
|
@@ -851,7 +1026,6 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
851
1026
|
y: z.ZodNumber;
|
|
852
1027
|
}, z.core.$strict>;
|
|
853
1028
|
label: z.ZodString;
|
|
854
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
855
1029
|
}, z.core.$strict>, z.ZodObject<{
|
|
856
1030
|
kind: z.ZodLiteral<"condition">;
|
|
857
1031
|
configuration: z.ZodObject<{
|
|
@@ -864,7 +1038,6 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
864
1038
|
y: z.ZodNumber;
|
|
865
1039
|
}, z.core.$strict>;
|
|
866
1040
|
label: z.ZodString;
|
|
867
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
868
1041
|
}, z.core.$strict>, z.ZodObject<{
|
|
869
1042
|
kind: z.ZodLiteral<"approval">;
|
|
870
1043
|
configuration: z.ZodObject<{
|
|
@@ -877,7 +1050,25 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
877
1050
|
y: z.ZodNumber;
|
|
878
1051
|
}, z.core.$strict>;
|
|
879
1052
|
label: z.ZodString;
|
|
880
|
-
|
|
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;
|
|
881
1072
|
}, z.core.$strict>, z.ZodObject<{
|
|
882
1073
|
kind: z.ZodLiteral<"output">;
|
|
883
1074
|
configuration: z.ZodObject<{
|
|
@@ -889,12 +1080,15 @@ export declare const FlowVersion: z.ZodObject<{
|
|
|
889
1080
|
y: z.ZodNumber;
|
|
890
1081
|
}, z.core.$strict>;
|
|
891
1082
|
label: z.ZodString;
|
|
892
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
893
1083
|
}, z.core.$strict>], "kind">>;
|
|
894
1084
|
edges: z.ZodArray<z.ZodObject<{
|
|
895
1085
|
id: z.ZodString;
|
|
896
1086
|
source: z.ZodString;
|
|
897
1087
|
target: z.ZodString;
|
|
1088
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
1089
|
+
flow: "flow";
|
|
1090
|
+
context: "context";
|
|
1091
|
+
}>>;
|
|
898
1092
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
899
1093
|
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
900
1094
|
}, z.core.$strict>>;
|
|
@@ -923,22 +1117,15 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
923
1117
|
graph: z.ZodObject<{
|
|
924
1118
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
925
1119
|
kind: z.ZodLiteral<"trigger">;
|
|
926
|
-
configuration: z.
|
|
1120
|
+
configuration: z.ZodObject<{
|
|
927
1121
|
mode: z.ZodLiteral<"manual">;
|
|
928
|
-
}, z.core.$strict
|
|
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">;
|
|
1122
|
+
}, z.core.$strict>;
|
|
935
1123
|
id: z.ZodString;
|
|
936
1124
|
position: z.ZodObject<{
|
|
937
1125
|
x: z.ZodNumber;
|
|
938
1126
|
y: z.ZodNumber;
|
|
939
1127
|
}, z.core.$strict>;
|
|
940
1128
|
label: z.ZodString;
|
|
941
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
942
1129
|
}, z.core.$strict>, z.ZodObject<{
|
|
943
1130
|
kind: z.ZodLiteral<"instruction">;
|
|
944
1131
|
configuration: z.ZodObject<{
|
|
@@ -950,7 +1137,6 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
950
1137
|
y: z.ZodNumber;
|
|
951
1138
|
}, z.core.$strict>;
|
|
952
1139
|
label: z.ZodString;
|
|
953
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
954
1140
|
}, z.core.$strict>, z.ZodObject<{
|
|
955
1141
|
kind: z.ZodLiteral<"knowledge">;
|
|
956
1142
|
configuration: z.ZodObject<{
|
|
@@ -967,7 +1153,6 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
967
1153
|
y: z.ZodNumber;
|
|
968
1154
|
}, z.core.$strict>;
|
|
969
1155
|
label: z.ZodString;
|
|
970
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
971
1156
|
}, z.core.$strict>, z.ZodObject<{
|
|
972
1157
|
kind: z.ZodLiteral<"tool">;
|
|
973
1158
|
configuration: z.ZodObject<{
|
|
@@ -981,7 +1166,6 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
981
1166
|
y: z.ZodNumber;
|
|
982
1167
|
}, z.core.$strict>;
|
|
983
1168
|
label: z.ZodString;
|
|
984
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
985
1169
|
}, z.core.$strict>, z.ZodObject<{
|
|
986
1170
|
kind: z.ZodLiteral<"condition">;
|
|
987
1171
|
configuration: z.ZodObject<{
|
|
@@ -994,7 +1178,6 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
994
1178
|
y: z.ZodNumber;
|
|
995
1179
|
}, z.core.$strict>;
|
|
996
1180
|
label: z.ZodString;
|
|
997
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
998
1181
|
}, z.core.$strict>, z.ZodObject<{
|
|
999
1182
|
kind: z.ZodLiteral<"approval">;
|
|
1000
1183
|
configuration: z.ZodObject<{
|
|
@@ -1007,7 +1190,25 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
1007
1190
|
y: z.ZodNumber;
|
|
1008
1191
|
}, z.core.$strict>;
|
|
1009
1192
|
label: z.ZodString;
|
|
1010
|
-
|
|
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;
|
|
1011
1212
|
}, z.core.$strict>, z.ZodObject<{
|
|
1012
1213
|
kind: z.ZodLiteral<"output">;
|
|
1013
1214
|
configuration: z.ZodObject<{
|
|
@@ -1019,12 +1220,15 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
1019
1220
|
y: z.ZodNumber;
|
|
1020
1221
|
}, z.core.$strict>;
|
|
1021
1222
|
label: z.ZodString;
|
|
1022
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1023
1223
|
}, z.core.$strict>], "kind">>;
|
|
1024
1224
|
edges: z.ZodArray<z.ZodObject<{
|
|
1025
1225
|
id: z.ZodString;
|
|
1026
1226
|
source: z.ZodString;
|
|
1027
1227
|
target: z.ZodString;
|
|
1228
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
1229
|
+
flow: "flow";
|
|
1230
|
+
context: "context";
|
|
1231
|
+
}>>;
|
|
1028
1232
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1029
1233
|
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1030
1234
|
}, z.core.$strict>>;
|
|
@@ -1049,6 +1253,22 @@ export declare const FlowList: z.ZodObject<{
|
|
|
1049
1253
|
}, z.core.$strict>>;
|
|
1050
1254
|
}, z.core.$strict>;
|
|
1051
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>;
|
|
1052
1272
|
export declare const CreateFlowInput: z.ZodObject<{
|
|
1053
1273
|
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1054
1274
|
title: z.ZodString;
|
|
@@ -1079,22 +1299,15 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1079
1299
|
graph: z.ZodObject<{
|
|
1080
1300
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1081
1301
|
kind: z.ZodLiteral<"trigger">;
|
|
1082
|
-
configuration: z.
|
|
1302
|
+
configuration: z.ZodObject<{
|
|
1083
1303
|
mode: z.ZodLiteral<"manual">;
|
|
1084
|
-
}, z.core.$strict
|
|
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">;
|
|
1304
|
+
}, z.core.$strict>;
|
|
1091
1305
|
id: z.ZodString;
|
|
1092
1306
|
position: z.ZodObject<{
|
|
1093
1307
|
x: z.ZodNumber;
|
|
1094
1308
|
y: z.ZodNumber;
|
|
1095
1309
|
}, z.core.$strict>;
|
|
1096
1310
|
label: z.ZodString;
|
|
1097
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1098
1311
|
}, z.core.$strict>, z.ZodObject<{
|
|
1099
1312
|
kind: z.ZodLiteral<"instruction">;
|
|
1100
1313
|
configuration: z.ZodObject<{
|
|
@@ -1106,7 +1319,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1106
1319
|
y: z.ZodNumber;
|
|
1107
1320
|
}, z.core.$strict>;
|
|
1108
1321
|
label: z.ZodString;
|
|
1109
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1110
1322
|
}, z.core.$strict>, z.ZodObject<{
|
|
1111
1323
|
kind: z.ZodLiteral<"knowledge">;
|
|
1112
1324
|
configuration: z.ZodObject<{
|
|
@@ -1123,7 +1335,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1123
1335
|
y: z.ZodNumber;
|
|
1124
1336
|
}, z.core.$strict>;
|
|
1125
1337
|
label: z.ZodString;
|
|
1126
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1127
1338
|
}, z.core.$strict>, z.ZodObject<{
|
|
1128
1339
|
kind: z.ZodLiteral<"tool">;
|
|
1129
1340
|
configuration: z.ZodObject<{
|
|
@@ -1137,7 +1348,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1137
1348
|
y: z.ZodNumber;
|
|
1138
1349
|
}, z.core.$strict>;
|
|
1139
1350
|
label: z.ZodString;
|
|
1140
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1141
1351
|
}, z.core.$strict>, z.ZodObject<{
|
|
1142
1352
|
kind: z.ZodLiteral<"condition">;
|
|
1143
1353
|
configuration: z.ZodObject<{
|
|
@@ -1150,7 +1360,6 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1150
1360
|
y: z.ZodNumber;
|
|
1151
1361
|
}, z.core.$strict>;
|
|
1152
1362
|
label: z.ZodString;
|
|
1153
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1154
1363
|
}, z.core.$strict>, z.ZodObject<{
|
|
1155
1364
|
kind: z.ZodLiteral<"approval">;
|
|
1156
1365
|
configuration: z.ZodObject<{
|
|
@@ -1163,7 +1372,25 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1163
1372
|
y: z.ZodNumber;
|
|
1164
1373
|
}, z.core.$strict>;
|
|
1165
1374
|
label: z.ZodString;
|
|
1166
|
-
|
|
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;
|
|
1167
1394
|
}, z.core.$strict>, z.ZodObject<{
|
|
1168
1395
|
kind: z.ZodLiteral<"output">;
|
|
1169
1396
|
configuration: z.ZodObject<{
|
|
@@ -1175,12 +1402,15 @@ export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
|
1175
1402
|
y: z.ZodNumber;
|
|
1176
1403
|
}, z.core.$strict>;
|
|
1177
1404
|
label: z.ZodString;
|
|
1178
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1179
1405
|
}, z.core.$strict>], "kind">>;
|
|
1180
1406
|
edges: z.ZodArray<z.ZodObject<{
|
|
1181
1407
|
id: z.ZodString;
|
|
1182
1408
|
source: z.ZodString;
|
|
1183
1409
|
target: z.ZodString;
|
|
1410
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
1411
|
+
flow: "flow";
|
|
1412
|
+
context: "context";
|
|
1413
|
+
}>>;
|
|
1184
1414
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1185
1415
|
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1186
1416
|
}, z.core.$strict>>;
|
|
@@ -1194,37 +1424,130 @@ export declare const PublishFlowInput: z.ZodObject<{
|
|
|
1194
1424
|
idempotencyKey: z.ZodString;
|
|
1195
1425
|
}, z.core.$strict>;
|
|
1196
1426
|
export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
|
|
1197
|
-
export declare const
|
|
1198
|
-
|
|
1427
|
+
export declare const PreviewFlowPublishInput: z.ZodObject<{
|
|
1428
|
+
flowId: z.ZodString;
|
|
1429
|
+
versionId: z.ZodString;
|
|
1199
1430
|
}, z.core.$strict>;
|
|
1200
|
-
export type
|
|
1201
|
-
export declare const
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
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";
|
|
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";
|
|
1217
1441
|
}>;
|
|
1218
|
-
|
|
1219
|
-
|
|
1442
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
versionSequence: z.ZodNullable<z.ZodNumber>;
|
|
1444
|
+
freezes: z.ZodBoolean;
|
|
1445
|
+
available: z.ZodBoolean;
|
|
1220
1446
|
}, z.core.$strict>;
|
|
1221
|
-
export type
|
|
1222
|
-
export declare const
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
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>>;
|
|
1226
1466
|
}, z.core.$strict>;
|
|
1227
|
-
export type
|
|
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;
|
|
1487
|
+
}, z.core.$strict>;
|
|
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>;
|
|
1228
1551
|
export declare const FlowRunStatus: z.ZodEnum<{
|
|
1229
1552
|
queued: "queued";
|
|
1230
1553
|
running: "running";
|
|
@@ -1251,11 +1574,21 @@ export declare const FlowRun: z.ZodObject<{
|
|
|
1251
1574
|
output: z.ZodNullable<z.ZodUnknown>;
|
|
1252
1575
|
error: z.ZodNullable<z.ZodString>;
|
|
1253
1576
|
initiatedBy: z.ZodString;
|
|
1577
|
+
parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1578
|
+
parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1254
1579
|
createdAt: z.ZodISODateTime;
|
|
1255
1580
|
updatedAt: z.ZodISODateTime;
|
|
1256
1581
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1257
1582
|
}, z.core.$strict>;
|
|
1258
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>;
|
|
1259
1592
|
export declare const FlowRunStep: z.ZodObject<{
|
|
1260
1593
|
run: z.ZodObject<{
|
|
1261
1594
|
id: z.ZodString;
|
|
@@ -1274,28 +1607,23 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1274
1607
|
output: z.ZodNullable<z.ZodUnknown>;
|
|
1275
1608
|
error: z.ZodNullable<z.ZodString>;
|
|
1276
1609
|
initiatedBy: z.ZodString;
|
|
1610
|
+
parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1611
|
+
parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1277
1612
|
createdAt: z.ZodISODateTime;
|
|
1278
1613
|
updatedAt: z.ZodISODateTime;
|
|
1279
1614
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1280
1615
|
}, z.core.$strict>;
|
|
1281
1616
|
node: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1282
1617
|
kind: z.ZodLiteral<"trigger">;
|
|
1283
|
-
configuration: z.
|
|
1618
|
+
configuration: z.ZodObject<{
|
|
1284
1619
|
mode: z.ZodLiteral<"manual">;
|
|
1285
|
-
}, z.core.$strict
|
|
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">;
|
|
1620
|
+
}, z.core.$strict>;
|
|
1292
1621
|
id: z.ZodString;
|
|
1293
1622
|
position: z.ZodObject<{
|
|
1294
1623
|
x: z.ZodNumber;
|
|
1295
1624
|
y: z.ZodNumber;
|
|
1296
1625
|
}, z.core.$strict>;
|
|
1297
1626
|
label: z.ZodString;
|
|
1298
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1299
1627
|
}, z.core.$strict>, z.ZodObject<{
|
|
1300
1628
|
kind: z.ZodLiteral<"instruction">;
|
|
1301
1629
|
configuration: z.ZodObject<{
|
|
@@ -1307,7 +1635,6 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1307
1635
|
y: z.ZodNumber;
|
|
1308
1636
|
}, z.core.$strict>;
|
|
1309
1637
|
label: z.ZodString;
|
|
1310
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1311
1638
|
}, z.core.$strict>, z.ZodObject<{
|
|
1312
1639
|
kind: z.ZodLiteral<"knowledge">;
|
|
1313
1640
|
configuration: z.ZodObject<{
|
|
@@ -1324,7 +1651,6 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1324
1651
|
y: z.ZodNumber;
|
|
1325
1652
|
}, z.core.$strict>;
|
|
1326
1653
|
label: z.ZodString;
|
|
1327
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1328
1654
|
}, z.core.$strict>, z.ZodObject<{
|
|
1329
1655
|
kind: z.ZodLiteral<"tool">;
|
|
1330
1656
|
configuration: z.ZodObject<{
|
|
@@ -1338,7 +1664,6 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1338
1664
|
y: z.ZodNumber;
|
|
1339
1665
|
}, z.core.$strict>;
|
|
1340
1666
|
label: z.ZodString;
|
|
1341
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1342
1667
|
}, z.core.$strict>, z.ZodObject<{
|
|
1343
1668
|
kind: z.ZodLiteral<"condition">;
|
|
1344
1669
|
configuration: z.ZodObject<{
|
|
@@ -1351,7 +1676,6 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1351
1676
|
y: z.ZodNumber;
|
|
1352
1677
|
}, z.core.$strict>;
|
|
1353
1678
|
label: z.ZodString;
|
|
1354
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1355
1679
|
}, z.core.$strict>, z.ZodObject<{
|
|
1356
1680
|
kind: z.ZodLiteral<"approval">;
|
|
1357
1681
|
configuration: z.ZodObject<{
|
|
@@ -1364,7 +1688,25 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1364
1688
|
y: z.ZodNumber;
|
|
1365
1689
|
}, z.core.$strict>;
|
|
1366
1690
|
label: z.ZodString;
|
|
1367
|
-
|
|
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;
|
|
1368
1710
|
}, z.core.$strict>, z.ZodObject<{
|
|
1369
1711
|
kind: z.ZodLiteral<"output">;
|
|
1370
1712
|
configuration: z.ZodObject<{
|
|
@@ -1376,13 +1718,23 @@ export declare const FlowRunStep: z.ZodObject<{
|
|
|
1376
1718
|
y: z.ZodNumber;
|
|
1377
1719
|
}, z.core.$strict>;
|
|
1378
1720
|
label: z.ZodString;
|
|
1379
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1380
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>>>;
|
|
1381
1729
|
}, z.core.$strict>;
|
|
1382
1730
|
export type FlowRunStep = z.infer<typeof FlowRunStep>;
|
|
1383
1731
|
export declare const StartFlowRunInput: z.ZodObject<{
|
|
1384
1732
|
flowId: z.ZodString;
|
|
1385
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>>>;
|
|
1386
1738
|
idempotencyKey: z.ZodString;
|
|
1387
1739
|
}, z.core.$strict>;
|
|
1388
1740
|
export type StartFlowRunInput = z.infer<typeof StartFlowRunInput>;
|
|
@@ -1403,3 +1755,128 @@ export declare const CompleteFlowRunStepInput: z.ZodObject<{
|
|
|
1403
1755
|
idempotencyKey: z.ZodString;
|
|
1404
1756
|
}, z.core.$strict>;
|
|
1405
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>;
|