@retab/node 1.0.90 → 1.0.93

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.
@@ -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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3869
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3870
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
3874
- mime_type?: string | null | undefined;
3875
- file_id?: string | null | undefined;
3876
- gcs_path?: string | null | undefined;
4196
+ filename: string;
4197
+ id: string;
4198
+ mime_type: string;
3877
4199
  }, {
3878
- filename?: string | null | undefined;
3879
- mime_type?: string | null | undefined;
3880
- file_id?: string | null | undefined;
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?: string | null | undefined;
3891
- mime_type?: string | null | undefined;
3892
- file_id?: string | null | undefined;
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?: string | null | undefined;
3901
- mime_type?: string | null | undefined;
3902
- file_id?: string | null | undefined;
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 ZStepIOReference: z.ZodLazy<z.ZodObject<{
3908
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3909
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3910
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3911
- mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- filename?: string | null | undefined;
3914
- mime_type?: string | null | undefined;
3915
- file_id?: string | null | undefined;
3916
- gcs_path?: string | null | undefined;
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
- filename?: string | null | undefined;
3919
- mime_type?: string | null | undefined;
3920
- file_id?: string | null | undefined;
3921
- gcs_path?: string | null | undefined;
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;
4670
+ }>>;
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;
3922
4696
  }>>;
3923
- export type StepIOReference = z.infer<typeof ZStepIOReference>;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3938
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3939
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
3943
- mime_type?: string | null | undefined;
3944
- file_id?: string | null | undefined;
3945
- gcs_path?: string | null | undefined;
4763
+ filename: string;
4764
+ id: string;
4765
+ mime_type: string;
3946
4766
  }, {
3947
- filename?: string | null | undefined;
3948
- mime_type?: string | null | undefined;
3949
- file_id?: string | null | undefined;
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?: string | null | undefined;
3960
- mime_type?: string | null | undefined;
3961
- file_id?: string | null | undefined;
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?: string | null | undefined;
3970
- mime_type?: string | null | undefined;
3971
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3977
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3978
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
3982
- mime_type?: string | null | undefined;
3983
- file_id?: string | null | undefined;
3984
- gcs_path?: string | null | undefined;
4797
+ filename: string;
4798
+ id: string;
4799
+ mime_type: string;
3985
4800
  }, {
3986
- filename?: string | null | undefined;
3987
- mime_type?: string | null | undefined;
3988
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3993
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3994
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
3998
- mime_type?: string | null | undefined;
3999
- file_id?: string | null | undefined;
4000
- gcs_path?: string | null | undefined;
4810
+ filename: string;
4811
+ id: string;
4812
+ mime_type: string;
4001
4813
  }, {
4002
- filename?: string | null | undefined;
4003
- mime_type?: string | null | undefined;
4004
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4009
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4010
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4014
- mime_type?: string | null | undefined;
4015
- file_id?: string | null | undefined;
4016
- gcs_path?: string | null | undefined;
4823
+ filename: string;
4824
+ id: string;
4825
+ mime_type: string;
4017
4826
  }, {
4018
- filename?: string | null | undefined;
4019
- mime_type?: string | null | undefined;
4020
- file_id?: string | null | undefined;
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?: string | null | undefined;
4042
- mime_type?: string | null | undefined;
4043
- file_id?: string | null | undefined;
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?: string | null | undefined;
4049
- mime_type?: string | null | undefined;
4050
- file_id?: string | null | undefined;
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?: string | null | undefined;
4055
- mime_type?: string | null | undefined;
4056
- file_id?: string | null | undefined;
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?: string | null | undefined;
4061
- mime_type?: string | null | undefined;
4062
- file_id?: string | null | undefined;
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?: string | null | undefined;
4084
- mime_type?: string | null | undefined;
4085
- file_id?: string | null | undefined;
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?: string | null | undefined;
4091
- mime_type?: string | null | undefined;
4092
- file_id?: string | null | undefined;
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?: string | null | undefined;
4097
- mime_type?: string | null | undefined;
4098
- file_id?: string | null | undefined;
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?: string | null | undefined;
4103
- mime_type?: string | null | undefined;
4104
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4135
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4136
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4140
- mime_type?: string | null | undefined;
4141
- file_id?: string | null | undefined;
4142
- gcs_path?: string | null | undefined;
4938
+ filename: string;
4939
+ id: string;
4940
+ mime_type: string;
4143
4941
  }, {
4144
- filename?: string | null | undefined;
4145
- mime_type?: string | null | undefined;
4146
- file_id?: string | null | undefined;
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?: string | null | undefined;
4157
- mime_type?: string | null | undefined;
4158
- file_id?: string | null | undefined;
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?: string | null | undefined;
4167
- mime_type?: string | null | undefined;
4168
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4174
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4175
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4179
- mime_type?: string | null | undefined;
4180
- file_id?: string | null | undefined;
4181
- gcs_path?: string | null | undefined;
4972
+ filename: string;
4973
+ id: string;
4974
+ mime_type: string;
4182
4975
  }, {
4183
- filename?: string | null | undefined;
4184
- mime_type?: string | null | undefined;
4185
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4190
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4191
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4195
- mime_type?: string | null | undefined;
4196
- file_id?: string | null | undefined;
4197
- gcs_path?: string | null | undefined;
4985
+ filename: string;
4986
+ id: string;
4987
+ mime_type: string;
4198
4988
  }, {
4199
- filename?: string | null | undefined;
4200
- mime_type?: string | null | undefined;
4201
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4206
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4207
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4211
- mime_type?: string | null | undefined;
4212
- file_id?: string | null | undefined;
4213
- gcs_path?: string | null | undefined;
4998
+ filename: string;
4999
+ id: string;
5000
+ mime_type: string;
4214
5001
  }, {
4215
- filename?: string | null | undefined;
4216
- mime_type?: string | null | undefined;
4217
- file_id?: string | null | undefined;
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?: string | null | undefined;
4239
- mime_type?: string | null | undefined;
4240
- file_id?: string | null | undefined;
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?: string | null | undefined;
4246
- mime_type?: string | null | undefined;
4247
- file_id?: string | null | undefined;
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?: string | null | undefined;
4252
- mime_type?: string | null | undefined;
4253
- file_id?: string | null | undefined;
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?: string | null | undefined;
4258
- mime_type?: string | null | undefined;
4259
- file_id?: string | null | undefined;
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?: string | null | undefined;
4281
- mime_type?: string | null | undefined;
4282
- file_id?: string | null | undefined;
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?: string | null | undefined;
4288
- mime_type?: string | null | undefined;
4289
- file_id?: string | null | undefined;
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?: string | null | undefined;
4294
- mime_type?: string | null | undefined;
4295
- file_id?: string | null | undefined;
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?: string | null | undefined;
4300
- mime_type?: string | null | undefined;
4301
- file_id?: string | null | undefined;
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
- file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4310
- gcs_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4311
- filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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?: string | null | undefined;
4315
- mime_type?: string | null | undefined;
4316
- file_id?: string | null | undefined;
4317
- gcs_path?: string | null | undefined;
5091
+ filename: string;
5092
+ id: string;
5093
+ mime_type: string;
4318
5094
  }, {
4319
- filename?: string | null | undefined;
4320
- mime_type?: string | null | undefined;
4321
- file_id?: string | null | undefined;
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?: string | null | undefined;
4355
- mime_type?: string | null | undefined;
4356
- file_id?: string | null | undefined;
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?: string | null | undefined;
4362
- mime_type?: string | null | undefined;
4363
- file_id?: string | null | undefined;
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?: string | null | undefined;
4368
- mime_type?: string | null | undefined;
4369
- file_id?: string | null | undefined;
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?: string | null | undefined;
4374
- mime_type?: string | null | undefined;
4375
- file_id?: string | null | undefined;
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?: string | null | undefined;
4388
- mime_type?: string | null | undefined;
4389
- file_id?: string | null | undefined;
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?: string | null | undefined;
4418
- mime_type?: string | null | undefined;
4419
- file_id?: string | null | undefined;
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?: string | null | undefined;
4425
- mime_type?: string | null | undefined;
4426
- file_id?: string | null | undefined;
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?: string | null | undefined;
4431
- mime_type?: string | null | undefined;
4432
- file_id?: string | null | undefined;
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?: string | null | undefined;
4437
- mime_type?: string | null | undefined;
4438
- file_id?: string | null | undefined;
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?: string | null | undefined;
4452
- mime_type?: string | null | undefined;
4453
- file_id?: string | null | undefined;
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;
@@ -13126,6 +13888,7 @@ export declare const ZEasyInputMessageParam: z.ZodLazy<z.ZodObject<{
13126
13888
  file_id?: string | null | undefined;
13127
13889
  }>>]>, "many">]>;
13128
13890
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">, z.ZodLiteral<"developer">]>;
13891
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
13129
13892
  type: z.ZodLiteral<"message">;
13130
13893
  }, "strip", z.ZodTypeAny, {
13131
13894
  type: "message";
@@ -13145,6 +13908,7 @@ export declare const ZEasyInputMessageParam: z.ZodLazy<z.ZodObject<{
13145
13908
  file_url: string;
13146
13909
  file_id?: string | null | undefined;
13147
13910
  })[];
13911
+ phase?: "commentary" | "final_answer" | null | undefined;
13148
13912
  }, {
13149
13913
  type: "message";
13150
13914
  role: "user" | "system" | "assistant" | "developer";
@@ -13163,6 +13927,7 @@ export declare const ZEasyInputMessageParam: z.ZodLazy<z.ZodObject<{
13163
13927
  file_url: string;
13164
13928
  file_id?: string | null | undefined;
13165
13929
  })[];
13930
+ phase?: "commentary" | "final_answer" | null | undefined;
13166
13931
  }>>;
13167
13932
  export type EasyInputMessageParam = z.infer<typeof ZEasyInputMessageParam>;
13168
13933
  export declare const ZImageBlockParam: z.ZodLazy<z.ZodObject<{
@@ -13836,6 +14601,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
13836
14601
  file_url?: string | null | undefined;
13837
14602
  }>>]>, "many">]>;
13838
14603
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">, z.ZodLiteral<"developer">]>;
14604
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
13839
14605
  type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"message">>>;
13840
14606
  }, "strip", z.ZodTypeAny, {
13841
14607
  role: "user" | "system" | "assistant" | "developer";
@@ -13855,6 +14621,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
13855
14621
  file_url?: string | null | undefined;
13856
14622
  })[];
13857
14623
  type?: "message" | null | undefined;
14624
+ phase?: "commentary" | "final_answer" | null | undefined;
13858
14625
  }, {
13859
14626
  role: "user" | "system" | "assistant" | "developer";
13860
14627
  content: string | ({
@@ -13873,6 +14640,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
13873
14640
  file_url?: string | null | undefined;
13874
14641
  })[];
13875
14642
  type?: "message" | null | undefined;
14643
+ phase?: "commentary" | "final_answer" | null | undefined;
13876
14644
  }>>, z.ZodLazy<z.ZodObject<{
13877
14645
  content: z.ZodArray<z.ZodUnion<[z.ZodLazy<z.ZodObject<{
13878
14646
  text: z.ZodString;
@@ -14151,6 +14919,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
14151
14919
  role: z.ZodLiteral<"assistant">;
14152
14920
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
14153
14921
  type: z.ZodLiteral<"message">;
14922
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
14154
14923
  }, "strip", z.ZodTypeAny, {
14155
14924
  type: "message";
14156
14925
  status: "in_progress" | "completed" | "incomplete";
@@ -14196,6 +14965,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
14196
14965
  type: "refusal";
14197
14966
  refusal: string;
14198
14967
  })[];
14968
+ phase?: "commentary" | "final_answer" | null | undefined;
14199
14969
  }, {
14200
14970
  type: "message";
14201
14971
  status: "in_progress" | "completed" | "incomplete";
@@ -14241,6 +15011,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
14241
15011
  type: "refusal";
14242
15012
  refusal: string;
14243
15013
  })[];
15014
+ phase?: "commentary" | "final_answer" | null | undefined;
14244
15015
  }>>, z.ZodLazy<z.ZodObject<{
14245
15016
  id: z.ZodString;
14246
15017
  queries: z.ZodArray<z.ZodString, "many">;
@@ -15666,6 +16437,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
15666
16437
  role: z.ZodLiteral<"assistant">;
15667
16438
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
15668
16439
  type: z.ZodLiteral<"message">;
16440
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
15669
16441
  }, "strip", z.ZodTypeAny, {
15670
16442
  type: "message";
15671
16443
  status: "in_progress" | "completed" | "incomplete";
@@ -15711,6 +16483,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
15711
16483
  type: "refusal";
15712
16484
  refusal: string;
15713
16485
  })[];
16486
+ phase?: "commentary" | "final_answer" | null | undefined;
15714
16487
  }, {
15715
16488
  type: "message";
15716
16489
  status: "in_progress" | "completed" | "incomplete";
@@ -15756,6 +16529,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
15756
16529
  type: "refusal";
15757
16530
  refusal: string;
15758
16531
  })[];
16532
+ phase?: "commentary" | "final_answer" | null | undefined;
15759
16533
  }>>, z.ZodLazy<z.ZodObject<{
15760
16534
  id: z.ZodString;
15761
16535
  queries: z.ZodArray<z.ZodString, "many">;
@@ -17877,6 +18651,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
17877
18651
  type: "refusal";
17878
18652
  refusal: string;
17879
18653
  })[];
18654
+ phase?: "commentary" | "final_answer" | null | undefined;
17880
18655
  } | {
17881
18656
  type: "file_search_call";
17882
18657
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -18323,7 +19098,6 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
18323
19098
  } | null | undefined;
18324
19099
  completed_at?: number | null | undefined;
18325
19100
  user?: string | null | undefined;
18326
- temperature?: number | null | undefined;
18327
19101
  instructions?: string | ({
18328
19102
  role: "user" | "system" | "assistant" | "developer";
18329
19103
  content: string | ({
@@ -18342,6 +19116,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
18342
19116
  file_url?: string | null | undefined;
18343
19117
  })[];
18344
19118
  type?: "message" | null | undefined;
19119
+ phase?: "commentary" | "final_answer" | null | undefined;
18345
19120
  } | {
18346
19121
  role: "user" | "system" | "developer";
18347
19122
  content: ({
@@ -18406,6 +19181,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
18406
19181
  type: "refusal";
18407
19182
  refusal: string;
18408
19183
  })[];
19184
+ phase?: "commentary" | "final_answer" | null | undefined;
18409
19185
  } | {
18410
19186
  type: "file_search_call";
18411
19187
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -18713,6 +19489,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
18713
19489
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
18714
19490
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
18715
19491
  } | null | undefined;
19492
+ temperature?: number | null | undefined;
18716
19493
  background?: boolean | null | undefined;
18717
19494
  top_p?: number | null | undefined;
18718
19495
  conversation?: {
@@ -18805,6 +19582,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
18805
19582
  type: "refusal";
18806
19583
  refusal: string;
18807
19584
  })[];
19585
+ phase?: "commentary" | "final_answer" | null | undefined;
18808
19586
  } | {
18809
19587
  type: "file_search_call";
18810
19588
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -19251,7 +20029,6 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
19251
20029
  } | null | undefined;
19252
20030
  completed_at?: number | null | undefined;
19253
20031
  user?: string | null | undefined;
19254
- temperature?: number | null | undefined;
19255
20032
  instructions?: string | ({
19256
20033
  role: "user" | "system" | "assistant" | "developer";
19257
20034
  content: string | ({
@@ -19270,6 +20047,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
19270
20047
  file_url?: string | null | undefined;
19271
20048
  })[];
19272
20049
  type?: "message" | null | undefined;
20050
+ phase?: "commentary" | "final_answer" | null | undefined;
19273
20051
  } | {
19274
20052
  role: "user" | "system" | "developer";
19275
20053
  content: ({
@@ -19334,6 +20112,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
19334
20112
  type: "refusal";
19335
20113
  refusal: string;
19336
20114
  })[];
20115
+ phase?: "commentary" | "final_answer" | null | undefined;
19337
20116
  } | {
19338
20117
  type: "file_search_call";
19339
20118
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -19641,6 +20420,7 @@ export declare const ZResponse: z.ZodLazy<z.ZodObject<{
19641
20420
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
19642
20421
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
19643
20422
  } | null | undefined;
20423
+ temperature?: number | null | undefined;
19644
20424
  background?: boolean | null | undefined;
19645
20425
  top_p?: number | null | undefined;
19646
20426
  conversation?: {
@@ -21169,6 +21949,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
21169
21949
  type?: any;
21170
21950
  value?: string | null | undefined;
21171
21951
  }>>, "many">;
21952
+ field_count: z.ZodDefault<z.ZodNumber>;
21172
21953
  organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21173
21954
  created_at: z.ZodString;
21174
21955
  updated_at: z.ZodString;
@@ -21195,6 +21976,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
21195
21976
  type?: any;
21196
21977
  value?: string | null | undefined;
21197
21978
  }[];
21979
+ field_count: number;
21198
21980
  organization_id?: string | null | undefined;
21199
21981
  }, {
21200
21982
  id: string;
@@ -21220,6 +22002,7 @@ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
21220
22002
  value?: string | null | undefined;
21221
22003
  }[];
21222
22004
  organization_id?: string | null | undefined;
22005
+ field_count?: number | undefined;
21223
22006
  }>>;
21224
22007
  export type EditTemplate = z.infer<typeof ZEditTemplate>;
21225
22008
  export declare const ZFillTemplateRequest: z.ZodLazy<z.ZodObject<{
@@ -21698,7 +22481,7 @@ export declare const ZSplitResponse: z.ZodLazy<z.ZodObject<{
21698
22481
  splits: z.ZodArray<z.ZodLazy<z.ZodObject<{
21699
22482
  name: z.ZodString;
21700
22483
  pages: z.ZodArray<z.ZodNumber, "many">;
21701
- confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22484
+ likelihood: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21702
22485
  votes: z.ZodArray<z.ZodLazy<z.ZodObject<{
21703
22486
  pages: z.ZodArray<z.ZodNumber, "many">;
21704
22487
  }, "strip", z.ZodTypeAny, {
@@ -21734,7 +22517,7 @@ export declare const ZSplitResponse: z.ZodLazy<z.ZodObject<{
21734
22517
  first_page_y_start: number;
21735
22518
  last_page_y_end: number;
21736
22519
  }[];
21737
- confidence?: number | null | undefined;
22520
+ likelihood?: number | null | undefined;
21738
22521
  }, {
21739
22522
  pages: number[];
21740
22523
  name: string;
@@ -21747,7 +22530,7 @@ export declare const ZSplitResponse: z.ZodLazy<z.ZodObject<{
21747
22530
  first_page_y_start?: number | undefined;
21748
22531
  last_page_y_end?: number | undefined;
21749
22532
  }[];
21750
- confidence?: number | null | undefined;
22533
+ likelihood?: number | null | undefined;
21751
22534
  }>>, "many">;
21752
22535
  }, "strip", z.ZodTypeAny, {
21753
22536
  splits: {
@@ -21762,7 +22545,7 @@ export declare const ZSplitResponse: z.ZodLazy<z.ZodObject<{
21762
22545
  first_page_y_start: number;
21763
22546
  last_page_y_end: number;
21764
22547
  }[];
21765
- confidence?: number | null | undefined;
22548
+ likelihood?: number | null | undefined;
21766
22549
  }[];
21767
22550
  }, {
21768
22551
  splits: {
@@ -21777,14 +22560,14 @@ export declare const ZSplitResponse: z.ZodLazy<z.ZodObject<{
21777
22560
  first_page_y_start?: number | undefined;
21778
22561
  last_page_y_end?: number | undefined;
21779
22562
  }[];
21780
- confidence?: number | null | undefined;
22563
+ likelihood?: number | null | undefined;
21781
22564
  }[];
21782
22565
  }>>;
21783
22566
  export type SplitResponse = z.infer<typeof ZSplitResponse>;
21784
22567
  export declare const ZSplitResult: z.ZodLazy<z.ZodObject<{
21785
22568
  name: z.ZodString;
21786
22569
  pages: z.ZodArray<z.ZodNumber, "many">;
21787
- confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22570
+ likelihood: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21788
22571
  votes: z.ZodArray<z.ZodLazy<z.ZodObject<{
21789
22572
  pages: z.ZodArray<z.ZodNumber, "many">;
21790
22573
  }, "strip", z.ZodTypeAny, {
@@ -21820,7 +22603,7 @@ export declare const ZSplitResult: z.ZodLazy<z.ZodObject<{
21820
22603
  first_page_y_start: number;
21821
22604
  last_page_y_end: number;
21822
22605
  }[];
21823
- confidence?: number | null | undefined;
22606
+ likelihood?: number | null | undefined;
21824
22607
  }, {
21825
22608
  pages: number[];
21826
22609
  name: string;
@@ -21833,7 +22616,7 @@ export declare const ZSplitResult: z.ZodLazy<z.ZodObject<{
21833
22616
  first_page_y_start?: number | undefined;
21834
22617
  last_page_y_end?: number | undefined;
21835
22618
  }[];
21836
- confidence?: number | null | undefined;
22619
+ likelihood?: number | null | undefined;
21837
22620
  }>>;
21838
22621
  export type SplitResult = z.infer<typeof ZSplitResult>;
21839
22622
  export declare const ZSubdocument: z.ZodLazy<z.ZodObject<{
@@ -22265,6 +23048,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
22265
23048
  }>>;
22266
23049
  field_count: z.ZodNumber;
22267
23050
  }, "strip", z.ZodTypeAny, {
23051
+ field_count: number;
22268
23052
  form_schema: {
22269
23053
  form_fields: {
22270
23054
  description: string;
@@ -22284,8 +23068,8 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
22284
23068
  filename: string;
22285
23069
  url: string;
22286
23070
  };
22287
- field_count: number;
22288
23071
  }, {
23072
+ field_count: number;
22289
23073
  form_schema: {
22290
23074
  form_fields: {
22291
23075
  description: string;
@@ -22305,7 +23089,6 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
22305
23089
  filename: string;
22306
23090
  url: string;
22307
23091
  };
22308
- field_count: number;
22309
23092
  }>>;
22310
23093
  export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
22311
23094
  export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
@@ -22466,6 +23249,60 @@ export declare const ZProcessOCRRequest: z.ZodLazy<z.ZodObject<{
22466
23249
  };
22467
23250
  }>>;
22468
23251
  export type ProcessOCRRequest = z.infer<typeof ZProcessOCRRequest>;
23252
+ export declare const ZGenerateSplitConfigRequest: z.ZodLazy<z.ZodObject<{
23253
+ document: z.ZodLazy<z.ZodObject<{
23254
+ filename: z.ZodString;
23255
+ url: z.ZodString;
23256
+ }, "strip", z.ZodTypeAny, {
23257
+ filename: string;
23258
+ url: string;
23259
+ }, {
23260
+ filename: string;
23261
+ url: string;
23262
+ }>>;
23263
+ model: z.ZodDefault<z.ZodString>;
23264
+ }, "strip", z.ZodTypeAny, {
23265
+ model: string;
23266
+ document: {
23267
+ filename: string;
23268
+ url: string;
23269
+ };
23270
+ }, {
23271
+ document: {
23272
+ filename: string;
23273
+ url: string;
23274
+ };
23275
+ model?: string | undefined;
23276
+ }>>;
23277
+ export type GenerateSplitConfigRequest = z.infer<typeof ZGenerateSplitConfigRequest>;
23278
+ export declare const ZGenerateSplitConfigResponse: z.ZodLazy<z.ZodObject<{
23279
+ subdocuments: z.ZodArray<z.ZodLazy<z.ZodObject<{
23280
+ name: z.ZodString;
23281
+ description: z.ZodString;
23282
+ partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23283
+ }, "strip", z.ZodTypeAny, {
23284
+ name: string;
23285
+ description: string;
23286
+ partition_key?: string | null | undefined;
23287
+ }, {
23288
+ name: string;
23289
+ description: string;
23290
+ partition_key?: string | null | undefined;
23291
+ }>>, "many">;
23292
+ }, "strip", z.ZodTypeAny, {
23293
+ subdocuments: {
23294
+ name: string;
23295
+ description: string;
23296
+ partition_key?: string | null | undefined;
23297
+ }[];
23298
+ }, {
23299
+ subdocuments: {
23300
+ name: string;
23301
+ description: string;
23302
+ partition_key?: string | null | undefined;
23303
+ }[];
23304
+ }>>;
23305
+ export type GenerateSplitConfigResponse = z.infer<typeof ZGenerateSplitConfigResponse>;
22469
23306
  export declare const ZPartition: z.ZodLazy<z.ZodObject<{
22470
23307
  key: z.ZodString;
22471
23308
  pages: z.ZodArray<z.ZodNumber, "many">;
@@ -24427,12 +25264,12 @@ export declare const ZConsensusModel: z.ZodLazy<z.ZodObject<{
24427
25264
  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
25265
  }, "strip", z.ZodTypeAny, {
24429
25266
  model: string;
24430
- temperature: number;
24431
25267
  reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
25268
+ temperature: number;
24432
25269
  }, {
24433
25270
  model: string;
24434
- temperature?: number | undefined;
24435
25271
  reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
25272
+ temperature?: number | undefined;
24436
25273
  }>>;
24437
25274
  export type ConsensusModel = z.infer<typeof ZConsensusModel>;
24438
25275
  export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
@@ -24449,13 +25286,9 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
24449
25286
  image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
24450
25287
  model: z.ZodString;
24451
25288
  json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
24452
- temperature: z.ZodDefault<z.ZodNumber>;
24453
25289
  n_consensus: z.ZodDefault<z.ZodNumber>;
24454
25290
  stream: z.ZodDefault<z.ZodBoolean>;
24455
- seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24456
- store: z.ZodDefault<z.ZodBoolean>;
24457
25291
  chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
24458
- web_search: z.ZodDefault<z.ZodBoolean>;
24459
25292
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
24460
25293
  extraction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24461
25294
  additional_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
@@ -24650,18 +25483,14 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
24650
25483
  metadata: Record<string, string>;
24651
25484
  json_schema: Record<string, any>;
24652
25485
  model: string;
24653
- temperature: number;
24654
25486
  image_resolution_dpi: number;
24655
25487
  n_consensus: number;
24656
- web_search: boolean;
24657
25488
  document: {
24658
25489
  filename: string;
24659
25490
  url: string;
24660
25491
  };
24661
- store: boolean;
24662
25492
  chunking_keys?: Record<string, string> | null | undefined;
24663
25493
  extraction_id?: string | null | undefined;
24664
- seed?: number | null | undefined;
24665
25494
  additional_messages?: {
24666
25495
  role: "user" | "system" | "assistant" | "developer" | "tool";
24667
25496
  content?: string | ({
@@ -24706,14 +25535,10 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
24706
25535
  url: string;
24707
25536
  };
24708
25537
  stream?: boolean | undefined;
24709
- temperature?: number | undefined;
24710
25538
  image_resolution_dpi?: number | undefined;
24711
25539
  n_consensus?: number | undefined;
24712
25540
  chunking_keys?: Record<string, string> | null | undefined;
24713
- web_search?: boolean | undefined;
24714
25541
  extraction_id?: string | null | undefined;
24715
- seed?: number | null | undefined;
24716
- store?: boolean | undefined;
24717
25542
  additional_messages?: {
24718
25543
  role: "user" | "system" | "assistant" | "developer" | "tool";
24719
25544
  content?: string | ({
@@ -25381,6 +26206,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25381
26206
  file_id?: string | null | undefined;
25382
26207
  }>>]>, "many">]>;
25383
26208
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">, z.ZodLiteral<"developer">]>;
26209
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
25384
26210
  type: z.ZodLiteral<"message">;
25385
26211
  }, "strip", z.ZodTypeAny, {
25386
26212
  type: "message";
@@ -25400,6 +26226,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25400
26226
  file_url: string;
25401
26227
  file_id?: string | null | undefined;
25402
26228
  })[];
26229
+ phase?: "commentary" | "final_answer" | null | undefined;
25403
26230
  }, {
25404
26231
  type: "message";
25405
26232
  role: "user" | "system" | "assistant" | "developer";
@@ -25418,6 +26245,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25418
26245
  file_url: string;
25419
26246
  file_id?: string | null | undefined;
25420
26247
  })[];
26248
+ phase?: "commentary" | "final_answer" | null | undefined;
25421
26249
  }>>, z.ZodLazy<z.ZodObject<{
25422
26250
  content: z.ZodArray<z.ZodUnion<[z.ZodLazy<z.ZodObject<{
25423
26251
  text: z.ZodString;
@@ -25696,6 +26524,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25696
26524
  role: z.ZodLiteral<"assistant">;
25697
26525
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
25698
26526
  type: z.ZodLiteral<"message">;
26527
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
25699
26528
  }, "strip", z.ZodTypeAny, {
25700
26529
  type: "message";
25701
26530
  status: "in_progress" | "completed" | "incomplete";
@@ -25741,6 +26570,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25741
26570
  type: "refusal";
25742
26571
  refusal: string;
25743
26572
  })[];
26573
+ phase?: "commentary" | "final_answer" | null | undefined;
25744
26574
  }, {
25745
26575
  type: "message";
25746
26576
  status: "in_progress" | "completed" | "incomplete";
@@ -25786,6 +26616,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
25786
26616
  type: "refusal";
25787
26617
  refusal: string;
25788
26618
  })[];
26619
+ phase?: "commentary" | "final_answer" | null | undefined;
25789
26620
  }>>, z.ZodLazy<z.ZodObject<{
25790
26621
  id: z.ZodString;
25791
26622
  queries: z.ZodArray<z.ZodString, "many">;
@@ -29074,6 +29905,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29074
29905
  file_url?: string | null | undefined;
29075
29906
  }>>]>, "many">]>;
29076
29907
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">, z.ZodLiteral<"developer">]>;
29908
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
29077
29909
  type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"message">>>;
29078
29910
  }, "strip", z.ZodTypeAny, {
29079
29911
  role: "user" | "system" | "assistant" | "developer";
@@ -29093,6 +29925,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29093
29925
  file_url?: string | null | undefined;
29094
29926
  })[];
29095
29927
  type?: "message" | null | undefined;
29928
+ phase?: "commentary" | "final_answer" | null | undefined;
29096
29929
  }, {
29097
29930
  role: "user" | "system" | "assistant" | "developer";
29098
29931
  content: string | ({
@@ -29111,6 +29944,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29111
29944
  file_url?: string | null | undefined;
29112
29945
  })[];
29113
29946
  type?: "message" | null | undefined;
29947
+ phase?: "commentary" | "final_answer" | null | undefined;
29114
29948
  }>>, z.ZodLazy<z.ZodObject<{
29115
29949
  content: z.ZodArray<z.ZodUnion<[z.ZodLazy<z.ZodObject<{
29116
29950
  text: z.ZodString;
@@ -29389,6 +30223,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29389
30223
  role: z.ZodLiteral<"assistant">;
29390
30224
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
29391
30225
  type: z.ZodLiteral<"message">;
30226
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
29392
30227
  }, "strip", z.ZodTypeAny, {
29393
30228
  type: "message";
29394
30229
  status: "in_progress" | "completed" | "incomplete";
@@ -29434,6 +30269,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29434
30269
  type: "refusal";
29435
30270
  refusal: string;
29436
30271
  })[];
30272
+ phase?: "commentary" | "final_answer" | null | undefined;
29437
30273
  }, {
29438
30274
  type: "message";
29439
30275
  status: "in_progress" | "completed" | "incomplete";
@@ -29479,6 +30315,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
29479
30315
  type: "refusal";
29480
30316
  refusal: string;
29481
30317
  })[];
30318
+ phase?: "commentary" | "final_answer" | null | undefined;
29482
30319
  }>>, z.ZodLazy<z.ZodObject<{
29483
30320
  id: z.ZodString;
29484
30321
  queries: z.ZodArray<z.ZodString, "many">;
@@ -30904,6 +31741,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
30904
31741
  role: z.ZodLiteral<"assistant">;
30905
31742
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
30906
31743
  type: z.ZodLiteral<"message">;
31744
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
30907
31745
  }, "strip", z.ZodTypeAny, {
30908
31746
  type: "message";
30909
31747
  status: "in_progress" | "completed" | "incomplete";
@@ -30949,6 +31787,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
30949
31787
  type: "refusal";
30950
31788
  refusal: string;
30951
31789
  })[];
31790
+ phase?: "commentary" | "final_answer" | null | undefined;
30952
31791
  }, {
30953
31792
  type: "message";
30954
31793
  status: "in_progress" | "completed" | "incomplete";
@@ -30994,6 +31833,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
30994
31833
  type: "refusal";
30995
31834
  refusal: string;
30996
31835
  })[];
31836
+ phase?: "commentary" | "final_answer" | null | undefined;
30997
31837
  }>>, z.ZodLazy<z.ZodObject<{
30998
31838
  id: z.ZodString;
30999
31839
  queries: z.ZodArray<z.ZodString, "many">;
@@ -33115,6 +33955,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
33115
33955
  type: "refusal";
33116
33956
  refusal: string;
33117
33957
  })[];
33958
+ phase?: "commentary" | "final_answer" | null | undefined;
33118
33959
  } | {
33119
33960
  type: "file_search_call";
33120
33961
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -33561,7 +34402,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
33561
34402
  } | null | undefined;
33562
34403
  completed_at?: number | null | undefined;
33563
34404
  user?: string | null | undefined;
33564
- temperature?: number | null | undefined;
33565
34405
  instructions?: string | ({
33566
34406
  role: "user" | "system" | "assistant" | "developer";
33567
34407
  content: string | ({
@@ -33580,6 +34420,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
33580
34420
  file_url?: string | null | undefined;
33581
34421
  })[];
33582
34422
  type?: "message" | null | undefined;
34423
+ phase?: "commentary" | "final_answer" | null | undefined;
33583
34424
  } | {
33584
34425
  role: "user" | "system" | "developer";
33585
34426
  content: ({
@@ -33644,6 +34485,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
33644
34485
  type: "refusal";
33645
34486
  refusal: string;
33646
34487
  })[];
34488
+ phase?: "commentary" | "final_answer" | null | undefined;
33647
34489
  } | {
33648
34490
  type: "file_search_call";
33649
34491
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -33951,6 +34793,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
33951
34793
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
33952
34794
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
33953
34795
  } | null | undefined;
34796
+ temperature?: number | null | undefined;
33954
34797
  background?: boolean | null | undefined;
33955
34798
  top_p?: number | null | undefined;
33956
34799
  conversation?: {
@@ -34043,6 +34886,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34043
34886
  type: "refusal";
34044
34887
  refusal: string;
34045
34888
  })[];
34889
+ phase?: "commentary" | "final_answer" | null | undefined;
34046
34890
  } | {
34047
34891
  type: "file_search_call";
34048
34892
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -34489,7 +35333,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34489
35333
  } | null | undefined;
34490
35334
  completed_at?: number | null | undefined;
34491
35335
  user?: string | null | undefined;
34492
- temperature?: number | null | undefined;
34493
35336
  instructions?: string | ({
34494
35337
  role: "user" | "system" | "assistant" | "developer";
34495
35338
  content: string | ({
@@ -34508,6 +35351,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34508
35351
  file_url?: string | null | undefined;
34509
35352
  })[];
34510
35353
  type?: "message" | null | undefined;
35354
+ phase?: "commentary" | "final_answer" | null | undefined;
34511
35355
  } | {
34512
35356
  role: "user" | "system" | "developer";
34513
35357
  content: ({
@@ -34572,6 +35416,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34572
35416
  type: "refusal";
34573
35417
  refusal: string;
34574
35418
  })[];
35419
+ phase?: "commentary" | "final_answer" | null | undefined;
34575
35420
  } | {
34576
35421
  type: "file_search_call";
34577
35422
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -34879,6 +35724,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34879
35724
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
34880
35725
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
34881
35726
  } | null | undefined;
35727
+ temperature?: number | null | undefined;
34882
35728
  background?: boolean | null | undefined;
34883
35729
  top_p?: number | null | undefined;
34884
35730
  conversation?: {
@@ -34928,11 +35774,11 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
34928
35774
  }, "strip", z.ZodTypeAny, {
34929
35775
  json_schema: Record<string, any>;
34930
35776
  model: string;
34931
- temperature: number;
34932
35777
  document: {
34933
35778
  filename: string;
34934
35779
  url: string;
34935
35780
  };
35781
+ temperature: number;
34936
35782
  messages?: {
34937
35783
  role: "user" | "system" | "assistant" | "developer" | "tool";
34938
35784
  content?: string | ({
@@ -35071,6 +35917,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
35071
35917
  file_url: string;
35072
35918
  file_id?: string | null | undefined;
35073
35919
  })[];
35920
+ phase?: "commentary" | "final_answer" | null | undefined;
35074
35921
  } | {
35075
35922
  type: "message";
35076
35923
  status: "in_progress" | "completed" | "incomplete";
@@ -35135,6 +35982,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
35135
35982
  type: "refusal";
35136
35983
  refusal: string;
35137
35984
  })[];
35985
+ phase?: "commentary" | "final_answer" | null | undefined;
35138
35986
  } | {
35139
35987
  type: "file_search_call";
35140
35988
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -35740,6 +36588,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
35740
36588
  type: "refusal";
35741
36589
  refusal: string;
35742
36590
  })[];
36591
+ phase?: "commentary" | "final_answer" | null | undefined;
35743
36592
  } | {
35744
36593
  type: "file_search_call";
35745
36594
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -36186,7 +37035,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36186
37035
  } | null | undefined;
36187
37036
  completed_at?: number | null | undefined;
36188
37037
  user?: string | null | undefined;
36189
- temperature?: number | null | undefined;
36190
37038
  instructions?: string | ({
36191
37039
  role: "user" | "system" | "assistant" | "developer";
36192
37040
  content: string | ({
@@ -36205,6 +37053,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36205
37053
  file_url?: string | null | undefined;
36206
37054
  })[];
36207
37055
  type?: "message" | null | undefined;
37056
+ phase?: "commentary" | "final_answer" | null | undefined;
36208
37057
  } | {
36209
37058
  role: "user" | "system" | "developer";
36210
37059
  content: ({
@@ -36269,6 +37118,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36269
37118
  type: "refusal";
36270
37119
  refusal: string;
36271
37120
  })[];
37121
+ phase?: "commentary" | "final_answer" | null | undefined;
36272
37122
  } | {
36273
37123
  type: "file_search_call";
36274
37124
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -36576,6 +37426,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36576
37426
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
36577
37427
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
36578
37428
  } | null | undefined;
37429
+ temperature?: number | null | undefined;
36579
37430
  background?: boolean | null | undefined;
36580
37431
  top_p?: number | null | undefined;
36581
37432
  conversation?: {
@@ -36765,6 +37616,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36765
37616
  file_url: string;
36766
37617
  file_id?: string | null | undefined;
36767
37618
  })[];
37619
+ phase?: "commentary" | "final_answer" | null | undefined;
36768
37620
  } | {
36769
37621
  type: "message";
36770
37622
  status: "in_progress" | "completed" | "incomplete";
@@ -36829,6 +37681,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
36829
37681
  type: "refusal";
36830
37682
  refusal: string;
36831
37683
  })[];
37684
+ phase?: "commentary" | "final_answer" | null | undefined;
36832
37685
  } | {
36833
37686
  type: "file_search_call";
36834
37687
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -37434,6 +38287,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
37434
38287
  type: "refusal";
37435
38288
  refusal: string;
37436
38289
  })[];
38290
+ phase?: "commentary" | "final_answer" | null | undefined;
37437
38291
  } | {
37438
38292
  type: "file_search_call";
37439
38293
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -37880,7 +38734,6 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
37880
38734
  } | null | undefined;
37881
38735
  completed_at?: number | null | undefined;
37882
38736
  user?: string | null | undefined;
37883
- temperature?: number | null | undefined;
37884
38737
  instructions?: string | ({
37885
38738
  role: "user" | "system" | "assistant" | "developer";
37886
38739
  content: string | ({
@@ -37899,6 +38752,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
37899
38752
  file_url?: string | null | undefined;
37900
38753
  })[];
37901
38754
  type?: "message" | null | undefined;
38755
+ phase?: "commentary" | "final_answer" | null | undefined;
37902
38756
  } | {
37903
38757
  role: "user" | "system" | "developer";
37904
38758
  content: ({
@@ -37963,6 +38817,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
37963
38817
  type: "refusal";
37964
38818
  refusal: string;
37965
38819
  })[];
38820
+ phase?: "commentary" | "final_answer" | null | undefined;
37966
38821
  } | {
37967
38822
  type: "file_search_call";
37968
38823
  status: "in_progress" | "completed" | "failed" | "incomplete" | "searching";
@@ -38270,6 +39125,7 @@ export declare const ZLogExtractionRequest: z.ZodLazy<z.ZodObject<{
38270
39125
  effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
38271
39126
  generate_summary?: "auto" | "concise" | "detailed" | null | undefined;
38272
39127
  } | null | undefined;
39128
+ temperature?: number | null | undefined;
38273
39129
  background?: boolean | null | undefined;
38274
39130
  top_p?: number | null | undefined;
38275
39131
  conversation?: {
@@ -46386,6 +47242,7 @@ export declare const ZEasyInputMessage: z.ZodLazy<z.ZodObject<{
46386
47242
  file_url?: string | null | undefined;
46387
47243
  }>>]>, "many">]>;
46388
47244
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">, z.ZodLiteral<"developer">]>;
47245
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
46389
47246
  type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"message">>>;
46390
47247
  }, "strip", z.ZodTypeAny, {
46391
47248
  role: "user" | "system" | "assistant" | "developer";
@@ -46405,6 +47262,7 @@ export declare const ZEasyInputMessage: z.ZodLazy<z.ZodObject<{
46405
47262
  file_url?: string | null | undefined;
46406
47263
  })[];
46407
47264
  type?: "message" | null | undefined;
47265
+ phase?: "commentary" | "final_answer" | null | undefined;
46408
47266
  }, {
46409
47267
  role: "user" | "system" | "assistant" | "developer";
46410
47268
  content: string | ({
@@ -46423,6 +47281,7 @@ export declare const ZEasyInputMessage: z.ZodLazy<z.ZodObject<{
46423
47281
  file_url?: string | null | undefined;
46424
47282
  })[];
46425
47283
  type?: "message" | null | undefined;
47284
+ phase?: "commentary" | "final_answer" | null | undefined;
46426
47285
  }>>;
46427
47286
  export type EasyInputMessage = z.infer<typeof ZEasyInputMessage>;
46428
47287
  export declare const ZMessage: z.ZodLazy<z.ZodObject<{
@@ -46705,6 +47564,7 @@ export declare const ZResponseOutputMessage: z.ZodLazy<z.ZodObject<{
46705
47564
  role: z.ZodLiteral<"assistant">;
46706
47565
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
46707
47566
  type: z.ZodLiteral<"message">;
47567
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
46708
47568
  }, "strip", z.ZodTypeAny, {
46709
47569
  type: "message";
46710
47570
  status: "in_progress" | "completed" | "incomplete";
@@ -46750,6 +47610,7 @@ export declare const ZResponseOutputMessage: z.ZodLazy<z.ZodObject<{
46750
47610
  type: "refusal";
46751
47611
  refusal: string;
46752
47612
  })[];
47613
+ phase?: "commentary" | "final_answer" | null | undefined;
46753
47614
  }, {
46754
47615
  type: "message";
46755
47616
  status: "in_progress" | "completed" | "incomplete";
@@ -46795,6 +47656,7 @@ export declare const ZResponseOutputMessage: z.ZodLazy<z.ZodObject<{
46795
47656
  type: "refusal";
46796
47657
  refusal: string;
46797
47658
  })[];
47659
+ phase?: "commentary" | "final_answer" | null | undefined;
46798
47660
  }>>;
46799
47661
  export type ResponseOutputMessage = z.infer<typeof ZResponseOutputMessage>;
46800
47662
  export declare const ZResponseFileSearchToolCall: z.ZodLazy<z.ZodObject<{
@@ -51088,6 +51950,7 @@ export declare const ZResponseOutputMessageParam: z.ZodLazy<z.ZodObject<{
51088
51950
  role: z.ZodLiteral<"assistant">;
51089
51951
  status: z.ZodUnion<[z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"incomplete">]>;
51090
51952
  type: z.ZodLiteral<"message">;
51953
+ phase: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"commentary">, z.ZodLiteral<"final_answer">]>>>;
51091
51954
  }, "strip", z.ZodTypeAny, {
51092
51955
  type: "message";
51093
51956
  status: "in_progress" | "completed" | "incomplete";
@@ -51133,6 +51996,7 @@ export declare const ZResponseOutputMessageParam: z.ZodLazy<z.ZodObject<{
51133
51996
  type: "refusal";
51134
51997
  refusal: string;
51135
51998
  })[];
51999
+ phase?: "commentary" | "final_answer" | null | undefined;
51136
52000
  }, {
51137
52001
  type: "message";
51138
52002
  status: "in_progress" | "completed" | "incomplete";
@@ -51178,6 +52042,7 @@ export declare const ZResponseOutputMessageParam: z.ZodLazy<z.ZodObject<{
51178
52042
  type: "refusal";
51179
52043
  refusal: string;
51180
52044
  })[];
52045
+ phase?: "commentary" | "final_answer" | null | undefined;
51181
52046
  }>>;
51182
52047
  export type ResponseOutputMessageParam = z.infer<typeof ZResponseOutputMessageParam>;
51183
52048
  export declare const ZResponseFileSearchToolCallParam: z.ZodLazy<z.ZodObject<{