@retab/node 1.0.90 → 1.0.91
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/api/jobs/client.d.ts +39 -3
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +81 -6
- package/dist/api/projects/client.d.ts +1 -4
- package/dist/api/projects/client.d.ts.map +1 -1
- package/dist/api/projects/client.js +1 -7
- package/dist/api/workflows/runs/client.d.ts +171 -1
- package/dist/api/workflows/runs/client.d.ts.map +1 -1
- package/dist/api/workflows/runs/client.js +233 -6
- package/dist/api/workflows/runs/steps/client.d.ts +46 -0
- package/dist/api/workflows/runs/steps/client.d.ts.map +1 -0
- package/dist/api/workflows/runs/steps/client.js +62 -0
- package/dist/generated_types.d.ts +1168 -415
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +30 -20
- package/dist/types.d.ts +2 -17
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2298,58 +2298,46 @@ export declare const ZPaginatedList: z.ZodLazy<z.ZodObject<{
|
|
|
2298
2298
|
export type PaginatedList = z.infer<typeof ZPaginatedList>;
|
|
2299
2299
|
export declare const ZExtractionSettings: z.ZodLazy<z.ZodObject<{
|
|
2300
2300
|
model: z.ZodDefault<z.ZodString>;
|
|
2301
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2302
2301
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2303
2302
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2304
2303
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2305
2304
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2306
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2307
2305
|
} & {
|
|
2308
2306
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2309
2307
|
}, "strip", z.ZodTypeAny, {
|
|
2310
2308
|
json_schema: Record<string, any>;
|
|
2311
2309
|
model: string;
|
|
2312
|
-
temperature: number;
|
|
2313
2310
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2314
2311
|
image_resolution_dpi: number;
|
|
2315
2312
|
n_consensus: number;
|
|
2316
|
-
web_search: boolean;
|
|
2317
2313
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2318
2314
|
}, {
|
|
2319
2315
|
json_schema: Record<string, any>;
|
|
2320
2316
|
model?: string | undefined;
|
|
2321
|
-
temperature?: number | undefined;
|
|
2322
2317
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2323
2318
|
image_resolution_dpi?: number | undefined;
|
|
2324
2319
|
n_consensus?: number | undefined;
|
|
2325
2320
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2326
|
-
web_search?: boolean | undefined;
|
|
2327
2321
|
}>>;
|
|
2328
2322
|
export type ExtractionSettings = z.infer<typeof ZExtractionSettings>;
|
|
2329
2323
|
export declare const ZInferenceSettings: z.ZodLazy<z.ZodObject<{
|
|
2330
2324
|
model: z.ZodDefault<z.ZodString>;
|
|
2331
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2332
2325
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2333
2326
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2334
2327
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2335
2328
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2336
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2337
2329
|
}, "strip", z.ZodTypeAny, {
|
|
2338
2330
|
model: string;
|
|
2339
|
-
temperature: number;
|
|
2340
2331
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2341
2332
|
image_resolution_dpi: number;
|
|
2342
2333
|
n_consensus: number;
|
|
2343
|
-
web_search: boolean;
|
|
2344
2334
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2345
2335
|
}, {
|
|
2346
2336
|
model?: string | undefined;
|
|
2347
|
-
temperature?: number | undefined;
|
|
2348
2337
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2349
2338
|
image_resolution_dpi?: number | undefined;
|
|
2350
2339
|
n_consensus?: number | undefined;
|
|
2351
2340
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2352
|
-
web_search?: boolean | undefined;
|
|
2353
2341
|
}>>;
|
|
2354
2342
|
export type InferenceSettings = z.infer<typeof ZInferenceSettings>;
|
|
2355
2343
|
export declare const ZDistancesResult: z.ZodLazy<z.ZodObject<{
|
|
@@ -2537,28 +2525,22 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2537
2525
|
published_config: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
2538
2526
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
2539
2527
|
model: z.ZodDefault<z.ZodString>;
|
|
2540
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2541
2528
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2542
2529
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2543
2530
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2544
2531
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2545
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2546
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2547
2533
|
model: string;
|
|
2548
|
-
temperature: number;
|
|
2549
2534
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2550
2535
|
image_resolution_dpi: number;
|
|
2551
2536
|
n_consensus: number;
|
|
2552
|
-
web_search: boolean;
|
|
2553
2537
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2554
2538
|
}, {
|
|
2555
2539
|
model?: string | undefined;
|
|
2556
|
-
temperature?: number | undefined;
|
|
2557
2540
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2558
2541
|
image_resolution_dpi?: number | undefined;
|
|
2559
2542
|
n_consensus?: number | undefined;
|
|
2560
2543
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2561
|
-
web_search?: boolean | undefined;
|
|
2562
2544
|
}>>>;
|
|
2563
2545
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2564
2546
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -2584,11 +2566,9 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2584
2566
|
json_schema: Record<string, any>;
|
|
2585
2567
|
inference_settings: {
|
|
2586
2568
|
model: string;
|
|
2587
|
-
temperature: number;
|
|
2588
2569
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2589
2570
|
image_resolution_dpi: number;
|
|
2590
2571
|
n_consensus: number;
|
|
2591
|
-
web_search: boolean;
|
|
2592
2572
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2593
2573
|
};
|
|
2594
2574
|
computation_spec: {
|
|
@@ -2606,40 +2586,32 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2606
2586
|
};
|
|
2607
2587
|
inference_settings?: {
|
|
2608
2588
|
model?: string | undefined;
|
|
2609
|
-
temperature?: number | undefined;
|
|
2610
2589
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2611
2590
|
image_resolution_dpi?: number | undefined;
|
|
2612
2591
|
n_consensus?: number | undefined;
|
|
2613
2592
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2614
|
-
web_search?: boolean | undefined;
|
|
2615
2593
|
} | undefined;
|
|
2616
2594
|
origin?: string | undefined;
|
|
2617
2595
|
}>>>>;
|
|
2618
2596
|
draft_config: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
2619
2597
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
2620
2598
|
model: z.ZodDefault<z.ZodString>;
|
|
2621
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2622
2599
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2623
2600
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2624
2601
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2625
2602
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2626
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2627
2603
|
}, "strip", z.ZodTypeAny, {
|
|
2628
2604
|
model: string;
|
|
2629
|
-
temperature: number;
|
|
2630
2605
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2631
2606
|
image_resolution_dpi: number;
|
|
2632
2607
|
n_consensus: number;
|
|
2633
|
-
web_search: boolean;
|
|
2634
2608
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2635
2609
|
}, {
|
|
2636
2610
|
model?: string | undefined;
|
|
2637
|
-
temperature?: number | undefined;
|
|
2638
2611
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2639
2612
|
image_resolution_dpi?: number | undefined;
|
|
2640
2613
|
n_consensus?: number | undefined;
|
|
2641
2614
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2642
|
-
web_search?: boolean | undefined;
|
|
2643
2615
|
}>>>;
|
|
2644
2616
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2645
2617
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -2663,11 +2635,9 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2663
2635
|
json_schema: Record<string, any>;
|
|
2664
2636
|
inference_settings: {
|
|
2665
2637
|
model: string;
|
|
2666
|
-
temperature: number;
|
|
2667
2638
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2668
2639
|
image_resolution_dpi: number;
|
|
2669
2640
|
n_consensus: number;
|
|
2670
|
-
web_search: boolean;
|
|
2671
2641
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2672
2642
|
};
|
|
2673
2643
|
computation_spec: {
|
|
@@ -2684,12 +2654,10 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2684
2654
|
};
|
|
2685
2655
|
inference_settings?: {
|
|
2686
2656
|
model?: string | undefined;
|
|
2687
|
-
temperature?: number | undefined;
|
|
2688
2657
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2689
2658
|
image_resolution_dpi?: number | undefined;
|
|
2690
2659
|
n_consensus?: number | undefined;
|
|
2691
2660
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2692
|
-
web_search?: boolean | undefined;
|
|
2693
2661
|
} | undefined;
|
|
2694
2662
|
}>>>>;
|
|
2695
2663
|
is_published: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2721,11 +2689,9 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2721
2689
|
json_schema: Record<string, any>;
|
|
2722
2690
|
inference_settings: {
|
|
2723
2691
|
model: string;
|
|
2724
|
-
temperature: number;
|
|
2725
2692
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2726
2693
|
image_resolution_dpi: number;
|
|
2727
2694
|
n_consensus: number;
|
|
2728
|
-
web_search: boolean;
|
|
2729
2695
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2730
2696
|
};
|
|
2731
2697
|
computation_spec: {
|
|
@@ -2739,11 +2705,9 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2739
2705
|
json_schema: Record<string, any>;
|
|
2740
2706
|
inference_settings: {
|
|
2741
2707
|
model: string;
|
|
2742
|
-
temperature: number;
|
|
2743
2708
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2744
2709
|
image_resolution_dpi: number;
|
|
2745
2710
|
n_consensus: number;
|
|
2746
|
-
web_search: boolean;
|
|
2747
2711
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2748
2712
|
};
|
|
2749
2713
|
computation_spec: {
|
|
@@ -2769,12 +2733,10 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2769
2733
|
};
|
|
2770
2734
|
inference_settings?: {
|
|
2771
2735
|
model?: string | undefined;
|
|
2772
|
-
temperature?: number | undefined;
|
|
2773
2736
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2774
2737
|
image_resolution_dpi?: number | undefined;
|
|
2775
2738
|
n_consensus?: number | undefined;
|
|
2776
2739
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2777
|
-
web_search?: boolean | undefined;
|
|
2778
2740
|
} | undefined;
|
|
2779
2741
|
origin?: string | undefined;
|
|
2780
2742
|
} | null | undefined;
|
|
@@ -2787,12 +2749,10 @@ export declare const ZPatchProjectRequest: z.ZodLazy<z.ZodObject<{
|
|
|
2787
2749
|
};
|
|
2788
2750
|
inference_settings?: {
|
|
2789
2751
|
model?: string | undefined;
|
|
2790
|
-
temperature?: number | undefined;
|
|
2791
2752
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2792
2753
|
image_resolution_dpi?: number | undefined;
|
|
2793
2754
|
n_consensus?: number | undefined;
|
|
2794
2755
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2795
|
-
web_search?: boolean | undefined;
|
|
2796
2756
|
} | undefined;
|
|
2797
2757
|
} | null | undefined;
|
|
2798
2758
|
is_published?: boolean | null | undefined;
|
|
@@ -2805,28 +2765,22 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2805
2765
|
published_config: z.ZodLazy<z.ZodObject<{
|
|
2806
2766
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
2807
2767
|
model: z.ZodDefault<z.ZodString>;
|
|
2808
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2809
2768
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2810
2769
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2811
2770
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2812
2771
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2813
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2814
2772
|
}, "strip", z.ZodTypeAny, {
|
|
2815
2773
|
model: string;
|
|
2816
|
-
temperature: number;
|
|
2817
2774
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2818
2775
|
image_resolution_dpi: number;
|
|
2819
2776
|
n_consensus: number;
|
|
2820
|
-
web_search: boolean;
|
|
2821
2777
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2822
2778
|
}, {
|
|
2823
2779
|
model?: string | undefined;
|
|
2824
|
-
temperature?: number | undefined;
|
|
2825
2780
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2826
2781
|
image_resolution_dpi?: number | undefined;
|
|
2827
2782
|
n_consensus?: number | undefined;
|
|
2828
2783
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2829
|
-
web_search?: boolean | undefined;
|
|
2830
2784
|
}>>>;
|
|
2831
2785
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2832
2786
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -2852,11 +2806,9 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2852
2806
|
json_schema: Record<string, any>;
|
|
2853
2807
|
inference_settings: {
|
|
2854
2808
|
model: string;
|
|
2855
|
-
temperature: number;
|
|
2856
2809
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2857
2810
|
image_resolution_dpi: number;
|
|
2858
2811
|
n_consensus: number;
|
|
2859
|
-
web_search: boolean;
|
|
2860
2812
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2861
2813
|
};
|
|
2862
2814
|
computation_spec: {
|
|
@@ -2874,40 +2826,32 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2874
2826
|
};
|
|
2875
2827
|
inference_settings?: {
|
|
2876
2828
|
model?: string | undefined;
|
|
2877
|
-
temperature?: number | undefined;
|
|
2878
2829
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2879
2830
|
image_resolution_dpi?: number | undefined;
|
|
2880
2831
|
n_consensus?: number | undefined;
|
|
2881
2832
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2882
|
-
web_search?: boolean | undefined;
|
|
2883
2833
|
} | undefined;
|
|
2884
2834
|
origin?: string | undefined;
|
|
2885
2835
|
}>>;
|
|
2886
2836
|
draft_config: z.ZodLazy<z.ZodObject<{
|
|
2887
2837
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
2888
2838
|
model: z.ZodDefault<z.ZodString>;
|
|
2889
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
2890
2839
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
2891
2840
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
2892
2841
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
2893
2842
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2894
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
2895
2843
|
}, "strip", z.ZodTypeAny, {
|
|
2896
2844
|
model: string;
|
|
2897
|
-
temperature: number;
|
|
2898
2845
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2899
2846
|
image_resolution_dpi: number;
|
|
2900
2847
|
n_consensus: number;
|
|
2901
|
-
web_search: boolean;
|
|
2902
2848
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2903
2849
|
}, {
|
|
2904
2850
|
model?: string | undefined;
|
|
2905
|
-
temperature?: number | undefined;
|
|
2906
2851
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2907
2852
|
image_resolution_dpi?: number | undefined;
|
|
2908
2853
|
n_consensus?: number | undefined;
|
|
2909
2854
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2910
|
-
web_search?: boolean | undefined;
|
|
2911
2855
|
}>>>;
|
|
2912
2856
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2913
2857
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -2931,11 +2875,9 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2931
2875
|
json_schema: Record<string, any>;
|
|
2932
2876
|
inference_settings: {
|
|
2933
2877
|
model: string;
|
|
2934
|
-
temperature: number;
|
|
2935
2878
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2936
2879
|
image_resolution_dpi: number;
|
|
2937
2880
|
n_consensus: number;
|
|
2938
|
-
web_search: boolean;
|
|
2939
2881
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2940
2882
|
};
|
|
2941
2883
|
computation_spec: {
|
|
@@ -2952,12 +2894,10 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2952
2894
|
};
|
|
2953
2895
|
inference_settings?: {
|
|
2954
2896
|
model?: string | undefined;
|
|
2955
|
-
temperature?: number | undefined;
|
|
2956
2897
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
2957
2898
|
image_resolution_dpi?: number | undefined;
|
|
2958
2899
|
n_consensus?: number | undefined;
|
|
2959
2900
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2960
|
-
web_search?: boolean | undefined;
|
|
2961
2901
|
} | undefined;
|
|
2962
2902
|
}>>;
|
|
2963
2903
|
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2970,11 +2910,9 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2970
2910
|
json_schema: Record<string, any>;
|
|
2971
2911
|
inference_settings: {
|
|
2972
2912
|
model: string;
|
|
2973
|
-
temperature: number;
|
|
2974
2913
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2975
2914
|
image_resolution_dpi: number;
|
|
2976
2915
|
n_consensus: number;
|
|
2977
|
-
web_search: boolean;
|
|
2978
2916
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2979
2917
|
};
|
|
2980
2918
|
computation_spec: {
|
|
@@ -2988,11 +2926,9 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
2988
2926
|
json_schema: Record<string, any>;
|
|
2989
2927
|
inference_settings: {
|
|
2990
2928
|
model: string;
|
|
2991
|
-
temperature: number;
|
|
2992
2929
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
2993
2930
|
image_resolution_dpi: number;
|
|
2994
2931
|
n_consensus: number;
|
|
2995
|
-
web_search: boolean;
|
|
2996
2932
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
2997
2933
|
};
|
|
2998
2934
|
computation_spec: {
|
|
@@ -3015,12 +2951,10 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
3015
2951
|
};
|
|
3016
2952
|
inference_settings?: {
|
|
3017
2953
|
model?: string | undefined;
|
|
3018
|
-
temperature?: number | undefined;
|
|
3019
2954
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3020
2955
|
image_resolution_dpi?: number | undefined;
|
|
3021
2956
|
n_consensus?: number | undefined;
|
|
3022
2957
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3023
|
-
web_search?: boolean | undefined;
|
|
3024
2958
|
} | undefined;
|
|
3025
2959
|
origin?: string | undefined;
|
|
3026
2960
|
};
|
|
@@ -3033,12 +2967,10 @@ export declare const ZProject: z.ZodLazy<z.ZodObject<{
|
|
|
3033
2967
|
};
|
|
3034
2968
|
inference_settings?: {
|
|
3035
2969
|
model?: string | undefined;
|
|
3036
|
-
temperature?: number | undefined;
|
|
3037
2970
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3038
2971
|
image_resolution_dpi?: number | undefined;
|
|
3039
2972
|
n_consensus?: number | undefined;
|
|
3040
2973
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3041
|
-
web_search?: boolean | undefined;
|
|
3042
2974
|
} | undefined;
|
|
3043
2975
|
};
|
|
3044
2976
|
name?: string | undefined;
|
|
@@ -3271,28 +3203,22 @@ export type ComputationSpec = z.infer<typeof ZComputationSpec>;
|
|
|
3271
3203
|
export declare const ZDraftConfig: z.ZodLazy<z.ZodObject<{
|
|
3272
3204
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
3273
3205
|
model: z.ZodDefault<z.ZodString>;
|
|
3274
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
3275
3206
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
3276
3207
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
3277
3208
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
3278
3209
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3279
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
3280
3210
|
}, "strip", z.ZodTypeAny, {
|
|
3281
3211
|
model: string;
|
|
3282
|
-
temperature: number;
|
|
3283
3212
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3284
3213
|
image_resolution_dpi: number;
|
|
3285
3214
|
n_consensus: number;
|
|
3286
|
-
web_search: boolean;
|
|
3287
3215
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3288
3216
|
}, {
|
|
3289
3217
|
model?: string | undefined;
|
|
3290
|
-
temperature?: number | undefined;
|
|
3291
3218
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3292
3219
|
image_resolution_dpi?: number | undefined;
|
|
3293
3220
|
n_consensus?: number | undefined;
|
|
3294
3221
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3295
|
-
web_search?: boolean | undefined;
|
|
3296
3222
|
}>>>;
|
|
3297
3223
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3298
3224
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -3316,11 +3242,9 @@ export declare const ZDraftConfig: z.ZodLazy<z.ZodObject<{
|
|
|
3316
3242
|
json_schema: Record<string, any>;
|
|
3317
3243
|
inference_settings: {
|
|
3318
3244
|
model: string;
|
|
3319
|
-
temperature: number;
|
|
3320
3245
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3321
3246
|
image_resolution_dpi: number;
|
|
3322
3247
|
n_consensus: number;
|
|
3323
|
-
web_search: boolean;
|
|
3324
3248
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3325
3249
|
};
|
|
3326
3250
|
computation_spec: {
|
|
@@ -3337,12 +3261,10 @@ export declare const ZDraftConfig: z.ZodLazy<z.ZodObject<{
|
|
|
3337
3261
|
};
|
|
3338
3262
|
inference_settings?: {
|
|
3339
3263
|
model?: string | undefined;
|
|
3340
|
-
temperature?: number | undefined;
|
|
3341
3264
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3342
3265
|
image_resolution_dpi?: number | undefined;
|
|
3343
3266
|
n_consensus?: number | undefined;
|
|
3344
3267
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3345
|
-
web_search?: boolean | undefined;
|
|
3346
3268
|
} | undefined;
|
|
3347
3269
|
}>>;
|
|
3348
3270
|
export type DraftConfig = z.infer<typeof ZDraftConfig>;
|
|
@@ -3422,28 +3344,22 @@ export type PatchBuilderDocumentRequest = z.infer<typeof ZPatchBuilderDocumentRe
|
|
|
3422
3344
|
export declare const ZPublishedConfig: z.ZodLazy<z.ZodObject<{
|
|
3423
3345
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
3424
3346
|
model: z.ZodDefault<z.ZodString>;
|
|
3425
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
3426
3347
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
3427
3348
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
3428
3349
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
3429
3350
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3430
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
3431
3351
|
}, "strip", z.ZodTypeAny, {
|
|
3432
3352
|
model: string;
|
|
3433
|
-
temperature: number;
|
|
3434
3353
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3435
3354
|
image_resolution_dpi: number;
|
|
3436
3355
|
n_consensus: number;
|
|
3437
|
-
web_search: boolean;
|
|
3438
3356
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3439
3357
|
}, {
|
|
3440
3358
|
model?: string | undefined;
|
|
3441
|
-
temperature?: number | undefined;
|
|
3442
3359
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3443
3360
|
image_resolution_dpi?: number | undefined;
|
|
3444
3361
|
n_consensus?: number | undefined;
|
|
3445
3362
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3446
|
-
web_search?: boolean | undefined;
|
|
3447
3363
|
}>>>;
|
|
3448
3364
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3449
3365
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -3469,11 +3385,9 @@ export declare const ZPublishedConfig: z.ZodLazy<z.ZodObject<{
|
|
|
3469
3385
|
json_schema: Record<string, any>;
|
|
3470
3386
|
inference_settings: {
|
|
3471
3387
|
model: string;
|
|
3472
|
-
temperature: number;
|
|
3473
3388
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3474
3389
|
image_resolution_dpi: number;
|
|
3475
3390
|
n_consensus: number;
|
|
3476
|
-
web_search: boolean;
|
|
3477
3391
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3478
3392
|
};
|
|
3479
3393
|
computation_spec: {
|
|
@@ -3491,12 +3405,10 @@ export declare const ZPublishedConfig: z.ZodLazy<z.ZodObject<{
|
|
|
3491
3405
|
};
|
|
3492
3406
|
inference_settings?: {
|
|
3493
3407
|
model?: string | undefined;
|
|
3494
|
-
temperature?: number | undefined;
|
|
3495
3408
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3496
3409
|
image_resolution_dpi?: number | undefined;
|
|
3497
3410
|
n_consensus?: number | undefined;
|
|
3498
3411
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3499
|
-
web_search?: boolean | undefined;
|
|
3500
3412
|
} | undefined;
|
|
3501
3413
|
origin?: string | undefined;
|
|
3502
3414
|
}>>;
|
|
@@ -3617,28 +3529,22 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3617
3529
|
published_config: z.ZodLazy<z.ZodObject<{
|
|
3618
3530
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
3619
3531
|
model: z.ZodDefault<z.ZodString>;
|
|
3620
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
3621
3532
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
3622
3533
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
3623
3534
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
3624
3535
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3625
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
3626
3536
|
}, "strip", z.ZodTypeAny, {
|
|
3627
3537
|
model: string;
|
|
3628
|
-
temperature: number;
|
|
3629
3538
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3630
3539
|
image_resolution_dpi: number;
|
|
3631
3540
|
n_consensus: number;
|
|
3632
|
-
web_search: boolean;
|
|
3633
3541
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3634
3542
|
}, {
|
|
3635
3543
|
model?: string | undefined;
|
|
3636
|
-
temperature?: number | undefined;
|
|
3637
3544
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3638
3545
|
image_resolution_dpi?: number | undefined;
|
|
3639
3546
|
n_consensus?: number | undefined;
|
|
3640
3547
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3641
|
-
web_search?: boolean | undefined;
|
|
3642
3548
|
}>>>;
|
|
3643
3549
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3644
3550
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -3664,11 +3570,9 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3664
3570
|
json_schema: Record<string, any>;
|
|
3665
3571
|
inference_settings: {
|
|
3666
3572
|
model: string;
|
|
3667
|
-
temperature: number;
|
|
3668
3573
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3669
3574
|
image_resolution_dpi: number;
|
|
3670
3575
|
n_consensus: number;
|
|
3671
|
-
web_search: boolean;
|
|
3672
3576
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3673
3577
|
};
|
|
3674
3578
|
computation_spec: {
|
|
@@ -3686,40 +3590,32 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3686
3590
|
};
|
|
3687
3591
|
inference_settings?: {
|
|
3688
3592
|
model?: string | undefined;
|
|
3689
|
-
temperature?: number | undefined;
|
|
3690
3593
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3691
3594
|
image_resolution_dpi?: number | undefined;
|
|
3692
3595
|
n_consensus?: number | undefined;
|
|
3693
3596
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3694
|
-
web_search?: boolean | undefined;
|
|
3695
3597
|
} | undefined;
|
|
3696
3598
|
origin?: string | undefined;
|
|
3697
3599
|
}>>;
|
|
3698
3600
|
draft_config: z.ZodLazy<z.ZodObject<{
|
|
3699
3601
|
inference_settings: z.ZodDefault<z.ZodLazy<z.ZodObject<{
|
|
3700
3602
|
model: z.ZodDefault<z.ZodString>;
|
|
3701
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
3702
3603
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
3703
3604
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
3704
3605
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
3705
3606
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3706
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
3707
3607
|
}, "strip", z.ZodTypeAny, {
|
|
3708
3608
|
model: string;
|
|
3709
|
-
temperature: number;
|
|
3710
3609
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3711
3610
|
image_resolution_dpi: number;
|
|
3712
3611
|
n_consensus: number;
|
|
3713
|
-
web_search: boolean;
|
|
3714
3612
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3715
3613
|
}, {
|
|
3716
3614
|
model?: string | undefined;
|
|
3717
|
-
temperature?: number | undefined;
|
|
3718
3615
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3719
3616
|
image_resolution_dpi?: number | undefined;
|
|
3720
3617
|
n_consensus?: number | undefined;
|
|
3721
3618
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3722
|
-
web_search?: boolean | undefined;
|
|
3723
3619
|
}>>>;
|
|
3724
3620
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3725
3621
|
computation_spec: z.ZodLazy<z.ZodObject<{
|
|
@@ -3743,11 +3639,9 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3743
3639
|
json_schema: Record<string, any>;
|
|
3744
3640
|
inference_settings: {
|
|
3745
3641
|
model: string;
|
|
3746
|
-
temperature: number;
|
|
3747
3642
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3748
3643
|
image_resolution_dpi: number;
|
|
3749
3644
|
n_consensus: number;
|
|
3750
|
-
web_search: boolean;
|
|
3751
3645
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3752
3646
|
};
|
|
3753
3647
|
computation_spec: {
|
|
@@ -3764,12 +3658,10 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3764
3658
|
};
|
|
3765
3659
|
inference_settings?: {
|
|
3766
3660
|
model?: string | undefined;
|
|
3767
|
-
temperature?: number | undefined;
|
|
3768
3661
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3769
3662
|
image_resolution_dpi?: number | undefined;
|
|
3770
3663
|
n_consensus?: number | undefined;
|
|
3771
3664
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3772
|
-
web_search?: boolean | undefined;
|
|
3773
3665
|
} | undefined;
|
|
3774
3666
|
}>>;
|
|
3775
3667
|
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3785,11 +3677,9 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3785
3677
|
json_schema: Record<string, any>;
|
|
3786
3678
|
inference_settings: {
|
|
3787
3679
|
model: string;
|
|
3788
|
-
temperature: number;
|
|
3789
3680
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3790
3681
|
image_resolution_dpi: number;
|
|
3791
3682
|
n_consensus: number;
|
|
3792
|
-
web_search: boolean;
|
|
3793
3683
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3794
3684
|
};
|
|
3795
3685
|
computation_spec: {
|
|
@@ -3803,11 +3693,9 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3803
3693
|
json_schema: Record<string, any>;
|
|
3804
3694
|
inference_settings: {
|
|
3805
3695
|
model: string;
|
|
3806
|
-
temperature: number;
|
|
3807
3696
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
3808
3697
|
image_resolution_dpi: number;
|
|
3809
3698
|
n_consensus: number;
|
|
3810
|
-
web_search: boolean;
|
|
3811
3699
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3812
3700
|
};
|
|
3813
3701
|
computation_spec: {
|
|
@@ -3831,12 +3719,10 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3831
3719
|
};
|
|
3832
3720
|
inference_settings?: {
|
|
3833
3721
|
model?: string | undefined;
|
|
3834
|
-
temperature?: number | undefined;
|
|
3835
3722
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3836
3723
|
image_resolution_dpi?: number | undefined;
|
|
3837
3724
|
n_consensus?: number | undefined;
|
|
3838
3725
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3839
|
-
web_search?: boolean | undefined;
|
|
3840
3726
|
} | undefined;
|
|
3841
3727
|
origin?: string | undefined;
|
|
3842
3728
|
};
|
|
@@ -3849,12 +3735,10 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3849
3735
|
};
|
|
3850
3736
|
inference_settings?: {
|
|
3851
3737
|
model?: string | undefined;
|
|
3852
|
-
temperature?: number | undefined;
|
|
3853
3738
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
3854
3739
|
image_resolution_dpi?: number | undefined;
|
|
3855
3740
|
n_consensus?: number | undefined;
|
|
3856
3741
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
3857
|
-
web_search?: boolean | undefined;
|
|
3858
3742
|
} | undefined;
|
|
3859
3743
|
};
|
|
3860
3744
|
name?: string | undefined;
|
|
@@ -3862,23 +3746,460 @@ export declare const ZStoredProject: z.ZodLazy<z.ZodObject<{
|
|
|
3862
3746
|
is_schema_generated?: boolean | undefined;
|
|
3863
3747
|
}>>;
|
|
3864
3748
|
export type StoredProject = z.infer<typeof ZStoredProject>;
|
|
3749
|
+
export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
3750
|
+
run: z.ZodLazy<z.ZodObject<{
|
|
3751
|
+
id: z.ZodString;
|
|
3752
|
+
workflow_id: z.ZodString;
|
|
3753
|
+
workflow_name: z.ZodString;
|
|
3754
|
+
organization_id: z.ZodString;
|
|
3755
|
+
status: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>>;
|
|
3756
|
+
started_at: z.ZodString;
|
|
3757
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3758
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3759
|
+
steps: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
3760
|
+
node_id: z.ZodString;
|
|
3761
|
+
node_type: z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"extract">, z.ZodLiteral<"split">, z.ZodLiteral<"end">, z.ZodLiteral<"hil">]>;
|
|
3762
|
+
node_label: z.ZodString;
|
|
3763
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
3764
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3765
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3766
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3767
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3768
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3769
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
3770
|
+
type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"json">, z.ZodLiteral<"text">]>;
|
|
3771
|
+
document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3772
|
+
id: z.ZodString;
|
|
3773
|
+
filename: z.ZodString;
|
|
3774
|
+
mime_type: z.ZodString;
|
|
3775
|
+
}, "strip", z.ZodTypeAny, {
|
|
3776
|
+
filename: string;
|
|
3777
|
+
id: string;
|
|
3778
|
+
mime_type: string;
|
|
3779
|
+
}, {
|
|
3780
|
+
filename: string;
|
|
3781
|
+
id: string;
|
|
3782
|
+
mime_type: string;
|
|
3783
|
+
}>>>>;
|
|
3784
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3785
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3786
|
+
}, "strip", z.ZodTypeAny, {
|
|
3787
|
+
type: "text" | "file" | "json";
|
|
3788
|
+
data?: Record<string, any> | null | undefined;
|
|
3789
|
+
text?: string | null | undefined;
|
|
3790
|
+
document?: {
|
|
3791
|
+
filename: string;
|
|
3792
|
+
id: string;
|
|
3793
|
+
mime_type: string;
|
|
3794
|
+
} | null | undefined;
|
|
3795
|
+
}, {
|
|
3796
|
+
type: "text" | "file" | "json";
|
|
3797
|
+
data?: Record<string, any> | null | undefined;
|
|
3798
|
+
text?: string | null | undefined;
|
|
3799
|
+
document?: {
|
|
3800
|
+
filename: string;
|
|
3801
|
+
id: string;
|
|
3802
|
+
mime_type: string;
|
|
3803
|
+
} | null | undefined;
|
|
3804
|
+
}>>>>>;
|
|
3805
|
+
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3806
|
+
id: z.ZodString;
|
|
3807
|
+
filename: z.ZodString;
|
|
3808
|
+
mime_type: z.ZodString;
|
|
3809
|
+
}, "strip", z.ZodTypeAny, {
|
|
3810
|
+
filename: string;
|
|
3811
|
+
id: string;
|
|
3812
|
+
mime_type: string;
|
|
3813
|
+
}, {
|
|
3814
|
+
filename: string;
|
|
3815
|
+
id: string;
|
|
3816
|
+
mime_type: string;
|
|
3817
|
+
}>>>>;
|
|
3818
|
+
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3819
|
+
id: z.ZodString;
|
|
3820
|
+
filename: z.ZodString;
|
|
3821
|
+
mime_type: z.ZodString;
|
|
3822
|
+
}, "strip", z.ZodTypeAny, {
|
|
3823
|
+
filename: string;
|
|
3824
|
+
id: string;
|
|
3825
|
+
mime_type: string;
|
|
3826
|
+
}, {
|
|
3827
|
+
filename: string;
|
|
3828
|
+
id: string;
|
|
3829
|
+
mime_type: string;
|
|
3830
|
+
}>>>>;
|
|
3831
|
+
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
3832
|
+
id: z.ZodString;
|
|
3833
|
+
filename: z.ZodString;
|
|
3834
|
+
mime_type: z.ZodString;
|
|
3835
|
+
}, "strip", z.ZodTypeAny, {
|
|
3836
|
+
filename: string;
|
|
3837
|
+
id: string;
|
|
3838
|
+
mime_type: string;
|
|
3839
|
+
}, {
|
|
3840
|
+
filename: string;
|
|
3841
|
+
id: string;
|
|
3842
|
+
mime_type: string;
|
|
3843
|
+
}>>>>>;
|
|
3844
|
+
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3845
|
+
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3846
|
+
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3847
|
+
}, "strip", z.ZodTypeAny, {
|
|
3848
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3849
|
+
node_id: string;
|
|
3850
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
3851
|
+
node_label: string;
|
|
3852
|
+
error?: string | null | undefined;
|
|
3853
|
+
started_at?: string | null | undefined;
|
|
3854
|
+
completed_at?: string | null | undefined;
|
|
3855
|
+
duration_ms?: number | null | undefined;
|
|
3856
|
+
output?: Record<string, any> | null | undefined;
|
|
3857
|
+
handle_outputs?: Record<string, {
|
|
3858
|
+
type: "text" | "file" | "json";
|
|
3859
|
+
data?: Record<string, any> | null | undefined;
|
|
3860
|
+
text?: string | null | undefined;
|
|
3861
|
+
document?: {
|
|
3862
|
+
filename: string;
|
|
3863
|
+
id: string;
|
|
3864
|
+
mime_type: string;
|
|
3865
|
+
} | null | undefined;
|
|
3866
|
+
}> | null | undefined;
|
|
3867
|
+
input_document?: {
|
|
3868
|
+
filename: string;
|
|
3869
|
+
id: string;
|
|
3870
|
+
mime_type: string;
|
|
3871
|
+
} | null | undefined;
|
|
3872
|
+
output_document?: {
|
|
3873
|
+
filename: string;
|
|
3874
|
+
id: string;
|
|
3875
|
+
mime_type: string;
|
|
3876
|
+
} | null | undefined;
|
|
3877
|
+
split_documents?: Record<string, {
|
|
3878
|
+
filename: string;
|
|
3879
|
+
id: string;
|
|
3880
|
+
mime_type: string;
|
|
3881
|
+
}> | null | undefined;
|
|
3882
|
+
requires_human_review?: boolean | null | undefined;
|
|
3883
|
+
human_reviewed_at?: string | null | undefined;
|
|
3884
|
+
human_review_approved?: boolean | null | undefined;
|
|
3885
|
+
}, {
|
|
3886
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3887
|
+
node_id: string;
|
|
3888
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
3889
|
+
node_label: string;
|
|
3890
|
+
error?: string | null | undefined;
|
|
3891
|
+
started_at?: string | null | undefined;
|
|
3892
|
+
completed_at?: string | null | undefined;
|
|
3893
|
+
duration_ms?: number | null | undefined;
|
|
3894
|
+
output?: Record<string, any> | null | undefined;
|
|
3895
|
+
handle_outputs?: Record<string, {
|
|
3896
|
+
type: "text" | "file" | "json";
|
|
3897
|
+
data?: Record<string, any> | null | undefined;
|
|
3898
|
+
text?: string | null | undefined;
|
|
3899
|
+
document?: {
|
|
3900
|
+
filename: string;
|
|
3901
|
+
id: string;
|
|
3902
|
+
mime_type: string;
|
|
3903
|
+
} | null | undefined;
|
|
3904
|
+
}> | null | undefined;
|
|
3905
|
+
input_document?: {
|
|
3906
|
+
filename: string;
|
|
3907
|
+
id: string;
|
|
3908
|
+
mime_type: string;
|
|
3909
|
+
} | null | undefined;
|
|
3910
|
+
output_document?: {
|
|
3911
|
+
filename: string;
|
|
3912
|
+
id: string;
|
|
3913
|
+
mime_type: string;
|
|
3914
|
+
} | null | undefined;
|
|
3915
|
+
split_documents?: Record<string, {
|
|
3916
|
+
filename: string;
|
|
3917
|
+
id: string;
|
|
3918
|
+
mime_type: string;
|
|
3919
|
+
}> | null | undefined;
|
|
3920
|
+
requires_human_review?: boolean | null | undefined;
|
|
3921
|
+
human_reviewed_at?: string | null | undefined;
|
|
3922
|
+
human_review_approved?: boolean | null | undefined;
|
|
3923
|
+
}>>, "many">;
|
|
3924
|
+
input_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
3925
|
+
id: z.ZodString;
|
|
3926
|
+
filename: z.ZodString;
|
|
3927
|
+
mime_type: z.ZodString;
|
|
3928
|
+
}, "strip", z.ZodTypeAny, {
|
|
3929
|
+
filename: string;
|
|
3930
|
+
id: string;
|
|
3931
|
+
mime_type: string;
|
|
3932
|
+
}, {
|
|
3933
|
+
filename: string;
|
|
3934
|
+
id: string;
|
|
3935
|
+
mime_type: string;
|
|
3936
|
+
}>>>>>;
|
|
3937
|
+
final_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3938
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3939
|
+
created_at: z.ZodString;
|
|
3940
|
+
updated_at: z.ZodString;
|
|
3941
|
+
waiting_for_node_ids: z.ZodArray<z.ZodString, "many">;
|
|
3942
|
+
pending_node_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3943
|
+
}, "strip", z.ZodTypeAny, {
|
|
3944
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3945
|
+
id: string;
|
|
3946
|
+
created_at: string;
|
|
3947
|
+
started_at: string;
|
|
3948
|
+
organization_id: string;
|
|
3949
|
+
updated_at: string;
|
|
3950
|
+
workflow_id: string;
|
|
3951
|
+
workflow_name: string;
|
|
3952
|
+
steps: {
|
|
3953
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3954
|
+
node_id: string;
|
|
3955
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
3956
|
+
node_label: string;
|
|
3957
|
+
error?: string | null | undefined;
|
|
3958
|
+
started_at?: string | null | undefined;
|
|
3959
|
+
completed_at?: string | null | undefined;
|
|
3960
|
+
duration_ms?: number | null | undefined;
|
|
3961
|
+
output?: Record<string, any> | null | undefined;
|
|
3962
|
+
handle_outputs?: Record<string, {
|
|
3963
|
+
type: "text" | "file" | "json";
|
|
3964
|
+
data?: Record<string, any> | null | undefined;
|
|
3965
|
+
text?: string | null | undefined;
|
|
3966
|
+
document?: {
|
|
3967
|
+
filename: string;
|
|
3968
|
+
id: string;
|
|
3969
|
+
mime_type: string;
|
|
3970
|
+
} | null | undefined;
|
|
3971
|
+
}> | null | undefined;
|
|
3972
|
+
input_document?: {
|
|
3973
|
+
filename: string;
|
|
3974
|
+
id: string;
|
|
3975
|
+
mime_type: string;
|
|
3976
|
+
} | null | undefined;
|
|
3977
|
+
output_document?: {
|
|
3978
|
+
filename: string;
|
|
3979
|
+
id: string;
|
|
3980
|
+
mime_type: string;
|
|
3981
|
+
} | null | undefined;
|
|
3982
|
+
split_documents?: Record<string, {
|
|
3983
|
+
filename: string;
|
|
3984
|
+
id: string;
|
|
3985
|
+
mime_type: string;
|
|
3986
|
+
}> | null | undefined;
|
|
3987
|
+
requires_human_review?: boolean | null | undefined;
|
|
3988
|
+
human_reviewed_at?: string | null | undefined;
|
|
3989
|
+
human_review_approved?: boolean | null | undefined;
|
|
3990
|
+
}[];
|
|
3991
|
+
waiting_for_node_ids: string[];
|
|
3992
|
+
error?: string | null | undefined;
|
|
3993
|
+
completed_at?: string | null | undefined;
|
|
3994
|
+
duration_ms?: number | null | undefined;
|
|
3995
|
+
input_documents?: Record<string, {
|
|
3996
|
+
filename: string;
|
|
3997
|
+
id: string;
|
|
3998
|
+
mime_type: string;
|
|
3999
|
+
}> | null | undefined;
|
|
4000
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4001
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4002
|
+
}, {
|
|
4003
|
+
id: string;
|
|
4004
|
+
created_at: string;
|
|
4005
|
+
started_at: string;
|
|
4006
|
+
organization_id: string;
|
|
4007
|
+
updated_at: string;
|
|
4008
|
+
workflow_id: string;
|
|
4009
|
+
workflow_name: string;
|
|
4010
|
+
steps: {
|
|
4011
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4012
|
+
node_id: string;
|
|
4013
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4014
|
+
node_label: string;
|
|
4015
|
+
error?: string | null | undefined;
|
|
4016
|
+
started_at?: string | null | undefined;
|
|
4017
|
+
completed_at?: string | null | undefined;
|
|
4018
|
+
duration_ms?: number | null | undefined;
|
|
4019
|
+
output?: Record<string, any> | null | undefined;
|
|
4020
|
+
handle_outputs?: Record<string, {
|
|
4021
|
+
type: "text" | "file" | "json";
|
|
4022
|
+
data?: Record<string, any> | null | undefined;
|
|
4023
|
+
text?: string | null | undefined;
|
|
4024
|
+
document?: {
|
|
4025
|
+
filename: string;
|
|
4026
|
+
id: string;
|
|
4027
|
+
mime_type: string;
|
|
4028
|
+
} | null | undefined;
|
|
4029
|
+
}> | null | undefined;
|
|
4030
|
+
input_document?: {
|
|
4031
|
+
filename: string;
|
|
4032
|
+
id: string;
|
|
4033
|
+
mime_type: string;
|
|
4034
|
+
} | null | undefined;
|
|
4035
|
+
output_document?: {
|
|
4036
|
+
filename: string;
|
|
4037
|
+
id: string;
|
|
4038
|
+
mime_type: string;
|
|
4039
|
+
} | null | undefined;
|
|
4040
|
+
split_documents?: Record<string, {
|
|
4041
|
+
filename: string;
|
|
4042
|
+
id: string;
|
|
4043
|
+
mime_type: string;
|
|
4044
|
+
}> | null | undefined;
|
|
4045
|
+
requires_human_review?: boolean | null | undefined;
|
|
4046
|
+
human_reviewed_at?: string | null | undefined;
|
|
4047
|
+
human_review_approved?: boolean | null | undefined;
|
|
4048
|
+
}[];
|
|
4049
|
+
waiting_for_node_ids: string[];
|
|
4050
|
+
status?: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
4051
|
+
error?: string | null | undefined;
|
|
4052
|
+
completed_at?: string | null | undefined;
|
|
4053
|
+
duration_ms?: number | null | undefined;
|
|
4054
|
+
input_documents?: Record<string, {
|
|
4055
|
+
filename: string;
|
|
4056
|
+
id: string;
|
|
4057
|
+
mime_type: string;
|
|
4058
|
+
}> | null | undefined;
|
|
4059
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4060
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4061
|
+
}>>;
|
|
4062
|
+
cancellation_status: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"cancelled">, z.ZodLiteral<"cancellation_requested">, z.ZodLiteral<"cancellation_failed">]>>;
|
|
4063
|
+
}, "strip", z.ZodTypeAny, {
|
|
4064
|
+
run: {
|
|
4065
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4066
|
+
id: string;
|
|
4067
|
+
created_at: string;
|
|
4068
|
+
started_at: string;
|
|
4069
|
+
organization_id: string;
|
|
4070
|
+
updated_at: string;
|
|
4071
|
+
workflow_id: string;
|
|
4072
|
+
workflow_name: string;
|
|
4073
|
+
steps: {
|
|
4074
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4075
|
+
node_id: string;
|
|
4076
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4077
|
+
node_label: string;
|
|
4078
|
+
error?: string | null | undefined;
|
|
4079
|
+
started_at?: string | null | undefined;
|
|
4080
|
+
completed_at?: string | null | undefined;
|
|
4081
|
+
duration_ms?: number | null | undefined;
|
|
4082
|
+
output?: Record<string, any> | null | undefined;
|
|
4083
|
+
handle_outputs?: Record<string, {
|
|
4084
|
+
type: "text" | "file" | "json";
|
|
4085
|
+
data?: Record<string, any> | null | undefined;
|
|
4086
|
+
text?: string | null | undefined;
|
|
4087
|
+
document?: {
|
|
4088
|
+
filename: string;
|
|
4089
|
+
id: string;
|
|
4090
|
+
mime_type: string;
|
|
4091
|
+
} | null | undefined;
|
|
4092
|
+
}> | null | undefined;
|
|
4093
|
+
input_document?: {
|
|
4094
|
+
filename: string;
|
|
4095
|
+
id: string;
|
|
4096
|
+
mime_type: string;
|
|
4097
|
+
} | null | undefined;
|
|
4098
|
+
output_document?: {
|
|
4099
|
+
filename: string;
|
|
4100
|
+
id: string;
|
|
4101
|
+
mime_type: string;
|
|
4102
|
+
} | null | undefined;
|
|
4103
|
+
split_documents?: Record<string, {
|
|
4104
|
+
filename: string;
|
|
4105
|
+
id: string;
|
|
4106
|
+
mime_type: string;
|
|
4107
|
+
}> | null | undefined;
|
|
4108
|
+
requires_human_review?: boolean | null | undefined;
|
|
4109
|
+
human_reviewed_at?: string | null | undefined;
|
|
4110
|
+
human_review_approved?: boolean | null | undefined;
|
|
4111
|
+
}[];
|
|
4112
|
+
waiting_for_node_ids: string[];
|
|
4113
|
+
error?: string | null | undefined;
|
|
4114
|
+
completed_at?: string | null | undefined;
|
|
4115
|
+
duration_ms?: number | null | undefined;
|
|
4116
|
+
input_documents?: Record<string, {
|
|
4117
|
+
filename: string;
|
|
4118
|
+
id: string;
|
|
4119
|
+
mime_type: string;
|
|
4120
|
+
}> | null | undefined;
|
|
4121
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4122
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4123
|
+
};
|
|
4124
|
+
cancellation_status: "cancelled" | "cancellation_requested" | "cancellation_failed";
|
|
4125
|
+
}, {
|
|
4126
|
+
run: {
|
|
4127
|
+
id: string;
|
|
4128
|
+
created_at: string;
|
|
4129
|
+
started_at: string;
|
|
4130
|
+
organization_id: string;
|
|
4131
|
+
updated_at: string;
|
|
4132
|
+
workflow_id: string;
|
|
4133
|
+
workflow_name: string;
|
|
4134
|
+
steps: {
|
|
4135
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4136
|
+
node_id: string;
|
|
4137
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4138
|
+
node_label: string;
|
|
4139
|
+
error?: string | null | undefined;
|
|
4140
|
+
started_at?: string | null | undefined;
|
|
4141
|
+
completed_at?: string | null | undefined;
|
|
4142
|
+
duration_ms?: number | null | undefined;
|
|
4143
|
+
output?: Record<string, any> | null | undefined;
|
|
4144
|
+
handle_outputs?: Record<string, {
|
|
4145
|
+
type: "text" | "file" | "json";
|
|
4146
|
+
data?: Record<string, any> | null | undefined;
|
|
4147
|
+
text?: string | null | undefined;
|
|
4148
|
+
document?: {
|
|
4149
|
+
filename: string;
|
|
4150
|
+
id: string;
|
|
4151
|
+
mime_type: string;
|
|
4152
|
+
} | null | undefined;
|
|
4153
|
+
}> | null | undefined;
|
|
4154
|
+
input_document?: {
|
|
4155
|
+
filename: string;
|
|
4156
|
+
id: string;
|
|
4157
|
+
mime_type: string;
|
|
4158
|
+
} | null | undefined;
|
|
4159
|
+
output_document?: {
|
|
4160
|
+
filename: string;
|
|
4161
|
+
id: string;
|
|
4162
|
+
mime_type: string;
|
|
4163
|
+
} | null | undefined;
|
|
4164
|
+
split_documents?: Record<string, {
|
|
4165
|
+
filename: string;
|
|
4166
|
+
id: string;
|
|
4167
|
+
mime_type: string;
|
|
4168
|
+
}> | null | undefined;
|
|
4169
|
+
requires_human_review?: boolean | null | undefined;
|
|
4170
|
+
human_reviewed_at?: string | null | undefined;
|
|
4171
|
+
human_review_approved?: boolean | null | undefined;
|
|
4172
|
+
}[];
|
|
4173
|
+
waiting_for_node_ids: string[];
|
|
4174
|
+
status?: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
4175
|
+
error?: string | null | undefined;
|
|
4176
|
+
completed_at?: string | null | undefined;
|
|
4177
|
+
duration_ms?: number | null | undefined;
|
|
4178
|
+
input_documents?: Record<string, {
|
|
4179
|
+
filename: string;
|
|
4180
|
+
id: string;
|
|
4181
|
+
mime_type: string;
|
|
4182
|
+
}> | null | undefined;
|
|
4183
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4184
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4185
|
+
};
|
|
4186
|
+
cancellation_status?: "cancelled" | "cancellation_requested" | "cancellation_failed" | undefined;
|
|
4187
|
+
}>>;
|
|
4188
|
+
export type CancelWorkflowResponse = z.infer<typeof ZCancelWorkflowResponse>;
|
|
3865
4189
|
export declare const ZHandlePayload: z.ZodLazy<z.ZodObject<{
|
|
3866
4190
|
type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"json">, z.ZodLiteral<"text">]>;
|
|
3867
4191
|
document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4192
|
+
id: z.ZodString;
|
|
4193
|
+
filename: z.ZodString;
|
|
4194
|
+
mime_type: z.ZodString;
|
|
3872
4195
|
}, "strip", z.ZodTypeAny, {
|
|
3873
|
-
filename
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
gcs_path?: string | null | undefined;
|
|
4196
|
+
filename: string;
|
|
4197
|
+
id: string;
|
|
4198
|
+
mime_type: string;
|
|
3877
4199
|
}, {
|
|
3878
|
-
filename
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
gcs_path?: string | null | undefined;
|
|
4200
|
+
filename: string;
|
|
4201
|
+
id: string;
|
|
4202
|
+
mime_type: string;
|
|
3882
4203
|
}>>>>;
|
|
3883
4204
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3884
4205
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3887,45 +4208,546 @@ export declare const ZHandlePayload: z.ZodLazy<z.ZodObject<{
|
|
|
3887
4208
|
data?: Record<string, any> | null | undefined;
|
|
3888
4209
|
text?: string | null | undefined;
|
|
3889
4210
|
document?: {
|
|
3890
|
-
filename
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
gcs_path?: string | null | undefined;
|
|
4211
|
+
filename: string;
|
|
4212
|
+
id: string;
|
|
4213
|
+
mime_type: string;
|
|
3894
4214
|
} | null | undefined;
|
|
3895
4215
|
}, {
|
|
3896
4216
|
type: "text" | "file" | "json";
|
|
3897
4217
|
data?: Record<string, any> | null | undefined;
|
|
3898
4218
|
text?: string | null | undefined;
|
|
3899
4219
|
document?: {
|
|
3900
|
-
filename
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
gcs_path?: string | null | undefined;
|
|
4220
|
+
filename: string;
|
|
4221
|
+
id: string;
|
|
4222
|
+
mime_type: string;
|
|
3904
4223
|
} | null | undefined;
|
|
3905
4224
|
}>>;
|
|
3906
4225
|
export type HandlePayload = z.infer<typeof ZHandlePayload>;
|
|
3907
|
-
export declare const
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
4226
|
+
export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
4227
|
+
run: z.ZodLazy<z.ZodObject<{
|
|
4228
|
+
id: z.ZodString;
|
|
4229
|
+
workflow_id: z.ZodString;
|
|
4230
|
+
workflow_name: z.ZodString;
|
|
4231
|
+
organization_id: z.ZodString;
|
|
4232
|
+
status: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>>;
|
|
4233
|
+
started_at: z.ZodString;
|
|
4234
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4235
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4236
|
+
steps: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
4237
|
+
node_id: z.ZodString;
|
|
4238
|
+
node_type: z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"extract">, z.ZodLiteral<"split">, z.ZodLiteral<"end">, z.ZodLiteral<"hil">]>;
|
|
4239
|
+
node_label: z.ZodString;
|
|
4240
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4241
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4242
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4243
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4244
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4245
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4246
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4247
|
+
type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"json">, z.ZodLiteral<"text">]>;
|
|
4248
|
+
document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4249
|
+
id: z.ZodString;
|
|
4250
|
+
filename: z.ZodString;
|
|
4251
|
+
mime_type: z.ZodString;
|
|
4252
|
+
}, "strip", z.ZodTypeAny, {
|
|
4253
|
+
filename: string;
|
|
4254
|
+
id: string;
|
|
4255
|
+
mime_type: string;
|
|
4256
|
+
}, {
|
|
4257
|
+
filename: string;
|
|
4258
|
+
id: string;
|
|
4259
|
+
mime_type: string;
|
|
4260
|
+
}>>>>;
|
|
4261
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4262
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4263
|
+
}, "strip", z.ZodTypeAny, {
|
|
4264
|
+
type: "text" | "file" | "json";
|
|
4265
|
+
data?: Record<string, any> | null | undefined;
|
|
4266
|
+
text?: string | null | undefined;
|
|
4267
|
+
document?: {
|
|
4268
|
+
filename: string;
|
|
4269
|
+
id: string;
|
|
4270
|
+
mime_type: string;
|
|
4271
|
+
} | null | undefined;
|
|
4272
|
+
}, {
|
|
4273
|
+
type: "text" | "file" | "json";
|
|
4274
|
+
data?: Record<string, any> | null | undefined;
|
|
4275
|
+
text?: string | null | undefined;
|
|
4276
|
+
document?: {
|
|
4277
|
+
filename: string;
|
|
4278
|
+
id: string;
|
|
4279
|
+
mime_type: string;
|
|
4280
|
+
} | null | undefined;
|
|
4281
|
+
}>>>>>;
|
|
4282
|
+
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4283
|
+
id: z.ZodString;
|
|
4284
|
+
filename: z.ZodString;
|
|
4285
|
+
mime_type: z.ZodString;
|
|
4286
|
+
}, "strip", z.ZodTypeAny, {
|
|
4287
|
+
filename: string;
|
|
4288
|
+
id: string;
|
|
4289
|
+
mime_type: string;
|
|
4290
|
+
}, {
|
|
4291
|
+
filename: string;
|
|
4292
|
+
id: string;
|
|
4293
|
+
mime_type: string;
|
|
4294
|
+
}>>>>;
|
|
4295
|
+
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4296
|
+
id: z.ZodString;
|
|
4297
|
+
filename: z.ZodString;
|
|
4298
|
+
mime_type: z.ZodString;
|
|
4299
|
+
}, "strip", z.ZodTypeAny, {
|
|
4300
|
+
filename: string;
|
|
4301
|
+
id: string;
|
|
4302
|
+
mime_type: string;
|
|
4303
|
+
}, {
|
|
4304
|
+
filename: string;
|
|
4305
|
+
id: string;
|
|
4306
|
+
mime_type: string;
|
|
4307
|
+
}>>>>;
|
|
4308
|
+
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4309
|
+
id: z.ZodString;
|
|
4310
|
+
filename: z.ZodString;
|
|
4311
|
+
mime_type: z.ZodString;
|
|
4312
|
+
}, "strip", z.ZodTypeAny, {
|
|
4313
|
+
filename: string;
|
|
4314
|
+
id: string;
|
|
4315
|
+
mime_type: string;
|
|
4316
|
+
}, {
|
|
4317
|
+
filename: string;
|
|
4318
|
+
id: string;
|
|
4319
|
+
mime_type: string;
|
|
4320
|
+
}>>>>>;
|
|
4321
|
+
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4322
|
+
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4323
|
+
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4324
|
+
}, "strip", z.ZodTypeAny, {
|
|
4325
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4326
|
+
node_id: string;
|
|
4327
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4328
|
+
node_label: string;
|
|
4329
|
+
error?: string | null | undefined;
|
|
4330
|
+
started_at?: string | null | undefined;
|
|
4331
|
+
completed_at?: string | null | undefined;
|
|
4332
|
+
duration_ms?: number | null | undefined;
|
|
4333
|
+
output?: Record<string, any> | null | undefined;
|
|
4334
|
+
handle_outputs?: Record<string, {
|
|
4335
|
+
type: "text" | "file" | "json";
|
|
4336
|
+
data?: Record<string, any> | null | undefined;
|
|
4337
|
+
text?: string | null | undefined;
|
|
4338
|
+
document?: {
|
|
4339
|
+
filename: string;
|
|
4340
|
+
id: string;
|
|
4341
|
+
mime_type: string;
|
|
4342
|
+
} | null | undefined;
|
|
4343
|
+
}> | null | undefined;
|
|
4344
|
+
input_document?: {
|
|
4345
|
+
filename: string;
|
|
4346
|
+
id: string;
|
|
4347
|
+
mime_type: string;
|
|
4348
|
+
} | null | undefined;
|
|
4349
|
+
output_document?: {
|
|
4350
|
+
filename: string;
|
|
4351
|
+
id: string;
|
|
4352
|
+
mime_type: string;
|
|
4353
|
+
} | null | undefined;
|
|
4354
|
+
split_documents?: Record<string, {
|
|
4355
|
+
filename: string;
|
|
4356
|
+
id: string;
|
|
4357
|
+
mime_type: string;
|
|
4358
|
+
}> | null | undefined;
|
|
4359
|
+
requires_human_review?: boolean | null | undefined;
|
|
4360
|
+
human_reviewed_at?: string | null | undefined;
|
|
4361
|
+
human_review_approved?: boolean | null | undefined;
|
|
4362
|
+
}, {
|
|
4363
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4364
|
+
node_id: string;
|
|
4365
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4366
|
+
node_label: string;
|
|
4367
|
+
error?: string | null | undefined;
|
|
4368
|
+
started_at?: string | null | undefined;
|
|
4369
|
+
completed_at?: string | null | undefined;
|
|
4370
|
+
duration_ms?: number | null | undefined;
|
|
4371
|
+
output?: Record<string, any> | null | undefined;
|
|
4372
|
+
handle_outputs?: Record<string, {
|
|
4373
|
+
type: "text" | "file" | "json";
|
|
4374
|
+
data?: Record<string, any> | null | undefined;
|
|
4375
|
+
text?: string | null | undefined;
|
|
4376
|
+
document?: {
|
|
4377
|
+
filename: string;
|
|
4378
|
+
id: string;
|
|
4379
|
+
mime_type: string;
|
|
4380
|
+
} | null | undefined;
|
|
4381
|
+
}> | null | undefined;
|
|
4382
|
+
input_document?: {
|
|
4383
|
+
filename: string;
|
|
4384
|
+
id: string;
|
|
4385
|
+
mime_type: string;
|
|
4386
|
+
} | null | undefined;
|
|
4387
|
+
output_document?: {
|
|
4388
|
+
filename: string;
|
|
4389
|
+
id: string;
|
|
4390
|
+
mime_type: string;
|
|
4391
|
+
} | null | undefined;
|
|
4392
|
+
split_documents?: Record<string, {
|
|
4393
|
+
filename: string;
|
|
4394
|
+
id: string;
|
|
4395
|
+
mime_type: string;
|
|
4396
|
+
}> | null | undefined;
|
|
4397
|
+
requires_human_review?: boolean | null | undefined;
|
|
4398
|
+
human_reviewed_at?: string | null | undefined;
|
|
4399
|
+
human_review_approved?: boolean | null | undefined;
|
|
4400
|
+
}>>, "many">;
|
|
4401
|
+
input_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4402
|
+
id: z.ZodString;
|
|
4403
|
+
filename: z.ZodString;
|
|
4404
|
+
mime_type: z.ZodString;
|
|
4405
|
+
}, "strip", z.ZodTypeAny, {
|
|
4406
|
+
filename: string;
|
|
4407
|
+
id: string;
|
|
4408
|
+
mime_type: string;
|
|
4409
|
+
}, {
|
|
4410
|
+
filename: string;
|
|
4411
|
+
id: string;
|
|
4412
|
+
mime_type: string;
|
|
4413
|
+
}>>>>>;
|
|
4414
|
+
final_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4415
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4416
|
+
created_at: z.ZodString;
|
|
4417
|
+
updated_at: z.ZodString;
|
|
4418
|
+
waiting_for_node_ids: z.ZodArray<z.ZodString, "many">;
|
|
4419
|
+
pending_node_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4420
|
+
}, "strip", z.ZodTypeAny, {
|
|
4421
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4422
|
+
id: string;
|
|
4423
|
+
created_at: string;
|
|
4424
|
+
started_at: string;
|
|
4425
|
+
organization_id: string;
|
|
4426
|
+
updated_at: string;
|
|
4427
|
+
workflow_id: string;
|
|
4428
|
+
workflow_name: string;
|
|
4429
|
+
steps: {
|
|
4430
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4431
|
+
node_id: string;
|
|
4432
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4433
|
+
node_label: string;
|
|
4434
|
+
error?: string | null | undefined;
|
|
4435
|
+
started_at?: string | null | undefined;
|
|
4436
|
+
completed_at?: string | null | undefined;
|
|
4437
|
+
duration_ms?: number | null | undefined;
|
|
4438
|
+
output?: Record<string, any> | null | undefined;
|
|
4439
|
+
handle_outputs?: Record<string, {
|
|
4440
|
+
type: "text" | "file" | "json";
|
|
4441
|
+
data?: Record<string, any> | null | undefined;
|
|
4442
|
+
text?: string | null | undefined;
|
|
4443
|
+
document?: {
|
|
4444
|
+
filename: string;
|
|
4445
|
+
id: string;
|
|
4446
|
+
mime_type: string;
|
|
4447
|
+
} | null | undefined;
|
|
4448
|
+
}> | null | undefined;
|
|
4449
|
+
input_document?: {
|
|
4450
|
+
filename: string;
|
|
4451
|
+
id: string;
|
|
4452
|
+
mime_type: string;
|
|
4453
|
+
} | null | undefined;
|
|
4454
|
+
output_document?: {
|
|
4455
|
+
filename: string;
|
|
4456
|
+
id: string;
|
|
4457
|
+
mime_type: string;
|
|
4458
|
+
} | null | undefined;
|
|
4459
|
+
split_documents?: Record<string, {
|
|
4460
|
+
filename: string;
|
|
4461
|
+
id: string;
|
|
4462
|
+
mime_type: string;
|
|
4463
|
+
}> | null | undefined;
|
|
4464
|
+
requires_human_review?: boolean | null | undefined;
|
|
4465
|
+
human_reviewed_at?: string | null | undefined;
|
|
4466
|
+
human_review_approved?: boolean | null | undefined;
|
|
4467
|
+
}[];
|
|
4468
|
+
waiting_for_node_ids: string[];
|
|
4469
|
+
error?: string | null | undefined;
|
|
4470
|
+
completed_at?: string | null | undefined;
|
|
4471
|
+
duration_ms?: number | null | undefined;
|
|
4472
|
+
input_documents?: Record<string, {
|
|
4473
|
+
filename: string;
|
|
4474
|
+
id: string;
|
|
4475
|
+
mime_type: string;
|
|
4476
|
+
}> | null | undefined;
|
|
4477
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4478
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4479
|
+
}, {
|
|
4480
|
+
id: string;
|
|
4481
|
+
created_at: string;
|
|
4482
|
+
started_at: string;
|
|
4483
|
+
organization_id: string;
|
|
4484
|
+
updated_at: string;
|
|
4485
|
+
workflow_id: string;
|
|
4486
|
+
workflow_name: string;
|
|
4487
|
+
steps: {
|
|
4488
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4489
|
+
node_id: string;
|
|
4490
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4491
|
+
node_label: string;
|
|
4492
|
+
error?: string | null | undefined;
|
|
4493
|
+
started_at?: string | null | undefined;
|
|
4494
|
+
completed_at?: string | null | undefined;
|
|
4495
|
+
duration_ms?: number | null | undefined;
|
|
4496
|
+
output?: Record<string, any> | null | undefined;
|
|
4497
|
+
handle_outputs?: Record<string, {
|
|
4498
|
+
type: "text" | "file" | "json";
|
|
4499
|
+
data?: Record<string, any> | null | undefined;
|
|
4500
|
+
text?: string | null | undefined;
|
|
4501
|
+
document?: {
|
|
4502
|
+
filename: string;
|
|
4503
|
+
id: string;
|
|
4504
|
+
mime_type: string;
|
|
4505
|
+
} | null | undefined;
|
|
4506
|
+
}> | null | undefined;
|
|
4507
|
+
input_document?: {
|
|
4508
|
+
filename: string;
|
|
4509
|
+
id: string;
|
|
4510
|
+
mime_type: string;
|
|
4511
|
+
} | null | undefined;
|
|
4512
|
+
output_document?: {
|
|
4513
|
+
filename: string;
|
|
4514
|
+
id: string;
|
|
4515
|
+
mime_type: string;
|
|
4516
|
+
} | null | undefined;
|
|
4517
|
+
split_documents?: Record<string, {
|
|
4518
|
+
filename: string;
|
|
4519
|
+
id: string;
|
|
4520
|
+
mime_type: string;
|
|
4521
|
+
}> | null | undefined;
|
|
4522
|
+
requires_human_review?: boolean | null | undefined;
|
|
4523
|
+
human_reviewed_at?: string | null | undefined;
|
|
4524
|
+
human_review_approved?: boolean | null | undefined;
|
|
4525
|
+
}[];
|
|
4526
|
+
waiting_for_node_ids: string[];
|
|
4527
|
+
status?: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
4528
|
+
error?: string | null | undefined;
|
|
4529
|
+
completed_at?: string | null | undefined;
|
|
4530
|
+
duration_ms?: number | null | undefined;
|
|
4531
|
+
input_documents?: Record<string, {
|
|
4532
|
+
filename: string;
|
|
4533
|
+
id: string;
|
|
4534
|
+
mime_type: string;
|
|
4535
|
+
}> | null | undefined;
|
|
4536
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4537
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4538
|
+
}>>;
|
|
4539
|
+
resume_status: z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"queued">, z.ZodLiteral<"already_processed">]>;
|
|
4540
|
+
queue_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4541
|
+
queue_item_id: z.ZodString;
|
|
3912
4542
|
}, "strip", z.ZodTypeAny, {
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
4543
|
+
run: {
|
|
4544
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4545
|
+
id: string;
|
|
4546
|
+
created_at: string;
|
|
4547
|
+
started_at: string;
|
|
4548
|
+
organization_id: string;
|
|
4549
|
+
updated_at: string;
|
|
4550
|
+
workflow_id: string;
|
|
4551
|
+
workflow_name: string;
|
|
4552
|
+
steps: {
|
|
4553
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4554
|
+
node_id: string;
|
|
4555
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4556
|
+
node_label: string;
|
|
4557
|
+
error?: string | null | undefined;
|
|
4558
|
+
started_at?: string | null | undefined;
|
|
4559
|
+
completed_at?: string | null | undefined;
|
|
4560
|
+
duration_ms?: number | null | undefined;
|
|
4561
|
+
output?: Record<string, any> | null | undefined;
|
|
4562
|
+
handle_outputs?: Record<string, {
|
|
4563
|
+
type: "text" | "file" | "json";
|
|
4564
|
+
data?: Record<string, any> | null | undefined;
|
|
4565
|
+
text?: string | null | undefined;
|
|
4566
|
+
document?: {
|
|
4567
|
+
filename: string;
|
|
4568
|
+
id: string;
|
|
4569
|
+
mime_type: string;
|
|
4570
|
+
} | null | undefined;
|
|
4571
|
+
}> | null | undefined;
|
|
4572
|
+
input_document?: {
|
|
4573
|
+
filename: string;
|
|
4574
|
+
id: string;
|
|
4575
|
+
mime_type: string;
|
|
4576
|
+
} | null | undefined;
|
|
4577
|
+
output_document?: {
|
|
4578
|
+
filename: string;
|
|
4579
|
+
id: string;
|
|
4580
|
+
mime_type: string;
|
|
4581
|
+
} | null | undefined;
|
|
4582
|
+
split_documents?: Record<string, {
|
|
4583
|
+
filename: string;
|
|
4584
|
+
id: string;
|
|
4585
|
+
mime_type: string;
|
|
4586
|
+
}> | null | undefined;
|
|
4587
|
+
requires_human_review?: boolean | null | undefined;
|
|
4588
|
+
human_reviewed_at?: string | null | undefined;
|
|
4589
|
+
human_review_approved?: boolean | null | undefined;
|
|
4590
|
+
}[];
|
|
4591
|
+
waiting_for_node_ids: string[];
|
|
4592
|
+
error?: string | null | undefined;
|
|
4593
|
+
completed_at?: string | null | undefined;
|
|
4594
|
+
duration_ms?: number | null | undefined;
|
|
4595
|
+
input_documents?: Record<string, {
|
|
4596
|
+
filename: string;
|
|
4597
|
+
id: string;
|
|
4598
|
+
mime_type: string;
|
|
4599
|
+
}> | null | undefined;
|
|
4600
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4601
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4602
|
+
};
|
|
4603
|
+
resume_status: "queued" | "processing" | "already_processed";
|
|
4604
|
+
queue_item_id: string;
|
|
4605
|
+
queue_position?: number | null | undefined;
|
|
3917
4606
|
}, {
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
4607
|
+
run: {
|
|
4608
|
+
id: string;
|
|
4609
|
+
created_at: string;
|
|
4610
|
+
started_at: string;
|
|
4611
|
+
organization_id: string;
|
|
4612
|
+
updated_at: string;
|
|
4613
|
+
workflow_id: string;
|
|
4614
|
+
workflow_name: string;
|
|
4615
|
+
steps: {
|
|
4616
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4617
|
+
node_id: string;
|
|
4618
|
+
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4619
|
+
node_label: string;
|
|
4620
|
+
error?: string | null | undefined;
|
|
4621
|
+
started_at?: string | null | undefined;
|
|
4622
|
+
completed_at?: string | null | undefined;
|
|
4623
|
+
duration_ms?: number | null | undefined;
|
|
4624
|
+
output?: Record<string, any> | null | undefined;
|
|
4625
|
+
handle_outputs?: Record<string, {
|
|
4626
|
+
type: "text" | "file" | "json";
|
|
4627
|
+
data?: Record<string, any> | null | undefined;
|
|
4628
|
+
text?: string | null | undefined;
|
|
4629
|
+
document?: {
|
|
4630
|
+
filename: string;
|
|
4631
|
+
id: string;
|
|
4632
|
+
mime_type: string;
|
|
4633
|
+
} | null | undefined;
|
|
4634
|
+
}> | null | undefined;
|
|
4635
|
+
input_document?: {
|
|
4636
|
+
filename: string;
|
|
4637
|
+
id: string;
|
|
4638
|
+
mime_type: string;
|
|
4639
|
+
} | null | undefined;
|
|
4640
|
+
output_document?: {
|
|
4641
|
+
filename: string;
|
|
4642
|
+
id: string;
|
|
4643
|
+
mime_type: string;
|
|
4644
|
+
} | null | undefined;
|
|
4645
|
+
split_documents?: Record<string, {
|
|
4646
|
+
filename: string;
|
|
4647
|
+
id: string;
|
|
4648
|
+
mime_type: string;
|
|
4649
|
+
}> | null | undefined;
|
|
4650
|
+
requires_human_review?: boolean | null | undefined;
|
|
4651
|
+
human_reviewed_at?: string | null | undefined;
|
|
4652
|
+
human_review_approved?: boolean | null | undefined;
|
|
4653
|
+
}[];
|
|
4654
|
+
waiting_for_node_ids: string[];
|
|
4655
|
+
status?: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
4656
|
+
error?: string | null | undefined;
|
|
4657
|
+
completed_at?: string | null | undefined;
|
|
4658
|
+
duration_ms?: number | null | undefined;
|
|
4659
|
+
input_documents?: Record<string, {
|
|
4660
|
+
filename: string;
|
|
4661
|
+
id: string;
|
|
4662
|
+
mime_type: string;
|
|
4663
|
+
}> | null | undefined;
|
|
4664
|
+
final_outputs?: Record<string, any> | null | undefined;
|
|
4665
|
+
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
4666
|
+
};
|
|
4667
|
+
resume_status: "queued" | "processing" | "already_processed";
|
|
4668
|
+
queue_item_id: string;
|
|
4669
|
+
queue_position?: number | null | undefined;
|
|
3922
4670
|
}>>;
|
|
3923
|
-
export type
|
|
4671
|
+
export type ResumeWorkflowResponse = z.infer<typeof ZResumeWorkflowResponse>;
|
|
4672
|
+
export declare const ZStepOutputResponse: z.ZodLazy<z.ZodObject<{
|
|
4673
|
+
node_id: z.ZodString;
|
|
4674
|
+
node_type: z.ZodString;
|
|
4675
|
+
node_label: z.ZodString;
|
|
4676
|
+
status: z.ZodString;
|
|
4677
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4678
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4679
|
+
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4680
|
+
}, "strip", z.ZodTypeAny, {
|
|
4681
|
+
status: string;
|
|
4682
|
+
node_id: string;
|
|
4683
|
+
node_type: string;
|
|
4684
|
+
node_label: string;
|
|
4685
|
+
output?: Record<string, any> | null | undefined;
|
|
4686
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4687
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4688
|
+
}, {
|
|
4689
|
+
status: string;
|
|
4690
|
+
node_id: string;
|
|
4691
|
+
node_type: string;
|
|
4692
|
+
node_label: string;
|
|
4693
|
+
output?: Record<string, any> | null | undefined;
|
|
4694
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4695
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4696
|
+
}>>;
|
|
4697
|
+
export type StepOutputResponse = z.infer<typeof ZStepOutputResponse>;
|
|
4698
|
+
export declare const ZStepOutputsBatchResponse: z.ZodLazy<z.ZodObject<{
|
|
4699
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4700
|
+
node_id: z.ZodString;
|
|
4701
|
+
node_type: z.ZodString;
|
|
4702
|
+
node_label: z.ZodString;
|
|
4703
|
+
status: z.ZodString;
|
|
4704
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4705
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4706
|
+
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4707
|
+
}, "strip", z.ZodTypeAny, {
|
|
4708
|
+
status: string;
|
|
4709
|
+
node_id: string;
|
|
4710
|
+
node_type: string;
|
|
4711
|
+
node_label: string;
|
|
4712
|
+
output?: Record<string, any> | null | undefined;
|
|
4713
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4714
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4715
|
+
}, {
|
|
4716
|
+
status: string;
|
|
4717
|
+
node_id: string;
|
|
4718
|
+
node_type: string;
|
|
4719
|
+
node_label: string;
|
|
4720
|
+
output?: Record<string, any> | null | undefined;
|
|
4721
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4722
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4723
|
+
}>>>;
|
|
4724
|
+
}, "strip", z.ZodTypeAny, {
|
|
4725
|
+
outputs: Record<string, {
|
|
4726
|
+
status: string;
|
|
4727
|
+
node_id: string;
|
|
4728
|
+
node_type: string;
|
|
4729
|
+
node_label: string;
|
|
4730
|
+
output?: Record<string, any> | null | undefined;
|
|
4731
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4732
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4733
|
+
}>;
|
|
4734
|
+
}, {
|
|
4735
|
+
outputs: Record<string, {
|
|
4736
|
+
status: string;
|
|
4737
|
+
node_id: string;
|
|
4738
|
+
node_type: string;
|
|
4739
|
+
node_label: string;
|
|
4740
|
+
output?: Record<string, any> | null | undefined;
|
|
4741
|
+
handle_outputs?: Record<string, any> | null | undefined;
|
|
4742
|
+
handle_inputs?: Record<string, any> | null | undefined;
|
|
4743
|
+
}>;
|
|
4744
|
+
}>>;
|
|
4745
|
+
export type StepOutputsBatchResponse = z.infer<typeof ZStepOutputsBatchResponse>;
|
|
3924
4746
|
export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
3925
4747
|
node_id: z.ZodString;
|
|
3926
4748
|
node_type: z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"extract">, z.ZodLiteral<"split">, z.ZodLiteral<"end">, z.ZodLiteral<"hil">]>;
|
|
3927
4749
|
node_label: z.ZodString;
|
|
3928
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">]>;
|
|
4750
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
3929
4751
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3930
4752
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3931
4753
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3934,20 +4756,17 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
3934
4756
|
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
3935
4757
|
type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"json">, z.ZodLiteral<"text">]>;
|
|
3936
4758
|
document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4759
|
+
id: z.ZodString;
|
|
4760
|
+
filename: z.ZodString;
|
|
4761
|
+
mime_type: z.ZodString;
|
|
3941
4762
|
}, "strip", z.ZodTypeAny, {
|
|
3942
|
-
filename
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
gcs_path?: string | null | undefined;
|
|
4763
|
+
filename: string;
|
|
4764
|
+
id: string;
|
|
4765
|
+
mime_type: string;
|
|
3946
4766
|
}, {
|
|
3947
|
-
filename
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
gcs_path?: string | null | undefined;
|
|
4767
|
+
filename: string;
|
|
4768
|
+
id: string;
|
|
4769
|
+
mime_type: string;
|
|
3951
4770
|
}>>>>;
|
|
3952
4771
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3953
4772
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3956,75 +4775,64 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
3956
4775
|
data?: Record<string, any> | null | undefined;
|
|
3957
4776
|
text?: string | null | undefined;
|
|
3958
4777
|
document?: {
|
|
3959
|
-
filename
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
gcs_path?: string | null | undefined;
|
|
4778
|
+
filename: string;
|
|
4779
|
+
id: string;
|
|
4780
|
+
mime_type: string;
|
|
3963
4781
|
} | null | undefined;
|
|
3964
4782
|
}, {
|
|
3965
4783
|
type: "text" | "file" | "json";
|
|
3966
4784
|
data?: Record<string, any> | null | undefined;
|
|
3967
4785
|
text?: string | null | undefined;
|
|
3968
4786
|
document?: {
|
|
3969
|
-
filename
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
gcs_path?: string | null | undefined;
|
|
4787
|
+
filename: string;
|
|
4788
|
+
id: string;
|
|
4789
|
+
mime_type: string;
|
|
3973
4790
|
} | null | undefined;
|
|
3974
4791
|
}>>>>>;
|
|
3975
4792
|
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4793
|
+
id: z.ZodString;
|
|
4794
|
+
filename: z.ZodString;
|
|
4795
|
+
mime_type: z.ZodString;
|
|
3980
4796
|
}, "strip", z.ZodTypeAny, {
|
|
3981
|
-
filename
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
gcs_path?: string | null | undefined;
|
|
4797
|
+
filename: string;
|
|
4798
|
+
id: string;
|
|
4799
|
+
mime_type: string;
|
|
3985
4800
|
}, {
|
|
3986
|
-
filename
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
gcs_path?: string | null | undefined;
|
|
4801
|
+
filename: string;
|
|
4802
|
+
id: string;
|
|
4803
|
+
mime_type: string;
|
|
3990
4804
|
}>>>>;
|
|
3991
4805
|
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4806
|
+
id: z.ZodString;
|
|
4807
|
+
filename: z.ZodString;
|
|
4808
|
+
mime_type: z.ZodString;
|
|
3996
4809
|
}, "strip", z.ZodTypeAny, {
|
|
3997
|
-
filename
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
gcs_path?: string | null | undefined;
|
|
4810
|
+
filename: string;
|
|
4811
|
+
id: string;
|
|
4812
|
+
mime_type: string;
|
|
4001
4813
|
}, {
|
|
4002
|
-
filename
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
gcs_path?: string | null | undefined;
|
|
4814
|
+
filename: string;
|
|
4815
|
+
id: string;
|
|
4816
|
+
mime_type: string;
|
|
4006
4817
|
}>>>>;
|
|
4007
4818
|
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4819
|
+
id: z.ZodString;
|
|
4820
|
+
filename: z.ZodString;
|
|
4821
|
+
mime_type: z.ZodString;
|
|
4012
4822
|
}, "strip", z.ZodTypeAny, {
|
|
4013
|
-
filename
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
gcs_path?: string | null | undefined;
|
|
4823
|
+
filename: string;
|
|
4824
|
+
id: string;
|
|
4825
|
+
mime_type: string;
|
|
4017
4826
|
}, {
|
|
4018
|
-
filename
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
gcs_path?: string | null | undefined;
|
|
4827
|
+
filename: string;
|
|
4828
|
+
id: string;
|
|
4829
|
+
mime_type: string;
|
|
4022
4830
|
}>>>>>;
|
|
4023
4831
|
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4024
4832
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4025
4833
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4026
4834
|
}, "strip", z.ZodTypeAny, {
|
|
4027
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4835
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4028
4836
|
node_id: string;
|
|
4029
4837
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4030
4838
|
node_label: string;
|
|
@@ -4038,35 +4846,31 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
4038
4846
|
data?: Record<string, any> | null | undefined;
|
|
4039
4847
|
text?: string | null | undefined;
|
|
4040
4848
|
document?: {
|
|
4041
|
-
filename
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
gcs_path?: string | null | undefined;
|
|
4849
|
+
filename: string;
|
|
4850
|
+
id: string;
|
|
4851
|
+
mime_type: string;
|
|
4045
4852
|
} | null | undefined;
|
|
4046
4853
|
}> | null | undefined;
|
|
4047
4854
|
input_document?: {
|
|
4048
|
-
filename
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
gcs_path?: string | null | undefined;
|
|
4855
|
+
filename: string;
|
|
4856
|
+
id: string;
|
|
4857
|
+
mime_type: string;
|
|
4052
4858
|
} | null | undefined;
|
|
4053
4859
|
output_document?: {
|
|
4054
|
-
filename
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
gcs_path?: string | null | undefined;
|
|
4860
|
+
filename: string;
|
|
4861
|
+
id: string;
|
|
4862
|
+
mime_type: string;
|
|
4058
4863
|
} | null | undefined;
|
|
4059
4864
|
split_documents?: Record<string, {
|
|
4060
|
-
filename
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
gcs_path?: string | null | undefined;
|
|
4865
|
+
filename: string;
|
|
4866
|
+
id: string;
|
|
4867
|
+
mime_type: string;
|
|
4064
4868
|
}> | null | undefined;
|
|
4065
4869
|
requires_human_review?: boolean | null | undefined;
|
|
4066
4870
|
human_reviewed_at?: string | null | undefined;
|
|
4067
4871
|
human_review_approved?: boolean | null | undefined;
|
|
4068
4872
|
}, {
|
|
4069
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4873
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4070
4874
|
node_id: string;
|
|
4071
4875
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4072
4876
|
node_label: string;
|
|
@@ -4080,29 +4884,25 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
4080
4884
|
data?: Record<string, any> | null | undefined;
|
|
4081
4885
|
text?: string | null | undefined;
|
|
4082
4886
|
document?: {
|
|
4083
|
-
filename
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
gcs_path?: string | null | undefined;
|
|
4887
|
+
filename: string;
|
|
4888
|
+
id: string;
|
|
4889
|
+
mime_type: string;
|
|
4087
4890
|
} | null | undefined;
|
|
4088
4891
|
}> | null | undefined;
|
|
4089
4892
|
input_document?: {
|
|
4090
|
-
filename
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
gcs_path?: string | null | undefined;
|
|
4893
|
+
filename: string;
|
|
4894
|
+
id: string;
|
|
4895
|
+
mime_type: string;
|
|
4094
4896
|
} | null | undefined;
|
|
4095
4897
|
output_document?: {
|
|
4096
|
-
filename
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
gcs_path?: string | null | undefined;
|
|
4898
|
+
filename: string;
|
|
4899
|
+
id: string;
|
|
4900
|
+
mime_type: string;
|
|
4100
4901
|
} | null | undefined;
|
|
4101
4902
|
split_documents?: Record<string, {
|
|
4102
|
-
filename
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
gcs_path?: string | null | undefined;
|
|
4903
|
+
filename: string;
|
|
4904
|
+
id: string;
|
|
4905
|
+
mime_type: string;
|
|
4106
4906
|
}> | null | undefined;
|
|
4107
4907
|
requires_human_review?: boolean | null | undefined;
|
|
4108
4908
|
human_reviewed_at?: string | null | undefined;
|
|
@@ -4114,7 +4914,7 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4114
4914
|
workflow_id: z.ZodString;
|
|
4115
4915
|
workflow_name: z.ZodString;
|
|
4116
4916
|
organization_id: z.ZodString;
|
|
4117
|
-
status: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">]>>;
|
|
4917
|
+
status: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>>;
|
|
4118
4918
|
started_at: z.ZodString;
|
|
4119
4919
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4120
4920
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -4122,7 +4922,7 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4122
4922
|
node_id: z.ZodString;
|
|
4123
4923
|
node_type: z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"extract">, z.ZodLiteral<"split">, z.ZodLiteral<"end">, z.ZodLiteral<"hil">]>;
|
|
4124
4924
|
node_label: z.ZodString;
|
|
4125
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">]>;
|
|
4925
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4126
4926
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4127
4927
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4128
4928
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -4131,20 +4931,17 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4131
4931
|
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4132
4932
|
type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"json">, z.ZodLiteral<"text">]>;
|
|
4133
4933
|
document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4934
|
+
id: z.ZodString;
|
|
4935
|
+
filename: z.ZodString;
|
|
4936
|
+
mime_type: z.ZodString;
|
|
4138
4937
|
}, "strip", z.ZodTypeAny, {
|
|
4139
|
-
filename
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
gcs_path?: string | null | undefined;
|
|
4938
|
+
filename: string;
|
|
4939
|
+
id: string;
|
|
4940
|
+
mime_type: string;
|
|
4143
4941
|
}, {
|
|
4144
|
-
filename
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
gcs_path?: string | null | undefined;
|
|
4942
|
+
filename: string;
|
|
4943
|
+
id: string;
|
|
4944
|
+
mime_type: string;
|
|
4148
4945
|
}>>>>;
|
|
4149
4946
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4150
4947
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4153,75 +4950,64 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4153
4950
|
data?: Record<string, any> | null | undefined;
|
|
4154
4951
|
text?: string | null | undefined;
|
|
4155
4952
|
document?: {
|
|
4156
|
-
filename
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
gcs_path?: string | null | undefined;
|
|
4953
|
+
filename: string;
|
|
4954
|
+
id: string;
|
|
4955
|
+
mime_type: string;
|
|
4160
4956
|
} | null | undefined;
|
|
4161
4957
|
}, {
|
|
4162
4958
|
type: "text" | "file" | "json";
|
|
4163
4959
|
data?: Record<string, any> | null | undefined;
|
|
4164
4960
|
text?: string | null | undefined;
|
|
4165
4961
|
document?: {
|
|
4166
|
-
filename
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
gcs_path?: string | null | undefined;
|
|
4962
|
+
filename: string;
|
|
4963
|
+
id: string;
|
|
4964
|
+
mime_type: string;
|
|
4170
4965
|
} | null | undefined;
|
|
4171
4966
|
}>>>>>;
|
|
4172
4967
|
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4968
|
+
id: z.ZodString;
|
|
4969
|
+
filename: z.ZodString;
|
|
4970
|
+
mime_type: z.ZodString;
|
|
4177
4971
|
}, "strip", z.ZodTypeAny, {
|
|
4178
|
-
filename
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
gcs_path?: string | null | undefined;
|
|
4972
|
+
filename: string;
|
|
4973
|
+
id: string;
|
|
4974
|
+
mime_type: string;
|
|
4182
4975
|
}, {
|
|
4183
|
-
filename
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
gcs_path?: string | null | undefined;
|
|
4976
|
+
filename: string;
|
|
4977
|
+
id: string;
|
|
4978
|
+
mime_type: string;
|
|
4187
4979
|
}>>>>;
|
|
4188
4980
|
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4981
|
+
id: z.ZodString;
|
|
4982
|
+
filename: z.ZodString;
|
|
4983
|
+
mime_type: z.ZodString;
|
|
4193
4984
|
}, "strip", z.ZodTypeAny, {
|
|
4194
|
-
filename
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
gcs_path?: string | null | undefined;
|
|
4985
|
+
filename: string;
|
|
4986
|
+
id: string;
|
|
4987
|
+
mime_type: string;
|
|
4198
4988
|
}, {
|
|
4199
|
-
filename
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
gcs_path?: string | null | undefined;
|
|
4989
|
+
filename: string;
|
|
4990
|
+
id: string;
|
|
4991
|
+
mime_type: string;
|
|
4203
4992
|
}>>>>;
|
|
4204
4993
|
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4994
|
+
id: z.ZodString;
|
|
4995
|
+
filename: z.ZodString;
|
|
4996
|
+
mime_type: z.ZodString;
|
|
4209
4997
|
}, "strip", z.ZodTypeAny, {
|
|
4210
|
-
filename
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
gcs_path?: string | null | undefined;
|
|
4998
|
+
filename: string;
|
|
4999
|
+
id: string;
|
|
5000
|
+
mime_type: string;
|
|
4214
5001
|
}, {
|
|
4215
|
-
filename
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
gcs_path?: string | null | undefined;
|
|
5002
|
+
filename: string;
|
|
5003
|
+
id: string;
|
|
5004
|
+
mime_type: string;
|
|
4219
5005
|
}>>>>>;
|
|
4220
5006
|
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4221
5007
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4222
5008
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4223
5009
|
}, "strip", z.ZodTypeAny, {
|
|
4224
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5010
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4225
5011
|
node_id: string;
|
|
4226
5012
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4227
5013
|
node_label: string;
|
|
@@ -4235,35 +5021,31 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4235
5021
|
data?: Record<string, any> | null | undefined;
|
|
4236
5022
|
text?: string | null | undefined;
|
|
4237
5023
|
document?: {
|
|
4238
|
-
filename
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
gcs_path?: string | null | undefined;
|
|
5024
|
+
filename: string;
|
|
5025
|
+
id: string;
|
|
5026
|
+
mime_type: string;
|
|
4242
5027
|
} | null | undefined;
|
|
4243
5028
|
}> | null | undefined;
|
|
4244
5029
|
input_document?: {
|
|
4245
|
-
filename
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
gcs_path?: string | null | undefined;
|
|
5030
|
+
filename: string;
|
|
5031
|
+
id: string;
|
|
5032
|
+
mime_type: string;
|
|
4249
5033
|
} | null | undefined;
|
|
4250
5034
|
output_document?: {
|
|
4251
|
-
filename
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
gcs_path?: string | null | undefined;
|
|
5035
|
+
filename: string;
|
|
5036
|
+
id: string;
|
|
5037
|
+
mime_type: string;
|
|
4255
5038
|
} | null | undefined;
|
|
4256
5039
|
split_documents?: Record<string, {
|
|
4257
|
-
filename
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
gcs_path?: string | null | undefined;
|
|
5040
|
+
filename: string;
|
|
5041
|
+
id: string;
|
|
5042
|
+
mime_type: string;
|
|
4261
5043
|
}> | null | undefined;
|
|
4262
5044
|
requires_human_review?: boolean | null | undefined;
|
|
4263
5045
|
human_reviewed_at?: string | null | undefined;
|
|
4264
5046
|
human_review_approved?: boolean | null | undefined;
|
|
4265
5047
|
}, {
|
|
4266
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5048
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4267
5049
|
node_id: string;
|
|
4268
5050
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4269
5051
|
node_label: string;
|
|
@@ -4277,49 +5059,42 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4277
5059
|
data?: Record<string, any> | null | undefined;
|
|
4278
5060
|
text?: string | null | undefined;
|
|
4279
5061
|
document?: {
|
|
4280
|
-
filename
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
gcs_path?: string | null | undefined;
|
|
5062
|
+
filename: string;
|
|
5063
|
+
id: string;
|
|
5064
|
+
mime_type: string;
|
|
4284
5065
|
} | null | undefined;
|
|
4285
5066
|
}> | null | undefined;
|
|
4286
5067
|
input_document?: {
|
|
4287
|
-
filename
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
gcs_path?: string | null | undefined;
|
|
5068
|
+
filename: string;
|
|
5069
|
+
id: string;
|
|
5070
|
+
mime_type: string;
|
|
4291
5071
|
} | null | undefined;
|
|
4292
5072
|
output_document?: {
|
|
4293
|
-
filename
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
gcs_path?: string | null | undefined;
|
|
5073
|
+
filename: string;
|
|
5074
|
+
id: string;
|
|
5075
|
+
mime_type: string;
|
|
4297
5076
|
} | null | undefined;
|
|
4298
5077
|
split_documents?: Record<string, {
|
|
4299
|
-
filename
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
gcs_path?: string | null | undefined;
|
|
5078
|
+
filename: string;
|
|
5079
|
+
id: string;
|
|
5080
|
+
mime_type: string;
|
|
4303
5081
|
}> | null | undefined;
|
|
4304
5082
|
requires_human_review?: boolean | null | undefined;
|
|
4305
5083
|
human_reviewed_at?: string | null | undefined;
|
|
4306
5084
|
human_review_approved?: boolean | null | undefined;
|
|
4307
5085
|
}>>, "many">;
|
|
4308
5086
|
input_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5087
|
+
id: z.ZodString;
|
|
5088
|
+
filename: z.ZodString;
|
|
5089
|
+
mime_type: z.ZodString;
|
|
4313
5090
|
}, "strip", z.ZodTypeAny, {
|
|
4314
|
-
filename
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
gcs_path?: string | null | undefined;
|
|
5091
|
+
filename: string;
|
|
5092
|
+
id: string;
|
|
5093
|
+
mime_type: string;
|
|
4318
5094
|
}, {
|
|
4319
|
-
filename
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
gcs_path?: string | null | undefined;
|
|
5095
|
+
filename: string;
|
|
5096
|
+
id: string;
|
|
5097
|
+
mime_type: string;
|
|
4323
5098
|
}>>>>>;
|
|
4324
5099
|
final_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4325
5100
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4328,7 +5103,7 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4328
5103
|
waiting_for_node_ids: z.ZodArray<z.ZodString, "many">;
|
|
4329
5104
|
pending_node_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4330
5105
|
}, "strip", z.ZodTypeAny, {
|
|
4331
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5106
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4332
5107
|
id: string;
|
|
4333
5108
|
created_at: string;
|
|
4334
5109
|
started_at: string;
|
|
@@ -4337,7 +5112,7 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4337
5112
|
workflow_id: string;
|
|
4338
5113
|
workflow_name: string;
|
|
4339
5114
|
steps: {
|
|
4340
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5115
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4341
5116
|
node_id: string;
|
|
4342
5117
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4343
5118
|
node_label: string;
|
|
@@ -4351,29 +5126,25 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4351
5126
|
data?: Record<string, any> | null | undefined;
|
|
4352
5127
|
text?: string | null | undefined;
|
|
4353
5128
|
document?: {
|
|
4354
|
-
filename
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
gcs_path?: string | null | undefined;
|
|
5129
|
+
filename: string;
|
|
5130
|
+
id: string;
|
|
5131
|
+
mime_type: string;
|
|
4358
5132
|
} | null | undefined;
|
|
4359
5133
|
}> | null | undefined;
|
|
4360
5134
|
input_document?: {
|
|
4361
|
-
filename
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
gcs_path?: string | null | undefined;
|
|
5135
|
+
filename: string;
|
|
5136
|
+
id: string;
|
|
5137
|
+
mime_type: string;
|
|
4365
5138
|
} | null | undefined;
|
|
4366
5139
|
output_document?: {
|
|
4367
|
-
filename
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
gcs_path?: string | null | undefined;
|
|
5140
|
+
filename: string;
|
|
5141
|
+
id: string;
|
|
5142
|
+
mime_type: string;
|
|
4371
5143
|
} | null | undefined;
|
|
4372
5144
|
split_documents?: Record<string, {
|
|
4373
|
-
filename
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
gcs_path?: string | null | undefined;
|
|
5145
|
+
filename: string;
|
|
5146
|
+
id: string;
|
|
5147
|
+
mime_type: string;
|
|
4377
5148
|
}> | null | undefined;
|
|
4378
5149
|
requires_human_review?: boolean | null | undefined;
|
|
4379
5150
|
human_reviewed_at?: string | null | undefined;
|
|
@@ -4384,10 +5155,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4384
5155
|
completed_at?: string | null | undefined;
|
|
4385
5156
|
duration_ms?: number | null | undefined;
|
|
4386
5157
|
input_documents?: Record<string, {
|
|
4387
|
-
filename
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
gcs_path?: string | null | undefined;
|
|
5158
|
+
filename: string;
|
|
5159
|
+
id: string;
|
|
5160
|
+
mime_type: string;
|
|
4391
5161
|
}> | null | undefined;
|
|
4392
5162
|
final_outputs?: Record<string, any> | null | undefined;
|
|
4393
5163
|
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
@@ -4400,7 +5170,7 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4400
5170
|
workflow_id: string;
|
|
4401
5171
|
workflow_name: string;
|
|
4402
5172
|
steps: {
|
|
4403
|
-
status: "completed" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5173
|
+
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4404
5174
|
node_id: string;
|
|
4405
5175
|
node_type: "start" | "extract" | "split" | "end" | "hil";
|
|
4406
5176
|
node_label: string;
|
|
@@ -4414,44 +5184,39 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4414
5184
|
data?: Record<string, any> | null | undefined;
|
|
4415
5185
|
text?: string | null | undefined;
|
|
4416
5186
|
document?: {
|
|
4417
|
-
filename
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
gcs_path?: string | null | undefined;
|
|
5187
|
+
filename: string;
|
|
5188
|
+
id: string;
|
|
5189
|
+
mime_type: string;
|
|
4421
5190
|
} | null | undefined;
|
|
4422
5191
|
}> | null | undefined;
|
|
4423
5192
|
input_document?: {
|
|
4424
|
-
filename
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
gcs_path?: string | null | undefined;
|
|
5193
|
+
filename: string;
|
|
5194
|
+
id: string;
|
|
5195
|
+
mime_type: string;
|
|
4428
5196
|
} | null | undefined;
|
|
4429
5197
|
output_document?: {
|
|
4430
|
-
filename
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
gcs_path?: string | null | undefined;
|
|
5198
|
+
filename: string;
|
|
5199
|
+
id: string;
|
|
5200
|
+
mime_type: string;
|
|
4434
5201
|
} | null | undefined;
|
|
4435
5202
|
split_documents?: Record<string, {
|
|
4436
|
-
filename
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
gcs_path?: string | null | undefined;
|
|
5203
|
+
filename: string;
|
|
5204
|
+
id: string;
|
|
5205
|
+
mime_type: string;
|
|
4440
5206
|
}> | null | undefined;
|
|
4441
5207
|
requires_human_review?: boolean | null | undefined;
|
|
4442
5208
|
human_reviewed_at?: string | null | undefined;
|
|
4443
5209
|
human_review_approved?: boolean | null | undefined;
|
|
4444
5210
|
}[];
|
|
4445
5211
|
waiting_for_node_ids: string[];
|
|
4446
|
-
status?: "completed" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
5212
|
+
status?: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | undefined;
|
|
4447
5213
|
error?: string | null | undefined;
|
|
4448
5214
|
completed_at?: string | null | undefined;
|
|
4449
5215
|
duration_ms?: number | null | undefined;
|
|
4450
5216
|
input_documents?: Record<string, {
|
|
4451
|
-
filename
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
gcs_path?: string | null | undefined;
|
|
5217
|
+
filename: string;
|
|
5218
|
+
id: string;
|
|
5219
|
+
mime_type: string;
|
|
4455
5220
|
}> | null | undefined;
|
|
4456
5221
|
final_outputs?: Record<string, any> | null | undefined;
|
|
4457
5222
|
pending_node_outputs?: Record<string, any> | null | undefined;
|
|
@@ -4469,7 +5234,6 @@ export declare const ZGenerateSchemaRequest: z.ZodLazy<z.ZodObject<{
|
|
|
4469
5234
|
url: string;
|
|
4470
5235
|
}>>, "many">;
|
|
4471
5236
|
model: z.ZodDefault<z.ZodString>;
|
|
4472
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
4473
5237
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
4474
5238
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4475
5239
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4477,7 +5241,6 @@ export declare const ZGenerateSchemaRequest: z.ZodLazy<z.ZodObject<{
|
|
|
4477
5241
|
}, "strip", z.ZodTypeAny, {
|
|
4478
5242
|
stream: boolean;
|
|
4479
5243
|
model: string;
|
|
4480
|
-
temperature: number;
|
|
4481
5244
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
4482
5245
|
image_resolution_dpi: number;
|
|
4483
5246
|
documents: {
|
|
@@ -4492,7 +5255,6 @@ export declare const ZGenerateSchemaRequest: z.ZodLazy<z.ZodObject<{
|
|
|
4492
5255
|
}[];
|
|
4493
5256
|
stream?: boolean | undefined;
|
|
4494
5257
|
model?: string | undefined;
|
|
4495
|
-
temperature?: number | undefined;
|
|
4496
5258
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
4497
5259
|
image_resolution_dpi?: number | undefined;
|
|
4498
5260
|
instructions?: string | null | undefined;
|
|
@@ -18323,7 +19085,6 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
|
|
|
18323
19085
|
} | null | undefined;
|
|
18324
19086
|
completed_at?: number | null | undefined;
|
|
18325
19087
|
user?: string | null | undefined;
|
|
18326
|
-
temperature?: number | null | undefined;
|
|
18327
19088
|
instructions?: string | ({
|
|
18328
19089
|
role: "user" | "system" | "assistant" | "developer";
|
|
18329
19090
|
content: string | ({
|
|
@@ -18713,6 +19474,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
|
|
|
18713
19474
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
18714
19475
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
18715
19476
|
} | null | undefined;
|
|
19477
|
+
temperature?: number | null | undefined;
|
|
18716
19478
|
background?: boolean | null | undefined;
|
|
18717
19479
|
top_p?: number | null | undefined;
|
|
18718
19480
|
conversation?: {
|
|
@@ -19251,7 +20013,6 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
|
|
|
19251
20013
|
} | null | undefined;
|
|
19252
20014
|
completed_at?: number | null | undefined;
|
|
19253
20015
|
user?: string | null | undefined;
|
|
19254
|
-
temperature?: number | null | undefined;
|
|
19255
20016
|
instructions?: string | ({
|
|
19256
20017
|
role: "user" | "system" | "assistant" | "developer";
|
|
19257
20018
|
content: string | ({
|
|
@@ -19641,6 +20402,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
|
|
|
19641
20402
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
19642
20403
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
19643
20404
|
} | null | undefined;
|
|
20405
|
+
temperature?: number | null | undefined;
|
|
19644
20406
|
background?: boolean | null | undefined;
|
|
19645
20407
|
top_p?: number | null | undefined;
|
|
19646
20408
|
conversation?: {
|
|
@@ -21169,6 +21931,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
|
|
|
21169
21931
|
type?: any;
|
|
21170
21932
|
value?: string | null | undefined;
|
|
21171
21933
|
}>>, "many">;
|
|
21934
|
+
field_count: z.ZodDefault<z.ZodNumber>;
|
|
21172
21935
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21173
21936
|
created_at: z.ZodString;
|
|
21174
21937
|
updated_at: z.ZodString;
|
|
@@ -21195,6 +21958,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
|
|
|
21195
21958
|
type?: any;
|
|
21196
21959
|
value?: string | null | undefined;
|
|
21197
21960
|
}[];
|
|
21961
|
+
field_count: number;
|
|
21198
21962
|
organization_id?: string | null | undefined;
|
|
21199
21963
|
}, {
|
|
21200
21964
|
id: string;
|
|
@@ -21220,6 +21984,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
|
|
|
21220
21984
|
value?: string | null | undefined;
|
|
21221
21985
|
}[];
|
|
21222
21986
|
organization_id?: string | null | undefined;
|
|
21987
|
+
field_count?: number | undefined;
|
|
21223
21988
|
}>>;
|
|
21224
21989
|
export type EditTemplate = z.infer<typeof ZEditTemplate>;
|
|
21225
21990
|
export declare const ZFillTemplateRequest: z.ZodLazy<z.ZodObject<{
|
|
@@ -22265,6 +23030,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
22265
23030
|
}>>;
|
|
22266
23031
|
field_count: z.ZodNumber;
|
|
22267
23032
|
}, "strip", z.ZodTypeAny, {
|
|
23033
|
+
field_count: number;
|
|
22268
23034
|
form_schema: {
|
|
22269
23035
|
form_fields: {
|
|
22270
23036
|
description: string;
|
|
@@ -22284,8 +23050,8 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
22284
23050
|
filename: string;
|
|
22285
23051
|
url: string;
|
|
22286
23052
|
};
|
|
22287
|
-
field_count: number;
|
|
22288
23053
|
}, {
|
|
23054
|
+
field_count: number;
|
|
22289
23055
|
form_schema: {
|
|
22290
23056
|
form_fields: {
|
|
22291
23057
|
description: string;
|
|
@@ -22305,7 +23071,6 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
22305
23071
|
filename: string;
|
|
22306
23072
|
url: string;
|
|
22307
23073
|
};
|
|
22308
|
-
field_count: number;
|
|
22309
23074
|
}>>;
|
|
22310
23075
|
export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
|
|
22311
23076
|
export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
|
|
@@ -24427,12 +25192,12 @@ export declare const ZConsensusModel: z.ZodLazy<z.ZodObject<{
|
|
|
24427
25192
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
24428
25193
|
}, "strip", z.ZodTypeAny, {
|
|
24429
25194
|
model: string;
|
|
24430
|
-
temperature: number;
|
|
24431
25195
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
25196
|
+
temperature: number;
|
|
24432
25197
|
}, {
|
|
24433
25198
|
model: string;
|
|
24434
|
-
temperature?: number | undefined;
|
|
24435
25199
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
25200
|
+
temperature?: number | undefined;
|
|
24436
25201
|
}>>;
|
|
24437
25202
|
export type ConsensusModel = z.infer<typeof ZConsensusModel>;
|
|
24438
25203
|
export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
|
|
@@ -24449,13 +25214,9 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
|
|
|
24449
25214
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
24450
25215
|
model: z.ZodString;
|
|
24451
25216
|
json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
24452
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
24453
25217
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
24454
25218
|
stream: z.ZodDefault<z.ZodBoolean>;
|
|
24455
|
-
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24456
|
-
store: z.ZodDefault<z.ZodBoolean>;
|
|
24457
25219
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
24458
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
24459
25220
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
24460
25221
|
extraction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24461
25222
|
additional_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -24650,18 +25411,14 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
|
|
|
24650
25411
|
metadata: Record<string, string>;
|
|
24651
25412
|
json_schema: Record<string, any>;
|
|
24652
25413
|
model: string;
|
|
24653
|
-
temperature: number;
|
|
24654
25414
|
image_resolution_dpi: number;
|
|
24655
25415
|
n_consensus: number;
|
|
24656
|
-
web_search: boolean;
|
|
24657
25416
|
document: {
|
|
24658
25417
|
filename: string;
|
|
24659
25418
|
url: string;
|
|
24660
25419
|
};
|
|
24661
|
-
store: boolean;
|
|
24662
25420
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
24663
25421
|
extraction_id?: string | null | undefined;
|
|
24664
|
-
seed?: number | null | undefined;
|
|
24665
25422
|
additional_messages?: {
|
|
24666
25423
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
24667
25424
|
content?: string | ({
|
|
@@ -24706,14 +25463,10 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
|
|
|
24706
25463
|
url: string;
|
|
24707
25464
|
};
|
|
24708
25465
|
stream?: boolean | undefined;
|
|
24709
|
-
temperature?: number | undefined;
|
|
24710
25466
|
image_resolution_dpi?: number | undefined;
|
|
24711
25467
|
n_consensus?: number | undefined;
|
|
24712
25468
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
24713
|
-
web_search?: boolean | undefined;
|
|
24714
25469
|
extraction_id?: string | null | undefined;
|
|
24715
|
-
seed?: number | null | undefined;
|
|
24716
|
-
store?: boolean | undefined;
|
|
24717
25470
|
additional_messages?: {
|
|
24718
25471
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
24719
25472
|
content?: string | ({
|
|
@@ -33561,7 +34314,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
33561
34314
|
} | null | undefined;
|
|
33562
34315
|
completed_at?: number | null | undefined;
|
|
33563
34316
|
user?: string | null | undefined;
|
|
33564
|
-
temperature?: number | null | undefined;
|
|
33565
34317
|
instructions?: string | ({
|
|
33566
34318
|
role: "user" | "system" | "assistant" | "developer";
|
|
33567
34319
|
content: string | ({
|
|
@@ -33951,6 +34703,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
33951
34703
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
33952
34704
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
33953
34705
|
} | null | undefined;
|
|
34706
|
+
temperature?: number | null | undefined;
|
|
33954
34707
|
background?: boolean | null | undefined;
|
|
33955
34708
|
top_p?: number | null | undefined;
|
|
33956
34709
|
conversation?: {
|
|
@@ -34489,7 +35242,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
34489
35242
|
} | null | undefined;
|
|
34490
35243
|
completed_at?: number | null | undefined;
|
|
34491
35244
|
user?: string | null | undefined;
|
|
34492
|
-
temperature?: number | null | undefined;
|
|
34493
35245
|
instructions?: string | ({
|
|
34494
35246
|
role: "user" | "system" | "assistant" | "developer";
|
|
34495
35247
|
content: string | ({
|
|
@@ -34879,6 +35631,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
34879
35631
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
34880
35632
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
34881
35633
|
} | null | undefined;
|
|
35634
|
+
temperature?: number | null | undefined;
|
|
34882
35635
|
background?: boolean | null | undefined;
|
|
34883
35636
|
top_p?: number | null | undefined;
|
|
34884
35637
|
conversation?: {
|
|
@@ -34928,11 +35681,11 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
34928
35681
|
}, "strip", z.ZodTypeAny, {
|
|
34929
35682
|
json_schema: Record<string, any>;
|
|
34930
35683
|
model: string;
|
|
34931
|
-
temperature: number;
|
|
34932
35684
|
document: {
|
|
34933
35685
|
filename: string;
|
|
34934
35686
|
url: string;
|
|
34935
35687
|
};
|
|
35688
|
+
temperature: number;
|
|
34936
35689
|
messages?: {
|
|
34937
35690
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
34938
35691
|
content?: string | ({
|
|
@@ -36186,7 +36939,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
36186
36939
|
} | null | undefined;
|
|
36187
36940
|
completed_at?: number | null | undefined;
|
|
36188
36941
|
user?: string | null | undefined;
|
|
36189
|
-
temperature?: number | null | undefined;
|
|
36190
36942
|
instructions?: string | ({
|
|
36191
36943
|
role: "user" | "system" | "assistant" | "developer";
|
|
36192
36944
|
content: string | ({
|
|
@@ -36576,6 +37328,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
36576
37328
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
36577
37329
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
36578
37330
|
} | null | undefined;
|
|
37331
|
+
temperature?: number | null | undefined;
|
|
36579
37332
|
background?: boolean | null | undefined;
|
|
36580
37333
|
top_p?: number | null | undefined;
|
|
36581
37334
|
conversation?: {
|
|
@@ -37880,7 +38633,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
37880
38633
|
} | null | undefined;
|
|
37881
38634
|
completed_at?: number | null | undefined;
|
|
37882
38635
|
user?: string | null | undefined;
|
|
37883
|
-
temperature?: number | null | undefined;
|
|
37884
38636
|
instructions?: string | ({
|
|
37885
38637
|
role: "user" | "system" | "assistant" | "developer";
|
|
37886
38638
|
content: string | ({
|
|
@@ -38270,6 +39022,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
|
|
|
38270
39022
|
effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
38271
39023
|
generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
|
|
38272
39024
|
} | null | undefined;
|
|
39025
|
+
temperature?: number | null | undefined;
|
|
38273
39026
|
background?: boolean | null | undefined;
|
|
38274
39027
|
top_p?: number | null | undefined;
|
|
38275
39028
|
conversation?: {
|