@deepintel-ltd/farmpro-contracts 1.7.14 → 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 +36 -29
  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 +567 -20
  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 +43 -36
  65. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  66. package/dist/schemas/monitoring-visualization.schemas.js +24 -16
  67. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  68. package/dist/schemas/prescription-maps.schemas.d.ts +41 -18
  69. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  70. package/dist/schemas/prescription-maps.schemas.js +8 -0
  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
@@ -2334,5 +2334,3265 @@ export declare const agentsRouter: {
2334
2334
  }>;
2335
2335
  };
2336
2336
  };
2337
+ detectResourceConflicts: {
2338
+ pathParams: z.ZodObject<{
2339
+ farmId: z.ZodString;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ farmId: string;
2342
+ }, {
2343
+ farmId: string;
2344
+ }>;
2345
+ query: z.ZodObject<{
2346
+ startDate: z.ZodOptional<z.ZodString>;
2347
+ endDate: z.ZodOptional<z.ZodString>;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ startDate?: string | undefined;
2350
+ endDate?: string | undefined;
2351
+ }, {
2352
+ startDate?: string | undefined;
2353
+ endDate?: string | undefined;
2354
+ }>;
2355
+ summary: "Detect task resource conflicts";
2356
+ method: "GET";
2357
+ path: "/farms/:farmId/operations/resource-conflicts";
2358
+ responses: {
2359
+ 200: z.ZodObject<{
2360
+ data: z.ZodObject<{
2361
+ type: z.ZodLiteral<"resource-conflicts">;
2362
+ id: z.ZodString;
2363
+ attributes: z.ZodObject<{
2364
+ conflicts: z.ZodArray<z.ZodObject<{
2365
+ date: z.ZodString;
2366
+ resourceType: z.ZodEnum<["assignee", "inventory_item"]>;
2367
+ resourceId: z.ZodString;
2368
+ taskIds: z.ZodArray<z.ZodString, "many">;
2369
+ message: z.ZodString;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ message: string;
2372
+ date: string;
2373
+ resourceType: "inventory_item" | "assignee";
2374
+ resourceId: string;
2375
+ taskIds: string[];
2376
+ }, {
2377
+ message: string;
2378
+ date: string;
2379
+ resourceType: "inventory_item" | "assignee";
2380
+ resourceId: string;
2381
+ taskIds: string[];
2382
+ }>, "many">;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ conflicts: {
2385
+ message: string;
2386
+ date: string;
2387
+ resourceType: "inventory_item" | "assignee";
2388
+ resourceId: string;
2389
+ taskIds: string[];
2390
+ }[];
2391
+ }, {
2392
+ conflicts: {
2393
+ message: string;
2394
+ date: string;
2395
+ resourceType: "inventory_item" | "assignee";
2396
+ resourceId: string;
2397
+ taskIds: string[];
2398
+ }[];
2399
+ }>;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ type: "resource-conflicts";
2402
+ id: string;
2403
+ attributes: {
2404
+ conflicts: {
2405
+ message: string;
2406
+ date: string;
2407
+ resourceType: "inventory_item" | "assignee";
2408
+ resourceId: string;
2409
+ taskIds: string[];
2410
+ }[];
2411
+ };
2412
+ }, {
2413
+ type: "resource-conflicts";
2414
+ id: string;
2415
+ attributes: {
2416
+ conflicts: {
2417
+ message: string;
2418
+ date: string;
2419
+ resourceType: "inventory_item" | "assignee";
2420
+ resourceId: string;
2421
+ taskIds: string[];
2422
+ }[];
2423
+ };
2424
+ }>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ data: {
2427
+ type: "resource-conflicts";
2428
+ id: string;
2429
+ attributes: {
2430
+ conflicts: {
2431
+ message: string;
2432
+ date: string;
2433
+ resourceType: "inventory_item" | "assignee";
2434
+ resourceId: string;
2435
+ taskIds: string[];
2436
+ }[];
2437
+ };
2438
+ };
2439
+ }, {
2440
+ data: {
2441
+ type: "resource-conflicts";
2442
+ id: string;
2443
+ attributes: {
2444
+ conflicts: {
2445
+ message: string;
2446
+ date: string;
2447
+ resourceType: "inventory_item" | "assignee";
2448
+ resourceId: string;
2449
+ taskIds: string[];
2450
+ }[];
2451
+ };
2452
+ };
2453
+ }>;
2454
+ 401: z.ZodObject<{
2455
+ errors: z.ZodArray<z.ZodObject<{
2456
+ id: z.ZodOptional<z.ZodString>;
2457
+ links: z.ZodOptional<z.ZodObject<{
2458
+ about: z.ZodOptional<z.ZodString>;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ about?: string | undefined;
2461
+ }, {
2462
+ about?: string | undefined;
2463
+ }>>;
2464
+ status: z.ZodOptional<z.ZodString>;
2465
+ code: z.ZodOptional<z.ZodString>;
2466
+ title: z.ZodOptional<z.ZodString>;
2467
+ detail: z.ZodOptional<z.ZodString>;
2468
+ source: z.ZodOptional<z.ZodObject<{
2469
+ pointer: z.ZodOptional<z.ZodString>;
2470
+ parameter: z.ZodOptional<z.ZodString>;
2471
+ }, "strip", z.ZodTypeAny, {
2472
+ pointer?: string | undefined;
2473
+ parameter?: string | undefined;
2474
+ }, {
2475
+ pointer?: string | undefined;
2476
+ parameter?: string | undefined;
2477
+ }>>;
2478
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ status?: string | undefined;
2481
+ code?: string | undefined;
2482
+ id?: string | undefined;
2483
+ links?: {
2484
+ about?: string | undefined;
2485
+ } | undefined;
2486
+ meta?: Record<string, unknown> | undefined;
2487
+ title?: string | undefined;
2488
+ detail?: string | undefined;
2489
+ source?: {
2490
+ pointer?: string | undefined;
2491
+ parameter?: string | undefined;
2492
+ } | undefined;
2493
+ }, {
2494
+ status?: string | undefined;
2495
+ code?: string | undefined;
2496
+ id?: string | undefined;
2497
+ links?: {
2498
+ about?: string | undefined;
2499
+ } | undefined;
2500
+ meta?: Record<string, unknown> | undefined;
2501
+ title?: string | undefined;
2502
+ detail?: string | undefined;
2503
+ source?: {
2504
+ pointer?: string | undefined;
2505
+ parameter?: string | undefined;
2506
+ } | undefined;
2507
+ }>, "many">;
2508
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2509
+ }, "strip", z.ZodTypeAny, {
2510
+ errors: {
2511
+ status?: string | undefined;
2512
+ code?: string | undefined;
2513
+ id?: string | undefined;
2514
+ links?: {
2515
+ about?: string | undefined;
2516
+ } | undefined;
2517
+ meta?: Record<string, unknown> | undefined;
2518
+ title?: string | undefined;
2519
+ detail?: string | undefined;
2520
+ source?: {
2521
+ pointer?: string | undefined;
2522
+ parameter?: string | undefined;
2523
+ } | undefined;
2524
+ }[];
2525
+ meta?: Record<string, unknown> | undefined;
2526
+ }, {
2527
+ errors: {
2528
+ status?: string | undefined;
2529
+ code?: string | undefined;
2530
+ id?: string | undefined;
2531
+ links?: {
2532
+ about?: string | undefined;
2533
+ } | undefined;
2534
+ meta?: Record<string, unknown> | undefined;
2535
+ title?: string | undefined;
2536
+ detail?: string | undefined;
2537
+ source?: {
2538
+ pointer?: string | undefined;
2539
+ parameter?: string | undefined;
2540
+ } | undefined;
2541
+ }[];
2542
+ meta?: Record<string, unknown> | undefined;
2543
+ }>;
2544
+ 404: z.ZodObject<{
2545
+ errors: z.ZodArray<z.ZodObject<{
2546
+ id: z.ZodOptional<z.ZodString>;
2547
+ links: z.ZodOptional<z.ZodObject<{
2548
+ about: z.ZodOptional<z.ZodString>;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ about?: string | undefined;
2551
+ }, {
2552
+ about?: string | undefined;
2553
+ }>>;
2554
+ status: z.ZodOptional<z.ZodString>;
2555
+ code: z.ZodOptional<z.ZodString>;
2556
+ title: z.ZodOptional<z.ZodString>;
2557
+ detail: z.ZodOptional<z.ZodString>;
2558
+ source: z.ZodOptional<z.ZodObject<{
2559
+ pointer: z.ZodOptional<z.ZodString>;
2560
+ parameter: z.ZodOptional<z.ZodString>;
2561
+ }, "strip", z.ZodTypeAny, {
2562
+ pointer?: string | undefined;
2563
+ parameter?: string | undefined;
2564
+ }, {
2565
+ pointer?: string | undefined;
2566
+ parameter?: string | undefined;
2567
+ }>>;
2568
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ status?: string | undefined;
2571
+ code?: string | undefined;
2572
+ id?: string | undefined;
2573
+ links?: {
2574
+ about?: string | undefined;
2575
+ } | undefined;
2576
+ meta?: Record<string, unknown> | undefined;
2577
+ title?: string | undefined;
2578
+ detail?: string | undefined;
2579
+ source?: {
2580
+ pointer?: string | undefined;
2581
+ parameter?: string | undefined;
2582
+ } | undefined;
2583
+ }, {
2584
+ status?: string | undefined;
2585
+ code?: string | undefined;
2586
+ id?: string | undefined;
2587
+ links?: {
2588
+ about?: string | undefined;
2589
+ } | undefined;
2590
+ meta?: Record<string, unknown> | undefined;
2591
+ title?: string | undefined;
2592
+ detail?: string | undefined;
2593
+ source?: {
2594
+ pointer?: string | undefined;
2595
+ parameter?: string | undefined;
2596
+ } | undefined;
2597
+ }>, "many">;
2598
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ errors: {
2601
+ status?: string | undefined;
2602
+ code?: string | undefined;
2603
+ id?: string | undefined;
2604
+ links?: {
2605
+ about?: string | undefined;
2606
+ } | undefined;
2607
+ meta?: Record<string, unknown> | undefined;
2608
+ title?: string | undefined;
2609
+ detail?: string | undefined;
2610
+ source?: {
2611
+ pointer?: string | undefined;
2612
+ parameter?: string | undefined;
2613
+ } | undefined;
2614
+ }[];
2615
+ meta?: Record<string, unknown> | undefined;
2616
+ }, {
2617
+ errors: {
2618
+ status?: string | undefined;
2619
+ code?: string | undefined;
2620
+ id?: string | undefined;
2621
+ links?: {
2622
+ about?: string | undefined;
2623
+ } | undefined;
2624
+ meta?: Record<string, unknown> | undefined;
2625
+ title?: string | undefined;
2626
+ detail?: string | undefined;
2627
+ source?: {
2628
+ pointer?: string | undefined;
2629
+ parameter?: string | undefined;
2630
+ } | undefined;
2631
+ }[];
2632
+ meta?: Record<string, unknown> | undefined;
2633
+ }>;
2634
+ };
2635
+ };
2636
+ getGddTracker: {
2637
+ pathParams: z.ZodObject<{
2638
+ fieldId: z.ZodString;
2639
+ }, "strip", z.ZodTypeAny, {
2640
+ fieldId: string;
2641
+ }, {
2642
+ fieldId: string;
2643
+ }>;
2644
+ summary: "Get field GDD tracker";
2645
+ method: "GET";
2646
+ path: "/fields/:fieldId/gdd-tracker";
2647
+ responses: {
2648
+ 200: z.ZodObject<{
2649
+ data: z.ZodObject<{
2650
+ type: z.ZodLiteral<"gdd-tracker">;
2651
+ id: z.ZodString;
2652
+ attributes: z.ZodObject<{
2653
+ fieldId: z.ZodString;
2654
+ crop: z.ZodNullable<z.ZodString>;
2655
+ baseTemperatureC: z.ZodNumber;
2656
+ dailyGdd: z.ZodArray<z.ZodObject<{
2657
+ date: z.ZodString;
2658
+ gdd: z.ZodNumber;
2659
+ cumulativeGdd: z.ZodNumber;
2660
+ }, "strip", z.ZodTypeAny, {
2661
+ date: string;
2662
+ gdd: number;
2663
+ cumulativeGdd: number;
2664
+ }, {
2665
+ date: string;
2666
+ gdd: number;
2667
+ cumulativeGdd: number;
2668
+ }>, "many">;
2669
+ }, "strip", z.ZodTypeAny, {
2670
+ crop: string | null;
2671
+ fieldId: string;
2672
+ baseTemperatureC: number;
2673
+ dailyGdd: {
2674
+ date: string;
2675
+ gdd: number;
2676
+ cumulativeGdd: number;
2677
+ }[];
2678
+ }, {
2679
+ crop: string | null;
2680
+ fieldId: string;
2681
+ baseTemperatureC: number;
2682
+ dailyGdd: {
2683
+ date: string;
2684
+ gdd: number;
2685
+ cumulativeGdd: number;
2686
+ }[];
2687
+ }>;
2688
+ }, "strip", z.ZodTypeAny, {
2689
+ type: "gdd-tracker";
2690
+ id: string;
2691
+ attributes: {
2692
+ crop: string | null;
2693
+ fieldId: string;
2694
+ baseTemperatureC: number;
2695
+ dailyGdd: {
2696
+ date: string;
2697
+ gdd: number;
2698
+ cumulativeGdd: number;
2699
+ }[];
2700
+ };
2701
+ }, {
2702
+ type: "gdd-tracker";
2703
+ id: string;
2704
+ attributes: {
2705
+ crop: string | null;
2706
+ fieldId: string;
2707
+ baseTemperatureC: number;
2708
+ dailyGdd: {
2709
+ date: string;
2710
+ gdd: number;
2711
+ cumulativeGdd: number;
2712
+ }[];
2713
+ };
2714
+ }>;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ data: {
2717
+ type: "gdd-tracker";
2718
+ id: string;
2719
+ attributes: {
2720
+ crop: string | null;
2721
+ fieldId: string;
2722
+ baseTemperatureC: number;
2723
+ dailyGdd: {
2724
+ date: string;
2725
+ gdd: number;
2726
+ cumulativeGdd: number;
2727
+ }[];
2728
+ };
2729
+ };
2730
+ }, {
2731
+ data: {
2732
+ type: "gdd-tracker";
2733
+ id: string;
2734
+ attributes: {
2735
+ crop: string | null;
2736
+ fieldId: string;
2737
+ baseTemperatureC: number;
2738
+ dailyGdd: {
2739
+ date: string;
2740
+ gdd: number;
2741
+ cumulativeGdd: number;
2742
+ }[];
2743
+ };
2744
+ };
2745
+ }>;
2746
+ 401: z.ZodObject<{
2747
+ errors: z.ZodArray<z.ZodObject<{
2748
+ id: z.ZodOptional<z.ZodString>;
2749
+ links: z.ZodOptional<z.ZodObject<{
2750
+ about: z.ZodOptional<z.ZodString>;
2751
+ }, "strip", z.ZodTypeAny, {
2752
+ about?: string | undefined;
2753
+ }, {
2754
+ about?: string | undefined;
2755
+ }>>;
2756
+ status: z.ZodOptional<z.ZodString>;
2757
+ code: z.ZodOptional<z.ZodString>;
2758
+ title: z.ZodOptional<z.ZodString>;
2759
+ detail: z.ZodOptional<z.ZodString>;
2760
+ source: z.ZodOptional<z.ZodObject<{
2761
+ pointer: z.ZodOptional<z.ZodString>;
2762
+ parameter: z.ZodOptional<z.ZodString>;
2763
+ }, "strip", z.ZodTypeAny, {
2764
+ pointer?: string | undefined;
2765
+ parameter?: string | undefined;
2766
+ }, {
2767
+ pointer?: string | undefined;
2768
+ parameter?: string | undefined;
2769
+ }>>;
2770
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2771
+ }, "strip", z.ZodTypeAny, {
2772
+ status?: string | undefined;
2773
+ code?: string | undefined;
2774
+ id?: string | undefined;
2775
+ links?: {
2776
+ about?: string | undefined;
2777
+ } | undefined;
2778
+ meta?: Record<string, unknown> | undefined;
2779
+ title?: string | undefined;
2780
+ detail?: string | undefined;
2781
+ source?: {
2782
+ pointer?: string | undefined;
2783
+ parameter?: string | undefined;
2784
+ } | undefined;
2785
+ }, {
2786
+ status?: string | undefined;
2787
+ code?: string | undefined;
2788
+ id?: string | undefined;
2789
+ links?: {
2790
+ about?: string | undefined;
2791
+ } | undefined;
2792
+ meta?: Record<string, unknown> | undefined;
2793
+ title?: string | undefined;
2794
+ detail?: string | undefined;
2795
+ source?: {
2796
+ pointer?: string | undefined;
2797
+ parameter?: string | undefined;
2798
+ } | undefined;
2799
+ }>, "many">;
2800
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2801
+ }, "strip", z.ZodTypeAny, {
2802
+ errors: {
2803
+ status?: string | undefined;
2804
+ code?: string | undefined;
2805
+ id?: string | undefined;
2806
+ links?: {
2807
+ about?: string | undefined;
2808
+ } | undefined;
2809
+ meta?: Record<string, unknown> | undefined;
2810
+ title?: string | undefined;
2811
+ detail?: string | undefined;
2812
+ source?: {
2813
+ pointer?: string | undefined;
2814
+ parameter?: string | undefined;
2815
+ } | undefined;
2816
+ }[];
2817
+ meta?: Record<string, unknown> | undefined;
2818
+ }, {
2819
+ errors: {
2820
+ status?: string | undefined;
2821
+ code?: string | undefined;
2822
+ id?: string | undefined;
2823
+ links?: {
2824
+ about?: string | undefined;
2825
+ } | undefined;
2826
+ meta?: Record<string, unknown> | undefined;
2827
+ title?: string | undefined;
2828
+ detail?: string | undefined;
2829
+ source?: {
2830
+ pointer?: string | undefined;
2831
+ parameter?: string | undefined;
2832
+ } | undefined;
2833
+ }[];
2834
+ meta?: Record<string, unknown> | undefined;
2835
+ }>;
2836
+ 404: z.ZodObject<{
2837
+ errors: z.ZodArray<z.ZodObject<{
2838
+ id: z.ZodOptional<z.ZodString>;
2839
+ links: z.ZodOptional<z.ZodObject<{
2840
+ about: z.ZodOptional<z.ZodString>;
2841
+ }, "strip", z.ZodTypeAny, {
2842
+ about?: string | undefined;
2843
+ }, {
2844
+ about?: string | undefined;
2845
+ }>>;
2846
+ status: z.ZodOptional<z.ZodString>;
2847
+ code: z.ZodOptional<z.ZodString>;
2848
+ title: z.ZodOptional<z.ZodString>;
2849
+ detail: z.ZodOptional<z.ZodString>;
2850
+ source: z.ZodOptional<z.ZodObject<{
2851
+ pointer: z.ZodOptional<z.ZodString>;
2852
+ parameter: z.ZodOptional<z.ZodString>;
2853
+ }, "strip", z.ZodTypeAny, {
2854
+ pointer?: string | undefined;
2855
+ parameter?: string | undefined;
2856
+ }, {
2857
+ pointer?: string | undefined;
2858
+ parameter?: string | undefined;
2859
+ }>>;
2860
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2861
+ }, "strip", z.ZodTypeAny, {
2862
+ status?: string | undefined;
2863
+ code?: string | undefined;
2864
+ id?: string | undefined;
2865
+ links?: {
2866
+ about?: string | undefined;
2867
+ } | undefined;
2868
+ meta?: Record<string, unknown> | undefined;
2869
+ title?: string | undefined;
2870
+ detail?: string | undefined;
2871
+ source?: {
2872
+ pointer?: string | undefined;
2873
+ parameter?: string | undefined;
2874
+ } | undefined;
2875
+ }, {
2876
+ status?: string | undefined;
2877
+ code?: string | undefined;
2878
+ id?: string | undefined;
2879
+ links?: {
2880
+ about?: string | undefined;
2881
+ } | undefined;
2882
+ meta?: Record<string, unknown> | undefined;
2883
+ title?: string | undefined;
2884
+ detail?: string | undefined;
2885
+ source?: {
2886
+ pointer?: string | undefined;
2887
+ parameter?: string | undefined;
2888
+ } | undefined;
2889
+ }>, "many">;
2890
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2891
+ }, "strip", z.ZodTypeAny, {
2892
+ errors: {
2893
+ status?: string | undefined;
2894
+ code?: string | undefined;
2895
+ id?: string | undefined;
2896
+ links?: {
2897
+ about?: string | undefined;
2898
+ } | undefined;
2899
+ meta?: Record<string, unknown> | undefined;
2900
+ title?: string | undefined;
2901
+ detail?: string | undefined;
2902
+ source?: {
2903
+ pointer?: string | undefined;
2904
+ parameter?: string | undefined;
2905
+ } | undefined;
2906
+ }[];
2907
+ meta?: Record<string, unknown> | undefined;
2908
+ }, {
2909
+ errors: {
2910
+ status?: string | undefined;
2911
+ code?: string | undefined;
2912
+ id?: string | undefined;
2913
+ links?: {
2914
+ about?: string | undefined;
2915
+ } | undefined;
2916
+ meta?: Record<string, unknown> | undefined;
2917
+ title?: string | undefined;
2918
+ detail?: string | undefined;
2919
+ source?: {
2920
+ pointer?: string | undefined;
2921
+ parameter?: string | undefined;
2922
+ } | undefined;
2923
+ }[];
2924
+ meta?: Record<string, unknown> | undefined;
2925
+ }>;
2926
+ };
2927
+ };
2928
+ getInventoryReorderInsights: {
2929
+ pathParams: z.ZodObject<{
2930
+ farmId: z.ZodString;
2931
+ }, "strip", z.ZodTypeAny, {
2932
+ farmId: string;
2933
+ }, {
2934
+ farmId: string;
2935
+ }>;
2936
+ summary: "Get smart inventory reorder insights";
2937
+ method: "GET";
2938
+ path: "/farms/:farmId/inventory/reorder-insights";
2939
+ responses: {
2940
+ 200: z.ZodObject<{
2941
+ data: z.ZodObject<{
2942
+ type: z.ZodLiteral<"inventory-reorder-insights">;
2943
+ id: z.ZodString;
2944
+ attributes: z.ZodObject<{
2945
+ items: z.ZodArray<z.ZodObject<{
2946
+ inventoryItemId: z.ZodString;
2947
+ name: z.ZodString;
2948
+ currentStock: z.ZodNumber;
2949
+ projectedUsage14d: z.ZodNumber;
2950
+ projectedRemaining14d: z.ZodNumber;
2951
+ reorderSuggested: z.ZodBoolean;
2952
+ urgency: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
2953
+ recommendedOrderBy: z.ZodOptional<z.ZodString>;
2954
+ recommendedQuantity: z.ZodOptional<z.ZodNumber>;
2955
+ reason: z.ZodOptional<z.ZodString>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ name: string;
2958
+ inventoryItemId: string;
2959
+ currentStock: number;
2960
+ projectedUsage14d: number;
2961
+ projectedRemaining14d: number;
2962
+ reorderSuggested: boolean;
2963
+ reason?: string | undefined;
2964
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2965
+ recommendedOrderBy?: string | undefined;
2966
+ recommendedQuantity?: number | undefined;
2967
+ }, {
2968
+ name: string;
2969
+ inventoryItemId: string;
2970
+ currentStock: number;
2971
+ projectedUsage14d: number;
2972
+ projectedRemaining14d: number;
2973
+ reorderSuggested: boolean;
2974
+ reason?: string | undefined;
2975
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2976
+ recommendedOrderBy?: string | undefined;
2977
+ recommendedQuantity?: number | undefined;
2978
+ }>, "many">;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ items: {
2981
+ name: string;
2982
+ inventoryItemId: string;
2983
+ currentStock: number;
2984
+ projectedUsage14d: number;
2985
+ projectedRemaining14d: number;
2986
+ reorderSuggested: boolean;
2987
+ reason?: string | undefined;
2988
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
2989
+ recommendedOrderBy?: string | undefined;
2990
+ recommendedQuantity?: number | undefined;
2991
+ }[];
2992
+ }, {
2993
+ items: {
2994
+ name: string;
2995
+ inventoryItemId: string;
2996
+ currentStock: number;
2997
+ projectedUsage14d: number;
2998
+ projectedRemaining14d: number;
2999
+ reorderSuggested: boolean;
3000
+ reason?: string | undefined;
3001
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
3002
+ recommendedOrderBy?: string | undefined;
3003
+ recommendedQuantity?: number | undefined;
3004
+ }[];
3005
+ }>;
3006
+ }, "strip", z.ZodTypeAny, {
3007
+ type: "inventory-reorder-insights";
3008
+ id: string;
3009
+ attributes: {
3010
+ items: {
3011
+ name: string;
3012
+ inventoryItemId: string;
3013
+ currentStock: number;
3014
+ projectedUsage14d: number;
3015
+ projectedRemaining14d: number;
3016
+ reorderSuggested: boolean;
3017
+ reason?: string | undefined;
3018
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
3019
+ recommendedOrderBy?: string | undefined;
3020
+ recommendedQuantity?: number | undefined;
3021
+ }[];
3022
+ };
3023
+ }, {
3024
+ type: "inventory-reorder-insights";
3025
+ id: string;
3026
+ attributes: {
3027
+ items: {
3028
+ name: string;
3029
+ inventoryItemId: string;
3030
+ currentStock: number;
3031
+ projectedUsage14d: number;
3032
+ projectedRemaining14d: number;
3033
+ reorderSuggested: boolean;
3034
+ reason?: string | undefined;
3035
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
3036
+ recommendedOrderBy?: string | undefined;
3037
+ recommendedQuantity?: number | undefined;
3038
+ }[];
3039
+ };
3040
+ }>;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ data: {
3043
+ type: "inventory-reorder-insights";
3044
+ id: string;
3045
+ attributes: {
3046
+ items: {
3047
+ name: string;
3048
+ inventoryItemId: string;
3049
+ currentStock: number;
3050
+ projectedUsage14d: number;
3051
+ projectedRemaining14d: number;
3052
+ reorderSuggested: boolean;
3053
+ reason?: string | undefined;
3054
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
3055
+ recommendedOrderBy?: string | undefined;
3056
+ recommendedQuantity?: number | undefined;
3057
+ }[];
3058
+ };
3059
+ };
3060
+ }, {
3061
+ data: {
3062
+ type: "inventory-reorder-insights";
3063
+ id: string;
3064
+ attributes: {
3065
+ items: {
3066
+ name: string;
3067
+ inventoryItemId: string;
3068
+ currentStock: number;
3069
+ projectedUsage14d: number;
3070
+ projectedRemaining14d: number;
3071
+ reorderSuggested: boolean;
3072
+ reason?: string | undefined;
3073
+ urgency?: "critical" | "low" | "medium" | "high" | undefined;
3074
+ recommendedOrderBy?: string | undefined;
3075
+ recommendedQuantity?: number | undefined;
3076
+ }[];
3077
+ };
3078
+ };
3079
+ }>;
3080
+ 401: z.ZodObject<{
3081
+ errors: z.ZodArray<z.ZodObject<{
3082
+ id: z.ZodOptional<z.ZodString>;
3083
+ links: z.ZodOptional<z.ZodObject<{
3084
+ about: z.ZodOptional<z.ZodString>;
3085
+ }, "strip", z.ZodTypeAny, {
3086
+ about?: string | undefined;
3087
+ }, {
3088
+ about?: string | undefined;
3089
+ }>>;
3090
+ status: z.ZodOptional<z.ZodString>;
3091
+ code: z.ZodOptional<z.ZodString>;
3092
+ title: z.ZodOptional<z.ZodString>;
3093
+ detail: z.ZodOptional<z.ZodString>;
3094
+ source: z.ZodOptional<z.ZodObject<{
3095
+ pointer: z.ZodOptional<z.ZodString>;
3096
+ parameter: z.ZodOptional<z.ZodString>;
3097
+ }, "strip", z.ZodTypeAny, {
3098
+ pointer?: string | undefined;
3099
+ parameter?: string | undefined;
3100
+ }, {
3101
+ pointer?: string | undefined;
3102
+ parameter?: string | undefined;
3103
+ }>>;
3104
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3105
+ }, "strip", z.ZodTypeAny, {
3106
+ status?: string | undefined;
3107
+ code?: string | undefined;
3108
+ id?: string | undefined;
3109
+ links?: {
3110
+ about?: string | undefined;
3111
+ } | undefined;
3112
+ meta?: Record<string, unknown> | undefined;
3113
+ title?: string | undefined;
3114
+ detail?: string | undefined;
3115
+ source?: {
3116
+ pointer?: string | undefined;
3117
+ parameter?: string | undefined;
3118
+ } | undefined;
3119
+ }, {
3120
+ status?: string | undefined;
3121
+ code?: string | undefined;
3122
+ id?: string | undefined;
3123
+ links?: {
3124
+ about?: string | undefined;
3125
+ } | undefined;
3126
+ meta?: Record<string, unknown> | undefined;
3127
+ title?: string | undefined;
3128
+ detail?: string | undefined;
3129
+ source?: {
3130
+ pointer?: string | undefined;
3131
+ parameter?: string | undefined;
3132
+ } | undefined;
3133
+ }>, "many">;
3134
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3135
+ }, "strip", z.ZodTypeAny, {
3136
+ errors: {
3137
+ status?: string | undefined;
3138
+ code?: string | undefined;
3139
+ id?: string | undefined;
3140
+ links?: {
3141
+ about?: string | undefined;
3142
+ } | undefined;
3143
+ meta?: Record<string, unknown> | undefined;
3144
+ title?: string | undefined;
3145
+ detail?: string | undefined;
3146
+ source?: {
3147
+ pointer?: string | undefined;
3148
+ parameter?: string | undefined;
3149
+ } | undefined;
3150
+ }[];
3151
+ meta?: Record<string, unknown> | undefined;
3152
+ }, {
3153
+ errors: {
3154
+ status?: string | undefined;
3155
+ code?: string | undefined;
3156
+ id?: string | undefined;
3157
+ links?: {
3158
+ about?: string | undefined;
3159
+ } | undefined;
3160
+ meta?: Record<string, unknown> | undefined;
3161
+ title?: string | undefined;
3162
+ detail?: string | undefined;
3163
+ source?: {
3164
+ pointer?: string | undefined;
3165
+ parameter?: string | undefined;
3166
+ } | undefined;
3167
+ }[];
3168
+ meta?: Record<string, unknown> | undefined;
3169
+ }>;
3170
+ 404: z.ZodObject<{
3171
+ errors: z.ZodArray<z.ZodObject<{
3172
+ id: z.ZodOptional<z.ZodString>;
3173
+ links: z.ZodOptional<z.ZodObject<{
3174
+ about: z.ZodOptional<z.ZodString>;
3175
+ }, "strip", z.ZodTypeAny, {
3176
+ about?: string | undefined;
3177
+ }, {
3178
+ about?: string | undefined;
3179
+ }>>;
3180
+ status: z.ZodOptional<z.ZodString>;
3181
+ code: z.ZodOptional<z.ZodString>;
3182
+ title: z.ZodOptional<z.ZodString>;
3183
+ detail: z.ZodOptional<z.ZodString>;
3184
+ source: z.ZodOptional<z.ZodObject<{
3185
+ pointer: z.ZodOptional<z.ZodString>;
3186
+ parameter: z.ZodOptional<z.ZodString>;
3187
+ }, "strip", z.ZodTypeAny, {
3188
+ pointer?: string | undefined;
3189
+ parameter?: string | undefined;
3190
+ }, {
3191
+ pointer?: string | undefined;
3192
+ parameter?: string | undefined;
3193
+ }>>;
3194
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3195
+ }, "strip", z.ZodTypeAny, {
3196
+ status?: string | undefined;
3197
+ code?: string | undefined;
3198
+ id?: string | undefined;
3199
+ links?: {
3200
+ about?: string | undefined;
3201
+ } | undefined;
3202
+ meta?: Record<string, unknown> | undefined;
3203
+ title?: string | undefined;
3204
+ detail?: string | undefined;
3205
+ source?: {
3206
+ pointer?: string | undefined;
3207
+ parameter?: string | undefined;
3208
+ } | undefined;
3209
+ }, {
3210
+ status?: string | undefined;
3211
+ code?: string | undefined;
3212
+ id?: string | undefined;
3213
+ links?: {
3214
+ about?: string | undefined;
3215
+ } | undefined;
3216
+ meta?: Record<string, unknown> | undefined;
3217
+ title?: string | undefined;
3218
+ detail?: string | undefined;
3219
+ source?: {
3220
+ pointer?: string | undefined;
3221
+ parameter?: string | undefined;
3222
+ } | undefined;
3223
+ }>, "many">;
3224
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3225
+ }, "strip", z.ZodTypeAny, {
3226
+ errors: {
3227
+ status?: string | undefined;
3228
+ code?: string | undefined;
3229
+ id?: string | undefined;
3230
+ links?: {
3231
+ about?: string | undefined;
3232
+ } | undefined;
3233
+ meta?: Record<string, unknown> | undefined;
3234
+ title?: string | undefined;
3235
+ detail?: string | undefined;
3236
+ source?: {
3237
+ pointer?: string | undefined;
3238
+ parameter?: string | undefined;
3239
+ } | undefined;
3240
+ }[];
3241
+ meta?: Record<string, unknown> | undefined;
3242
+ }, {
3243
+ errors: {
3244
+ status?: string | undefined;
3245
+ code?: string | undefined;
3246
+ id?: string | undefined;
3247
+ links?: {
3248
+ about?: string | undefined;
3249
+ } | undefined;
3250
+ meta?: Record<string, unknown> | undefined;
3251
+ title?: string | undefined;
3252
+ detail?: string | undefined;
3253
+ source?: {
3254
+ pointer?: string | undefined;
3255
+ parameter?: string | undefined;
3256
+ } | undefined;
3257
+ }[];
3258
+ meta?: Record<string, unknown> | undefined;
3259
+ }>;
3260
+ };
3261
+ };
3262
+ generateWeeklyWorkOrders: {
3263
+ pathParams: z.ZodObject<{
3264
+ farmId: z.ZodString;
3265
+ }, "strip", z.ZodTypeAny, {
3266
+ farmId: string;
3267
+ }, {
3268
+ farmId: string;
3269
+ }>;
3270
+ summary: "Generate weekly work orders with conflict guard";
3271
+ method: "POST";
3272
+ body: z.ZodOptional<z.ZodObject<{
3273
+ startDate: z.ZodOptional<z.ZodString>;
3274
+ horizonDays: z.ZodOptional<z.ZodNumber>;
3275
+ }, "strip", z.ZodTypeAny, {
3276
+ startDate?: string | undefined;
3277
+ horizonDays?: number | undefined;
3278
+ }, {
3279
+ startDate?: string | undefined;
3280
+ horizonDays?: number | undefined;
3281
+ }>>;
3282
+ path: "/farms/:farmId/operations/weekly-work-orders";
3283
+ responses: {
3284
+ 200: z.ZodObject<{
3285
+ data: z.ZodObject<{
3286
+ type: z.ZodLiteral<"weekly-work-orders">;
3287
+ id: z.ZodString;
3288
+ attributes: z.ZodObject<{
3289
+ farmId: z.ZodString;
3290
+ startDate: z.ZodString;
3291
+ endDate: z.ZodString;
3292
+ tasks: z.ZodArray<z.ZodObject<{
3293
+ id: z.ZodString;
3294
+ title: z.ZodString;
3295
+ date: z.ZodString;
3296
+ fieldId: z.ZodString;
3297
+ fieldName: z.ZodString;
3298
+ category: z.ZodString;
3299
+ status: z.ZodString;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ status: string;
3302
+ date: string;
3303
+ id: string;
3304
+ title: string;
3305
+ fieldId: string;
3306
+ fieldName: string;
3307
+ category: string;
3308
+ }, {
3309
+ status: string;
3310
+ date: string;
3311
+ id: string;
3312
+ title: string;
3313
+ fieldId: string;
3314
+ fieldName: string;
3315
+ category: string;
3316
+ }>, "many">;
3317
+ conflicts: z.ZodArray<z.ZodObject<{
3318
+ date: z.ZodString;
3319
+ resourceType: z.ZodEnum<["assignee", "inventory_item"]>;
3320
+ resourceId: z.ZodString;
3321
+ taskIds: z.ZodArray<z.ZodString, "many">;
3322
+ message: z.ZodString;
3323
+ suggestedResolution: z.ZodOptional<z.ZodString>;
3324
+ }, "strip", z.ZodTypeAny, {
3325
+ message: string;
3326
+ date: string;
3327
+ resourceType: "inventory_item" | "assignee";
3328
+ resourceId: string;
3329
+ taskIds: string[];
3330
+ suggestedResolution?: string | undefined;
3331
+ }, {
3332
+ message: string;
3333
+ date: string;
3334
+ resourceType: "inventory_item" | "assignee";
3335
+ resourceId: string;
3336
+ taskIds: string[];
3337
+ suggestedResolution?: string | undefined;
3338
+ }>, "many">;
3339
+ reorderWarnings: z.ZodArray<z.ZodObject<{
3340
+ inventoryItemId: z.ZodString;
3341
+ name: z.ZodString;
3342
+ currentStock: z.ZodNumber;
3343
+ projectedUsage14d: z.ZodNumber;
3344
+ projectedRemaining14d: z.ZodNumber;
3345
+ reorderSuggested: z.ZodBoolean;
3346
+ urgency: z.ZodEnum<["critical", "high", "medium", "low"]>;
3347
+ recommendedOrderBy: z.ZodString;
3348
+ recommendedQuantity: z.ZodNumber;
3349
+ reason: z.ZodString;
3350
+ }, "strip", z.ZodTypeAny, {
3351
+ name: string;
3352
+ inventoryItemId: string;
3353
+ reason: string;
3354
+ currentStock: number;
3355
+ projectedUsage14d: number;
3356
+ projectedRemaining14d: number;
3357
+ reorderSuggested: boolean;
3358
+ urgency: "critical" | "low" | "medium" | "high";
3359
+ recommendedOrderBy: string;
3360
+ recommendedQuantity: number;
3361
+ }, {
3362
+ name: string;
3363
+ inventoryItemId: string;
3364
+ reason: string;
3365
+ currentStock: number;
3366
+ projectedUsage14d: number;
3367
+ projectedRemaining14d: number;
3368
+ reorderSuggested: boolean;
3369
+ urgency: "critical" | "low" | "medium" | "high";
3370
+ recommendedOrderBy: string;
3371
+ recommendedQuantity: number;
3372
+ }>, "many">;
3373
+ }, "strip", z.ZodTypeAny, {
3374
+ tasks: {
3375
+ status: string;
3376
+ date: string;
3377
+ id: string;
3378
+ title: string;
3379
+ fieldId: string;
3380
+ fieldName: string;
3381
+ category: string;
3382
+ }[];
3383
+ farmId: string;
3384
+ startDate: string;
3385
+ endDate: string;
3386
+ conflicts: {
3387
+ message: string;
3388
+ date: string;
3389
+ resourceType: "inventory_item" | "assignee";
3390
+ resourceId: string;
3391
+ taskIds: string[];
3392
+ suggestedResolution?: string | undefined;
3393
+ }[];
3394
+ reorderWarnings: {
3395
+ name: string;
3396
+ inventoryItemId: string;
3397
+ reason: string;
3398
+ currentStock: number;
3399
+ projectedUsage14d: number;
3400
+ projectedRemaining14d: number;
3401
+ reorderSuggested: boolean;
3402
+ urgency: "critical" | "low" | "medium" | "high";
3403
+ recommendedOrderBy: string;
3404
+ recommendedQuantity: number;
3405
+ }[];
3406
+ }, {
3407
+ tasks: {
3408
+ status: string;
3409
+ date: string;
3410
+ id: string;
3411
+ title: string;
3412
+ fieldId: string;
3413
+ fieldName: string;
3414
+ category: string;
3415
+ }[];
3416
+ farmId: string;
3417
+ startDate: string;
3418
+ endDate: string;
3419
+ conflicts: {
3420
+ message: string;
3421
+ date: string;
3422
+ resourceType: "inventory_item" | "assignee";
3423
+ resourceId: string;
3424
+ taskIds: string[];
3425
+ suggestedResolution?: string | undefined;
3426
+ }[];
3427
+ reorderWarnings: {
3428
+ name: string;
3429
+ inventoryItemId: string;
3430
+ reason: string;
3431
+ currentStock: number;
3432
+ projectedUsage14d: number;
3433
+ projectedRemaining14d: number;
3434
+ reorderSuggested: boolean;
3435
+ urgency: "critical" | "low" | "medium" | "high";
3436
+ recommendedOrderBy: string;
3437
+ recommendedQuantity: number;
3438
+ }[];
3439
+ }>;
3440
+ }, "strip", z.ZodTypeAny, {
3441
+ type: "weekly-work-orders";
3442
+ id: string;
3443
+ attributes: {
3444
+ tasks: {
3445
+ status: string;
3446
+ date: string;
3447
+ id: string;
3448
+ title: string;
3449
+ fieldId: string;
3450
+ fieldName: string;
3451
+ category: string;
3452
+ }[];
3453
+ farmId: string;
3454
+ startDate: string;
3455
+ endDate: string;
3456
+ conflicts: {
3457
+ message: string;
3458
+ date: string;
3459
+ resourceType: "inventory_item" | "assignee";
3460
+ resourceId: string;
3461
+ taskIds: string[];
3462
+ suggestedResolution?: string | undefined;
3463
+ }[];
3464
+ reorderWarnings: {
3465
+ name: string;
3466
+ inventoryItemId: string;
3467
+ reason: string;
3468
+ currentStock: number;
3469
+ projectedUsage14d: number;
3470
+ projectedRemaining14d: number;
3471
+ reorderSuggested: boolean;
3472
+ urgency: "critical" | "low" | "medium" | "high";
3473
+ recommendedOrderBy: string;
3474
+ recommendedQuantity: number;
3475
+ }[];
3476
+ };
3477
+ }, {
3478
+ type: "weekly-work-orders";
3479
+ id: string;
3480
+ attributes: {
3481
+ tasks: {
3482
+ status: string;
3483
+ date: string;
3484
+ id: string;
3485
+ title: string;
3486
+ fieldId: string;
3487
+ fieldName: string;
3488
+ category: string;
3489
+ }[];
3490
+ farmId: string;
3491
+ startDate: string;
3492
+ endDate: string;
3493
+ conflicts: {
3494
+ message: string;
3495
+ date: string;
3496
+ resourceType: "inventory_item" | "assignee";
3497
+ resourceId: string;
3498
+ taskIds: string[];
3499
+ suggestedResolution?: string | undefined;
3500
+ }[];
3501
+ reorderWarnings: {
3502
+ name: string;
3503
+ inventoryItemId: string;
3504
+ reason: string;
3505
+ currentStock: number;
3506
+ projectedUsage14d: number;
3507
+ projectedRemaining14d: number;
3508
+ reorderSuggested: boolean;
3509
+ urgency: "critical" | "low" | "medium" | "high";
3510
+ recommendedOrderBy: string;
3511
+ recommendedQuantity: number;
3512
+ }[];
3513
+ };
3514
+ }>;
3515
+ }, "strip", z.ZodTypeAny, {
3516
+ data: {
3517
+ type: "weekly-work-orders";
3518
+ id: string;
3519
+ attributes: {
3520
+ tasks: {
3521
+ status: string;
3522
+ date: string;
3523
+ id: string;
3524
+ title: string;
3525
+ fieldId: string;
3526
+ fieldName: string;
3527
+ category: string;
3528
+ }[];
3529
+ farmId: string;
3530
+ startDate: string;
3531
+ endDate: string;
3532
+ conflicts: {
3533
+ message: string;
3534
+ date: string;
3535
+ resourceType: "inventory_item" | "assignee";
3536
+ resourceId: string;
3537
+ taskIds: string[];
3538
+ suggestedResolution?: string | undefined;
3539
+ }[];
3540
+ reorderWarnings: {
3541
+ name: string;
3542
+ inventoryItemId: string;
3543
+ reason: string;
3544
+ currentStock: number;
3545
+ projectedUsage14d: number;
3546
+ projectedRemaining14d: number;
3547
+ reorderSuggested: boolean;
3548
+ urgency: "critical" | "low" | "medium" | "high";
3549
+ recommendedOrderBy: string;
3550
+ recommendedQuantity: number;
3551
+ }[];
3552
+ };
3553
+ };
3554
+ }, {
3555
+ data: {
3556
+ type: "weekly-work-orders";
3557
+ id: string;
3558
+ attributes: {
3559
+ tasks: {
3560
+ status: string;
3561
+ date: string;
3562
+ id: string;
3563
+ title: string;
3564
+ fieldId: string;
3565
+ fieldName: string;
3566
+ category: string;
3567
+ }[];
3568
+ farmId: string;
3569
+ startDate: string;
3570
+ endDate: string;
3571
+ conflicts: {
3572
+ message: string;
3573
+ date: string;
3574
+ resourceType: "inventory_item" | "assignee";
3575
+ resourceId: string;
3576
+ taskIds: string[];
3577
+ suggestedResolution?: string | undefined;
3578
+ }[];
3579
+ reorderWarnings: {
3580
+ name: string;
3581
+ inventoryItemId: string;
3582
+ reason: string;
3583
+ currentStock: number;
3584
+ projectedUsage14d: number;
3585
+ projectedRemaining14d: number;
3586
+ reorderSuggested: boolean;
3587
+ urgency: "critical" | "low" | "medium" | "high";
3588
+ recommendedOrderBy: string;
3589
+ recommendedQuantity: number;
3590
+ }[];
3591
+ };
3592
+ };
3593
+ }>;
3594
+ 401: z.ZodObject<{
3595
+ errors: z.ZodArray<z.ZodObject<{
3596
+ id: z.ZodOptional<z.ZodString>;
3597
+ links: z.ZodOptional<z.ZodObject<{
3598
+ about: z.ZodOptional<z.ZodString>;
3599
+ }, "strip", z.ZodTypeAny, {
3600
+ about?: string | undefined;
3601
+ }, {
3602
+ about?: string | undefined;
3603
+ }>>;
3604
+ status: z.ZodOptional<z.ZodString>;
3605
+ code: z.ZodOptional<z.ZodString>;
3606
+ title: z.ZodOptional<z.ZodString>;
3607
+ detail: z.ZodOptional<z.ZodString>;
3608
+ source: z.ZodOptional<z.ZodObject<{
3609
+ pointer: z.ZodOptional<z.ZodString>;
3610
+ parameter: z.ZodOptional<z.ZodString>;
3611
+ }, "strip", z.ZodTypeAny, {
3612
+ pointer?: string | undefined;
3613
+ parameter?: string | undefined;
3614
+ }, {
3615
+ pointer?: string | undefined;
3616
+ parameter?: string | undefined;
3617
+ }>>;
3618
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3619
+ }, "strip", z.ZodTypeAny, {
3620
+ status?: string | undefined;
3621
+ code?: string | undefined;
3622
+ id?: string | undefined;
3623
+ links?: {
3624
+ about?: string | undefined;
3625
+ } | undefined;
3626
+ meta?: Record<string, unknown> | undefined;
3627
+ title?: string | undefined;
3628
+ detail?: string | undefined;
3629
+ source?: {
3630
+ pointer?: string | undefined;
3631
+ parameter?: string | undefined;
3632
+ } | undefined;
3633
+ }, {
3634
+ status?: string | undefined;
3635
+ code?: string | undefined;
3636
+ id?: string | undefined;
3637
+ links?: {
3638
+ about?: string | undefined;
3639
+ } | undefined;
3640
+ meta?: Record<string, unknown> | undefined;
3641
+ title?: string | undefined;
3642
+ detail?: string | undefined;
3643
+ source?: {
3644
+ pointer?: string | undefined;
3645
+ parameter?: string | undefined;
3646
+ } | undefined;
3647
+ }>, "many">;
3648
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3649
+ }, "strip", z.ZodTypeAny, {
3650
+ errors: {
3651
+ status?: string | undefined;
3652
+ code?: string | undefined;
3653
+ id?: string | undefined;
3654
+ links?: {
3655
+ about?: string | undefined;
3656
+ } | undefined;
3657
+ meta?: Record<string, unknown> | undefined;
3658
+ title?: string | undefined;
3659
+ detail?: string | undefined;
3660
+ source?: {
3661
+ pointer?: string | undefined;
3662
+ parameter?: string | undefined;
3663
+ } | undefined;
3664
+ }[];
3665
+ meta?: Record<string, unknown> | undefined;
3666
+ }, {
3667
+ errors: {
3668
+ status?: string | undefined;
3669
+ code?: string | undefined;
3670
+ id?: string | undefined;
3671
+ links?: {
3672
+ about?: string | undefined;
3673
+ } | undefined;
3674
+ meta?: Record<string, unknown> | undefined;
3675
+ title?: string | undefined;
3676
+ detail?: string | undefined;
3677
+ source?: {
3678
+ pointer?: string | undefined;
3679
+ parameter?: string | undefined;
3680
+ } | undefined;
3681
+ }[];
3682
+ meta?: Record<string, unknown> | undefined;
3683
+ }>;
3684
+ 404: z.ZodObject<{
3685
+ errors: z.ZodArray<z.ZodObject<{
3686
+ id: z.ZodOptional<z.ZodString>;
3687
+ links: z.ZodOptional<z.ZodObject<{
3688
+ about: z.ZodOptional<z.ZodString>;
3689
+ }, "strip", z.ZodTypeAny, {
3690
+ about?: string | undefined;
3691
+ }, {
3692
+ about?: string | undefined;
3693
+ }>>;
3694
+ status: z.ZodOptional<z.ZodString>;
3695
+ code: z.ZodOptional<z.ZodString>;
3696
+ title: z.ZodOptional<z.ZodString>;
3697
+ detail: z.ZodOptional<z.ZodString>;
3698
+ source: z.ZodOptional<z.ZodObject<{
3699
+ pointer: z.ZodOptional<z.ZodString>;
3700
+ parameter: z.ZodOptional<z.ZodString>;
3701
+ }, "strip", z.ZodTypeAny, {
3702
+ pointer?: string | undefined;
3703
+ parameter?: string | undefined;
3704
+ }, {
3705
+ pointer?: string | undefined;
3706
+ parameter?: string | undefined;
3707
+ }>>;
3708
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ status?: string | undefined;
3711
+ code?: string | undefined;
3712
+ id?: string | undefined;
3713
+ links?: {
3714
+ about?: string | undefined;
3715
+ } | undefined;
3716
+ meta?: Record<string, unknown> | undefined;
3717
+ title?: string | undefined;
3718
+ detail?: string | undefined;
3719
+ source?: {
3720
+ pointer?: string | undefined;
3721
+ parameter?: string | undefined;
3722
+ } | undefined;
3723
+ }, {
3724
+ status?: string | undefined;
3725
+ code?: string | undefined;
3726
+ id?: string | undefined;
3727
+ links?: {
3728
+ about?: string | undefined;
3729
+ } | undefined;
3730
+ meta?: Record<string, unknown> | undefined;
3731
+ title?: string | undefined;
3732
+ detail?: string | undefined;
3733
+ source?: {
3734
+ pointer?: string | undefined;
3735
+ parameter?: string | undefined;
3736
+ } | undefined;
3737
+ }>, "many">;
3738
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3739
+ }, "strip", z.ZodTypeAny, {
3740
+ errors: {
3741
+ status?: string | undefined;
3742
+ code?: string | undefined;
3743
+ id?: string | undefined;
3744
+ links?: {
3745
+ about?: string | undefined;
3746
+ } | undefined;
3747
+ meta?: Record<string, unknown> | undefined;
3748
+ title?: string | undefined;
3749
+ detail?: string | undefined;
3750
+ source?: {
3751
+ pointer?: string | undefined;
3752
+ parameter?: string | undefined;
3753
+ } | undefined;
3754
+ }[];
3755
+ meta?: Record<string, unknown> | undefined;
3756
+ }, {
3757
+ errors: {
3758
+ status?: string | undefined;
3759
+ code?: string | undefined;
3760
+ id?: string | undefined;
3761
+ links?: {
3762
+ about?: string | undefined;
3763
+ } | undefined;
3764
+ meta?: Record<string, unknown> | undefined;
3765
+ title?: string | undefined;
3766
+ detail?: string | undefined;
3767
+ source?: {
3768
+ pointer?: string | undefined;
3769
+ parameter?: string | undefined;
3770
+ } | undefined;
3771
+ }[];
3772
+ meta?: Record<string, unknown> | undefined;
3773
+ }>;
3774
+ 500: z.ZodObject<{
3775
+ errors: z.ZodArray<z.ZodObject<{
3776
+ id: z.ZodOptional<z.ZodString>;
3777
+ links: z.ZodOptional<z.ZodObject<{
3778
+ about: z.ZodOptional<z.ZodString>;
3779
+ }, "strip", z.ZodTypeAny, {
3780
+ about?: string | undefined;
3781
+ }, {
3782
+ about?: string | undefined;
3783
+ }>>;
3784
+ status: z.ZodOptional<z.ZodString>;
3785
+ code: z.ZodOptional<z.ZodString>;
3786
+ title: z.ZodOptional<z.ZodString>;
3787
+ detail: z.ZodOptional<z.ZodString>;
3788
+ source: z.ZodOptional<z.ZodObject<{
3789
+ pointer: z.ZodOptional<z.ZodString>;
3790
+ parameter: z.ZodOptional<z.ZodString>;
3791
+ }, "strip", z.ZodTypeAny, {
3792
+ pointer?: string | undefined;
3793
+ parameter?: string | undefined;
3794
+ }, {
3795
+ pointer?: string | undefined;
3796
+ parameter?: string | undefined;
3797
+ }>>;
3798
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3799
+ }, "strip", z.ZodTypeAny, {
3800
+ status?: string | undefined;
3801
+ code?: string | undefined;
3802
+ id?: string | undefined;
3803
+ links?: {
3804
+ about?: string | undefined;
3805
+ } | undefined;
3806
+ meta?: Record<string, unknown> | undefined;
3807
+ title?: string | undefined;
3808
+ detail?: string | undefined;
3809
+ source?: {
3810
+ pointer?: string | undefined;
3811
+ parameter?: string | undefined;
3812
+ } | undefined;
3813
+ }, {
3814
+ status?: string | undefined;
3815
+ code?: string | undefined;
3816
+ id?: string | undefined;
3817
+ links?: {
3818
+ about?: string | undefined;
3819
+ } | undefined;
3820
+ meta?: Record<string, unknown> | undefined;
3821
+ title?: string | undefined;
3822
+ detail?: string | undefined;
3823
+ source?: {
3824
+ pointer?: string | undefined;
3825
+ parameter?: string | undefined;
3826
+ } | undefined;
3827
+ }>, "many">;
3828
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3829
+ }, "strip", z.ZodTypeAny, {
3830
+ errors: {
3831
+ status?: string | undefined;
3832
+ code?: string | undefined;
3833
+ id?: string | undefined;
3834
+ links?: {
3835
+ about?: string | undefined;
3836
+ } | undefined;
3837
+ meta?: Record<string, unknown> | undefined;
3838
+ title?: string | undefined;
3839
+ detail?: string | undefined;
3840
+ source?: {
3841
+ pointer?: string | undefined;
3842
+ parameter?: string | undefined;
3843
+ } | undefined;
3844
+ }[];
3845
+ meta?: Record<string, unknown> | undefined;
3846
+ }, {
3847
+ errors: {
3848
+ status?: string | undefined;
3849
+ code?: string | undefined;
3850
+ id?: string | undefined;
3851
+ links?: {
3852
+ about?: string | undefined;
3853
+ } | undefined;
3854
+ meta?: Record<string, unknown> | undefined;
3855
+ title?: string | undefined;
3856
+ detail?: string | undefined;
3857
+ source?: {
3858
+ pointer?: string | undefined;
3859
+ parameter?: string | undefined;
3860
+ } | undefined;
3861
+ }[];
3862
+ meta?: Record<string, unknown> | undefined;
3863
+ }>;
3864
+ };
3865
+ };
3866
+ getPestScoutingCalendar: {
3867
+ pathParams: z.ZodObject<{
3868
+ farmId: z.ZodString;
3869
+ }, "strip", z.ZodTypeAny, {
3870
+ farmId: string;
3871
+ }, {
3872
+ farmId: string;
3873
+ }>;
3874
+ query: z.ZodObject<{
3875
+ startDate: z.ZodOptional<z.ZodString>;
3876
+ horizonDays: z.ZodOptional<z.ZodNumber>;
3877
+ }, "strip", z.ZodTypeAny, {
3878
+ startDate?: string | undefined;
3879
+ horizonDays?: number | undefined;
3880
+ }, {
3881
+ startDate?: string | undefined;
3882
+ horizonDays?: number | undefined;
3883
+ }>;
3884
+ summary: "Get pest scouting calendar";
3885
+ method: "GET";
3886
+ path: "/farms/:farmId/operations/pest-scouting-calendar";
3887
+ responses: {
3888
+ 200: z.ZodObject<{
3889
+ data: z.ZodObject<{
3890
+ type: z.ZodLiteral<"pest-scouting-calendar">;
3891
+ id: z.ZodString;
3892
+ attributes: z.ZodObject<{
3893
+ farmId: z.ZodString;
3894
+ generatedAt: z.ZodString;
3895
+ events: z.ZodArray<z.ZodObject<{
3896
+ date: z.ZodString;
3897
+ fieldId: z.ZodString;
3898
+ fieldName: z.ZodString;
3899
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
3900
+ taskTitle: z.ZodString;
3901
+ reason: z.ZodString;
3902
+ }, "strip", z.ZodTypeAny, {
3903
+ date: string;
3904
+ fieldId: string;
3905
+ fieldName: string;
3906
+ reason: string;
3907
+ riskLevel: "critical" | "low" | "medium" | "high";
3908
+ taskTitle: string;
3909
+ }, {
3910
+ date: string;
3911
+ fieldId: string;
3912
+ fieldName: string;
3913
+ reason: string;
3914
+ riskLevel: "critical" | "low" | "medium" | "high";
3915
+ taskTitle: string;
3916
+ }>, "many">;
3917
+ }, "strip", z.ZodTypeAny, {
3918
+ farmId: string;
3919
+ generatedAt: string;
3920
+ events: {
3921
+ date: string;
3922
+ fieldId: string;
3923
+ fieldName: string;
3924
+ reason: string;
3925
+ riskLevel: "critical" | "low" | "medium" | "high";
3926
+ taskTitle: string;
3927
+ }[];
3928
+ }, {
3929
+ farmId: string;
3930
+ generatedAt: string;
3931
+ events: {
3932
+ date: string;
3933
+ fieldId: string;
3934
+ fieldName: string;
3935
+ reason: string;
3936
+ riskLevel: "critical" | "low" | "medium" | "high";
3937
+ taskTitle: string;
3938
+ }[];
3939
+ }>;
3940
+ }, "strip", z.ZodTypeAny, {
3941
+ type: "pest-scouting-calendar";
3942
+ id: string;
3943
+ attributes: {
3944
+ farmId: string;
3945
+ generatedAt: string;
3946
+ events: {
3947
+ date: string;
3948
+ fieldId: string;
3949
+ fieldName: string;
3950
+ reason: string;
3951
+ riskLevel: "critical" | "low" | "medium" | "high";
3952
+ taskTitle: string;
3953
+ }[];
3954
+ };
3955
+ }, {
3956
+ type: "pest-scouting-calendar";
3957
+ id: string;
3958
+ attributes: {
3959
+ farmId: string;
3960
+ generatedAt: string;
3961
+ events: {
3962
+ date: string;
3963
+ fieldId: string;
3964
+ fieldName: string;
3965
+ reason: string;
3966
+ riskLevel: "critical" | "low" | "medium" | "high";
3967
+ taskTitle: string;
3968
+ }[];
3969
+ };
3970
+ }>;
3971
+ }, "strip", z.ZodTypeAny, {
3972
+ data: {
3973
+ type: "pest-scouting-calendar";
3974
+ id: string;
3975
+ attributes: {
3976
+ farmId: string;
3977
+ generatedAt: string;
3978
+ events: {
3979
+ date: string;
3980
+ fieldId: string;
3981
+ fieldName: string;
3982
+ reason: string;
3983
+ riskLevel: "critical" | "low" | "medium" | "high";
3984
+ taskTitle: string;
3985
+ }[];
3986
+ };
3987
+ };
3988
+ }, {
3989
+ data: {
3990
+ type: "pest-scouting-calendar";
3991
+ id: string;
3992
+ attributes: {
3993
+ farmId: string;
3994
+ generatedAt: string;
3995
+ events: {
3996
+ date: string;
3997
+ fieldId: string;
3998
+ fieldName: string;
3999
+ reason: string;
4000
+ riskLevel: "critical" | "low" | "medium" | "high";
4001
+ taskTitle: string;
4002
+ }[];
4003
+ };
4004
+ };
4005
+ }>;
4006
+ 401: z.ZodObject<{
4007
+ errors: z.ZodArray<z.ZodObject<{
4008
+ id: z.ZodOptional<z.ZodString>;
4009
+ links: z.ZodOptional<z.ZodObject<{
4010
+ about: z.ZodOptional<z.ZodString>;
4011
+ }, "strip", z.ZodTypeAny, {
4012
+ about?: string | undefined;
4013
+ }, {
4014
+ about?: string | undefined;
4015
+ }>>;
4016
+ status: z.ZodOptional<z.ZodString>;
4017
+ code: z.ZodOptional<z.ZodString>;
4018
+ title: z.ZodOptional<z.ZodString>;
4019
+ detail: z.ZodOptional<z.ZodString>;
4020
+ source: z.ZodOptional<z.ZodObject<{
4021
+ pointer: z.ZodOptional<z.ZodString>;
4022
+ parameter: z.ZodOptional<z.ZodString>;
4023
+ }, "strip", z.ZodTypeAny, {
4024
+ pointer?: string | undefined;
4025
+ parameter?: string | undefined;
4026
+ }, {
4027
+ pointer?: string | undefined;
4028
+ parameter?: string | undefined;
4029
+ }>>;
4030
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4031
+ }, "strip", z.ZodTypeAny, {
4032
+ status?: string | undefined;
4033
+ code?: string | undefined;
4034
+ id?: string | undefined;
4035
+ links?: {
4036
+ about?: string | undefined;
4037
+ } | undefined;
4038
+ meta?: Record<string, unknown> | undefined;
4039
+ title?: string | undefined;
4040
+ detail?: string | undefined;
4041
+ source?: {
4042
+ pointer?: string | undefined;
4043
+ parameter?: string | undefined;
4044
+ } | undefined;
4045
+ }, {
4046
+ status?: string | undefined;
4047
+ code?: string | undefined;
4048
+ id?: string | undefined;
4049
+ links?: {
4050
+ about?: string | undefined;
4051
+ } | undefined;
4052
+ meta?: Record<string, unknown> | undefined;
4053
+ title?: string | undefined;
4054
+ detail?: string | undefined;
4055
+ source?: {
4056
+ pointer?: string | undefined;
4057
+ parameter?: string | undefined;
4058
+ } | undefined;
4059
+ }>, "many">;
4060
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4061
+ }, "strip", z.ZodTypeAny, {
4062
+ errors: {
4063
+ status?: string | undefined;
4064
+ code?: string | undefined;
4065
+ id?: string | undefined;
4066
+ links?: {
4067
+ about?: string | undefined;
4068
+ } | undefined;
4069
+ meta?: Record<string, unknown> | undefined;
4070
+ title?: string | undefined;
4071
+ detail?: string | undefined;
4072
+ source?: {
4073
+ pointer?: string | undefined;
4074
+ parameter?: string | undefined;
4075
+ } | undefined;
4076
+ }[];
4077
+ meta?: Record<string, unknown> | undefined;
4078
+ }, {
4079
+ errors: {
4080
+ status?: string | undefined;
4081
+ code?: string | undefined;
4082
+ id?: string | undefined;
4083
+ links?: {
4084
+ about?: string | undefined;
4085
+ } | undefined;
4086
+ meta?: Record<string, unknown> | undefined;
4087
+ title?: string | undefined;
4088
+ detail?: string | undefined;
4089
+ source?: {
4090
+ pointer?: string | undefined;
4091
+ parameter?: string | undefined;
4092
+ } | undefined;
4093
+ }[];
4094
+ meta?: Record<string, unknown> | undefined;
4095
+ }>;
4096
+ 404: z.ZodObject<{
4097
+ errors: z.ZodArray<z.ZodObject<{
4098
+ id: z.ZodOptional<z.ZodString>;
4099
+ links: z.ZodOptional<z.ZodObject<{
4100
+ about: z.ZodOptional<z.ZodString>;
4101
+ }, "strip", z.ZodTypeAny, {
4102
+ about?: string | undefined;
4103
+ }, {
4104
+ about?: string | undefined;
4105
+ }>>;
4106
+ status: z.ZodOptional<z.ZodString>;
4107
+ code: z.ZodOptional<z.ZodString>;
4108
+ title: z.ZodOptional<z.ZodString>;
4109
+ detail: z.ZodOptional<z.ZodString>;
4110
+ source: z.ZodOptional<z.ZodObject<{
4111
+ pointer: z.ZodOptional<z.ZodString>;
4112
+ parameter: z.ZodOptional<z.ZodString>;
4113
+ }, "strip", z.ZodTypeAny, {
4114
+ pointer?: string | undefined;
4115
+ parameter?: string | undefined;
4116
+ }, {
4117
+ pointer?: string | undefined;
4118
+ parameter?: string | undefined;
4119
+ }>>;
4120
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4121
+ }, "strip", z.ZodTypeAny, {
4122
+ status?: string | undefined;
4123
+ code?: string | undefined;
4124
+ id?: string | undefined;
4125
+ links?: {
4126
+ about?: string | undefined;
4127
+ } | undefined;
4128
+ meta?: Record<string, unknown> | undefined;
4129
+ title?: string | undefined;
4130
+ detail?: string | undefined;
4131
+ source?: {
4132
+ pointer?: string | undefined;
4133
+ parameter?: string | undefined;
4134
+ } | undefined;
4135
+ }, {
4136
+ status?: string | undefined;
4137
+ code?: string | undefined;
4138
+ id?: string | undefined;
4139
+ links?: {
4140
+ about?: string | undefined;
4141
+ } | undefined;
4142
+ meta?: Record<string, unknown> | undefined;
4143
+ title?: string | undefined;
4144
+ detail?: string | undefined;
4145
+ source?: {
4146
+ pointer?: string | undefined;
4147
+ parameter?: string | undefined;
4148
+ } | undefined;
4149
+ }>, "many">;
4150
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ errors: {
4153
+ status?: string | undefined;
4154
+ code?: string | undefined;
4155
+ id?: string | undefined;
4156
+ links?: {
4157
+ about?: string | undefined;
4158
+ } | undefined;
4159
+ meta?: Record<string, unknown> | undefined;
4160
+ title?: string | undefined;
4161
+ detail?: string | undefined;
4162
+ source?: {
4163
+ pointer?: string | undefined;
4164
+ parameter?: string | undefined;
4165
+ } | undefined;
4166
+ }[];
4167
+ meta?: Record<string, unknown> | undefined;
4168
+ }, {
4169
+ errors: {
4170
+ status?: string | undefined;
4171
+ code?: string | undefined;
4172
+ id?: string | undefined;
4173
+ links?: {
4174
+ about?: string | undefined;
4175
+ } | undefined;
4176
+ meta?: Record<string, unknown> | undefined;
4177
+ title?: string | undefined;
4178
+ detail?: string | undefined;
4179
+ source?: {
4180
+ pointer?: string | undefined;
4181
+ parameter?: string | undefined;
4182
+ } | undefined;
4183
+ }[];
4184
+ meta?: Record<string, unknown> | undefined;
4185
+ }>;
4186
+ };
4187
+ };
4188
+ getHarvestReadiness: {
4189
+ pathParams: z.ZodObject<{
4190
+ fieldId: z.ZodString;
4191
+ }, "strip", z.ZodTypeAny, {
4192
+ fieldId: string;
4193
+ }, {
4194
+ fieldId: string;
4195
+ }>;
4196
+ summary: "Get field harvest readiness score";
4197
+ method: "GET";
4198
+ path: "/fields/:fieldId/harvest-readiness";
4199
+ responses: {
4200
+ 200: z.ZodObject<{
4201
+ data: z.ZodObject<{
4202
+ type: z.ZodLiteral<"harvest-readiness">;
4203
+ id: z.ZodString;
4204
+ attributes: z.ZodObject<{
4205
+ fieldId: z.ZodString;
4206
+ score: z.ZodNumber;
4207
+ recommendation: z.ZodEnum<["go", "wait", "monitor"]>;
4208
+ factors: z.ZodObject<{
4209
+ gddProgress: z.ZodNumber;
4210
+ ndviTrend: z.ZodNumber;
4211
+ weatherWindow: z.ZodNumber;
4212
+ }, "strip", z.ZodTypeAny, {
4213
+ gddProgress: number;
4214
+ ndviTrend: number;
4215
+ weatherWindow: number;
4216
+ }, {
4217
+ gddProgress: number;
4218
+ ndviTrend: number;
4219
+ weatherWindow: number;
4220
+ }>;
4221
+ generatedAt: z.ZodString;
4222
+ }, "strip", z.ZodTypeAny, {
4223
+ fieldId: string;
4224
+ score: number;
4225
+ recommendation: "go" | "wait" | "monitor";
4226
+ generatedAt: string;
4227
+ factors: {
4228
+ gddProgress: number;
4229
+ ndviTrend: number;
4230
+ weatherWindow: number;
4231
+ };
4232
+ }, {
4233
+ fieldId: string;
4234
+ score: number;
4235
+ recommendation: "go" | "wait" | "monitor";
4236
+ generatedAt: string;
4237
+ factors: {
4238
+ gddProgress: number;
4239
+ ndviTrend: number;
4240
+ weatherWindow: number;
4241
+ };
4242
+ }>;
4243
+ }, "strip", z.ZodTypeAny, {
4244
+ type: "harvest-readiness";
4245
+ id: string;
4246
+ attributes: {
4247
+ fieldId: string;
4248
+ score: number;
4249
+ recommendation: "go" | "wait" | "monitor";
4250
+ generatedAt: string;
4251
+ factors: {
4252
+ gddProgress: number;
4253
+ ndviTrend: number;
4254
+ weatherWindow: number;
4255
+ };
4256
+ };
4257
+ }, {
4258
+ type: "harvest-readiness";
4259
+ id: string;
4260
+ attributes: {
4261
+ fieldId: string;
4262
+ score: number;
4263
+ recommendation: "go" | "wait" | "monitor";
4264
+ generatedAt: string;
4265
+ factors: {
4266
+ gddProgress: number;
4267
+ ndviTrend: number;
4268
+ weatherWindow: number;
4269
+ };
4270
+ };
4271
+ }>;
4272
+ }, "strip", z.ZodTypeAny, {
4273
+ data: {
4274
+ type: "harvest-readiness";
4275
+ id: string;
4276
+ attributes: {
4277
+ fieldId: string;
4278
+ score: number;
4279
+ recommendation: "go" | "wait" | "monitor";
4280
+ generatedAt: string;
4281
+ factors: {
4282
+ gddProgress: number;
4283
+ ndviTrend: number;
4284
+ weatherWindow: number;
4285
+ };
4286
+ };
4287
+ };
4288
+ }, {
4289
+ data: {
4290
+ type: "harvest-readiness";
4291
+ id: string;
4292
+ attributes: {
4293
+ fieldId: string;
4294
+ score: number;
4295
+ recommendation: "go" | "wait" | "monitor";
4296
+ generatedAt: string;
4297
+ factors: {
4298
+ gddProgress: number;
4299
+ ndviTrend: number;
4300
+ weatherWindow: number;
4301
+ };
4302
+ };
4303
+ };
4304
+ }>;
4305
+ 401: z.ZodObject<{
4306
+ errors: z.ZodArray<z.ZodObject<{
4307
+ id: z.ZodOptional<z.ZodString>;
4308
+ links: z.ZodOptional<z.ZodObject<{
4309
+ about: z.ZodOptional<z.ZodString>;
4310
+ }, "strip", z.ZodTypeAny, {
4311
+ about?: string | undefined;
4312
+ }, {
4313
+ about?: string | undefined;
4314
+ }>>;
4315
+ status: z.ZodOptional<z.ZodString>;
4316
+ code: z.ZodOptional<z.ZodString>;
4317
+ title: z.ZodOptional<z.ZodString>;
4318
+ detail: z.ZodOptional<z.ZodString>;
4319
+ source: z.ZodOptional<z.ZodObject<{
4320
+ pointer: z.ZodOptional<z.ZodString>;
4321
+ parameter: z.ZodOptional<z.ZodString>;
4322
+ }, "strip", z.ZodTypeAny, {
4323
+ pointer?: string | undefined;
4324
+ parameter?: string | undefined;
4325
+ }, {
4326
+ pointer?: string | undefined;
4327
+ parameter?: string | undefined;
4328
+ }>>;
4329
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4330
+ }, "strip", z.ZodTypeAny, {
4331
+ status?: string | undefined;
4332
+ code?: string | undefined;
4333
+ id?: string | undefined;
4334
+ links?: {
4335
+ about?: string | undefined;
4336
+ } | undefined;
4337
+ meta?: Record<string, unknown> | undefined;
4338
+ title?: string | undefined;
4339
+ detail?: string | undefined;
4340
+ source?: {
4341
+ pointer?: string | undefined;
4342
+ parameter?: string | undefined;
4343
+ } | undefined;
4344
+ }, {
4345
+ status?: string | undefined;
4346
+ code?: string | undefined;
4347
+ id?: string | undefined;
4348
+ links?: {
4349
+ about?: string | undefined;
4350
+ } | undefined;
4351
+ meta?: Record<string, unknown> | undefined;
4352
+ title?: string | undefined;
4353
+ detail?: string | undefined;
4354
+ source?: {
4355
+ pointer?: string | undefined;
4356
+ parameter?: string | undefined;
4357
+ } | undefined;
4358
+ }>, "many">;
4359
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4360
+ }, "strip", z.ZodTypeAny, {
4361
+ errors: {
4362
+ status?: string | undefined;
4363
+ code?: string | undefined;
4364
+ id?: string | undefined;
4365
+ links?: {
4366
+ about?: string | undefined;
4367
+ } | undefined;
4368
+ meta?: Record<string, unknown> | undefined;
4369
+ title?: string | undefined;
4370
+ detail?: string | undefined;
4371
+ source?: {
4372
+ pointer?: string | undefined;
4373
+ parameter?: string | undefined;
4374
+ } | undefined;
4375
+ }[];
4376
+ meta?: Record<string, unknown> | undefined;
4377
+ }, {
4378
+ errors: {
4379
+ status?: string | undefined;
4380
+ code?: string | undefined;
4381
+ id?: string | undefined;
4382
+ links?: {
4383
+ about?: string | undefined;
4384
+ } | undefined;
4385
+ meta?: Record<string, unknown> | undefined;
4386
+ title?: string | undefined;
4387
+ detail?: string | undefined;
4388
+ source?: {
4389
+ pointer?: string | undefined;
4390
+ parameter?: string | undefined;
4391
+ } | undefined;
4392
+ }[];
4393
+ meta?: Record<string, unknown> | undefined;
4394
+ }>;
4395
+ 404: z.ZodObject<{
4396
+ errors: z.ZodArray<z.ZodObject<{
4397
+ id: z.ZodOptional<z.ZodString>;
4398
+ links: z.ZodOptional<z.ZodObject<{
4399
+ about: z.ZodOptional<z.ZodString>;
4400
+ }, "strip", z.ZodTypeAny, {
4401
+ about?: string | undefined;
4402
+ }, {
4403
+ about?: string | undefined;
4404
+ }>>;
4405
+ status: z.ZodOptional<z.ZodString>;
4406
+ code: z.ZodOptional<z.ZodString>;
4407
+ title: z.ZodOptional<z.ZodString>;
4408
+ detail: z.ZodOptional<z.ZodString>;
4409
+ source: z.ZodOptional<z.ZodObject<{
4410
+ pointer: z.ZodOptional<z.ZodString>;
4411
+ parameter: z.ZodOptional<z.ZodString>;
4412
+ }, "strip", z.ZodTypeAny, {
4413
+ pointer?: string | undefined;
4414
+ parameter?: string | undefined;
4415
+ }, {
4416
+ pointer?: string | undefined;
4417
+ parameter?: string | undefined;
4418
+ }>>;
4419
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4420
+ }, "strip", z.ZodTypeAny, {
4421
+ status?: string | undefined;
4422
+ code?: string | undefined;
4423
+ id?: string | undefined;
4424
+ links?: {
4425
+ about?: string | undefined;
4426
+ } | undefined;
4427
+ meta?: Record<string, unknown> | undefined;
4428
+ title?: string | undefined;
4429
+ detail?: string | undefined;
4430
+ source?: {
4431
+ pointer?: string | undefined;
4432
+ parameter?: string | undefined;
4433
+ } | undefined;
4434
+ }, {
4435
+ status?: string | undefined;
4436
+ code?: string | undefined;
4437
+ id?: string | undefined;
4438
+ links?: {
4439
+ about?: string | undefined;
4440
+ } | undefined;
4441
+ meta?: Record<string, unknown> | undefined;
4442
+ title?: string | undefined;
4443
+ detail?: string | undefined;
4444
+ source?: {
4445
+ pointer?: string | undefined;
4446
+ parameter?: string | undefined;
4447
+ } | undefined;
4448
+ }>, "many">;
4449
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4450
+ }, "strip", z.ZodTypeAny, {
4451
+ errors: {
4452
+ status?: string | undefined;
4453
+ code?: string | undefined;
4454
+ id?: string | undefined;
4455
+ links?: {
4456
+ about?: string | undefined;
4457
+ } | undefined;
4458
+ meta?: Record<string, unknown> | undefined;
4459
+ title?: string | undefined;
4460
+ detail?: string | undefined;
4461
+ source?: {
4462
+ pointer?: string | undefined;
4463
+ parameter?: string | undefined;
4464
+ } | undefined;
4465
+ }[];
4466
+ meta?: Record<string, unknown> | undefined;
4467
+ }, {
4468
+ errors: {
4469
+ status?: string | undefined;
4470
+ code?: string | undefined;
4471
+ id?: string | undefined;
4472
+ links?: {
4473
+ about?: string | undefined;
4474
+ } | undefined;
4475
+ meta?: Record<string, unknown> | undefined;
4476
+ title?: string | undefined;
4477
+ detail?: string | undefined;
4478
+ source?: {
4479
+ pointer?: string | undefined;
4480
+ parameter?: string | undefined;
4481
+ } | undefined;
4482
+ }[];
4483
+ meta?: Record<string, unknown> | undefined;
4484
+ }>;
4485
+ };
4486
+ };
4487
+ farmBrainChat: {
4488
+ pathParams: z.ZodObject<{
4489
+ farmId: z.ZodString;
4490
+ }, "strip", z.ZodTypeAny, {
4491
+ farmId: string;
4492
+ }, {
4493
+ farmId: string;
4494
+ }>;
4495
+ summary: "Unified Farm Brain chat entrypoint";
4496
+ method: "POST";
4497
+ body: z.ZodObject<{
4498
+ message: z.ZodString;
4499
+ }, "strip", z.ZodTypeAny, {
4500
+ message: string;
4501
+ }, {
4502
+ message: string;
4503
+ }>;
4504
+ path: "/farms/:farmId/farm-brain/chat";
4505
+ responses: {
4506
+ 200: z.ZodObject<{
4507
+ data: z.ZodObject<{
4508
+ type: z.ZodLiteral<"farm-brain-response">;
4509
+ id: z.ZodString;
4510
+ attributes: z.ZodObject<{
4511
+ response: z.ZodString;
4512
+ route: z.ZodEnum<["agronomics", "finance", "operations", "general"]>;
4513
+ conversationId: z.ZodOptional<z.ZodString>;
4514
+ }, "strip", z.ZodTypeAny, {
4515
+ response: string;
4516
+ route: "general" | "agronomics" | "finance" | "operations";
4517
+ conversationId?: string | undefined;
4518
+ }, {
4519
+ response: string;
4520
+ route: "general" | "agronomics" | "finance" | "operations";
4521
+ conversationId?: string | undefined;
4522
+ }>;
4523
+ }, "strip", z.ZodTypeAny, {
4524
+ type: "farm-brain-response";
4525
+ id: string;
4526
+ attributes: {
4527
+ response: string;
4528
+ route: "general" | "agronomics" | "finance" | "operations";
4529
+ conversationId?: string | undefined;
4530
+ };
4531
+ }, {
4532
+ type: "farm-brain-response";
4533
+ id: string;
4534
+ attributes: {
4535
+ response: string;
4536
+ route: "general" | "agronomics" | "finance" | "operations";
4537
+ conversationId?: string | undefined;
4538
+ };
4539
+ }>;
4540
+ }, "strip", z.ZodTypeAny, {
4541
+ data: {
4542
+ type: "farm-brain-response";
4543
+ id: string;
4544
+ attributes: {
4545
+ response: string;
4546
+ route: "general" | "agronomics" | "finance" | "operations";
4547
+ conversationId?: string | undefined;
4548
+ };
4549
+ };
4550
+ }, {
4551
+ data: {
4552
+ type: "farm-brain-response";
4553
+ id: string;
4554
+ attributes: {
4555
+ response: string;
4556
+ route: "general" | "agronomics" | "finance" | "operations";
4557
+ conversationId?: string | undefined;
4558
+ };
4559
+ };
4560
+ }>;
4561
+ 401: z.ZodObject<{
4562
+ errors: z.ZodArray<z.ZodObject<{
4563
+ id: z.ZodOptional<z.ZodString>;
4564
+ links: z.ZodOptional<z.ZodObject<{
4565
+ about: z.ZodOptional<z.ZodString>;
4566
+ }, "strip", z.ZodTypeAny, {
4567
+ about?: string | undefined;
4568
+ }, {
4569
+ about?: string | undefined;
4570
+ }>>;
4571
+ status: z.ZodOptional<z.ZodString>;
4572
+ code: z.ZodOptional<z.ZodString>;
4573
+ title: z.ZodOptional<z.ZodString>;
4574
+ detail: z.ZodOptional<z.ZodString>;
4575
+ source: z.ZodOptional<z.ZodObject<{
4576
+ pointer: z.ZodOptional<z.ZodString>;
4577
+ parameter: z.ZodOptional<z.ZodString>;
4578
+ }, "strip", z.ZodTypeAny, {
4579
+ pointer?: string | undefined;
4580
+ parameter?: string | undefined;
4581
+ }, {
4582
+ pointer?: string | undefined;
4583
+ parameter?: string | undefined;
4584
+ }>>;
4585
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4586
+ }, "strip", z.ZodTypeAny, {
4587
+ status?: string | undefined;
4588
+ code?: string | undefined;
4589
+ id?: string | undefined;
4590
+ links?: {
4591
+ about?: string | undefined;
4592
+ } | undefined;
4593
+ meta?: Record<string, unknown> | undefined;
4594
+ title?: string | undefined;
4595
+ detail?: string | undefined;
4596
+ source?: {
4597
+ pointer?: string | undefined;
4598
+ parameter?: string | undefined;
4599
+ } | undefined;
4600
+ }, {
4601
+ status?: string | undefined;
4602
+ code?: string | undefined;
4603
+ id?: string | undefined;
4604
+ links?: {
4605
+ about?: string | undefined;
4606
+ } | undefined;
4607
+ meta?: Record<string, unknown> | undefined;
4608
+ title?: string | undefined;
4609
+ detail?: string | undefined;
4610
+ source?: {
4611
+ pointer?: string | undefined;
4612
+ parameter?: string | undefined;
4613
+ } | undefined;
4614
+ }>, "many">;
4615
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4616
+ }, "strip", z.ZodTypeAny, {
4617
+ errors: {
4618
+ status?: string | undefined;
4619
+ code?: string | undefined;
4620
+ id?: string | undefined;
4621
+ links?: {
4622
+ about?: string | undefined;
4623
+ } | undefined;
4624
+ meta?: Record<string, unknown> | undefined;
4625
+ title?: string | undefined;
4626
+ detail?: string | undefined;
4627
+ source?: {
4628
+ pointer?: string | undefined;
4629
+ parameter?: string | undefined;
4630
+ } | undefined;
4631
+ }[];
4632
+ meta?: Record<string, unknown> | undefined;
4633
+ }, {
4634
+ errors: {
4635
+ status?: string | undefined;
4636
+ code?: string | undefined;
4637
+ id?: string | undefined;
4638
+ links?: {
4639
+ about?: string | undefined;
4640
+ } | undefined;
4641
+ meta?: Record<string, unknown> | undefined;
4642
+ title?: string | undefined;
4643
+ detail?: string | undefined;
4644
+ source?: {
4645
+ pointer?: string | undefined;
4646
+ parameter?: string | undefined;
4647
+ } | undefined;
4648
+ }[];
4649
+ meta?: Record<string, unknown> | undefined;
4650
+ }>;
4651
+ 404: z.ZodObject<{
4652
+ errors: z.ZodArray<z.ZodObject<{
4653
+ id: z.ZodOptional<z.ZodString>;
4654
+ links: z.ZodOptional<z.ZodObject<{
4655
+ about: z.ZodOptional<z.ZodString>;
4656
+ }, "strip", z.ZodTypeAny, {
4657
+ about?: string | undefined;
4658
+ }, {
4659
+ about?: string | undefined;
4660
+ }>>;
4661
+ status: z.ZodOptional<z.ZodString>;
4662
+ code: z.ZodOptional<z.ZodString>;
4663
+ title: z.ZodOptional<z.ZodString>;
4664
+ detail: z.ZodOptional<z.ZodString>;
4665
+ source: z.ZodOptional<z.ZodObject<{
4666
+ pointer: z.ZodOptional<z.ZodString>;
4667
+ parameter: z.ZodOptional<z.ZodString>;
4668
+ }, "strip", z.ZodTypeAny, {
4669
+ pointer?: string | undefined;
4670
+ parameter?: string | undefined;
4671
+ }, {
4672
+ pointer?: string | undefined;
4673
+ parameter?: string | undefined;
4674
+ }>>;
4675
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4676
+ }, "strip", z.ZodTypeAny, {
4677
+ status?: string | undefined;
4678
+ code?: string | undefined;
4679
+ id?: string | undefined;
4680
+ links?: {
4681
+ about?: string | undefined;
4682
+ } | undefined;
4683
+ meta?: Record<string, unknown> | undefined;
4684
+ title?: string | undefined;
4685
+ detail?: string | undefined;
4686
+ source?: {
4687
+ pointer?: string | undefined;
4688
+ parameter?: string | undefined;
4689
+ } | undefined;
4690
+ }, {
4691
+ status?: string | undefined;
4692
+ code?: string | undefined;
4693
+ id?: string | undefined;
4694
+ links?: {
4695
+ about?: string | undefined;
4696
+ } | undefined;
4697
+ meta?: Record<string, unknown> | undefined;
4698
+ title?: string | undefined;
4699
+ detail?: string | undefined;
4700
+ source?: {
4701
+ pointer?: string | undefined;
4702
+ parameter?: string | undefined;
4703
+ } | undefined;
4704
+ }>, "many">;
4705
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4706
+ }, "strip", z.ZodTypeAny, {
4707
+ errors: {
4708
+ status?: string | undefined;
4709
+ code?: string | undefined;
4710
+ id?: string | undefined;
4711
+ links?: {
4712
+ about?: string | undefined;
4713
+ } | undefined;
4714
+ meta?: Record<string, unknown> | undefined;
4715
+ title?: string | undefined;
4716
+ detail?: string | undefined;
4717
+ source?: {
4718
+ pointer?: string | undefined;
4719
+ parameter?: string | undefined;
4720
+ } | undefined;
4721
+ }[];
4722
+ meta?: Record<string, unknown> | undefined;
4723
+ }, {
4724
+ errors: {
4725
+ status?: string | undefined;
4726
+ code?: string | undefined;
4727
+ id?: string | undefined;
4728
+ links?: {
4729
+ about?: string | undefined;
4730
+ } | undefined;
4731
+ meta?: Record<string, unknown> | undefined;
4732
+ title?: string | undefined;
4733
+ detail?: string | undefined;
4734
+ source?: {
4735
+ pointer?: string | undefined;
4736
+ parameter?: string | undefined;
4737
+ } | undefined;
4738
+ }[];
4739
+ meta?: Record<string, unknown> | undefined;
4740
+ }>;
4741
+ 500: z.ZodObject<{
4742
+ errors: z.ZodArray<z.ZodObject<{
4743
+ id: z.ZodOptional<z.ZodString>;
4744
+ links: z.ZodOptional<z.ZodObject<{
4745
+ about: z.ZodOptional<z.ZodString>;
4746
+ }, "strip", z.ZodTypeAny, {
4747
+ about?: string | undefined;
4748
+ }, {
4749
+ about?: string | undefined;
4750
+ }>>;
4751
+ status: z.ZodOptional<z.ZodString>;
4752
+ code: z.ZodOptional<z.ZodString>;
4753
+ title: z.ZodOptional<z.ZodString>;
4754
+ detail: z.ZodOptional<z.ZodString>;
4755
+ source: z.ZodOptional<z.ZodObject<{
4756
+ pointer: z.ZodOptional<z.ZodString>;
4757
+ parameter: z.ZodOptional<z.ZodString>;
4758
+ }, "strip", z.ZodTypeAny, {
4759
+ pointer?: string | undefined;
4760
+ parameter?: string | undefined;
4761
+ }, {
4762
+ pointer?: string | undefined;
4763
+ parameter?: string | undefined;
4764
+ }>>;
4765
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4766
+ }, "strip", z.ZodTypeAny, {
4767
+ status?: string | undefined;
4768
+ code?: string | undefined;
4769
+ id?: string | undefined;
4770
+ links?: {
4771
+ about?: string | undefined;
4772
+ } | undefined;
4773
+ meta?: Record<string, unknown> | undefined;
4774
+ title?: string | undefined;
4775
+ detail?: string | undefined;
4776
+ source?: {
4777
+ pointer?: string | undefined;
4778
+ parameter?: string | undefined;
4779
+ } | undefined;
4780
+ }, {
4781
+ status?: string | undefined;
4782
+ code?: string | undefined;
4783
+ id?: string | undefined;
4784
+ links?: {
4785
+ about?: string | undefined;
4786
+ } | undefined;
4787
+ meta?: Record<string, unknown> | undefined;
4788
+ title?: string | undefined;
4789
+ detail?: string | undefined;
4790
+ source?: {
4791
+ pointer?: string | undefined;
4792
+ parameter?: string | undefined;
4793
+ } | undefined;
4794
+ }>, "many">;
4795
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4796
+ }, "strip", z.ZodTypeAny, {
4797
+ errors: {
4798
+ status?: string | undefined;
4799
+ code?: string | undefined;
4800
+ id?: string | undefined;
4801
+ links?: {
4802
+ about?: string | undefined;
4803
+ } | undefined;
4804
+ meta?: Record<string, unknown> | undefined;
4805
+ title?: string | undefined;
4806
+ detail?: string | undefined;
4807
+ source?: {
4808
+ pointer?: string | undefined;
4809
+ parameter?: string | undefined;
4810
+ } | undefined;
4811
+ }[];
4812
+ meta?: Record<string, unknown> | undefined;
4813
+ }, {
4814
+ errors: {
4815
+ status?: string | undefined;
4816
+ code?: string | undefined;
4817
+ id?: string | undefined;
4818
+ links?: {
4819
+ about?: string | undefined;
4820
+ } | undefined;
4821
+ meta?: Record<string, unknown> | undefined;
4822
+ title?: string | undefined;
4823
+ detail?: string | undefined;
4824
+ source?: {
4825
+ pointer?: string | undefined;
4826
+ parameter?: string | undefined;
4827
+ } | undefined;
4828
+ }[];
4829
+ meta?: Record<string, unknown> | undefined;
4830
+ }>;
4831
+ };
4832
+ };
4833
+ getDailyBriefing: {
4834
+ pathParams: z.ZodObject<{
4835
+ farmId: z.ZodString;
4836
+ }, "strip", z.ZodTypeAny, {
4837
+ farmId: string;
4838
+ }, {
4839
+ farmId: string;
4840
+ }>;
4841
+ summary: "Generate daily farm briefing";
4842
+ method: "GET";
4843
+ path: "/farms/:farmId/farm-brain/daily-briefing";
4844
+ responses: {
4845
+ 200: z.ZodObject<{
4846
+ data: z.ZodObject<{
4847
+ type: z.ZodLiteral<"daily-briefing">;
4848
+ id: z.ZodString;
4849
+ attributes: z.ZodObject<{
4850
+ farmId: z.ZodString;
4851
+ generatedAt: z.ZodString;
4852
+ summary: z.ZodString;
4853
+ priorities: z.ZodArray<z.ZodString, "many">;
4854
+ }, "strip", z.ZodTypeAny, {
4855
+ summary: string;
4856
+ farmId: string;
4857
+ generatedAt: string;
4858
+ priorities: string[];
4859
+ }, {
4860
+ summary: string;
4861
+ farmId: string;
4862
+ generatedAt: string;
4863
+ priorities: string[];
4864
+ }>;
4865
+ }, "strip", z.ZodTypeAny, {
4866
+ type: "daily-briefing";
4867
+ id: string;
4868
+ attributes: {
4869
+ summary: string;
4870
+ farmId: string;
4871
+ generatedAt: string;
4872
+ priorities: string[];
4873
+ };
4874
+ }, {
4875
+ type: "daily-briefing";
4876
+ id: string;
4877
+ attributes: {
4878
+ summary: string;
4879
+ farmId: string;
4880
+ generatedAt: string;
4881
+ priorities: string[];
4882
+ };
4883
+ }>;
4884
+ }, "strip", z.ZodTypeAny, {
4885
+ data: {
4886
+ type: "daily-briefing";
4887
+ id: string;
4888
+ attributes: {
4889
+ summary: string;
4890
+ farmId: string;
4891
+ generatedAt: string;
4892
+ priorities: string[];
4893
+ };
4894
+ };
4895
+ }, {
4896
+ data: {
4897
+ type: "daily-briefing";
4898
+ id: string;
4899
+ attributes: {
4900
+ summary: string;
4901
+ farmId: string;
4902
+ generatedAt: string;
4903
+ priorities: string[];
4904
+ };
4905
+ };
4906
+ }>;
4907
+ 401: z.ZodObject<{
4908
+ errors: z.ZodArray<z.ZodObject<{
4909
+ id: z.ZodOptional<z.ZodString>;
4910
+ links: z.ZodOptional<z.ZodObject<{
4911
+ about: z.ZodOptional<z.ZodString>;
4912
+ }, "strip", z.ZodTypeAny, {
4913
+ about?: string | undefined;
4914
+ }, {
4915
+ about?: string | undefined;
4916
+ }>>;
4917
+ status: z.ZodOptional<z.ZodString>;
4918
+ code: z.ZodOptional<z.ZodString>;
4919
+ title: z.ZodOptional<z.ZodString>;
4920
+ detail: z.ZodOptional<z.ZodString>;
4921
+ source: z.ZodOptional<z.ZodObject<{
4922
+ pointer: z.ZodOptional<z.ZodString>;
4923
+ parameter: z.ZodOptional<z.ZodString>;
4924
+ }, "strip", z.ZodTypeAny, {
4925
+ pointer?: string | undefined;
4926
+ parameter?: string | undefined;
4927
+ }, {
4928
+ pointer?: string | undefined;
4929
+ parameter?: string | undefined;
4930
+ }>>;
4931
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4932
+ }, "strip", z.ZodTypeAny, {
4933
+ status?: string | undefined;
4934
+ code?: string | undefined;
4935
+ id?: string | undefined;
4936
+ links?: {
4937
+ about?: string | undefined;
4938
+ } | undefined;
4939
+ meta?: Record<string, unknown> | undefined;
4940
+ title?: string | undefined;
4941
+ detail?: string | undefined;
4942
+ source?: {
4943
+ pointer?: string | undefined;
4944
+ parameter?: string | undefined;
4945
+ } | undefined;
4946
+ }, {
4947
+ status?: string | undefined;
4948
+ code?: string | undefined;
4949
+ id?: string | undefined;
4950
+ links?: {
4951
+ about?: string | undefined;
4952
+ } | undefined;
4953
+ meta?: Record<string, unknown> | undefined;
4954
+ title?: string | undefined;
4955
+ detail?: string | undefined;
4956
+ source?: {
4957
+ pointer?: string | undefined;
4958
+ parameter?: string | undefined;
4959
+ } | undefined;
4960
+ }>, "many">;
4961
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4962
+ }, "strip", z.ZodTypeAny, {
4963
+ errors: {
4964
+ status?: string | undefined;
4965
+ code?: string | undefined;
4966
+ id?: string | undefined;
4967
+ links?: {
4968
+ about?: string | undefined;
4969
+ } | undefined;
4970
+ meta?: Record<string, unknown> | undefined;
4971
+ title?: string | undefined;
4972
+ detail?: string | undefined;
4973
+ source?: {
4974
+ pointer?: string | undefined;
4975
+ parameter?: string | undefined;
4976
+ } | undefined;
4977
+ }[];
4978
+ meta?: Record<string, unknown> | undefined;
4979
+ }, {
4980
+ errors: {
4981
+ status?: string | undefined;
4982
+ code?: string | undefined;
4983
+ id?: string | undefined;
4984
+ links?: {
4985
+ about?: string | undefined;
4986
+ } | undefined;
4987
+ meta?: Record<string, unknown> | undefined;
4988
+ title?: string | undefined;
4989
+ detail?: string | undefined;
4990
+ source?: {
4991
+ pointer?: string | undefined;
4992
+ parameter?: string | undefined;
4993
+ } | undefined;
4994
+ }[];
4995
+ meta?: Record<string, unknown> | undefined;
4996
+ }>;
4997
+ 404: z.ZodObject<{
4998
+ errors: z.ZodArray<z.ZodObject<{
4999
+ id: z.ZodOptional<z.ZodString>;
5000
+ links: z.ZodOptional<z.ZodObject<{
5001
+ about: z.ZodOptional<z.ZodString>;
5002
+ }, "strip", z.ZodTypeAny, {
5003
+ about?: string | undefined;
5004
+ }, {
5005
+ about?: string | undefined;
5006
+ }>>;
5007
+ status: z.ZodOptional<z.ZodString>;
5008
+ code: z.ZodOptional<z.ZodString>;
5009
+ title: z.ZodOptional<z.ZodString>;
5010
+ detail: z.ZodOptional<z.ZodString>;
5011
+ source: z.ZodOptional<z.ZodObject<{
5012
+ pointer: z.ZodOptional<z.ZodString>;
5013
+ parameter: z.ZodOptional<z.ZodString>;
5014
+ }, "strip", z.ZodTypeAny, {
5015
+ pointer?: string | undefined;
5016
+ parameter?: string | undefined;
5017
+ }, {
5018
+ pointer?: string | undefined;
5019
+ parameter?: string | undefined;
5020
+ }>>;
5021
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5022
+ }, "strip", z.ZodTypeAny, {
5023
+ status?: string | undefined;
5024
+ code?: string | undefined;
5025
+ id?: string | undefined;
5026
+ links?: {
5027
+ about?: string | undefined;
5028
+ } | undefined;
5029
+ meta?: Record<string, unknown> | undefined;
5030
+ title?: string | undefined;
5031
+ detail?: string | undefined;
5032
+ source?: {
5033
+ pointer?: string | undefined;
5034
+ parameter?: string | undefined;
5035
+ } | undefined;
5036
+ }, {
5037
+ status?: string | undefined;
5038
+ code?: string | undefined;
5039
+ id?: string | undefined;
5040
+ links?: {
5041
+ about?: string | undefined;
5042
+ } | undefined;
5043
+ meta?: Record<string, unknown> | undefined;
5044
+ title?: string | undefined;
5045
+ detail?: string | undefined;
5046
+ source?: {
5047
+ pointer?: string | undefined;
5048
+ parameter?: string | undefined;
5049
+ } | undefined;
5050
+ }>, "many">;
5051
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5052
+ }, "strip", z.ZodTypeAny, {
5053
+ errors: {
5054
+ status?: string | undefined;
5055
+ code?: string | undefined;
5056
+ id?: string | undefined;
5057
+ links?: {
5058
+ about?: string | undefined;
5059
+ } | undefined;
5060
+ meta?: Record<string, unknown> | undefined;
5061
+ title?: string | undefined;
5062
+ detail?: string | undefined;
5063
+ source?: {
5064
+ pointer?: string | undefined;
5065
+ parameter?: string | undefined;
5066
+ } | undefined;
5067
+ }[];
5068
+ meta?: Record<string, unknown> | undefined;
5069
+ }, {
5070
+ errors: {
5071
+ status?: string | undefined;
5072
+ code?: string | undefined;
5073
+ id?: string | undefined;
5074
+ links?: {
5075
+ about?: string | undefined;
5076
+ } | undefined;
5077
+ meta?: Record<string, unknown> | undefined;
5078
+ title?: string | undefined;
5079
+ detail?: string | undefined;
5080
+ source?: {
5081
+ pointer?: string | undefined;
5082
+ parameter?: string | undefined;
5083
+ } | undefined;
5084
+ }[];
5085
+ meta?: Record<string, unknown> | undefined;
5086
+ }>;
5087
+ };
5088
+ };
5089
+ farmBrainLocalizedChat: {
5090
+ pathParams: z.ZodObject<{
5091
+ farmId: z.ZodString;
5092
+ }, "strip", z.ZodTypeAny, {
5093
+ farmId: string;
5094
+ }, {
5095
+ farmId: string;
5096
+ }>;
5097
+ summary: "Farm Brain chat with localization";
5098
+ method: "POST";
5099
+ body: z.ZodObject<{
5100
+ message: z.ZodString;
5101
+ language: z.ZodString;
5102
+ }, "strip", z.ZodTypeAny, {
5103
+ message: string;
5104
+ language: string;
5105
+ }, {
5106
+ message: string;
5107
+ language: string;
5108
+ }>;
5109
+ path: "/farms/:farmId/farm-brain/chat-localized";
5110
+ responses: {
5111
+ 200: z.ZodObject<{
5112
+ data: z.ZodObject<{
5113
+ type: z.ZodLiteral<"farm-brain-localized-response">;
5114
+ id: z.ZodString;
5115
+ attributes: z.ZodObject<{
5116
+ response: z.ZodString;
5117
+ language: z.ZodString;
5118
+ route: z.ZodEnum<["agronomics", "finance", "operations", "general"]>;
5119
+ conversationId: z.ZodOptional<z.ZodString>;
5120
+ }, "strip", z.ZodTypeAny, {
5121
+ language: string;
5122
+ response: string;
5123
+ route: "general" | "agronomics" | "finance" | "operations";
5124
+ conversationId?: string | undefined;
5125
+ }, {
5126
+ language: string;
5127
+ response: string;
5128
+ route: "general" | "agronomics" | "finance" | "operations";
5129
+ conversationId?: string | undefined;
5130
+ }>;
5131
+ }, "strip", z.ZodTypeAny, {
5132
+ type: "farm-brain-localized-response";
5133
+ id: string;
5134
+ attributes: {
5135
+ language: string;
5136
+ response: string;
5137
+ route: "general" | "agronomics" | "finance" | "operations";
5138
+ conversationId?: string | undefined;
5139
+ };
5140
+ }, {
5141
+ type: "farm-brain-localized-response";
5142
+ id: string;
5143
+ attributes: {
5144
+ language: string;
5145
+ response: string;
5146
+ route: "general" | "agronomics" | "finance" | "operations";
5147
+ conversationId?: string | undefined;
5148
+ };
5149
+ }>;
5150
+ }, "strip", z.ZodTypeAny, {
5151
+ data: {
5152
+ type: "farm-brain-localized-response";
5153
+ id: string;
5154
+ attributes: {
5155
+ language: string;
5156
+ response: string;
5157
+ route: "general" | "agronomics" | "finance" | "operations";
5158
+ conversationId?: string | undefined;
5159
+ };
5160
+ };
5161
+ }, {
5162
+ data: {
5163
+ type: "farm-brain-localized-response";
5164
+ id: string;
5165
+ attributes: {
5166
+ language: string;
5167
+ response: string;
5168
+ route: "general" | "agronomics" | "finance" | "operations";
5169
+ conversationId?: string | undefined;
5170
+ };
5171
+ };
5172
+ }>;
5173
+ 401: z.ZodObject<{
5174
+ errors: z.ZodArray<z.ZodObject<{
5175
+ id: z.ZodOptional<z.ZodString>;
5176
+ links: z.ZodOptional<z.ZodObject<{
5177
+ about: z.ZodOptional<z.ZodString>;
5178
+ }, "strip", z.ZodTypeAny, {
5179
+ about?: string | undefined;
5180
+ }, {
5181
+ about?: string | undefined;
5182
+ }>>;
5183
+ status: z.ZodOptional<z.ZodString>;
5184
+ code: z.ZodOptional<z.ZodString>;
5185
+ title: z.ZodOptional<z.ZodString>;
5186
+ detail: z.ZodOptional<z.ZodString>;
5187
+ source: z.ZodOptional<z.ZodObject<{
5188
+ pointer: z.ZodOptional<z.ZodString>;
5189
+ parameter: z.ZodOptional<z.ZodString>;
5190
+ }, "strip", z.ZodTypeAny, {
5191
+ pointer?: string | undefined;
5192
+ parameter?: string | undefined;
5193
+ }, {
5194
+ pointer?: string | undefined;
5195
+ parameter?: string | undefined;
5196
+ }>>;
5197
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5198
+ }, "strip", z.ZodTypeAny, {
5199
+ status?: string | undefined;
5200
+ code?: string | undefined;
5201
+ id?: string | undefined;
5202
+ links?: {
5203
+ about?: string | undefined;
5204
+ } | undefined;
5205
+ meta?: Record<string, unknown> | undefined;
5206
+ title?: string | undefined;
5207
+ detail?: string | undefined;
5208
+ source?: {
5209
+ pointer?: string | undefined;
5210
+ parameter?: string | undefined;
5211
+ } | undefined;
5212
+ }, {
5213
+ status?: string | undefined;
5214
+ code?: string | undefined;
5215
+ id?: string | undefined;
5216
+ links?: {
5217
+ about?: string | undefined;
5218
+ } | undefined;
5219
+ meta?: Record<string, unknown> | undefined;
5220
+ title?: string | undefined;
5221
+ detail?: string | undefined;
5222
+ source?: {
5223
+ pointer?: string | undefined;
5224
+ parameter?: string | undefined;
5225
+ } | undefined;
5226
+ }>, "many">;
5227
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5228
+ }, "strip", z.ZodTypeAny, {
5229
+ errors: {
5230
+ status?: string | undefined;
5231
+ code?: string | undefined;
5232
+ id?: string | undefined;
5233
+ links?: {
5234
+ about?: string | undefined;
5235
+ } | undefined;
5236
+ meta?: Record<string, unknown> | undefined;
5237
+ title?: string | undefined;
5238
+ detail?: string | undefined;
5239
+ source?: {
5240
+ pointer?: string | undefined;
5241
+ parameter?: string | undefined;
5242
+ } | undefined;
5243
+ }[];
5244
+ meta?: Record<string, unknown> | undefined;
5245
+ }, {
5246
+ errors: {
5247
+ status?: string | undefined;
5248
+ code?: string | undefined;
5249
+ id?: string | undefined;
5250
+ links?: {
5251
+ about?: string | undefined;
5252
+ } | undefined;
5253
+ meta?: Record<string, unknown> | undefined;
5254
+ title?: string | undefined;
5255
+ detail?: string | undefined;
5256
+ source?: {
5257
+ pointer?: string | undefined;
5258
+ parameter?: string | undefined;
5259
+ } | undefined;
5260
+ }[];
5261
+ meta?: Record<string, unknown> | undefined;
5262
+ }>;
5263
+ 404: z.ZodObject<{
5264
+ errors: z.ZodArray<z.ZodObject<{
5265
+ id: z.ZodOptional<z.ZodString>;
5266
+ links: z.ZodOptional<z.ZodObject<{
5267
+ about: z.ZodOptional<z.ZodString>;
5268
+ }, "strip", z.ZodTypeAny, {
5269
+ about?: string | undefined;
5270
+ }, {
5271
+ about?: string | undefined;
5272
+ }>>;
5273
+ status: z.ZodOptional<z.ZodString>;
5274
+ code: z.ZodOptional<z.ZodString>;
5275
+ title: z.ZodOptional<z.ZodString>;
5276
+ detail: z.ZodOptional<z.ZodString>;
5277
+ source: z.ZodOptional<z.ZodObject<{
5278
+ pointer: z.ZodOptional<z.ZodString>;
5279
+ parameter: z.ZodOptional<z.ZodString>;
5280
+ }, "strip", z.ZodTypeAny, {
5281
+ pointer?: string | undefined;
5282
+ parameter?: string | undefined;
5283
+ }, {
5284
+ pointer?: string | undefined;
5285
+ parameter?: string | undefined;
5286
+ }>>;
5287
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5288
+ }, "strip", z.ZodTypeAny, {
5289
+ status?: string | undefined;
5290
+ code?: string | undefined;
5291
+ id?: string | undefined;
5292
+ links?: {
5293
+ about?: string | undefined;
5294
+ } | undefined;
5295
+ meta?: Record<string, unknown> | undefined;
5296
+ title?: string | undefined;
5297
+ detail?: string | undefined;
5298
+ source?: {
5299
+ pointer?: string | undefined;
5300
+ parameter?: string | undefined;
5301
+ } | undefined;
5302
+ }, {
5303
+ status?: string | undefined;
5304
+ code?: string | undefined;
5305
+ id?: string | undefined;
5306
+ links?: {
5307
+ about?: string | undefined;
5308
+ } | undefined;
5309
+ meta?: Record<string, unknown> | undefined;
5310
+ title?: string | undefined;
5311
+ detail?: string | undefined;
5312
+ source?: {
5313
+ pointer?: string | undefined;
5314
+ parameter?: string | undefined;
5315
+ } | undefined;
5316
+ }>, "many">;
5317
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5318
+ }, "strip", z.ZodTypeAny, {
5319
+ errors: {
5320
+ status?: string | undefined;
5321
+ code?: string | undefined;
5322
+ id?: string | undefined;
5323
+ links?: {
5324
+ about?: string | undefined;
5325
+ } | undefined;
5326
+ meta?: Record<string, unknown> | undefined;
5327
+ title?: string | undefined;
5328
+ detail?: string | undefined;
5329
+ source?: {
5330
+ pointer?: string | undefined;
5331
+ parameter?: string | undefined;
5332
+ } | undefined;
5333
+ }[];
5334
+ meta?: Record<string, unknown> | undefined;
5335
+ }, {
5336
+ errors: {
5337
+ status?: string | undefined;
5338
+ code?: string | undefined;
5339
+ id?: string | undefined;
5340
+ links?: {
5341
+ about?: string | undefined;
5342
+ } | undefined;
5343
+ meta?: Record<string, unknown> | undefined;
5344
+ title?: string | undefined;
5345
+ detail?: string | undefined;
5346
+ source?: {
5347
+ pointer?: string | undefined;
5348
+ parameter?: string | undefined;
5349
+ } | undefined;
5350
+ }[];
5351
+ meta?: Record<string, unknown> | undefined;
5352
+ }>;
5353
+ };
5354
+ };
5355
+ farmBrainUssdQuery: {
5356
+ pathParams: z.ZodObject<{
5357
+ farmId: z.ZodString;
5358
+ }, "strip", z.ZodTypeAny, {
5359
+ farmId: string;
5360
+ }, {
5361
+ farmId: string;
5362
+ }>;
5363
+ summary: "USSD fallback query endpoint";
5364
+ method: "POST";
5365
+ body: z.ZodObject<{
5366
+ input: z.ZodString;
5367
+ }, "strip", z.ZodTypeAny, {
5368
+ input: string;
5369
+ }, {
5370
+ input: string;
5371
+ }>;
5372
+ path: "/farms/:farmId/farm-brain/ussd";
5373
+ responses: {
5374
+ 200: z.ZodObject<{
5375
+ data: z.ZodObject<{
5376
+ type: z.ZodLiteral<"farm-brain-ussd-response">;
5377
+ id: z.ZodString;
5378
+ attributes: z.ZodObject<{
5379
+ response: z.ZodString;
5380
+ }, "strip", z.ZodTypeAny, {
5381
+ response: string;
5382
+ }, {
5383
+ response: string;
5384
+ }>;
5385
+ }, "strip", z.ZodTypeAny, {
5386
+ type: "farm-brain-ussd-response";
5387
+ id: string;
5388
+ attributes: {
5389
+ response: string;
5390
+ };
5391
+ }, {
5392
+ type: "farm-brain-ussd-response";
5393
+ id: string;
5394
+ attributes: {
5395
+ response: string;
5396
+ };
5397
+ }>;
5398
+ }, "strip", z.ZodTypeAny, {
5399
+ data: {
5400
+ type: "farm-brain-ussd-response";
5401
+ id: string;
5402
+ attributes: {
5403
+ response: string;
5404
+ };
5405
+ };
5406
+ }, {
5407
+ data: {
5408
+ type: "farm-brain-ussd-response";
5409
+ id: string;
5410
+ attributes: {
5411
+ response: string;
5412
+ };
5413
+ };
5414
+ }>;
5415
+ 401: z.ZodObject<{
5416
+ errors: z.ZodArray<z.ZodObject<{
5417
+ id: z.ZodOptional<z.ZodString>;
5418
+ links: z.ZodOptional<z.ZodObject<{
5419
+ about: z.ZodOptional<z.ZodString>;
5420
+ }, "strip", z.ZodTypeAny, {
5421
+ about?: string | undefined;
5422
+ }, {
5423
+ about?: string | undefined;
5424
+ }>>;
5425
+ status: z.ZodOptional<z.ZodString>;
5426
+ code: z.ZodOptional<z.ZodString>;
5427
+ title: z.ZodOptional<z.ZodString>;
5428
+ detail: z.ZodOptional<z.ZodString>;
5429
+ source: z.ZodOptional<z.ZodObject<{
5430
+ pointer: z.ZodOptional<z.ZodString>;
5431
+ parameter: z.ZodOptional<z.ZodString>;
5432
+ }, "strip", z.ZodTypeAny, {
5433
+ pointer?: string | undefined;
5434
+ parameter?: string | undefined;
5435
+ }, {
5436
+ pointer?: string | undefined;
5437
+ parameter?: string | undefined;
5438
+ }>>;
5439
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5440
+ }, "strip", z.ZodTypeAny, {
5441
+ status?: string | undefined;
5442
+ code?: string | undefined;
5443
+ id?: string | undefined;
5444
+ links?: {
5445
+ about?: string | undefined;
5446
+ } | undefined;
5447
+ meta?: Record<string, unknown> | undefined;
5448
+ title?: string | undefined;
5449
+ detail?: string | undefined;
5450
+ source?: {
5451
+ pointer?: string | undefined;
5452
+ parameter?: string | undefined;
5453
+ } | undefined;
5454
+ }, {
5455
+ status?: string | undefined;
5456
+ code?: string | undefined;
5457
+ id?: string | undefined;
5458
+ links?: {
5459
+ about?: string | undefined;
5460
+ } | undefined;
5461
+ meta?: Record<string, unknown> | undefined;
5462
+ title?: string | undefined;
5463
+ detail?: string | undefined;
5464
+ source?: {
5465
+ pointer?: string | undefined;
5466
+ parameter?: string | undefined;
5467
+ } | undefined;
5468
+ }>, "many">;
5469
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5470
+ }, "strip", z.ZodTypeAny, {
5471
+ errors: {
5472
+ status?: string | undefined;
5473
+ code?: string | undefined;
5474
+ id?: string | undefined;
5475
+ links?: {
5476
+ about?: string | undefined;
5477
+ } | undefined;
5478
+ meta?: Record<string, unknown> | undefined;
5479
+ title?: string | undefined;
5480
+ detail?: string | undefined;
5481
+ source?: {
5482
+ pointer?: string | undefined;
5483
+ parameter?: string | undefined;
5484
+ } | undefined;
5485
+ }[];
5486
+ meta?: Record<string, unknown> | undefined;
5487
+ }, {
5488
+ errors: {
5489
+ status?: string | undefined;
5490
+ code?: string | undefined;
5491
+ id?: string | undefined;
5492
+ links?: {
5493
+ about?: string | undefined;
5494
+ } | undefined;
5495
+ meta?: Record<string, unknown> | undefined;
5496
+ title?: string | undefined;
5497
+ detail?: string | undefined;
5498
+ source?: {
5499
+ pointer?: string | undefined;
5500
+ parameter?: string | undefined;
5501
+ } | undefined;
5502
+ }[];
5503
+ meta?: Record<string, unknown> | undefined;
5504
+ }>;
5505
+ 404: z.ZodObject<{
5506
+ errors: z.ZodArray<z.ZodObject<{
5507
+ id: z.ZodOptional<z.ZodString>;
5508
+ links: z.ZodOptional<z.ZodObject<{
5509
+ about: z.ZodOptional<z.ZodString>;
5510
+ }, "strip", z.ZodTypeAny, {
5511
+ about?: string | undefined;
5512
+ }, {
5513
+ about?: string | undefined;
5514
+ }>>;
5515
+ status: z.ZodOptional<z.ZodString>;
5516
+ code: z.ZodOptional<z.ZodString>;
5517
+ title: z.ZodOptional<z.ZodString>;
5518
+ detail: z.ZodOptional<z.ZodString>;
5519
+ source: z.ZodOptional<z.ZodObject<{
5520
+ pointer: z.ZodOptional<z.ZodString>;
5521
+ parameter: z.ZodOptional<z.ZodString>;
5522
+ }, "strip", z.ZodTypeAny, {
5523
+ pointer?: string | undefined;
5524
+ parameter?: string | undefined;
5525
+ }, {
5526
+ pointer?: string | undefined;
5527
+ parameter?: string | undefined;
5528
+ }>>;
5529
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5530
+ }, "strip", z.ZodTypeAny, {
5531
+ status?: string | undefined;
5532
+ code?: string | undefined;
5533
+ id?: string | undefined;
5534
+ links?: {
5535
+ about?: string | undefined;
5536
+ } | undefined;
5537
+ meta?: Record<string, unknown> | undefined;
5538
+ title?: string | undefined;
5539
+ detail?: string | undefined;
5540
+ source?: {
5541
+ pointer?: string | undefined;
5542
+ parameter?: string | undefined;
5543
+ } | undefined;
5544
+ }, {
5545
+ status?: string | undefined;
5546
+ code?: string | undefined;
5547
+ id?: string | undefined;
5548
+ links?: {
5549
+ about?: string | undefined;
5550
+ } | undefined;
5551
+ meta?: Record<string, unknown> | undefined;
5552
+ title?: string | undefined;
5553
+ detail?: string | undefined;
5554
+ source?: {
5555
+ pointer?: string | undefined;
5556
+ parameter?: string | undefined;
5557
+ } | undefined;
5558
+ }>, "many">;
5559
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5560
+ }, "strip", z.ZodTypeAny, {
5561
+ errors: {
5562
+ status?: string | undefined;
5563
+ code?: string | undefined;
5564
+ id?: string | undefined;
5565
+ links?: {
5566
+ about?: string | undefined;
5567
+ } | undefined;
5568
+ meta?: Record<string, unknown> | undefined;
5569
+ title?: string | undefined;
5570
+ detail?: string | undefined;
5571
+ source?: {
5572
+ pointer?: string | undefined;
5573
+ parameter?: string | undefined;
5574
+ } | undefined;
5575
+ }[];
5576
+ meta?: Record<string, unknown> | undefined;
5577
+ }, {
5578
+ errors: {
5579
+ status?: string | undefined;
5580
+ code?: string | undefined;
5581
+ id?: string | undefined;
5582
+ links?: {
5583
+ about?: string | undefined;
5584
+ } | undefined;
5585
+ meta?: Record<string, unknown> | undefined;
5586
+ title?: string | undefined;
5587
+ detail?: string | undefined;
5588
+ source?: {
5589
+ pointer?: string | undefined;
5590
+ parameter?: string | undefined;
5591
+ } | undefined;
5592
+ }[];
5593
+ meta?: Record<string, unknown> | undefined;
5594
+ }>;
5595
+ };
5596
+ };
2337
5597
  };
2338
5598
  //# sourceMappingURL=agents.routes.d.ts.map