@retab/node 1.0.96 → 1.0.99
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/README.md +39 -42
- package/dist/api/client.d.ts +4 -2
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +4 -2
- package/dist/api/documents/client.d.ts +17 -11
- package/dist/api/documents/client.d.ts.map +1 -1
- package/dist/api/documents/client.js +85 -38
- package/dist/api/edit/agent/client.js +1 -1
- package/dist/api/edit/client.d.ts +1 -1
- package/dist/api/edit/client.js +1 -1
- package/dist/api/edit/templates/client.d.ts +1 -75
- package/dist/api/edit/templates/client.d.ts.map +1 -1
- package/dist/api/edit/templates/client.js +3 -130
- package/dist/api/evals/classify/client.d.ts +20 -0
- package/dist/api/evals/classify/client.d.ts.map +1 -0
- package/dist/api/evals/classify/client.js +25 -0
- package/dist/api/evals/client.d.ts +11 -0
- package/dist/api/evals/client.d.ts.map +1 -0
- package/dist/api/evals/client.js +12 -0
- package/dist/api/evals/extract/client.d.ts +287 -0
- package/dist/api/evals/extract/client.d.ts.map +1 -0
- package/dist/api/evals/extract/client.js +56 -0
- package/dist/api/evals/helpers.d.ts +30 -0
- package/dist/api/evals/helpers.d.ts.map +1 -0
- package/dist/api/evals/helpers.js +46 -0
- package/dist/api/evals/schemas.d.ts +6522 -0
- package/dist/api/evals/schemas.d.ts.map +1 -0
- package/dist/api/evals/schemas.js +219 -0
- package/dist/api/evals/split/client.d.ts +105 -0
- package/dist/api/evals/split/client.d.ts.map +1 -0
- package/dist/api/evals/split/client.js +28 -0
- package/dist/api/extractions/client.d.ts +3 -43
- package/dist/api/extractions/client.d.ts.map +1 -1
- package/dist/api/extractions/client.js +6 -67
- package/dist/api/files/client.d.ts +9 -1
- package/dist/api/files/client.d.ts.map +1 -1
- package/dist/api/files/client.js +11 -5
- package/dist/api/jobs/client.d.ts +12 -10
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +13 -17
- package/dist/api/models/client.d.ts +3 -10
- package/dist/api/models/client.d.ts.map +1 -1
- package/dist/api/models/client.js +9 -8
- package/dist/api/projects/client.d.ts +1640 -4
- package/dist/api/projects/client.d.ts.map +1 -1
- package/dist/api/projects/client.js +457 -28
- package/dist/api/schemas/client.d.ts +3 -0
- package/dist/api/schemas/client.d.ts.map +1 -1
- package/dist/api/schemas/client.js +1 -1
- package/dist/api/workflows/blocks/client.d.ts +67 -0
- package/dist/api/workflows/blocks/client.d.ts.map +1 -0
- package/dist/api/workflows/blocks/client.js +132 -0
- package/dist/api/workflows/client.d.ts +90 -2
- package/dist/api/workflows/client.d.ts.map +1 -1
- package/dist/api/workflows/client.js +153 -1
- package/dist/api/workflows/edges/client.d.ts +66 -0
- package/dist/api/workflows/edges/client.d.ts.map +1 -0
- package/dist/api/workflows/edges/client.js +120 -0
- package/dist/api/workflows/runs/client.d.ts +57 -113
- package/dist/api/workflows/runs/client.d.ts.map +1 -1
- package/dist/api/workflows/runs/client.js +118 -119
- package/dist/api/workflows/runs/steps/client.d.ts +35 -13
- package/dist/api/workflows/runs/steps/client.d.ts.map +1 -1
- package/dist/api/workflows/runs/steps/client.js +63 -15
- package/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +79 -5
- package/dist/generated_types.d.ts +7778 -2745
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +711 -70
- package/dist/mime.d.ts.map +1 -1
- package/dist/mime.js +11 -1
- package/dist/schema_types.d.ts +2 -2
- package/dist/schema_types.d.ts.map +1 -1
- package/dist/schema_types.js +2 -2
- package/dist/types.d.ts +655 -109
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +84 -14
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Readable } from "stream";
|
|
2
|
+
import * as generated from "./generated_types";
|
|
2
3
|
import { ZFieldItem, ZRefObject, ZRowList } from "./generated_types";
|
|
3
4
|
export * from "./generated_types";
|
|
4
5
|
import * as z from "zod";
|
|
@@ -245,10 +246,10 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
245
246
|
}>>, "many">>>;
|
|
246
247
|
}, "strip", z.ZodTypeAny, {
|
|
247
248
|
metadata: Record<string, string>;
|
|
248
|
-
json_schema: Record<string, any>;
|
|
249
249
|
model: string;
|
|
250
250
|
image_resolution_dpi: number;
|
|
251
251
|
n_consensus: number;
|
|
252
|
+
json_schema: Record<string, any>;
|
|
252
253
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
253
254
|
extraction_id?: string | null | undefined;
|
|
254
255
|
document?: any;
|
|
@@ -288,8 +289,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
288
289
|
}[] | null | undefined;
|
|
289
290
|
}[] | null | undefined;
|
|
290
291
|
}, {
|
|
291
|
-
json_schema: string | Record<string, any> | z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
292
292
|
model: string;
|
|
293
|
+
json_schema: string | Record<string, any> | z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
293
294
|
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
294
295
|
filename: string;
|
|
295
296
|
url: string;
|
|
@@ -368,67 +369,6 @@ export declare const ZParseRequest: z.ZodObject<{
|
|
|
368
369
|
table_parsing_format?: "json" | "markdown" | "yaml" | "html" | undefined;
|
|
369
370
|
}>;
|
|
370
371
|
export type ParseRequest = z.input<typeof ZParseRequest>;
|
|
371
|
-
export declare const ZDocumentCreateMessageRequest: z.ZodObject<{
|
|
372
|
-
document: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
373
|
-
filename: z.ZodString;
|
|
374
|
-
url: z.ZodString;
|
|
375
|
-
}, "strip", z.ZodTypeAny, {
|
|
376
|
-
filename: string;
|
|
377
|
-
url: string;
|
|
378
|
-
}, {
|
|
379
|
-
filename: string;
|
|
380
|
-
url: string;
|
|
381
|
-
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
382
|
-
filename: string;
|
|
383
|
-
url: string;
|
|
384
|
-
}>;
|
|
385
|
-
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
386
|
-
model: z.ZodDefault<z.ZodString>;
|
|
387
|
-
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
model: string;
|
|
389
|
-
image_resolution_dpi: number;
|
|
390
|
-
document?: any;
|
|
391
|
-
}, {
|
|
392
|
-
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
393
|
-
filename: string;
|
|
394
|
-
url: string;
|
|
395
|
-
};
|
|
396
|
-
model?: string | undefined;
|
|
397
|
-
image_resolution_dpi?: number | undefined;
|
|
398
|
-
}>;
|
|
399
|
-
export type DocumentCreateMessageRequest = z.input<typeof ZDocumentCreateMessageRequest>;
|
|
400
|
-
export declare const ZDocumentCreateInputRequest: z.ZodObject<{
|
|
401
|
-
document: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
402
|
-
filename: z.ZodString;
|
|
403
|
-
url: z.ZodString;
|
|
404
|
-
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
filename: string;
|
|
406
|
-
url: string;
|
|
407
|
-
}, {
|
|
408
|
-
filename: string;
|
|
409
|
-
url: string;
|
|
410
|
-
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
411
|
-
filename: string;
|
|
412
|
-
url: string;
|
|
413
|
-
}>;
|
|
414
|
-
json_schema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodType<z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodTypeDef, z.ZodType<unknown, z.ZodTypeDef, unknown>>]>, Record<string, any>, string | Record<string, any> | z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
415
|
-
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
416
|
-
model: z.ZodDefault<z.ZodString>;
|
|
417
|
-
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
json_schema: Record<string, any>;
|
|
419
|
-
model: string;
|
|
420
|
-
image_resolution_dpi: number;
|
|
421
|
-
document?: any;
|
|
422
|
-
}, {
|
|
423
|
-
json_schema: string | Record<string, any> | z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
424
|
-
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
425
|
-
filename: string;
|
|
426
|
-
url: string;
|
|
427
|
-
};
|
|
428
|
-
model?: string | undefined;
|
|
429
|
-
image_resolution_dpi?: number | undefined;
|
|
430
|
-
}>;
|
|
431
|
-
export type DocumentCreateInputRequest = z.input<typeof ZDocumentCreateInputRequest>;
|
|
432
372
|
export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
433
373
|
documents: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
434
374
|
filename: z.ZodString;
|
|
@@ -451,9 +391,9 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
451
391
|
}, "strip", z.ZodTypeAny, {
|
|
452
392
|
stream: boolean;
|
|
453
393
|
model: string;
|
|
454
|
-
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
455
394
|
image_resolution_dpi: number;
|
|
456
395
|
documents: any[];
|
|
396
|
+
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
457
397
|
instructions?: string | null | undefined;
|
|
458
398
|
}, {
|
|
459
399
|
documents: (string | Buffer<ArrayBufferLike> | Readable | {
|
|
@@ -462,8 +402,8 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
462
402
|
})[];
|
|
463
403
|
stream?: boolean | undefined;
|
|
464
404
|
model?: string | undefined;
|
|
465
|
-
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
466
405
|
image_resolution_dpi?: number | undefined;
|
|
406
|
+
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
467
407
|
instructions?: string | null | undefined;
|
|
468
408
|
}>;
|
|
469
409
|
export type GenerateSchemaRequest = z.input<typeof ZGenerateSchemaRequest>;
|
|
@@ -494,7 +434,7 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
494
434
|
}>;
|
|
495
435
|
subdocuments: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
496
436
|
name: z.ZodString;
|
|
497
|
-
description: z.ZodString
|
|
437
|
+
description: z.ZodDefault<z.ZodString>;
|
|
498
438
|
partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
439
|
}, "strip", z.ZodTypeAny, {
|
|
500
440
|
name: string;
|
|
@@ -502,7 +442,7 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
502
442
|
partition_key?: string | null | undefined;
|
|
503
443
|
}, {
|
|
504
444
|
name: string;
|
|
505
|
-
description
|
|
445
|
+
description?: string | undefined;
|
|
506
446
|
partition_key?: string | null | undefined;
|
|
507
447
|
}>>, "many">;
|
|
508
448
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -519,15 +459,15 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
519
459
|
document?: any;
|
|
520
460
|
context?: string | null | undefined;
|
|
521
461
|
}, {
|
|
522
|
-
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
523
|
-
filename: string;
|
|
524
|
-
url: string;
|
|
525
|
-
};
|
|
526
462
|
subdocuments: {
|
|
527
463
|
name: string;
|
|
528
|
-
description
|
|
464
|
+
description?: string | undefined;
|
|
529
465
|
partition_key?: string | null | undefined;
|
|
530
466
|
}[];
|
|
467
|
+
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
468
|
+
filename: string;
|
|
469
|
+
url: string;
|
|
470
|
+
};
|
|
531
471
|
model?: string | undefined;
|
|
532
472
|
n_consensus?: number | undefined;
|
|
533
473
|
context?: string | null | undefined;
|
|
@@ -549,13 +489,13 @@ export declare const ZClassifyRequest: z.ZodObject<{
|
|
|
549
489
|
}>;
|
|
550
490
|
categories: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
551
491
|
name: z.ZodString;
|
|
552
|
-
description: z.ZodString
|
|
492
|
+
description: z.ZodDefault<z.ZodString>;
|
|
553
493
|
}, "strip", z.ZodTypeAny, {
|
|
554
494
|
name: string;
|
|
555
495
|
description: string;
|
|
556
496
|
}, {
|
|
557
497
|
name: string;
|
|
558
|
-
description
|
|
498
|
+
description?: string | undefined;
|
|
559
499
|
}>>, "many">;
|
|
560
500
|
model: z.ZodDefault<z.ZodString>;
|
|
561
501
|
first_n_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -570,45 +510,19 @@ export declare const ZClassifyRequest: z.ZodObject<{
|
|
|
570
510
|
context?: string | null | undefined;
|
|
571
511
|
first_n_pages?: number | null | undefined;
|
|
572
512
|
}, {
|
|
573
|
-
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
574
|
-
filename: string;
|
|
575
|
-
url: string;
|
|
576
|
-
};
|
|
577
513
|
categories: {
|
|
578
514
|
name: string;
|
|
579
|
-
description
|
|
515
|
+
description?: string | undefined;
|
|
580
516
|
}[];
|
|
581
|
-
model?: string | undefined;
|
|
582
|
-
context?: string | null | undefined;
|
|
583
|
-
first_n_pages?: number | null | undefined;
|
|
584
|
-
}>;
|
|
585
|
-
export type ClassifyRequest = z.input<typeof ZClassifyRequest>;
|
|
586
|
-
export declare const ZGenerateSplitConfigRequest: z.ZodObject<{
|
|
587
|
-
document: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
588
|
-
filename: z.ZodString;
|
|
589
|
-
url: z.ZodString;
|
|
590
|
-
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
filename: string;
|
|
592
|
-
url: string;
|
|
593
|
-
}, {
|
|
594
|
-
filename: string;
|
|
595
|
-
url: string;
|
|
596
|
-
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
597
|
-
filename: string;
|
|
598
|
-
url: string;
|
|
599
|
-
}>;
|
|
600
|
-
model: z.ZodDefault<z.ZodString>;
|
|
601
|
-
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
model: string;
|
|
603
|
-
document?: any;
|
|
604
|
-
}, {
|
|
605
517
|
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
606
518
|
filename: string;
|
|
607
519
|
url: string;
|
|
608
520
|
};
|
|
609
521
|
model?: string | undefined;
|
|
522
|
+
context?: string | null | undefined;
|
|
523
|
+
first_n_pages?: number | null | undefined;
|
|
610
524
|
}>;
|
|
611
|
-
export type
|
|
525
|
+
export type ClassifyRequest = z.input<typeof ZClassifyRequest>;
|
|
612
526
|
export declare const ZEditRequest: z.ZodObject<{
|
|
613
527
|
document: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
614
528
|
filename: z.ZodString;
|
|
@@ -635,10 +549,10 @@ export declare const ZEditRequest: z.ZodObject<{
|
|
|
635
549
|
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
550
|
}, "strip", z.ZodTypeAny, {
|
|
637
551
|
model: string;
|
|
638
|
-
instructions: string;
|
|
639
552
|
config: {
|
|
640
553
|
color: string;
|
|
641
554
|
};
|
|
555
|
+
instructions: string;
|
|
642
556
|
document?: any;
|
|
643
557
|
template_id?: string | null | undefined;
|
|
644
558
|
}, {
|
|
@@ -648,10 +562,10 @@ export declare const ZEditRequest: z.ZodObject<{
|
|
|
648
562
|
filename: string;
|
|
649
563
|
url: string;
|
|
650
564
|
} | null | undefined;
|
|
651
|
-
template_id?: string | null | undefined;
|
|
652
565
|
config?: {
|
|
653
566
|
color?: string | undefined;
|
|
654
567
|
} | undefined;
|
|
568
|
+
template_id?: string | null | undefined;
|
|
655
569
|
}>;
|
|
656
570
|
export type EditRequest = z.input<typeof ZEditRequest>;
|
|
657
571
|
export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
|
|
@@ -715,6 +629,13 @@ export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
|
|
|
715
629
|
filename: string;
|
|
716
630
|
url: string;
|
|
717
631
|
}>>;
|
|
632
|
+
usage: z.ZodLazy<z.ZodObject<{
|
|
633
|
+
credits: z.ZodNumber;
|
|
634
|
+
}, "strip", z.ZodTypeAny, {
|
|
635
|
+
credits: number;
|
|
636
|
+
}, {
|
|
637
|
+
credits: number;
|
|
638
|
+
}>>;
|
|
718
639
|
}, "strip", z.ZodTypeAny, {
|
|
719
640
|
form_data: {
|
|
720
641
|
description: string;
|
|
@@ -729,6 +650,9 @@ export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
|
|
|
729
650
|
type?: any;
|
|
730
651
|
value?: string | null | undefined;
|
|
731
652
|
}[];
|
|
653
|
+
usage: {
|
|
654
|
+
credits: number;
|
|
655
|
+
};
|
|
732
656
|
filled_document: {
|
|
733
657
|
filename: string;
|
|
734
658
|
url: string;
|
|
@@ -747,6 +671,9 @@ export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
|
|
|
747
671
|
type?: any;
|
|
748
672
|
value?: string | null | undefined;
|
|
749
673
|
}[];
|
|
674
|
+
usage: {
|
|
675
|
+
credits: number;
|
|
676
|
+
};
|
|
750
677
|
filled_document: {
|
|
751
678
|
filename: string;
|
|
752
679
|
url: string;
|
|
@@ -927,7 +854,6 @@ export declare const ZWorkflowRunStep: z.ZodObject<{
|
|
|
927
854
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
855
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
929
856
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
-
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
931
857
|
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
932
858
|
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
933
859
|
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -989,7 +915,6 @@ export declare const ZWorkflowRunStep: z.ZodObject<{
|
|
|
989
915
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
916
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
991
917
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
|
-
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
993
918
|
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
994
919
|
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
995
920
|
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -1051,7 +976,6 @@ export declare const ZWorkflowRunStep: z.ZodObject<{
|
|
|
1051
976
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
977
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1053
978
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1054
|
-
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1055
979
|
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1056
980
|
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1057
981
|
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -1103,6 +1027,628 @@ export declare const ZWorkflowRunStep: z.ZodObject<{
|
|
|
1103
1027
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1104
1028
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1105
1029
|
export type WorkflowRunStep = z.infer<typeof ZWorkflowRunStep>;
|
|
1030
|
+
export declare const ZWorkflow: z.ZodObject<{
|
|
1031
|
+
id: z.ZodString;
|
|
1032
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1033
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1034
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1035
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1037
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1038
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1040
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1041
|
+
created_at: z.ZodString;
|
|
1042
|
+
updated_at: z.ZodString;
|
|
1043
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1044
|
+
id: z.ZodString;
|
|
1045
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1046
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1047
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1048
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1049
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1051
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1053
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1054
|
+
created_at: z.ZodString;
|
|
1055
|
+
updated_at: z.ZodString;
|
|
1056
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1057
|
+
id: z.ZodString;
|
|
1058
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1059
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1060
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1061
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1062
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1063
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1064
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1065
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1066
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1067
|
+
created_at: z.ZodString;
|
|
1068
|
+
updated_at: z.ZodString;
|
|
1069
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1070
|
+
export type Workflow = z.infer<typeof ZWorkflow>;
|
|
1071
|
+
export declare const ZWorkflowBlock: z.ZodObject<{
|
|
1072
|
+
id: z.ZodString;
|
|
1073
|
+
workflow_id: z.ZodString;
|
|
1074
|
+
type: z.ZodString;
|
|
1075
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1076
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1077
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1078
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1079
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1080
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1081
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1082
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1083
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1084
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
workflow_id: z.ZodString;
|
|
1087
|
+
type: z.ZodString;
|
|
1088
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1089
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1090
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1091
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1092
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1093
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1094
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1095
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1096
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1098
|
+
id: z.ZodString;
|
|
1099
|
+
workflow_id: z.ZodString;
|
|
1100
|
+
type: z.ZodString;
|
|
1101
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1102
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1103
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1104
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1105
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1106
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1107
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1108
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1109
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1110
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1111
|
+
export type WorkflowBlock = z.infer<typeof ZWorkflowBlock>;
|
|
1112
|
+
export declare const ZWorkflowEdge: z.ZodObject<{
|
|
1113
|
+
id: z.ZodString;
|
|
1114
|
+
workflow_id: z.ZodString;
|
|
1115
|
+
source_block: z.ZodString;
|
|
1116
|
+
target_block: z.ZodString;
|
|
1117
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1118
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1119
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1120
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1121
|
+
id: z.ZodString;
|
|
1122
|
+
workflow_id: z.ZodString;
|
|
1123
|
+
source_block: z.ZodString;
|
|
1124
|
+
target_block: z.ZodString;
|
|
1125
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1126
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1127
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1128
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1129
|
+
id: z.ZodString;
|
|
1130
|
+
workflow_id: z.ZodString;
|
|
1131
|
+
source_block: z.ZodString;
|
|
1132
|
+
target_block: z.ZodString;
|
|
1133
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1134
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1136
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1137
|
+
export type WorkflowEdge = z.infer<typeof ZWorkflowEdge>;
|
|
1138
|
+
export declare const ZWorkflowSubflow: z.ZodObject<{
|
|
1139
|
+
id: z.ZodString;
|
|
1140
|
+
workflow_id: z.ZodString;
|
|
1141
|
+
type: z.ZodString;
|
|
1142
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1143
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1144
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1145
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1146
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1147
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1148
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1149
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1150
|
+
id: z.ZodString;
|
|
1151
|
+
workflow_id: z.ZodString;
|
|
1152
|
+
type: z.ZodString;
|
|
1153
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1154
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1155
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1156
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1157
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1158
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1159
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1160
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1161
|
+
id: z.ZodString;
|
|
1162
|
+
workflow_id: z.ZodString;
|
|
1163
|
+
type: z.ZodString;
|
|
1164
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1165
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1166
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1167
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1168
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1169
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1170
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1171
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1172
|
+
export type WorkflowSubflow = z.infer<typeof ZWorkflowSubflow>;
|
|
1173
|
+
export declare const ZWorkflowWithEntities: z.ZodObject<{
|
|
1174
|
+
workflow: z.ZodObject<{
|
|
1175
|
+
id: z.ZodString;
|
|
1176
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1177
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1178
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1179
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1180
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1181
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1182
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1183
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1184
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1185
|
+
created_at: z.ZodString;
|
|
1186
|
+
updated_at: z.ZodString;
|
|
1187
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1188
|
+
id: z.ZodString;
|
|
1189
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1190
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1191
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1192
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1193
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1194
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1197
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1198
|
+
created_at: z.ZodString;
|
|
1199
|
+
updated_at: z.ZodString;
|
|
1200
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1203
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1204
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1205
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1209
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1210
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1211
|
+
created_at: z.ZodString;
|
|
1212
|
+
updated_at: z.ZodString;
|
|
1213
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1214
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1215
|
+
id: z.ZodString;
|
|
1216
|
+
workflow_id: z.ZodString;
|
|
1217
|
+
type: z.ZodString;
|
|
1218
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1219
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1220
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1221
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1222
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1223
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1224
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1225
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1226
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1227
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1228
|
+
id: z.ZodString;
|
|
1229
|
+
workflow_id: z.ZodString;
|
|
1230
|
+
type: z.ZodString;
|
|
1231
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1232
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1233
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1234
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1235
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1236
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1237
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1238
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1239
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1240
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1241
|
+
id: z.ZodString;
|
|
1242
|
+
workflow_id: z.ZodString;
|
|
1243
|
+
type: z.ZodString;
|
|
1244
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1245
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1246
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1247
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1248
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1249
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1250
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1251
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1252
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1253
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1254
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1255
|
+
id: z.ZodString;
|
|
1256
|
+
workflow_id: z.ZodString;
|
|
1257
|
+
source_block: z.ZodString;
|
|
1258
|
+
target_block: z.ZodString;
|
|
1259
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1260
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1261
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1262
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1263
|
+
id: z.ZodString;
|
|
1264
|
+
workflow_id: z.ZodString;
|
|
1265
|
+
source_block: z.ZodString;
|
|
1266
|
+
target_block: z.ZodString;
|
|
1267
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1268
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1269
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1270
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1271
|
+
id: z.ZodString;
|
|
1272
|
+
workflow_id: z.ZodString;
|
|
1273
|
+
source_block: z.ZodString;
|
|
1274
|
+
target_block: z.ZodString;
|
|
1275
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1276
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1277
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1278
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1279
|
+
subflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1280
|
+
id: z.ZodString;
|
|
1281
|
+
workflow_id: z.ZodString;
|
|
1282
|
+
type: z.ZodString;
|
|
1283
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1284
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1285
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1286
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1287
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1288
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1289
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1290
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1291
|
+
id: z.ZodString;
|
|
1292
|
+
workflow_id: z.ZodString;
|
|
1293
|
+
type: z.ZodString;
|
|
1294
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1295
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1296
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1297
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1298
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1299
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1300
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1301
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1302
|
+
id: z.ZodString;
|
|
1303
|
+
workflow_id: z.ZodString;
|
|
1304
|
+
type: z.ZodString;
|
|
1305
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1306
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1307
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1308
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1309
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1310
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1311
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1312
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1313
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1314
|
+
workflow: z.ZodObject<{
|
|
1315
|
+
id: z.ZodString;
|
|
1316
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1317
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1318
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1319
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1320
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1321
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1322
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1323
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1324
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1325
|
+
created_at: z.ZodString;
|
|
1326
|
+
updated_at: z.ZodString;
|
|
1327
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1328
|
+
id: z.ZodString;
|
|
1329
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1330
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1331
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1332
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1333
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1334
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1335
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1336
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1337
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1338
|
+
created_at: z.ZodString;
|
|
1339
|
+
updated_at: z.ZodString;
|
|
1340
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1341
|
+
id: z.ZodString;
|
|
1342
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1343
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1344
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1345
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1346
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1347
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1348
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1349
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1350
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1351
|
+
created_at: z.ZodString;
|
|
1352
|
+
updated_at: z.ZodString;
|
|
1353
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1354
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1355
|
+
id: z.ZodString;
|
|
1356
|
+
workflow_id: z.ZodString;
|
|
1357
|
+
type: z.ZodString;
|
|
1358
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1359
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1360
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1361
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1362
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1363
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1364
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1365
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1366
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1367
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1368
|
+
id: z.ZodString;
|
|
1369
|
+
workflow_id: z.ZodString;
|
|
1370
|
+
type: z.ZodString;
|
|
1371
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1372
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1373
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1374
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1375
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1376
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1377
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1378
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1379
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1380
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1381
|
+
id: z.ZodString;
|
|
1382
|
+
workflow_id: z.ZodString;
|
|
1383
|
+
type: z.ZodString;
|
|
1384
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1385
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1386
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1387
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1388
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1389
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1390
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1392
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1393
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1394
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1395
|
+
id: z.ZodString;
|
|
1396
|
+
workflow_id: z.ZodString;
|
|
1397
|
+
source_block: z.ZodString;
|
|
1398
|
+
target_block: z.ZodString;
|
|
1399
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1400
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1401
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1402
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1403
|
+
id: z.ZodString;
|
|
1404
|
+
workflow_id: z.ZodString;
|
|
1405
|
+
source_block: z.ZodString;
|
|
1406
|
+
target_block: z.ZodString;
|
|
1407
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1408
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1409
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1410
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1411
|
+
id: z.ZodString;
|
|
1412
|
+
workflow_id: z.ZodString;
|
|
1413
|
+
source_block: z.ZodString;
|
|
1414
|
+
target_block: z.ZodString;
|
|
1415
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1416
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1417
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1418
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1419
|
+
subflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1420
|
+
id: z.ZodString;
|
|
1421
|
+
workflow_id: z.ZodString;
|
|
1422
|
+
type: z.ZodString;
|
|
1423
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1424
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1425
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1426
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1427
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1428
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1429
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1430
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1431
|
+
id: z.ZodString;
|
|
1432
|
+
workflow_id: z.ZodString;
|
|
1433
|
+
type: z.ZodString;
|
|
1434
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1435
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1436
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1437
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1438
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1439
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1440
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1441
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1442
|
+
id: z.ZodString;
|
|
1443
|
+
workflow_id: z.ZodString;
|
|
1444
|
+
type: z.ZodString;
|
|
1445
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1446
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1447
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1448
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1449
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1450
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1451
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1452
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1453
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1454
|
+
workflow: z.ZodObject<{
|
|
1455
|
+
id: z.ZodString;
|
|
1456
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1457
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1458
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1459
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1460
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1461
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1462
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1463
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1464
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1465
|
+
created_at: z.ZodString;
|
|
1466
|
+
updated_at: z.ZodString;
|
|
1467
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1468
|
+
id: z.ZodString;
|
|
1469
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1470
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1471
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1472
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1473
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1474
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1475
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1477
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1478
|
+
created_at: z.ZodString;
|
|
1479
|
+
updated_at: z.ZodString;
|
|
1480
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1481
|
+
id: z.ZodString;
|
|
1482
|
+
name: z.ZodDefault<z.ZodString>;
|
|
1483
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1484
|
+
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
1485
|
+
published_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1486
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1487
|
+
draft_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1488
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1489
|
+
email_senders_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1490
|
+
email_domains_whitelist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1491
|
+
created_at: z.ZodString;
|
|
1492
|
+
updated_at: z.ZodString;
|
|
1493
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1494
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1495
|
+
id: z.ZodString;
|
|
1496
|
+
workflow_id: z.ZodString;
|
|
1497
|
+
type: z.ZodString;
|
|
1498
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1499
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1500
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1501
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1502
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1503
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1504
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1505
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1506
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1507
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1508
|
+
id: z.ZodString;
|
|
1509
|
+
workflow_id: z.ZodString;
|
|
1510
|
+
type: z.ZodString;
|
|
1511
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1512
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1513
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1514
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1515
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1516
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1517
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1518
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1519
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1520
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1521
|
+
id: z.ZodString;
|
|
1522
|
+
workflow_id: z.ZodString;
|
|
1523
|
+
type: z.ZodString;
|
|
1524
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1525
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1526
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1527
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1528
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1529
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1530
|
+
subflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1531
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1532
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1533
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1534
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1535
|
+
id: z.ZodString;
|
|
1536
|
+
workflow_id: z.ZodString;
|
|
1537
|
+
source_block: z.ZodString;
|
|
1538
|
+
target_block: z.ZodString;
|
|
1539
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1540
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1541
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1542
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1543
|
+
id: z.ZodString;
|
|
1544
|
+
workflow_id: z.ZodString;
|
|
1545
|
+
source_block: z.ZodString;
|
|
1546
|
+
target_block: z.ZodString;
|
|
1547
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1548
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1549
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1550
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1551
|
+
id: z.ZodString;
|
|
1552
|
+
workflow_id: z.ZodString;
|
|
1553
|
+
source_block: z.ZodString;
|
|
1554
|
+
target_block: z.ZodString;
|
|
1555
|
+
source_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
|
+
target_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1557
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1558
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1559
|
+
subflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
workflow_id: z.ZodString;
|
|
1562
|
+
type: z.ZodString;
|
|
1563
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1564
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1565
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1566
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1567
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1568
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1569
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1570
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1571
|
+
id: z.ZodString;
|
|
1572
|
+
workflow_id: z.ZodString;
|
|
1573
|
+
type: z.ZodString;
|
|
1574
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1575
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1576
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1577
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1578
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1579
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1580
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1581
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1582
|
+
id: z.ZodString;
|
|
1583
|
+
workflow_id: z.ZodString;
|
|
1584
|
+
type: z.ZodString;
|
|
1585
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1586
|
+
position_x: z.ZodDefault<z.ZodNumber>;
|
|
1587
|
+
position_y: z.ZodDefault<z.ZodNumber>;
|
|
1588
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
1589
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
1590
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1591
|
+
child_block_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1592
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1593
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1594
|
+
export type WorkflowWithEntities = z.infer<typeof ZWorkflowWithEntities>;
|
|
1595
|
+
export type WorkflowRunStatus = "pending" | "running" | "completed" | "error" | "waiting_for_human" | "cancelled";
|
|
1596
|
+
export type WorkflowRunTriggerType = "manual" | "api" | "schedule" | "webhook" | "email" | "restart";
|
|
1597
|
+
export type WorkflowBlockCreateRequest = {
|
|
1598
|
+
id: string;
|
|
1599
|
+
type: string;
|
|
1600
|
+
label?: string;
|
|
1601
|
+
positionX?: number;
|
|
1602
|
+
positionY?: number;
|
|
1603
|
+
width?: number;
|
|
1604
|
+
height?: number;
|
|
1605
|
+
config?: Record<string, unknown>;
|
|
1606
|
+
subflowId?: string;
|
|
1607
|
+
parentId?: string;
|
|
1608
|
+
};
|
|
1609
|
+
export type WorkflowBlockUpdateRequest = {
|
|
1610
|
+
label?: string;
|
|
1611
|
+
positionX?: number;
|
|
1612
|
+
positionY?: number;
|
|
1613
|
+
width?: number;
|
|
1614
|
+
height?: number;
|
|
1615
|
+
config?: Record<string, unknown>;
|
|
1616
|
+
subflowId?: string;
|
|
1617
|
+
parentId?: string;
|
|
1618
|
+
};
|
|
1619
|
+
export type WorkflowEdgeCreateRequest = {
|
|
1620
|
+
id: string;
|
|
1621
|
+
sourceBlock: string;
|
|
1622
|
+
targetBlock: string;
|
|
1623
|
+
sourceHandle?: string;
|
|
1624
|
+
targetHandle?: string;
|
|
1625
|
+
};
|
|
1626
|
+
export declare const ZWorkflowRunExportResponse: z.ZodObject<{
|
|
1627
|
+
csv_data: z.ZodString;
|
|
1628
|
+
rows: z.ZodNumber;
|
|
1629
|
+
columns: z.ZodNumber;
|
|
1630
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1631
|
+
csv_data: z.ZodString;
|
|
1632
|
+
rows: z.ZodNumber;
|
|
1633
|
+
columns: z.ZodNumber;
|
|
1634
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1635
|
+
csv_data: z.ZodString;
|
|
1636
|
+
rows: z.ZodNumber;
|
|
1637
|
+
columns: z.ZodNumber;
|
|
1638
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1639
|
+
export type WorkflowRunExportResponse = z.infer<typeof ZWorkflowRunExportResponse>;
|
|
1640
|
+
/**
|
|
1641
|
+
* Error thrown by {@link raiseForStatus} when a workflow run has failed.
|
|
1642
|
+
*/
|
|
1643
|
+
export declare class WorkflowRunError extends Error {
|
|
1644
|
+
readonly run: generated.WorkflowRun;
|
|
1645
|
+
constructor(run: generated.WorkflowRun);
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Throw a {@link WorkflowRunError} if the run did not succeed.
|
|
1649
|
+
* Modelled after `httpx.Response.raise_for_status()`.
|
|
1650
|
+
*/
|
|
1651
|
+
export declare function raiseForStatus(run: generated.WorkflowRun): void;
|
|
1106
1652
|
export declare const ZModel: z.ZodLazy<z.ZodObject<{
|
|
1107
1653
|
id: z.ZodString;
|
|
1108
1654
|
created: z.ZodNumber;
|