@deepintel-ltd/farmpro-contracts 1.7.13 → 1.7.19

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.
Files changed (78) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/agent-workflows.routes.d.ts +88 -88
  5. package/dist/routes/agents.routes.d.ts +3260 -0
  6. package/dist/routes/agents.routes.d.ts.map +1 -1
  7. package/dist/routes/agents.routes.js +130 -1
  8. package/dist/routes/analytics.routes.d.ts +20 -20
  9. package/dist/routes/documents.routes.d.ts +855 -58
  10. package/dist/routes/documents.routes.d.ts.map +1 -1
  11. package/dist/routes/documents.routes.js +43 -1
  12. package/dist/routes/equipment.routes.d.ts +38 -38
  13. package/dist/routes/farm-status.routes.d.ts +315 -0
  14. package/dist/routes/farm-status.routes.d.ts.map +1 -0
  15. package/dist/routes/farm-status.routes.js +26 -0
  16. package/dist/routes/fertigation.routes.d.ts +148 -148
  17. package/dist/routes/field-monitoring.routes.d.ts +52 -52
  18. package/dist/routes/field-observations.routes.d.ts +56 -56
  19. package/dist/routes/finance.routes.d.ts +3493 -0
  20. package/dist/routes/finance.routes.d.ts.map +1 -1
  21. package/dist/routes/finance.routes.js +158 -1
  22. package/dist/routes/geofences.routes.d.ts.map +1 -1
  23. package/dist/routes/index.d.ts +3 -0
  24. package/dist/routes/index.d.ts.map +1 -1
  25. package/dist/routes/index.js +2 -0
  26. package/dist/routes/irrigation.routes.d.ts +6 -6
  27. package/dist/routes/measurements.routes.d.ts +13 -4
  28. package/dist/routes/measurements.routes.d.ts.map +1 -1
  29. package/dist/routes/monitoring-visualization.routes.d.ts +43 -36
  30. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  31. package/dist/routes/monitoring-visualization.routes.js +7 -4
  32. package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
  33. package/dist/routes/prescription-maps.routes.d.ts +570 -23
  34. package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
  35. package/dist/routes/prescription-maps.routes.js +18 -1
  36. package/dist/routes/soil-tests.routes.d.ts +30 -30
  37. package/dist/routes/subscriptions.routes.d.ts +14 -14
  38. package/dist/routes/weather.routes.d.ts +545 -52
  39. package/dist/routes/weather.routes.d.ts.map +1 -1
  40. package/dist/routes/weather.routes.js +13 -1
  41. package/dist/routes/yield-prediction.routes.d.ts +30 -30
  42. package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
  43. package/dist/schemas/agents.schemas.d.ts +1120 -0
  44. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  45. package/dist/schemas/agents.schemas.js +181 -0
  46. package/dist/schemas/analytics.schemas.d.ts +56 -56
  47. package/dist/schemas/documents.schemas.d.ts +248 -48
  48. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  49. package/dist/schemas/documents.schemas.js +38 -0
  50. package/dist/schemas/equipment.schemas.d.ts +30 -30
  51. package/dist/schemas/farm-status.schemas.d.ts +451 -0
  52. package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
  53. package/dist/schemas/farm-status.schemas.js +44 -0
  54. package/dist/schemas/fertigation.schemas.d.ts +50 -50
  55. package/dist/schemas/field-monitoring.schemas.d.ts +42 -42
  56. package/dist/schemas/field-observations.schemas.d.ts +44 -44
  57. package/dist/schemas/finance.schemas.d.ts +1057 -0
  58. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  59. package/dist/schemas/finance.schemas.js +170 -0
  60. package/dist/schemas/irrigation.schemas.d.ts +8 -8
  61. package/dist/schemas/measurements.schemas.d.ts +21 -8
  62. package/dist/schemas/measurements.schemas.d.ts.map +1 -1
  63. package/dist/schemas/measurements.schemas.js +13 -6
  64. package/dist/schemas/monitoring-visualization.schemas.d.ts +50 -43
  65. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  66. package/dist/schemas/monitoring-visualization.schemas.js +27 -17
  67. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  68. package/dist/schemas/prescription-maps.schemas.d.ts +45 -22
  69. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  70. package/dist/schemas/prescription-maps.schemas.js +9 -1
  71. package/dist/schemas/recommendations.schemas.d.ts +2 -2
  72. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  73. package/dist/schemas/subscriptions.schemas.d.ts +22 -22
  74. package/dist/schemas/weather.schemas.d.ts +789 -112
  75. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  76. package/dist/schemas/weather.schemas.js +37 -0
  77. package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
  78. package/package.json +1 -1
@@ -2596,6 +2596,1116 @@ export declare const surveyGeoJsonResponseSchema: z.ZodObject<{
2596
2596
  meta?: Record<string, unknown> | undefined;
2597
2597
  }[] | undefined;
2598
2598
  }>;
2599
+ export declare const resourceConflictResponseSchema: z.ZodObject<{
2600
+ data: z.ZodObject<{
2601
+ type: z.ZodLiteral<"resource-conflicts">;
2602
+ id: z.ZodString;
2603
+ attributes: z.ZodObject<{
2604
+ conflicts: z.ZodArray<z.ZodObject<{
2605
+ date: z.ZodString;
2606
+ resourceType: z.ZodEnum<["assignee", "inventory_item"]>;
2607
+ resourceId: z.ZodString;
2608
+ taskIds: z.ZodArray<z.ZodString, "many">;
2609
+ message: z.ZodString;
2610
+ }, "strip", z.ZodTypeAny, {
2611
+ message: string;
2612
+ date: string;
2613
+ resourceType: "inventory_item" | "assignee";
2614
+ resourceId: string;
2615
+ taskIds: string[];
2616
+ }, {
2617
+ message: string;
2618
+ date: string;
2619
+ resourceType: "inventory_item" | "assignee";
2620
+ resourceId: string;
2621
+ taskIds: string[];
2622
+ }>, "many">;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ conflicts: {
2625
+ message: string;
2626
+ date: string;
2627
+ resourceType: "inventory_item" | "assignee";
2628
+ resourceId: string;
2629
+ taskIds: string[];
2630
+ }[];
2631
+ }, {
2632
+ conflicts: {
2633
+ message: string;
2634
+ date: string;
2635
+ resourceType: "inventory_item" | "assignee";
2636
+ resourceId: string;
2637
+ taskIds: string[];
2638
+ }[];
2639
+ }>;
2640
+ }, "strip", z.ZodTypeAny, {
2641
+ type: "resource-conflicts";
2642
+ id: string;
2643
+ attributes: {
2644
+ conflicts: {
2645
+ message: string;
2646
+ date: string;
2647
+ resourceType: "inventory_item" | "assignee";
2648
+ resourceId: string;
2649
+ taskIds: string[];
2650
+ }[];
2651
+ };
2652
+ }, {
2653
+ type: "resource-conflicts";
2654
+ id: string;
2655
+ attributes: {
2656
+ conflicts: {
2657
+ message: string;
2658
+ date: string;
2659
+ resourceType: "inventory_item" | "assignee";
2660
+ resourceId: string;
2661
+ taskIds: string[];
2662
+ }[];
2663
+ };
2664
+ }>;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ data: {
2667
+ type: "resource-conflicts";
2668
+ id: string;
2669
+ attributes: {
2670
+ conflicts: {
2671
+ message: string;
2672
+ date: string;
2673
+ resourceType: "inventory_item" | "assignee";
2674
+ resourceId: string;
2675
+ taskIds: string[];
2676
+ }[];
2677
+ };
2678
+ };
2679
+ }, {
2680
+ data: {
2681
+ type: "resource-conflicts";
2682
+ id: string;
2683
+ attributes: {
2684
+ conflicts: {
2685
+ message: string;
2686
+ date: string;
2687
+ resourceType: "inventory_item" | "assignee";
2688
+ resourceId: string;
2689
+ taskIds: string[];
2690
+ }[];
2691
+ };
2692
+ };
2693
+ }>;
2694
+ export declare const gddTrackerResponseSchema: z.ZodObject<{
2695
+ data: z.ZodObject<{
2696
+ type: z.ZodLiteral<"gdd-tracker">;
2697
+ id: z.ZodString;
2698
+ attributes: z.ZodObject<{
2699
+ fieldId: z.ZodString;
2700
+ crop: z.ZodNullable<z.ZodString>;
2701
+ baseTemperatureC: z.ZodNumber;
2702
+ dailyGdd: z.ZodArray<z.ZodObject<{
2703
+ date: z.ZodString;
2704
+ gdd: z.ZodNumber;
2705
+ cumulativeGdd: z.ZodNumber;
2706
+ }, "strip", z.ZodTypeAny, {
2707
+ date: string;
2708
+ gdd: number;
2709
+ cumulativeGdd: number;
2710
+ }, {
2711
+ date: string;
2712
+ gdd: number;
2713
+ cumulativeGdd: number;
2714
+ }>, "many">;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ crop: string | null;
2717
+ fieldId: string;
2718
+ baseTemperatureC: number;
2719
+ dailyGdd: {
2720
+ date: string;
2721
+ gdd: number;
2722
+ cumulativeGdd: number;
2723
+ }[];
2724
+ }, {
2725
+ crop: string | null;
2726
+ fieldId: string;
2727
+ baseTemperatureC: number;
2728
+ dailyGdd: {
2729
+ date: string;
2730
+ gdd: number;
2731
+ cumulativeGdd: number;
2732
+ }[];
2733
+ }>;
2734
+ }, "strip", z.ZodTypeAny, {
2735
+ type: "gdd-tracker";
2736
+ id: string;
2737
+ attributes: {
2738
+ crop: string | null;
2739
+ fieldId: string;
2740
+ baseTemperatureC: number;
2741
+ dailyGdd: {
2742
+ date: string;
2743
+ gdd: number;
2744
+ cumulativeGdd: number;
2745
+ }[];
2746
+ };
2747
+ }, {
2748
+ type: "gdd-tracker";
2749
+ id: string;
2750
+ attributes: {
2751
+ crop: string | null;
2752
+ fieldId: string;
2753
+ baseTemperatureC: number;
2754
+ dailyGdd: {
2755
+ date: string;
2756
+ gdd: number;
2757
+ cumulativeGdd: number;
2758
+ }[];
2759
+ };
2760
+ }>;
2761
+ }, "strip", z.ZodTypeAny, {
2762
+ data: {
2763
+ type: "gdd-tracker";
2764
+ id: string;
2765
+ attributes: {
2766
+ crop: string | null;
2767
+ fieldId: string;
2768
+ baseTemperatureC: number;
2769
+ dailyGdd: {
2770
+ date: string;
2771
+ gdd: number;
2772
+ cumulativeGdd: number;
2773
+ }[];
2774
+ };
2775
+ };
2776
+ }, {
2777
+ data: {
2778
+ type: "gdd-tracker";
2779
+ id: string;
2780
+ attributes: {
2781
+ crop: string | null;
2782
+ fieldId: string;
2783
+ baseTemperatureC: number;
2784
+ dailyGdd: {
2785
+ date: string;
2786
+ gdd: number;
2787
+ cumulativeGdd: number;
2788
+ }[];
2789
+ };
2790
+ };
2791
+ }>;
2792
+ export declare const reorderInsightsResponseSchema: z.ZodObject<{
2793
+ data: z.ZodObject<{
2794
+ type: z.ZodLiteral<"inventory-reorder-insights">;
2795
+ id: z.ZodString;
2796
+ attributes: z.ZodObject<{
2797
+ items: z.ZodArray<z.ZodObject<{
2798
+ inventoryItemId: z.ZodString;
2799
+ name: z.ZodString;
2800
+ currentStock: z.ZodNumber;
2801
+ projectedUsage14d: z.ZodNumber;
2802
+ projectedRemaining14d: z.ZodNumber;
2803
+ reorderSuggested: z.ZodBoolean;
2804
+ urgency: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
2805
+ recommendedOrderBy: z.ZodOptional<z.ZodString>;
2806
+ recommendedQuantity: z.ZodOptional<z.ZodNumber>;
2807
+ reason: z.ZodOptional<z.ZodString>;
2808
+ }, "strip", z.ZodTypeAny, {
2809
+ name: string;
2810
+ inventoryItemId: string;
2811
+ currentStock: number;
2812
+ projectedUsage14d: number;
2813
+ projectedRemaining14d: number;
2814
+ reorderSuggested: boolean;
2815
+ reason?: string | undefined;
2816
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2817
+ recommendedOrderBy?: string | undefined;
2818
+ recommendedQuantity?: number | undefined;
2819
+ }, {
2820
+ name: string;
2821
+ inventoryItemId: string;
2822
+ currentStock: number;
2823
+ projectedUsage14d: number;
2824
+ projectedRemaining14d: number;
2825
+ reorderSuggested: boolean;
2826
+ reason?: string | undefined;
2827
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2828
+ recommendedOrderBy?: string | undefined;
2829
+ recommendedQuantity?: number | undefined;
2830
+ }>, "many">;
2831
+ }, "strip", z.ZodTypeAny, {
2832
+ items: {
2833
+ name: string;
2834
+ inventoryItemId: string;
2835
+ currentStock: number;
2836
+ projectedUsage14d: number;
2837
+ projectedRemaining14d: number;
2838
+ reorderSuggested: boolean;
2839
+ reason?: string | undefined;
2840
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2841
+ recommendedOrderBy?: string | undefined;
2842
+ recommendedQuantity?: number | undefined;
2843
+ }[];
2844
+ }, {
2845
+ items: {
2846
+ name: string;
2847
+ inventoryItemId: string;
2848
+ currentStock: number;
2849
+ projectedUsage14d: number;
2850
+ projectedRemaining14d: number;
2851
+ reorderSuggested: boolean;
2852
+ reason?: string | undefined;
2853
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2854
+ recommendedOrderBy?: string | undefined;
2855
+ recommendedQuantity?: number | undefined;
2856
+ }[];
2857
+ }>;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ type: "inventory-reorder-insights";
2860
+ id: string;
2861
+ attributes: {
2862
+ items: {
2863
+ name: string;
2864
+ inventoryItemId: string;
2865
+ currentStock: number;
2866
+ projectedUsage14d: number;
2867
+ projectedRemaining14d: number;
2868
+ reorderSuggested: boolean;
2869
+ reason?: string | undefined;
2870
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2871
+ recommendedOrderBy?: string | undefined;
2872
+ recommendedQuantity?: number | undefined;
2873
+ }[];
2874
+ };
2875
+ }, {
2876
+ type: "inventory-reorder-insights";
2877
+ id: string;
2878
+ attributes: {
2879
+ items: {
2880
+ name: string;
2881
+ inventoryItemId: string;
2882
+ currentStock: number;
2883
+ projectedUsage14d: number;
2884
+ projectedRemaining14d: number;
2885
+ reorderSuggested: boolean;
2886
+ reason?: string | undefined;
2887
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2888
+ recommendedOrderBy?: string | undefined;
2889
+ recommendedQuantity?: number | undefined;
2890
+ }[];
2891
+ };
2892
+ }>;
2893
+ }, "strip", z.ZodTypeAny, {
2894
+ data: {
2895
+ type: "inventory-reorder-insights";
2896
+ id: string;
2897
+ attributes: {
2898
+ items: {
2899
+ name: string;
2900
+ inventoryItemId: string;
2901
+ currentStock: number;
2902
+ projectedUsage14d: number;
2903
+ projectedRemaining14d: number;
2904
+ reorderSuggested: boolean;
2905
+ reason?: string | undefined;
2906
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2907
+ recommendedOrderBy?: string | undefined;
2908
+ recommendedQuantity?: number | undefined;
2909
+ }[];
2910
+ };
2911
+ };
2912
+ }, {
2913
+ data: {
2914
+ type: "inventory-reorder-insights";
2915
+ id: string;
2916
+ attributes: {
2917
+ items: {
2918
+ name: string;
2919
+ inventoryItemId: string;
2920
+ currentStock: number;
2921
+ projectedUsage14d: number;
2922
+ projectedRemaining14d: number;
2923
+ reorderSuggested: boolean;
2924
+ reason?: string | undefined;
2925
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2926
+ recommendedOrderBy?: string | undefined;
2927
+ recommendedQuantity?: number | undefined;
2928
+ }[];
2929
+ };
2930
+ };
2931
+ }>;
2932
+ export declare const weeklyWorkOrdersResponseSchema: z.ZodObject<{
2933
+ data: z.ZodObject<{
2934
+ type: z.ZodLiteral<"weekly-work-orders">;
2935
+ id: z.ZodString;
2936
+ attributes: z.ZodObject<{
2937
+ farmId: z.ZodString;
2938
+ startDate: z.ZodString;
2939
+ endDate: z.ZodString;
2940
+ tasks: z.ZodArray<z.ZodObject<{
2941
+ id: z.ZodString;
2942
+ title: z.ZodString;
2943
+ date: z.ZodString;
2944
+ fieldId: z.ZodString;
2945
+ fieldName: z.ZodString;
2946
+ category: z.ZodString;
2947
+ status: z.ZodString;
2948
+ }, "strip", z.ZodTypeAny, {
2949
+ status: string;
2950
+ date: string;
2951
+ id: string;
2952
+ title: string;
2953
+ fieldId: string;
2954
+ fieldName: string;
2955
+ category: string;
2956
+ }, {
2957
+ status: string;
2958
+ date: string;
2959
+ id: string;
2960
+ title: string;
2961
+ fieldId: string;
2962
+ fieldName: string;
2963
+ category: string;
2964
+ }>, "many">;
2965
+ conflicts: z.ZodArray<z.ZodObject<{
2966
+ date: z.ZodString;
2967
+ resourceType: z.ZodEnum<["assignee", "inventory_item"]>;
2968
+ resourceId: z.ZodString;
2969
+ taskIds: z.ZodArray<z.ZodString, "many">;
2970
+ message: z.ZodString;
2971
+ suggestedResolution: z.ZodOptional<z.ZodString>;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ message: string;
2974
+ date: string;
2975
+ resourceType: "inventory_item" | "assignee";
2976
+ resourceId: string;
2977
+ taskIds: string[];
2978
+ suggestedResolution?: string | undefined;
2979
+ }, {
2980
+ message: string;
2981
+ date: string;
2982
+ resourceType: "inventory_item" | "assignee";
2983
+ resourceId: string;
2984
+ taskIds: string[];
2985
+ suggestedResolution?: string | undefined;
2986
+ }>, "many">;
2987
+ reorderWarnings: z.ZodArray<z.ZodObject<{
2988
+ inventoryItemId: z.ZodString;
2989
+ name: z.ZodString;
2990
+ currentStock: z.ZodNumber;
2991
+ projectedUsage14d: z.ZodNumber;
2992
+ projectedRemaining14d: z.ZodNumber;
2993
+ reorderSuggested: z.ZodBoolean;
2994
+ urgency: z.ZodEnum<["critical", "high", "medium", "low"]>;
2995
+ recommendedOrderBy: z.ZodString;
2996
+ recommendedQuantity: z.ZodNumber;
2997
+ reason: z.ZodString;
2998
+ }, "strip", z.ZodTypeAny, {
2999
+ name: string;
3000
+ inventoryItemId: string;
3001
+ reason: string;
3002
+ currentStock: number;
3003
+ projectedUsage14d: number;
3004
+ projectedRemaining14d: number;
3005
+ reorderSuggested: boolean;
3006
+ urgency: "critical" | "low" | "medium" | "high";
3007
+ recommendedOrderBy: string;
3008
+ recommendedQuantity: number;
3009
+ }, {
3010
+ name: string;
3011
+ inventoryItemId: string;
3012
+ reason: string;
3013
+ currentStock: number;
3014
+ projectedUsage14d: number;
3015
+ projectedRemaining14d: number;
3016
+ reorderSuggested: boolean;
3017
+ urgency: "critical" | "low" | "medium" | "high";
3018
+ recommendedOrderBy: string;
3019
+ recommendedQuantity: number;
3020
+ }>, "many">;
3021
+ }, "strip", z.ZodTypeAny, {
3022
+ tasks: {
3023
+ status: string;
3024
+ date: string;
3025
+ id: string;
3026
+ title: string;
3027
+ fieldId: string;
3028
+ fieldName: string;
3029
+ category: string;
3030
+ }[];
3031
+ farmId: string;
3032
+ startDate: string;
3033
+ endDate: string;
3034
+ conflicts: {
3035
+ message: string;
3036
+ date: string;
3037
+ resourceType: "inventory_item" | "assignee";
3038
+ resourceId: string;
3039
+ taskIds: string[];
3040
+ suggestedResolution?: string | undefined;
3041
+ }[];
3042
+ reorderWarnings: {
3043
+ name: string;
3044
+ inventoryItemId: string;
3045
+ reason: string;
3046
+ currentStock: number;
3047
+ projectedUsage14d: number;
3048
+ projectedRemaining14d: number;
3049
+ reorderSuggested: boolean;
3050
+ urgency: "critical" | "low" | "medium" | "high";
3051
+ recommendedOrderBy: string;
3052
+ recommendedQuantity: number;
3053
+ }[];
3054
+ }, {
3055
+ tasks: {
3056
+ status: string;
3057
+ date: string;
3058
+ id: string;
3059
+ title: string;
3060
+ fieldId: string;
3061
+ fieldName: string;
3062
+ category: string;
3063
+ }[];
3064
+ farmId: string;
3065
+ startDate: string;
3066
+ endDate: string;
3067
+ conflicts: {
3068
+ message: string;
3069
+ date: string;
3070
+ resourceType: "inventory_item" | "assignee";
3071
+ resourceId: string;
3072
+ taskIds: string[];
3073
+ suggestedResolution?: string | undefined;
3074
+ }[];
3075
+ reorderWarnings: {
3076
+ name: string;
3077
+ inventoryItemId: string;
3078
+ reason: string;
3079
+ currentStock: number;
3080
+ projectedUsage14d: number;
3081
+ projectedRemaining14d: number;
3082
+ reorderSuggested: boolean;
3083
+ urgency: "critical" | "low" | "medium" | "high";
3084
+ recommendedOrderBy: string;
3085
+ recommendedQuantity: number;
3086
+ }[];
3087
+ }>;
3088
+ }, "strip", z.ZodTypeAny, {
3089
+ type: "weekly-work-orders";
3090
+ id: string;
3091
+ attributes: {
3092
+ tasks: {
3093
+ status: string;
3094
+ date: string;
3095
+ id: string;
3096
+ title: string;
3097
+ fieldId: string;
3098
+ fieldName: string;
3099
+ category: string;
3100
+ }[];
3101
+ farmId: string;
3102
+ startDate: string;
3103
+ endDate: string;
3104
+ conflicts: {
3105
+ message: string;
3106
+ date: string;
3107
+ resourceType: "inventory_item" | "assignee";
3108
+ resourceId: string;
3109
+ taskIds: string[];
3110
+ suggestedResolution?: string | undefined;
3111
+ }[];
3112
+ reorderWarnings: {
3113
+ name: string;
3114
+ inventoryItemId: string;
3115
+ reason: string;
3116
+ currentStock: number;
3117
+ projectedUsage14d: number;
3118
+ projectedRemaining14d: number;
3119
+ reorderSuggested: boolean;
3120
+ urgency: "critical" | "low" | "medium" | "high";
3121
+ recommendedOrderBy: string;
3122
+ recommendedQuantity: number;
3123
+ }[];
3124
+ };
3125
+ }, {
3126
+ type: "weekly-work-orders";
3127
+ id: string;
3128
+ attributes: {
3129
+ tasks: {
3130
+ status: string;
3131
+ date: string;
3132
+ id: string;
3133
+ title: string;
3134
+ fieldId: string;
3135
+ fieldName: string;
3136
+ category: string;
3137
+ }[];
3138
+ farmId: string;
3139
+ startDate: string;
3140
+ endDate: string;
3141
+ conflicts: {
3142
+ message: string;
3143
+ date: string;
3144
+ resourceType: "inventory_item" | "assignee";
3145
+ resourceId: string;
3146
+ taskIds: string[];
3147
+ suggestedResolution?: string | undefined;
3148
+ }[];
3149
+ reorderWarnings: {
3150
+ name: string;
3151
+ inventoryItemId: string;
3152
+ reason: string;
3153
+ currentStock: number;
3154
+ projectedUsage14d: number;
3155
+ projectedRemaining14d: number;
3156
+ reorderSuggested: boolean;
3157
+ urgency: "critical" | "low" | "medium" | "high";
3158
+ recommendedOrderBy: string;
3159
+ recommendedQuantity: number;
3160
+ }[];
3161
+ };
3162
+ }>;
3163
+ }, "strip", z.ZodTypeAny, {
3164
+ data: {
3165
+ type: "weekly-work-orders";
3166
+ id: string;
3167
+ attributes: {
3168
+ tasks: {
3169
+ status: string;
3170
+ date: string;
3171
+ id: string;
3172
+ title: string;
3173
+ fieldId: string;
3174
+ fieldName: string;
3175
+ category: string;
3176
+ }[];
3177
+ farmId: string;
3178
+ startDate: string;
3179
+ endDate: string;
3180
+ conflicts: {
3181
+ message: string;
3182
+ date: string;
3183
+ resourceType: "inventory_item" | "assignee";
3184
+ resourceId: string;
3185
+ taskIds: string[];
3186
+ suggestedResolution?: string | undefined;
3187
+ }[];
3188
+ reorderWarnings: {
3189
+ name: string;
3190
+ inventoryItemId: string;
3191
+ reason: string;
3192
+ currentStock: number;
3193
+ projectedUsage14d: number;
3194
+ projectedRemaining14d: number;
3195
+ reorderSuggested: boolean;
3196
+ urgency: "critical" | "low" | "medium" | "high";
3197
+ recommendedOrderBy: string;
3198
+ recommendedQuantity: number;
3199
+ }[];
3200
+ };
3201
+ };
3202
+ }, {
3203
+ data: {
3204
+ type: "weekly-work-orders";
3205
+ id: string;
3206
+ attributes: {
3207
+ tasks: {
3208
+ status: string;
3209
+ date: string;
3210
+ id: string;
3211
+ title: string;
3212
+ fieldId: string;
3213
+ fieldName: string;
3214
+ category: string;
3215
+ }[];
3216
+ farmId: string;
3217
+ startDate: string;
3218
+ endDate: string;
3219
+ conflicts: {
3220
+ message: string;
3221
+ date: string;
3222
+ resourceType: "inventory_item" | "assignee";
3223
+ resourceId: string;
3224
+ taskIds: string[];
3225
+ suggestedResolution?: string | undefined;
3226
+ }[];
3227
+ reorderWarnings: {
3228
+ name: string;
3229
+ inventoryItemId: string;
3230
+ reason: string;
3231
+ currentStock: number;
3232
+ projectedUsage14d: number;
3233
+ projectedRemaining14d: number;
3234
+ reorderSuggested: boolean;
3235
+ urgency: "critical" | "low" | "medium" | "high";
3236
+ recommendedOrderBy: string;
3237
+ recommendedQuantity: number;
3238
+ }[];
3239
+ };
3240
+ };
3241
+ }>;
3242
+ export declare const pestScoutingCalendarResponseSchema: z.ZodObject<{
3243
+ data: z.ZodObject<{
3244
+ type: z.ZodLiteral<"pest-scouting-calendar">;
3245
+ id: z.ZodString;
3246
+ attributes: z.ZodObject<{
3247
+ farmId: z.ZodString;
3248
+ generatedAt: z.ZodString;
3249
+ events: z.ZodArray<z.ZodObject<{
3250
+ date: z.ZodString;
3251
+ fieldId: z.ZodString;
3252
+ fieldName: z.ZodString;
3253
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
3254
+ taskTitle: z.ZodString;
3255
+ reason: z.ZodString;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ date: string;
3258
+ fieldId: string;
3259
+ fieldName: string;
3260
+ reason: string;
3261
+ riskLevel: "critical" | "low" | "medium" | "high";
3262
+ taskTitle: string;
3263
+ }, {
3264
+ date: string;
3265
+ fieldId: string;
3266
+ fieldName: string;
3267
+ reason: string;
3268
+ riskLevel: "critical" | "low" | "medium" | "high";
3269
+ taskTitle: string;
3270
+ }>, "many">;
3271
+ }, "strip", z.ZodTypeAny, {
3272
+ farmId: string;
3273
+ generatedAt: string;
3274
+ events: {
3275
+ date: string;
3276
+ fieldId: string;
3277
+ fieldName: string;
3278
+ reason: string;
3279
+ riskLevel: "critical" | "low" | "medium" | "high";
3280
+ taskTitle: string;
3281
+ }[];
3282
+ }, {
3283
+ farmId: string;
3284
+ generatedAt: string;
3285
+ events: {
3286
+ date: string;
3287
+ fieldId: string;
3288
+ fieldName: string;
3289
+ reason: string;
3290
+ riskLevel: "critical" | "low" | "medium" | "high";
3291
+ taskTitle: string;
3292
+ }[];
3293
+ }>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ type: "pest-scouting-calendar";
3296
+ id: string;
3297
+ attributes: {
3298
+ farmId: string;
3299
+ generatedAt: string;
3300
+ events: {
3301
+ date: string;
3302
+ fieldId: string;
3303
+ fieldName: string;
3304
+ reason: string;
3305
+ riskLevel: "critical" | "low" | "medium" | "high";
3306
+ taskTitle: string;
3307
+ }[];
3308
+ };
3309
+ }, {
3310
+ type: "pest-scouting-calendar";
3311
+ id: string;
3312
+ attributes: {
3313
+ farmId: string;
3314
+ generatedAt: string;
3315
+ events: {
3316
+ date: string;
3317
+ fieldId: string;
3318
+ fieldName: string;
3319
+ reason: string;
3320
+ riskLevel: "critical" | "low" | "medium" | "high";
3321
+ taskTitle: string;
3322
+ }[];
3323
+ };
3324
+ }>;
3325
+ }, "strip", z.ZodTypeAny, {
3326
+ data: {
3327
+ type: "pest-scouting-calendar";
3328
+ id: string;
3329
+ attributes: {
3330
+ farmId: string;
3331
+ generatedAt: string;
3332
+ events: {
3333
+ date: string;
3334
+ fieldId: string;
3335
+ fieldName: string;
3336
+ reason: string;
3337
+ riskLevel: "critical" | "low" | "medium" | "high";
3338
+ taskTitle: string;
3339
+ }[];
3340
+ };
3341
+ };
3342
+ }, {
3343
+ data: {
3344
+ type: "pest-scouting-calendar";
3345
+ id: string;
3346
+ attributes: {
3347
+ farmId: string;
3348
+ generatedAt: string;
3349
+ events: {
3350
+ date: string;
3351
+ fieldId: string;
3352
+ fieldName: string;
3353
+ reason: string;
3354
+ riskLevel: "critical" | "low" | "medium" | "high";
3355
+ taskTitle: string;
3356
+ }[];
3357
+ };
3358
+ };
3359
+ }>;
3360
+ export declare const harvestReadinessResponseSchema: z.ZodObject<{
3361
+ data: z.ZodObject<{
3362
+ type: z.ZodLiteral<"harvest-readiness">;
3363
+ id: z.ZodString;
3364
+ attributes: z.ZodObject<{
3365
+ fieldId: z.ZodString;
3366
+ score: z.ZodNumber;
3367
+ recommendation: z.ZodEnum<["go", "wait", "monitor"]>;
3368
+ factors: z.ZodObject<{
3369
+ gddProgress: z.ZodNumber;
3370
+ ndviTrend: z.ZodNumber;
3371
+ weatherWindow: z.ZodNumber;
3372
+ }, "strip", z.ZodTypeAny, {
3373
+ gddProgress: number;
3374
+ ndviTrend: number;
3375
+ weatherWindow: number;
3376
+ }, {
3377
+ gddProgress: number;
3378
+ ndviTrend: number;
3379
+ weatherWindow: number;
3380
+ }>;
3381
+ generatedAt: z.ZodString;
3382
+ }, "strip", z.ZodTypeAny, {
3383
+ fieldId: string;
3384
+ score: number;
3385
+ recommendation: "go" | "wait" | "monitor";
3386
+ generatedAt: string;
3387
+ factors: {
3388
+ gddProgress: number;
3389
+ ndviTrend: number;
3390
+ weatherWindow: number;
3391
+ };
3392
+ }, {
3393
+ fieldId: string;
3394
+ score: number;
3395
+ recommendation: "go" | "wait" | "monitor";
3396
+ generatedAt: string;
3397
+ factors: {
3398
+ gddProgress: number;
3399
+ ndviTrend: number;
3400
+ weatherWindow: number;
3401
+ };
3402
+ }>;
3403
+ }, "strip", z.ZodTypeAny, {
3404
+ type: "harvest-readiness";
3405
+ id: string;
3406
+ attributes: {
3407
+ fieldId: string;
3408
+ score: number;
3409
+ recommendation: "go" | "wait" | "monitor";
3410
+ generatedAt: string;
3411
+ factors: {
3412
+ gddProgress: number;
3413
+ ndviTrend: number;
3414
+ weatherWindow: number;
3415
+ };
3416
+ };
3417
+ }, {
3418
+ type: "harvest-readiness";
3419
+ id: string;
3420
+ attributes: {
3421
+ fieldId: string;
3422
+ score: number;
3423
+ recommendation: "go" | "wait" | "monitor";
3424
+ generatedAt: string;
3425
+ factors: {
3426
+ gddProgress: number;
3427
+ ndviTrend: number;
3428
+ weatherWindow: number;
3429
+ };
3430
+ };
3431
+ }>;
3432
+ }, "strip", z.ZodTypeAny, {
3433
+ data: {
3434
+ type: "harvest-readiness";
3435
+ id: string;
3436
+ attributes: {
3437
+ fieldId: string;
3438
+ score: number;
3439
+ recommendation: "go" | "wait" | "monitor";
3440
+ generatedAt: string;
3441
+ factors: {
3442
+ gddProgress: number;
3443
+ ndviTrend: number;
3444
+ weatherWindow: number;
3445
+ };
3446
+ };
3447
+ };
3448
+ }, {
3449
+ data: {
3450
+ type: "harvest-readiness";
3451
+ id: string;
3452
+ attributes: {
3453
+ fieldId: string;
3454
+ score: number;
3455
+ recommendation: "go" | "wait" | "monitor";
3456
+ generatedAt: string;
3457
+ factors: {
3458
+ gddProgress: number;
3459
+ ndviTrend: number;
3460
+ weatherWindow: number;
3461
+ };
3462
+ };
3463
+ };
3464
+ }>;
3465
+ export declare const farmBrainChatRequestSchema: z.ZodObject<{
3466
+ message: z.ZodString;
3467
+ }, "strip", z.ZodTypeAny, {
3468
+ message: string;
3469
+ }, {
3470
+ message: string;
3471
+ }>;
3472
+ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3473
+ data: z.ZodObject<{
3474
+ type: z.ZodLiteral<"farm-brain-response">;
3475
+ id: z.ZodString;
3476
+ attributes: z.ZodObject<{
3477
+ response: z.ZodString;
3478
+ route: z.ZodEnum<["agronomics", "finance", "operations", "general"]>;
3479
+ conversationId: z.ZodOptional<z.ZodString>;
3480
+ }, "strip", z.ZodTypeAny, {
3481
+ response: string;
3482
+ route: "general" | "agronomics" | "finance" | "operations";
3483
+ conversationId?: string | undefined;
3484
+ }, {
3485
+ response: string;
3486
+ route: "general" | "agronomics" | "finance" | "operations";
3487
+ conversationId?: string | undefined;
3488
+ }>;
3489
+ }, "strip", z.ZodTypeAny, {
3490
+ type: "farm-brain-response";
3491
+ id: string;
3492
+ attributes: {
3493
+ response: string;
3494
+ route: "general" | "agronomics" | "finance" | "operations";
3495
+ conversationId?: string | undefined;
3496
+ };
3497
+ }, {
3498
+ type: "farm-brain-response";
3499
+ id: string;
3500
+ attributes: {
3501
+ response: string;
3502
+ route: "general" | "agronomics" | "finance" | "operations";
3503
+ conversationId?: string | undefined;
3504
+ };
3505
+ }>;
3506
+ }, "strip", z.ZodTypeAny, {
3507
+ data: {
3508
+ type: "farm-brain-response";
3509
+ id: string;
3510
+ attributes: {
3511
+ response: string;
3512
+ route: "general" | "agronomics" | "finance" | "operations";
3513
+ conversationId?: string | undefined;
3514
+ };
3515
+ };
3516
+ }, {
3517
+ data: {
3518
+ type: "farm-brain-response";
3519
+ id: string;
3520
+ attributes: {
3521
+ response: string;
3522
+ route: "general" | "agronomics" | "finance" | "operations";
3523
+ conversationId?: string | undefined;
3524
+ };
3525
+ };
3526
+ }>;
3527
+ export declare const dailyBriefingResponseSchema: z.ZodObject<{
3528
+ data: z.ZodObject<{
3529
+ type: z.ZodLiteral<"daily-briefing">;
3530
+ id: z.ZodString;
3531
+ attributes: z.ZodObject<{
3532
+ farmId: z.ZodString;
3533
+ generatedAt: z.ZodString;
3534
+ summary: z.ZodString;
3535
+ priorities: z.ZodArray<z.ZodString, "many">;
3536
+ }, "strip", z.ZodTypeAny, {
3537
+ summary: string;
3538
+ farmId: string;
3539
+ generatedAt: string;
3540
+ priorities: string[];
3541
+ }, {
3542
+ summary: string;
3543
+ farmId: string;
3544
+ generatedAt: string;
3545
+ priorities: string[];
3546
+ }>;
3547
+ }, "strip", z.ZodTypeAny, {
3548
+ type: "daily-briefing";
3549
+ id: string;
3550
+ attributes: {
3551
+ summary: string;
3552
+ farmId: string;
3553
+ generatedAt: string;
3554
+ priorities: string[];
3555
+ };
3556
+ }, {
3557
+ type: "daily-briefing";
3558
+ id: string;
3559
+ attributes: {
3560
+ summary: string;
3561
+ farmId: string;
3562
+ generatedAt: string;
3563
+ priorities: string[];
3564
+ };
3565
+ }>;
3566
+ }, "strip", z.ZodTypeAny, {
3567
+ data: {
3568
+ type: "daily-briefing";
3569
+ id: string;
3570
+ attributes: {
3571
+ summary: string;
3572
+ farmId: string;
3573
+ generatedAt: string;
3574
+ priorities: string[];
3575
+ };
3576
+ };
3577
+ }, {
3578
+ data: {
3579
+ type: "daily-briefing";
3580
+ id: string;
3581
+ attributes: {
3582
+ summary: string;
3583
+ farmId: string;
3584
+ generatedAt: string;
3585
+ priorities: string[];
3586
+ };
3587
+ };
3588
+ }>;
3589
+ export declare const farmBrainLocalizedRequestSchema: z.ZodObject<{
3590
+ message: z.ZodString;
3591
+ language: z.ZodString;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ message: string;
3594
+ language: string;
3595
+ }, {
3596
+ message: string;
3597
+ language: string;
3598
+ }>;
3599
+ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
3600
+ data: z.ZodObject<{
3601
+ type: z.ZodLiteral<"farm-brain-localized-response">;
3602
+ id: z.ZodString;
3603
+ attributes: z.ZodObject<{
3604
+ response: z.ZodString;
3605
+ language: z.ZodString;
3606
+ route: z.ZodEnum<["agronomics", "finance", "operations", "general"]>;
3607
+ conversationId: z.ZodOptional<z.ZodString>;
3608
+ }, "strip", z.ZodTypeAny, {
3609
+ language: string;
3610
+ response: string;
3611
+ route: "general" | "agronomics" | "finance" | "operations";
3612
+ conversationId?: string | undefined;
3613
+ }, {
3614
+ language: string;
3615
+ response: string;
3616
+ route: "general" | "agronomics" | "finance" | "operations";
3617
+ conversationId?: string | undefined;
3618
+ }>;
3619
+ }, "strip", z.ZodTypeAny, {
3620
+ type: "farm-brain-localized-response";
3621
+ id: string;
3622
+ attributes: {
3623
+ language: string;
3624
+ response: string;
3625
+ route: "general" | "agronomics" | "finance" | "operations";
3626
+ conversationId?: string | undefined;
3627
+ };
3628
+ }, {
3629
+ type: "farm-brain-localized-response";
3630
+ id: string;
3631
+ attributes: {
3632
+ language: string;
3633
+ response: string;
3634
+ route: "general" | "agronomics" | "finance" | "operations";
3635
+ conversationId?: string | undefined;
3636
+ };
3637
+ }>;
3638
+ }, "strip", z.ZodTypeAny, {
3639
+ data: {
3640
+ type: "farm-brain-localized-response";
3641
+ id: string;
3642
+ attributes: {
3643
+ language: string;
3644
+ response: string;
3645
+ route: "general" | "agronomics" | "finance" | "operations";
3646
+ conversationId?: string | undefined;
3647
+ };
3648
+ };
3649
+ }, {
3650
+ data: {
3651
+ type: "farm-brain-localized-response";
3652
+ id: string;
3653
+ attributes: {
3654
+ language: string;
3655
+ response: string;
3656
+ route: "general" | "agronomics" | "finance" | "operations";
3657
+ conversationId?: string | undefined;
3658
+ };
3659
+ };
3660
+ }>;
3661
+ export declare const ussdQueryRequestSchema: z.ZodObject<{
3662
+ input: z.ZodString;
3663
+ }, "strip", z.ZodTypeAny, {
3664
+ input: string;
3665
+ }, {
3666
+ input: string;
3667
+ }>;
3668
+ export declare const ussdQueryResponseSchema: z.ZodObject<{
3669
+ data: z.ZodObject<{
3670
+ type: z.ZodLiteral<"farm-brain-ussd-response">;
3671
+ id: z.ZodString;
3672
+ attributes: z.ZodObject<{
3673
+ response: z.ZodString;
3674
+ }, "strip", z.ZodTypeAny, {
3675
+ response: string;
3676
+ }, {
3677
+ response: string;
3678
+ }>;
3679
+ }, "strip", z.ZodTypeAny, {
3680
+ type: "farm-brain-ussd-response";
3681
+ id: string;
3682
+ attributes: {
3683
+ response: string;
3684
+ };
3685
+ }, {
3686
+ type: "farm-brain-ussd-response";
3687
+ id: string;
3688
+ attributes: {
3689
+ response: string;
3690
+ };
3691
+ }>;
3692
+ }, "strip", z.ZodTypeAny, {
3693
+ data: {
3694
+ type: "farm-brain-ussd-response";
3695
+ id: string;
3696
+ attributes: {
3697
+ response: string;
3698
+ };
3699
+ };
3700
+ }, {
3701
+ data: {
3702
+ type: "farm-brain-ussd-response";
3703
+ id: string;
3704
+ attributes: {
3705
+ response: string;
3706
+ };
3707
+ };
3708
+ }>;
2599
3709
  export type MessageRole = z.infer<typeof messageRoleSchema>;
2600
3710
  export type ConversationMessage = z.infer<typeof conversationMessageSchema>;
2601
3711
  export type ConversationHistoryMessage = z.infer<typeof conversationHistoryMessageSchema>;
@@ -2612,4 +3722,14 @@ export type ConversationListResponse = z.infer<typeof conversationListResponseSc
2612
3722
  export type GeoJSONFeatureCollection = z.infer<typeof geojsonFeatureCollectionSchema>;
2613
3723
  export type SurveyGeoJsonResponseAttributes = z.infer<typeof surveyGeoJsonResponseAttributesSchema>;
2614
3724
  export type SurveyGeoJsonResponse = z.infer<typeof surveyGeoJsonResponseSchema>;
3725
+ export type ResourceConflictResponse = z.infer<typeof resourceConflictResponseSchema>;
3726
+ export type GddTrackerResponse = z.infer<typeof gddTrackerResponseSchema>;
3727
+ export type ReorderInsightsResponse = z.infer<typeof reorderInsightsResponseSchema>;
3728
+ export type WeeklyWorkOrdersResponse = z.infer<typeof weeklyWorkOrdersResponseSchema>;
3729
+ export type PestScoutingCalendarResponse = z.infer<typeof pestScoutingCalendarResponseSchema>;
3730
+ export type HarvestReadinessResponse = z.infer<typeof harvestReadinessResponseSchema>;
3731
+ export type FarmBrainChatRequest = z.infer<typeof farmBrainChatRequestSchema>;
3732
+ export type FarmBrainChatResponse = z.infer<typeof farmBrainChatResponseSchema>;
3733
+ export type DailyBriefingResponse = z.infer<typeof dailyBriefingResponseSchema>;
3734
+ export type FarmBrainLocalizedResponse = z.infer<typeof farmBrainLocalizedResponseSchema>;
2615
3735
  //# sourceMappingURL=agents.schemas.d.ts.map