@deepintel-ltd/farmpro-contracts 1.27.0 → 1.27.2

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 (41) hide show
  1. package/dist/routes/agents.routes.d.ts +681 -12
  2. package/dist/routes/agents.routes.d.ts.map +1 -1
  3. package/dist/routes/agents.routes.js +21 -1
  4. package/dist/routes/commodity-deals.routes.d.ts +27 -27
  5. package/dist/routes/farms.routes.d.ts +46 -46
  6. package/dist/routes/field-observations.routes.d.ts +34 -34
  7. package/dist/routes/invoices.routes.d.ts +39 -39
  8. package/dist/routes/livestock-groups.routes.d.ts +27 -27
  9. package/dist/routes/livestock.routes.d.ts +21 -21
  10. package/dist/routes/market-intelligence.routes.d.ts +8 -8
  11. package/dist/routes/organizations.routes.d.ts +49 -0
  12. package/dist/routes/organizations.routes.d.ts.map +1 -1
  13. package/dist/routes/poultry.routes.d.ts +22 -22
  14. package/dist/routes/purchase-orders.routes.d.ts +9 -9
  15. package/dist/routes/subscriptions.routes.d.ts +8 -8
  16. package/dist/routes/tasks.routes.d.ts +90 -0
  17. package/dist/routes/tasks.routes.d.ts.map +1 -1
  18. package/dist/routes/tasks.routes.js +1 -0
  19. package/dist/routes/team-payments.routes.d.ts +36 -36
  20. package/dist/routes/trade-cash-events.routes.d.ts +39 -39
  21. package/dist/routes/waybills.routes.d.ts +39 -39
  22. package/dist/schemas/agents.schemas.d.ts +718 -12
  23. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  24. package/dist/schemas/agents.schemas.js +41 -0
  25. package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
  26. package/dist/schemas/farms.schemas.d.ts +51 -51
  27. package/dist/schemas/field-observations.schemas.d.ts +24 -24
  28. package/dist/schemas/invoices.schemas.d.ts +27 -27
  29. package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
  30. package/dist/schemas/livestock.schemas.d.ts +18 -18
  31. package/dist/schemas/organizations.schemas.d.ts +42 -0
  32. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  33. package/dist/schemas/organizations.schemas.js +3 -0
  34. package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
  35. package/dist/schemas/subscriptions.schemas.d.ts +6 -6
  36. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  37. package/dist/schemas/trade-cash-events.schemas.d.ts +29 -27
  38. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
  39. package/dist/schemas/trade-cash-events.schemas.js +1 -0
  40. package/dist/schemas/waybills.schemas.d.ts +27 -27
  41. package/package.json +1 -1
@@ -350,81 +350,254 @@ export declare const agentChatResponseSchema: z.ZodObject<{
350
350
  meta?: Record<string, unknown> | undefined;
351
351
  }[] | undefined;
352
352
  }>;
353
+ export declare const farmBrainRouteSchema: z.ZodEnum<["agronomics", "finance", "operations", "general"]>;
354
+ /** Accept / Dismiss persisted on a proposed action (shared across devices). */
355
+ export declare const proposedActionStatusSchema: z.ZodEnum<["accepted", "dismissed"]>;
353
356
  export declare const conversationHistoryMessageSchema: z.ZodObject<{
357
+ id: z.ZodOptional<z.ZodString>;
354
358
  role: z.ZodEnum<["user", "assistant"]>;
355
359
  content: z.ZodString;
356
360
  createdAt: z.ZodOptional<z.ZodString>;
361
+ /** Specialist that answered (assistant messages from Farm Brain). */
362
+ route: z.ZodOptional<z.ZodString>;
363
+ /** Supervised actions proposed with this reply; may carry `status`. */
364
+ proposedActions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
365
+ advisoryReports: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
357
366
  }, "strip", z.ZodTypeAny, {
358
367
  role: "user" | "assistant";
359
368
  content: string;
369
+ id?: string | undefined;
360
370
  createdAt?: string | undefined;
371
+ route?: string | undefined;
372
+ proposedActions?: Record<string, unknown>[] | undefined;
373
+ advisoryReports?: Record<string, unknown>[] | undefined;
361
374
  }, {
362
375
  role: "user" | "assistant";
363
376
  content: string;
377
+ id?: string | undefined;
364
378
  createdAt?: string | undefined;
379
+ route?: string | undefined;
380
+ proposedActions?: Record<string, unknown>[] | undefined;
381
+ advisoryReports?: Record<string, unknown>[] | undefined;
382
+ }>;
383
+ /** In-flight Farm Brain run — client disconnected or reply still generating. */
384
+ export declare const farmBrainPendingRunSchema: z.ZodObject<{
385
+ message: z.ZodString;
386
+ route: z.ZodNullable<z.ZodString>;
387
+ startedAt: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ message: string;
390
+ route: string | null;
391
+ startedAt: string;
392
+ }, {
393
+ message: string;
394
+ route: string | null;
395
+ startedAt: string;
396
+ }>;
397
+ export declare const farmBrainRunErrorSchema: z.ZodObject<{
398
+ message: z.ZodString;
399
+ at: z.ZodString;
400
+ }, "strip", z.ZodTypeAny, {
401
+ message: string;
402
+ at: string;
403
+ }, {
404
+ message: string;
405
+ at: string;
365
406
  }>;
366
407
  export declare const conversationHistoryAttributesSchema: z.ZodObject<{
367
408
  messages: z.ZodArray<z.ZodObject<{
409
+ id: z.ZodOptional<z.ZodString>;
368
410
  role: z.ZodEnum<["user", "assistant"]>;
369
411
  content: z.ZodString;
370
412
  createdAt: z.ZodOptional<z.ZodString>;
413
+ /** Specialist that answered (assistant messages from Farm Brain). */
414
+ route: z.ZodOptional<z.ZodString>;
415
+ /** Supervised actions proposed with this reply; may carry `status`. */
416
+ proposedActions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
417
+ advisoryReports: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
371
418
  }, "strip", z.ZodTypeAny, {
372
419
  role: "user" | "assistant";
373
420
  content: string;
421
+ id?: string | undefined;
374
422
  createdAt?: string | undefined;
423
+ route?: string | undefined;
424
+ proposedActions?: Record<string, unknown>[] | undefined;
425
+ advisoryReports?: Record<string, unknown>[] | undefined;
375
426
  }, {
376
427
  role: "user" | "assistant";
377
428
  content: string;
429
+ id?: string | undefined;
378
430
  createdAt?: string | undefined;
431
+ route?: string | undefined;
432
+ proposedActions?: Record<string, unknown>[] | undefined;
433
+ advisoryReports?: Record<string, unknown>[] | undefined;
379
434
  }>, "many">;
380
435
  conversationId: z.ZodString;
436
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
438
+ message: z.ZodString;
439
+ route: z.ZodNullable<z.ZodString>;
440
+ startedAt: z.ZodString;
441
+ }, "strip", z.ZodTypeAny, {
442
+ message: string;
443
+ route: string | null;
444
+ startedAt: string;
445
+ }, {
446
+ message: string;
447
+ route: string | null;
448
+ startedAt: string;
449
+ }>>>;
450
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
+ message: z.ZodString;
452
+ at: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ message: string;
455
+ at: string;
456
+ }, {
457
+ message: string;
458
+ at: string;
459
+ }>>>;
381
460
  }, "strip", z.ZodTypeAny, {
382
461
  conversationId: string;
383
462
  messages: {
384
463
  role: "user" | "assistant";
385
464
  content: string;
465
+ id?: string | undefined;
386
466
  createdAt?: string | undefined;
467
+ route?: string | undefined;
468
+ proposedActions?: Record<string, unknown>[] | undefined;
469
+ advisoryReports?: Record<string, unknown>[] | undefined;
387
470
  }[];
471
+ title?: string | null | undefined;
472
+ pendingRun?: {
473
+ message: string;
474
+ route: string | null;
475
+ startedAt: string;
476
+ } | null | undefined;
477
+ lastRunError?: {
478
+ message: string;
479
+ at: string;
480
+ } | null | undefined;
388
481
  }, {
389
482
  conversationId: string;
390
483
  messages: {
391
484
  role: "user" | "assistant";
392
485
  content: string;
486
+ id?: string | undefined;
393
487
  createdAt?: string | undefined;
488
+ route?: string | undefined;
489
+ proposedActions?: Record<string, unknown>[] | undefined;
490
+ advisoryReports?: Record<string, unknown>[] | undefined;
394
491
  }[];
492
+ title?: string | null | undefined;
493
+ pendingRun?: {
494
+ message: string;
495
+ route: string | null;
496
+ startedAt: string;
497
+ } | null | undefined;
498
+ lastRunError?: {
499
+ message: string;
500
+ at: string;
501
+ } | null | undefined;
395
502
  }>;
396
503
  export declare const conversationHistoryResourceSchema: z.ZodObject<{
397
504
  type: z.ZodLiteral<string>;
398
505
  id: z.ZodString;
399
506
  attributes: z.ZodObject<{
400
507
  messages: z.ZodArray<z.ZodObject<{
508
+ id: z.ZodOptional<z.ZodString>;
401
509
  role: z.ZodEnum<["user", "assistant"]>;
402
510
  content: z.ZodString;
403
511
  createdAt: z.ZodOptional<z.ZodString>;
512
+ /** Specialist that answered (assistant messages from Farm Brain). */
513
+ route: z.ZodOptional<z.ZodString>;
514
+ /** Supervised actions proposed with this reply; may carry `status`. */
515
+ proposedActions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
516
+ advisoryReports: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
404
517
  }, "strip", z.ZodTypeAny, {
405
518
  role: "user" | "assistant";
406
519
  content: string;
520
+ id?: string | undefined;
407
521
  createdAt?: string | undefined;
522
+ route?: string | undefined;
523
+ proposedActions?: Record<string, unknown>[] | undefined;
524
+ advisoryReports?: Record<string, unknown>[] | undefined;
408
525
  }, {
409
526
  role: "user" | "assistant";
410
527
  content: string;
528
+ id?: string | undefined;
411
529
  createdAt?: string | undefined;
530
+ route?: string | undefined;
531
+ proposedActions?: Record<string, unknown>[] | undefined;
532
+ advisoryReports?: Record<string, unknown>[] | undefined;
412
533
  }>, "many">;
413
534
  conversationId: z.ZodString;
535
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
537
+ message: z.ZodString;
538
+ route: z.ZodNullable<z.ZodString>;
539
+ startedAt: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ message: string;
542
+ route: string | null;
543
+ startedAt: string;
544
+ }, {
545
+ message: string;
546
+ route: string | null;
547
+ startedAt: string;
548
+ }>>>;
549
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
550
+ message: z.ZodString;
551
+ at: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ message: string;
554
+ at: string;
555
+ }, {
556
+ message: string;
557
+ at: string;
558
+ }>>>;
414
559
  }, "strip", z.ZodTypeAny, {
415
560
  conversationId: string;
416
561
  messages: {
417
562
  role: "user" | "assistant";
418
563
  content: string;
564
+ id?: string | undefined;
419
565
  createdAt?: string | undefined;
566
+ route?: string | undefined;
567
+ proposedActions?: Record<string, unknown>[] | undefined;
568
+ advisoryReports?: Record<string, unknown>[] | undefined;
420
569
  }[];
570
+ title?: string | null | undefined;
571
+ pendingRun?: {
572
+ message: string;
573
+ route: string | null;
574
+ startedAt: string;
575
+ } | null | undefined;
576
+ lastRunError?: {
577
+ message: string;
578
+ at: string;
579
+ } | null | undefined;
421
580
  }, {
422
581
  conversationId: string;
423
582
  messages: {
424
583
  role: "user" | "assistant";
425
584
  content: string;
585
+ id?: string | undefined;
426
586
  createdAt?: string | undefined;
587
+ route?: string | undefined;
588
+ proposedActions?: Record<string, unknown>[] | undefined;
589
+ advisoryReports?: Record<string, unknown>[] | undefined;
427
590
  }[];
591
+ title?: string | null | undefined;
592
+ pendingRun?: {
593
+ message: string;
594
+ route: string | null;
595
+ startedAt: string;
596
+ } | null | undefined;
597
+ lastRunError?: {
598
+ message: string;
599
+ at: string;
600
+ } | null | undefined;
428
601
  }>;
429
602
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
603
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -437,8 +610,22 @@ export declare const conversationHistoryResourceSchema: z.ZodObject<{
437
610
  messages: {
438
611
  role: "user" | "assistant";
439
612
  content: string;
613
+ id?: string | undefined;
440
614
  createdAt?: string | undefined;
615
+ route?: string | undefined;
616
+ proposedActions?: Record<string, unknown>[] | undefined;
617
+ advisoryReports?: Record<string, unknown>[] | undefined;
441
618
  }[];
619
+ title?: string | null | undefined;
620
+ pendingRun?: {
621
+ message: string;
622
+ route: string | null;
623
+ startedAt: string;
624
+ } | null | undefined;
625
+ lastRunError?: {
626
+ message: string;
627
+ at: string;
628
+ } | null | undefined;
442
629
  };
443
630
  relationships?: Record<string, unknown> | undefined;
444
631
  links?: Record<string, string> | undefined;
@@ -451,8 +638,22 @@ export declare const conversationHistoryResourceSchema: z.ZodObject<{
451
638
  messages: {
452
639
  role: "user" | "assistant";
453
640
  content: string;
641
+ id?: string | undefined;
454
642
  createdAt?: string | undefined;
643
+ route?: string | undefined;
644
+ proposedActions?: Record<string, unknown>[] | undefined;
645
+ advisoryReports?: Record<string, unknown>[] | undefined;
455
646
  }[];
647
+ title?: string | null | undefined;
648
+ pendingRun?: {
649
+ message: string;
650
+ route: string | null;
651
+ startedAt: string;
652
+ } | null | undefined;
653
+ lastRunError?: {
654
+ message: string;
655
+ at: string;
656
+ } | null | undefined;
456
657
  };
457
658
  relationships?: Record<string, unknown> | undefined;
458
659
  links?: Record<string, string> | undefined;
@@ -464,33 +665,99 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
464
665
  id: z.ZodString;
465
666
  attributes: z.ZodObject<{
466
667
  messages: z.ZodArray<z.ZodObject<{
668
+ id: z.ZodOptional<z.ZodString>;
467
669
  role: z.ZodEnum<["user", "assistant"]>;
468
670
  content: z.ZodString;
469
671
  createdAt: z.ZodOptional<z.ZodString>;
672
+ /** Specialist that answered (assistant messages from Farm Brain). */
673
+ route: z.ZodOptional<z.ZodString>;
674
+ /** Supervised actions proposed with this reply; may carry `status`. */
675
+ proposedActions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
676
+ advisoryReports: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
470
677
  }, "strip", z.ZodTypeAny, {
471
678
  role: "user" | "assistant";
472
679
  content: string;
680
+ id?: string | undefined;
473
681
  createdAt?: string | undefined;
682
+ route?: string | undefined;
683
+ proposedActions?: Record<string, unknown>[] | undefined;
684
+ advisoryReports?: Record<string, unknown>[] | undefined;
474
685
  }, {
475
686
  role: "user" | "assistant";
476
687
  content: string;
688
+ id?: string | undefined;
477
689
  createdAt?: string | undefined;
690
+ route?: string | undefined;
691
+ proposedActions?: Record<string, unknown>[] | undefined;
692
+ advisoryReports?: Record<string, unknown>[] | undefined;
478
693
  }>, "many">;
479
694
  conversationId: z.ZodString;
695
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
697
+ message: z.ZodString;
698
+ route: z.ZodNullable<z.ZodString>;
699
+ startedAt: z.ZodString;
700
+ }, "strip", z.ZodTypeAny, {
701
+ message: string;
702
+ route: string | null;
703
+ startedAt: string;
704
+ }, {
705
+ message: string;
706
+ route: string | null;
707
+ startedAt: string;
708
+ }>>>;
709
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
710
+ message: z.ZodString;
711
+ at: z.ZodString;
712
+ }, "strip", z.ZodTypeAny, {
713
+ message: string;
714
+ at: string;
715
+ }, {
716
+ message: string;
717
+ at: string;
718
+ }>>>;
480
719
  }, "strip", z.ZodTypeAny, {
481
720
  conversationId: string;
482
721
  messages: {
483
722
  role: "user" | "assistant";
484
723
  content: string;
724
+ id?: string | undefined;
485
725
  createdAt?: string | undefined;
726
+ route?: string | undefined;
727
+ proposedActions?: Record<string, unknown>[] | undefined;
728
+ advisoryReports?: Record<string, unknown>[] | undefined;
486
729
  }[];
730
+ title?: string | null | undefined;
731
+ pendingRun?: {
732
+ message: string;
733
+ route: string | null;
734
+ startedAt: string;
735
+ } | null | undefined;
736
+ lastRunError?: {
737
+ message: string;
738
+ at: string;
739
+ } | null | undefined;
487
740
  }, {
488
741
  conversationId: string;
489
742
  messages: {
490
743
  role: "user" | "assistant";
491
744
  content: string;
745
+ id?: string | undefined;
492
746
  createdAt?: string | undefined;
747
+ route?: string | undefined;
748
+ proposedActions?: Record<string, unknown>[] | undefined;
749
+ advisoryReports?: Record<string, unknown>[] | undefined;
493
750
  }[];
751
+ title?: string | null | undefined;
752
+ pendingRun?: {
753
+ message: string;
754
+ route: string | null;
755
+ startedAt: string;
756
+ } | null | undefined;
757
+ lastRunError?: {
758
+ message: string;
759
+ at: string;
760
+ } | null | undefined;
494
761
  }>;
495
762
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
496
763
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -503,8 +770,22 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
503
770
  messages: {
504
771
  role: "user" | "assistant";
505
772
  content: string;
773
+ id?: string | undefined;
506
774
  createdAt?: string | undefined;
775
+ route?: string | undefined;
776
+ proposedActions?: Record<string, unknown>[] | undefined;
777
+ advisoryReports?: Record<string, unknown>[] | undefined;
507
778
  }[];
779
+ title?: string | null | undefined;
780
+ pendingRun?: {
781
+ message: string;
782
+ route: string | null;
783
+ startedAt: string;
784
+ } | null | undefined;
785
+ lastRunError?: {
786
+ message: string;
787
+ at: string;
788
+ } | null | undefined;
508
789
  };
509
790
  relationships?: Record<string, unknown> | undefined;
510
791
  links?: Record<string, string> | undefined;
@@ -517,8 +798,22 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
517
798
  messages: {
518
799
  role: "user" | "assistant";
519
800
  content: string;
801
+ id?: string | undefined;
520
802
  createdAt?: string | undefined;
803
+ route?: string | undefined;
804
+ proposedActions?: Record<string, unknown>[] | undefined;
805
+ advisoryReports?: Record<string, unknown>[] | undefined;
521
806
  }[];
807
+ title?: string | null | undefined;
808
+ pendingRun?: {
809
+ message: string;
810
+ route: string | null;
811
+ startedAt: string;
812
+ } | null | undefined;
813
+ lastRunError?: {
814
+ message: string;
815
+ at: string;
816
+ } | null | undefined;
522
817
  };
523
818
  relationships?: Record<string, unknown> | undefined;
524
819
  links?: Record<string, string> | undefined;
@@ -557,8 +852,22 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
557
852
  messages: {
558
853
  role: "user" | "assistant";
559
854
  content: string;
855
+ id?: string | undefined;
560
856
  createdAt?: string | undefined;
857
+ route?: string | undefined;
858
+ proposedActions?: Record<string, unknown>[] | undefined;
859
+ advisoryReports?: Record<string, unknown>[] | undefined;
561
860
  }[];
861
+ title?: string | null | undefined;
862
+ pendingRun?: {
863
+ message: string;
864
+ route: string | null;
865
+ startedAt: string;
866
+ } | null | undefined;
867
+ lastRunError?: {
868
+ message: string;
869
+ at: string;
870
+ } | null | undefined;
562
871
  };
563
872
  relationships?: Record<string, unknown> | undefined;
564
873
  links?: Record<string, string> | undefined;
@@ -583,8 +892,22 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
583
892
  messages: {
584
893
  role: "user" | "assistant";
585
894
  content: string;
895
+ id?: string | undefined;
586
896
  createdAt?: string | undefined;
897
+ route?: string | undefined;
898
+ proposedActions?: Record<string, unknown>[] | undefined;
899
+ advisoryReports?: Record<string, unknown>[] | undefined;
587
900
  }[];
901
+ title?: string | null | undefined;
902
+ pendingRun?: {
903
+ message: string;
904
+ route: string | null;
905
+ startedAt: string;
906
+ } | null | undefined;
907
+ lastRunError?: {
908
+ message: string;
909
+ at: string;
910
+ } | null | undefined;
588
911
  };
589
912
  relationships?: Record<string, unknown> | undefined;
590
913
  links?: Record<string, string> | undefined;
@@ -610,6 +933,33 @@ export declare const conversationListItemSchema: z.ZodObject<{
610
933
  lastMessageAt: z.ZodNullable<z.ZodString>;
611
934
  createdAt: z.ZodString;
612
935
  updatedAt: z.ZodString;
936
+ /** Specialist on the latest assistant reply, when known. */
937
+ lastRoute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
+ /** Single-line snippet of the latest message. */
939
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
940
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
941
+ message: z.ZodString;
942
+ route: z.ZodNullable<z.ZodString>;
943
+ startedAt: z.ZodString;
944
+ }, "strip", z.ZodTypeAny, {
945
+ message: string;
946
+ route: string | null;
947
+ startedAt: string;
948
+ }, {
949
+ message: string;
950
+ route: string | null;
951
+ startedAt: string;
952
+ }>>>;
953
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
954
+ message: z.ZodString;
955
+ at: z.ZodString;
956
+ }, "strip", z.ZodTypeAny, {
957
+ message: string;
958
+ at: string;
959
+ }, {
960
+ message: string;
961
+ at: string;
962
+ }>>>;
613
963
  }, "strip", z.ZodTypeAny, {
614
964
  id: string;
615
965
  title: string | null;
@@ -619,6 +969,17 @@ export declare const conversationListItemSchema: z.ZodObject<{
619
969
  farmId: string | null;
620
970
  messageCount: number;
621
971
  lastMessageAt: string | null;
972
+ pendingRun?: {
973
+ message: string;
974
+ route: string | null;
975
+ startedAt: string;
976
+ } | null | undefined;
977
+ lastRunError?: {
978
+ message: string;
979
+ at: string;
980
+ } | null | undefined;
981
+ lastRoute?: string | null | undefined;
982
+ preview?: string | null | undefined;
622
983
  }, {
623
984
  id: string;
624
985
  title: string | null;
@@ -628,6 +989,17 @@ export declare const conversationListItemSchema: z.ZodObject<{
628
989
  farmId: string | null;
629
990
  messageCount: number;
630
991
  lastMessageAt: string | null;
992
+ pendingRun?: {
993
+ message: string;
994
+ route: string | null;
995
+ startedAt: string;
996
+ } | null | undefined;
997
+ lastRunError?: {
998
+ message: string;
999
+ at: string;
1000
+ } | null | undefined;
1001
+ lastRoute?: string | null | undefined;
1002
+ preview?: string | null | undefined;
631
1003
  }>;
632
1004
  export declare const conversationListAttributesSchema: z.ZodObject<{
633
1005
  conversations: z.ZodArray<z.ZodObject<{
@@ -639,6 +1011,33 @@ export declare const conversationListAttributesSchema: z.ZodObject<{
639
1011
  lastMessageAt: z.ZodNullable<z.ZodString>;
640
1012
  createdAt: z.ZodString;
641
1013
  updatedAt: z.ZodString;
1014
+ /** Specialist on the latest assistant reply, when known. */
1015
+ lastRoute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1016
+ /** Single-line snippet of the latest message. */
1017
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1019
+ message: z.ZodString;
1020
+ route: z.ZodNullable<z.ZodString>;
1021
+ startedAt: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ message: string;
1024
+ route: string | null;
1025
+ startedAt: string;
1026
+ }, {
1027
+ message: string;
1028
+ route: string | null;
1029
+ startedAt: string;
1030
+ }>>>;
1031
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1032
+ message: z.ZodString;
1033
+ at: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ message: string;
1036
+ at: string;
1037
+ }, {
1038
+ message: string;
1039
+ at: string;
1040
+ }>>>;
642
1041
  }, "strip", z.ZodTypeAny, {
643
1042
  id: string;
644
1043
  title: string | null;
@@ -648,6 +1047,17 @@ export declare const conversationListAttributesSchema: z.ZodObject<{
648
1047
  farmId: string | null;
649
1048
  messageCount: number;
650
1049
  lastMessageAt: string | null;
1050
+ pendingRun?: {
1051
+ message: string;
1052
+ route: string | null;
1053
+ startedAt: string;
1054
+ } | null | undefined;
1055
+ lastRunError?: {
1056
+ message: string;
1057
+ at: string;
1058
+ } | null | undefined;
1059
+ lastRoute?: string | null | undefined;
1060
+ preview?: string | null | undefined;
651
1061
  }, {
652
1062
  id: string;
653
1063
  title: string | null;
@@ -657,6 +1067,17 @@ export declare const conversationListAttributesSchema: z.ZodObject<{
657
1067
  farmId: string | null;
658
1068
  messageCount: number;
659
1069
  lastMessageAt: string | null;
1070
+ pendingRun?: {
1071
+ message: string;
1072
+ route: string | null;
1073
+ startedAt: string;
1074
+ } | null | undefined;
1075
+ lastRunError?: {
1076
+ message: string;
1077
+ at: string;
1078
+ } | null | undefined;
1079
+ lastRoute?: string | null | undefined;
1080
+ preview?: string | null | undefined;
660
1081
  }>, "many">;
661
1082
  total: z.ZodNumber;
662
1083
  }, "strip", z.ZodTypeAny, {
@@ -669,6 +1090,17 @@ export declare const conversationListAttributesSchema: z.ZodObject<{
669
1090
  farmId: string | null;
670
1091
  messageCount: number;
671
1092
  lastMessageAt: string | null;
1093
+ pendingRun?: {
1094
+ message: string;
1095
+ route: string | null;
1096
+ startedAt: string;
1097
+ } | null | undefined;
1098
+ lastRunError?: {
1099
+ message: string;
1100
+ at: string;
1101
+ } | null | undefined;
1102
+ lastRoute?: string | null | undefined;
1103
+ preview?: string | null | undefined;
672
1104
  }[];
673
1105
  total: number;
674
1106
  }, {
@@ -681,6 +1113,17 @@ export declare const conversationListAttributesSchema: z.ZodObject<{
681
1113
  farmId: string | null;
682
1114
  messageCount: number;
683
1115
  lastMessageAt: string | null;
1116
+ pendingRun?: {
1117
+ message: string;
1118
+ route: string | null;
1119
+ startedAt: string;
1120
+ } | null | undefined;
1121
+ lastRunError?: {
1122
+ message: string;
1123
+ at: string;
1124
+ } | null | undefined;
1125
+ lastRoute?: string | null | undefined;
1126
+ preview?: string | null | undefined;
684
1127
  }[];
685
1128
  total: number;
686
1129
  }>;
@@ -697,6 +1140,33 @@ export declare const conversationListResourceSchema: z.ZodObject<{
697
1140
  lastMessageAt: z.ZodNullable<z.ZodString>;
698
1141
  createdAt: z.ZodString;
699
1142
  updatedAt: z.ZodString;
1143
+ /** Specialist on the latest assistant reply, when known. */
1144
+ lastRoute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
+ /** Single-line snippet of the latest message. */
1146
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1148
+ message: z.ZodString;
1149
+ route: z.ZodNullable<z.ZodString>;
1150
+ startedAt: z.ZodString;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ message: string;
1153
+ route: string | null;
1154
+ startedAt: string;
1155
+ }, {
1156
+ message: string;
1157
+ route: string | null;
1158
+ startedAt: string;
1159
+ }>>>;
1160
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1161
+ message: z.ZodString;
1162
+ at: z.ZodString;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ message: string;
1165
+ at: string;
1166
+ }, {
1167
+ message: string;
1168
+ at: string;
1169
+ }>>>;
700
1170
  }, "strip", z.ZodTypeAny, {
701
1171
  id: string;
702
1172
  title: string | null;
@@ -706,6 +1176,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
706
1176
  farmId: string | null;
707
1177
  messageCount: number;
708
1178
  lastMessageAt: string | null;
1179
+ pendingRun?: {
1180
+ message: string;
1181
+ route: string | null;
1182
+ startedAt: string;
1183
+ } | null | undefined;
1184
+ lastRunError?: {
1185
+ message: string;
1186
+ at: string;
1187
+ } | null | undefined;
1188
+ lastRoute?: string | null | undefined;
1189
+ preview?: string | null | undefined;
709
1190
  }, {
710
1191
  id: string;
711
1192
  title: string | null;
@@ -715,6 +1196,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
715
1196
  farmId: string | null;
716
1197
  messageCount: number;
717
1198
  lastMessageAt: string | null;
1199
+ pendingRun?: {
1200
+ message: string;
1201
+ route: string | null;
1202
+ startedAt: string;
1203
+ } | null | undefined;
1204
+ lastRunError?: {
1205
+ message: string;
1206
+ at: string;
1207
+ } | null | undefined;
1208
+ lastRoute?: string | null | undefined;
1209
+ preview?: string | null | undefined;
718
1210
  }>, "many">;
719
1211
  total: z.ZodNumber;
720
1212
  }, "strip", z.ZodTypeAny, {
@@ -727,6 +1219,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
727
1219
  farmId: string | null;
728
1220
  messageCount: number;
729
1221
  lastMessageAt: string | null;
1222
+ pendingRun?: {
1223
+ message: string;
1224
+ route: string | null;
1225
+ startedAt: string;
1226
+ } | null | undefined;
1227
+ lastRunError?: {
1228
+ message: string;
1229
+ at: string;
1230
+ } | null | undefined;
1231
+ lastRoute?: string | null | undefined;
1232
+ preview?: string | null | undefined;
730
1233
  }[];
731
1234
  total: number;
732
1235
  }, {
@@ -739,6 +1242,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
739
1242
  farmId: string | null;
740
1243
  messageCount: number;
741
1244
  lastMessageAt: string | null;
1245
+ pendingRun?: {
1246
+ message: string;
1247
+ route: string | null;
1248
+ startedAt: string;
1249
+ } | null | undefined;
1250
+ lastRunError?: {
1251
+ message: string;
1252
+ at: string;
1253
+ } | null | undefined;
1254
+ lastRoute?: string | null | undefined;
1255
+ preview?: string | null | undefined;
742
1256
  }[];
743
1257
  total: number;
744
1258
  }>;
@@ -758,6 +1272,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
758
1272
  farmId: string | null;
759
1273
  messageCount: number;
760
1274
  lastMessageAt: string | null;
1275
+ pendingRun?: {
1276
+ message: string;
1277
+ route: string | null;
1278
+ startedAt: string;
1279
+ } | null | undefined;
1280
+ lastRunError?: {
1281
+ message: string;
1282
+ at: string;
1283
+ } | null | undefined;
1284
+ lastRoute?: string | null | undefined;
1285
+ preview?: string | null | undefined;
761
1286
  }[];
762
1287
  total: number;
763
1288
  };
@@ -777,6 +1302,17 @@ export declare const conversationListResourceSchema: z.ZodObject<{
777
1302
  farmId: string | null;
778
1303
  messageCount: number;
779
1304
  lastMessageAt: string | null;
1305
+ pendingRun?: {
1306
+ message: string;
1307
+ route: string | null;
1308
+ startedAt: string;
1309
+ } | null | undefined;
1310
+ lastRunError?: {
1311
+ message: string;
1312
+ at: string;
1313
+ } | null | undefined;
1314
+ lastRoute?: string | null | undefined;
1315
+ preview?: string | null | undefined;
780
1316
  }[];
781
1317
  total: number;
782
1318
  };
@@ -798,6 +1334,33 @@ export declare const conversationListResponseSchema: z.ZodObject<{
798
1334
  lastMessageAt: z.ZodNullable<z.ZodString>;
799
1335
  createdAt: z.ZodString;
800
1336
  updatedAt: z.ZodString;
1337
+ /** Specialist on the latest assistant reply, when known. */
1338
+ lastRoute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1339
+ /** Single-line snippet of the latest message. */
1340
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
+ pendingRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1342
+ message: z.ZodString;
1343
+ route: z.ZodNullable<z.ZodString>;
1344
+ startedAt: z.ZodString;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ message: string;
1347
+ route: string | null;
1348
+ startedAt: string;
1349
+ }, {
1350
+ message: string;
1351
+ route: string | null;
1352
+ startedAt: string;
1353
+ }>>>;
1354
+ lastRunError: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1355
+ message: z.ZodString;
1356
+ at: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ message: string;
1359
+ at: string;
1360
+ }, {
1361
+ message: string;
1362
+ at: string;
1363
+ }>>>;
801
1364
  }, "strip", z.ZodTypeAny, {
802
1365
  id: string;
803
1366
  title: string | null;
@@ -807,6 +1370,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
807
1370
  farmId: string | null;
808
1371
  messageCount: number;
809
1372
  lastMessageAt: string | null;
1373
+ pendingRun?: {
1374
+ message: string;
1375
+ route: string | null;
1376
+ startedAt: string;
1377
+ } | null | undefined;
1378
+ lastRunError?: {
1379
+ message: string;
1380
+ at: string;
1381
+ } | null | undefined;
1382
+ lastRoute?: string | null | undefined;
1383
+ preview?: string | null | undefined;
810
1384
  }, {
811
1385
  id: string;
812
1386
  title: string | null;
@@ -816,6 +1390,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
816
1390
  farmId: string | null;
817
1391
  messageCount: number;
818
1392
  lastMessageAt: string | null;
1393
+ pendingRun?: {
1394
+ message: string;
1395
+ route: string | null;
1396
+ startedAt: string;
1397
+ } | null | undefined;
1398
+ lastRunError?: {
1399
+ message: string;
1400
+ at: string;
1401
+ } | null | undefined;
1402
+ lastRoute?: string | null | undefined;
1403
+ preview?: string | null | undefined;
819
1404
  }>, "many">;
820
1405
  total: z.ZodNumber;
821
1406
  }, "strip", z.ZodTypeAny, {
@@ -828,6 +1413,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
828
1413
  farmId: string | null;
829
1414
  messageCount: number;
830
1415
  lastMessageAt: string | null;
1416
+ pendingRun?: {
1417
+ message: string;
1418
+ route: string | null;
1419
+ startedAt: string;
1420
+ } | null | undefined;
1421
+ lastRunError?: {
1422
+ message: string;
1423
+ at: string;
1424
+ } | null | undefined;
1425
+ lastRoute?: string | null | undefined;
1426
+ preview?: string | null | undefined;
831
1427
  }[];
832
1428
  total: number;
833
1429
  }, {
@@ -840,6 +1436,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
840
1436
  farmId: string | null;
841
1437
  messageCount: number;
842
1438
  lastMessageAt: string | null;
1439
+ pendingRun?: {
1440
+ message: string;
1441
+ route: string | null;
1442
+ startedAt: string;
1443
+ } | null | undefined;
1444
+ lastRunError?: {
1445
+ message: string;
1446
+ at: string;
1447
+ } | null | undefined;
1448
+ lastRoute?: string | null | undefined;
1449
+ preview?: string | null | undefined;
843
1450
  }[];
844
1451
  total: number;
845
1452
  }>;
@@ -859,6 +1466,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
859
1466
  farmId: string | null;
860
1467
  messageCount: number;
861
1468
  lastMessageAt: string | null;
1469
+ pendingRun?: {
1470
+ message: string;
1471
+ route: string | null;
1472
+ startedAt: string;
1473
+ } | null | undefined;
1474
+ lastRunError?: {
1475
+ message: string;
1476
+ at: string;
1477
+ } | null | undefined;
1478
+ lastRoute?: string | null | undefined;
1479
+ preview?: string | null | undefined;
862
1480
  }[];
863
1481
  total: number;
864
1482
  };
@@ -878,6 +1496,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
878
1496
  farmId: string | null;
879
1497
  messageCount: number;
880
1498
  lastMessageAt: string | null;
1499
+ pendingRun?: {
1500
+ message: string;
1501
+ route: string | null;
1502
+ startedAt: string;
1503
+ } | null | undefined;
1504
+ lastRunError?: {
1505
+ message: string;
1506
+ at: string;
1507
+ } | null | undefined;
1508
+ lastRoute?: string | null | undefined;
1509
+ preview?: string | null | undefined;
881
1510
  }[];
882
1511
  total: number;
883
1512
  };
@@ -923,6 +1552,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
923
1552
  farmId: string | null;
924
1553
  messageCount: number;
925
1554
  lastMessageAt: string | null;
1555
+ pendingRun?: {
1556
+ message: string;
1557
+ route: string | null;
1558
+ startedAt: string;
1559
+ } | null | undefined;
1560
+ lastRunError?: {
1561
+ message: string;
1562
+ at: string;
1563
+ } | null | undefined;
1564
+ lastRoute?: string | null | undefined;
1565
+ preview?: string | null | undefined;
926
1566
  }[];
927
1567
  total: number;
928
1568
  };
@@ -954,6 +1594,17 @@ export declare const conversationListResponseSchema: z.ZodObject<{
954
1594
  farmId: string | null;
955
1595
  messageCount: number;
956
1596
  lastMessageAt: string | null;
1597
+ pendingRun?: {
1598
+ message: string;
1599
+ route: string | null;
1600
+ startedAt: string;
1601
+ } | null | undefined;
1602
+ lastRunError?: {
1603
+ message: string;
1604
+ at: string;
1605
+ } | null | undefined;
1606
+ lastRoute?: string | null | undefined;
1607
+ preview?: string | null | undefined;
957
1608
  }[];
958
1609
  total: number;
959
1610
  };
@@ -972,6 +1623,61 @@ export declare const conversationListResponseSchema: z.ZodObject<{
972
1623
  meta?: Record<string, unknown> | undefined;
973
1624
  }[] | undefined;
974
1625
  }>;
1626
+ export declare const updateProposedActionStatusRequestSchema: z.ZodObject<{
1627
+ status: z.ZodEnum<["accepted", "dismissed"]>;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ status: "accepted" | "dismissed";
1630
+ }, {
1631
+ status: "accepted" | "dismissed";
1632
+ }>;
1633
+ export declare const updateProposedActionStatusResponseSchema: z.ZodObject<{
1634
+ data: z.ZodObject<{
1635
+ type: z.ZodLiteral<"proposed-action-statuses">;
1636
+ id: z.ZodString;
1637
+ attributes: z.ZodObject<{
1638
+ conversationId: z.ZodString;
1639
+ status: z.ZodEnum<["accepted", "dismissed"]>;
1640
+ }, "strip", z.ZodTypeAny, {
1641
+ status: "accepted" | "dismissed";
1642
+ conversationId: string;
1643
+ }, {
1644
+ status: "accepted" | "dismissed";
1645
+ conversationId: string;
1646
+ }>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ type: "proposed-action-statuses";
1649
+ id: string;
1650
+ attributes: {
1651
+ status: "accepted" | "dismissed";
1652
+ conversationId: string;
1653
+ };
1654
+ }, {
1655
+ type: "proposed-action-statuses";
1656
+ id: string;
1657
+ attributes: {
1658
+ status: "accepted" | "dismissed";
1659
+ conversationId: string;
1660
+ };
1661
+ }>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ data: {
1664
+ type: "proposed-action-statuses";
1665
+ id: string;
1666
+ attributes: {
1667
+ status: "accepted" | "dismissed";
1668
+ conversationId: string;
1669
+ };
1670
+ };
1671
+ }, {
1672
+ data: {
1673
+ type: "proposed-action-statuses";
1674
+ id: string;
1675
+ attributes: {
1676
+ status: "accepted" | "dismissed";
1677
+ conversationId: string;
1678
+ };
1679
+ };
1680
+ }>;
975
1681
  export declare const updateConversationTitleRequestSchema: z.ZodObject<{
976
1682
  title: z.ZodString;
977
1683
  }, "strip", z.ZodTypeAny, {
@@ -3862,7 +4568,6 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3862
4568
  response: string;
3863
4569
  route: "general" | "agronomics" | "finance" | "operations";
3864
4570
  conversationId?: string | undefined;
3865
- modelUsed?: string | undefined;
3866
4571
  proposedActions?: {
3867
4572
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3868
4573
  id: string;
@@ -3870,11 +4575,11 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3870
4575
  payload: Record<string, unknown>;
3871
4576
  requiresConfirmation: boolean;
3872
4577
  }[] | undefined;
4578
+ modelUsed?: string | undefined;
3873
4579
  }, {
3874
4580
  response: string;
3875
4581
  route: "general" | "agronomics" | "finance" | "operations";
3876
4582
  conversationId?: string | undefined;
3877
- modelUsed?: string | undefined;
3878
4583
  proposedActions?: {
3879
4584
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3880
4585
  id: string;
@@ -3882,6 +4587,7 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3882
4587
  payload: Record<string, unknown>;
3883
4588
  requiresConfirmation?: boolean | undefined;
3884
4589
  }[] | undefined;
4590
+ modelUsed?: string | undefined;
3885
4591
  }>;
3886
4592
  }, "strip", z.ZodTypeAny, {
3887
4593
  type: "farm-brain-response";
@@ -3890,7 +4596,6 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3890
4596
  response: string;
3891
4597
  route: "general" | "agronomics" | "finance" | "operations";
3892
4598
  conversationId?: string | undefined;
3893
- modelUsed?: string | undefined;
3894
4599
  proposedActions?: {
3895
4600
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3896
4601
  id: string;
@@ -3898,6 +4603,7 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3898
4603
  payload: Record<string, unknown>;
3899
4604
  requiresConfirmation: boolean;
3900
4605
  }[] | undefined;
4606
+ modelUsed?: string | undefined;
3901
4607
  };
3902
4608
  }, {
3903
4609
  type: "farm-brain-response";
@@ -3906,7 +4612,6 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3906
4612
  response: string;
3907
4613
  route: "general" | "agronomics" | "finance" | "operations";
3908
4614
  conversationId?: string | undefined;
3909
- modelUsed?: string | undefined;
3910
4615
  proposedActions?: {
3911
4616
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3912
4617
  id: string;
@@ -3914,6 +4619,7 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3914
4619
  payload: Record<string, unknown>;
3915
4620
  requiresConfirmation?: boolean | undefined;
3916
4621
  }[] | undefined;
4622
+ modelUsed?: string | undefined;
3917
4623
  };
3918
4624
  }>;
3919
4625
  }, "strip", z.ZodTypeAny, {
@@ -3924,7 +4630,6 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3924
4630
  response: string;
3925
4631
  route: "general" | "agronomics" | "finance" | "operations";
3926
4632
  conversationId?: string | undefined;
3927
- modelUsed?: string | undefined;
3928
4633
  proposedActions?: {
3929
4634
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3930
4635
  id: string;
@@ -3932,6 +4637,7 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3932
4637
  payload: Record<string, unknown>;
3933
4638
  requiresConfirmation: boolean;
3934
4639
  }[] | undefined;
4640
+ modelUsed?: string | undefined;
3935
4641
  };
3936
4642
  };
3937
4643
  }, {
@@ -3942,7 +4648,6 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3942
4648
  response: string;
3943
4649
  route: "general" | "agronomics" | "finance" | "operations";
3944
4650
  conversationId?: string | undefined;
3945
- modelUsed?: string | undefined;
3946
4651
  proposedActions?: {
3947
4652
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
3948
4653
  id: string;
@@ -3950,6 +4655,7 @@ export declare const farmBrainChatResponseSchema: z.ZodObject<{
3950
4655
  payload: Record<string, unknown>;
3951
4656
  requiresConfirmation?: boolean | undefined;
3952
4657
  }[] | undefined;
4658
+ modelUsed?: string | undefined;
3953
4659
  };
3954
4660
  };
3955
4661
  }>;
@@ -4065,7 +4771,6 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4065
4771
  response: string;
4066
4772
  route: "general" | "agronomics" | "finance" | "operations";
4067
4773
  conversationId?: string | undefined;
4068
- modelUsed?: string | undefined;
4069
4774
  proposedActions?: {
4070
4775
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4071
4776
  id: string;
@@ -4073,12 +4778,12 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4073
4778
  payload: Record<string, unknown>;
4074
4779
  requiresConfirmation: boolean;
4075
4780
  }[] | undefined;
4781
+ modelUsed?: string | undefined;
4076
4782
  }, {
4077
4783
  language: string;
4078
4784
  response: string;
4079
4785
  route: "general" | "agronomics" | "finance" | "operations";
4080
4786
  conversationId?: string | undefined;
4081
- modelUsed?: string | undefined;
4082
4787
  proposedActions?: {
4083
4788
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4084
4789
  id: string;
@@ -4086,6 +4791,7 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4086
4791
  payload: Record<string, unknown>;
4087
4792
  requiresConfirmation?: boolean | undefined;
4088
4793
  }[] | undefined;
4794
+ modelUsed?: string | undefined;
4089
4795
  }>;
4090
4796
  }, "strip", z.ZodTypeAny, {
4091
4797
  type: "farm-brain-localized-response";
@@ -4095,7 +4801,6 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4095
4801
  response: string;
4096
4802
  route: "general" | "agronomics" | "finance" | "operations";
4097
4803
  conversationId?: string | undefined;
4098
- modelUsed?: string | undefined;
4099
4804
  proposedActions?: {
4100
4805
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4101
4806
  id: string;
@@ -4103,6 +4808,7 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4103
4808
  payload: Record<string, unknown>;
4104
4809
  requiresConfirmation: boolean;
4105
4810
  }[] | undefined;
4811
+ modelUsed?: string | undefined;
4106
4812
  };
4107
4813
  }, {
4108
4814
  type: "farm-brain-localized-response";
@@ -4112,7 +4818,6 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4112
4818
  response: string;
4113
4819
  route: "general" | "agronomics" | "finance" | "operations";
4114
4820
  conversationId?: string | undefined;
4115
- modelUsed?: string | undefined;
4116
4821
  proposedActions?: {
4117
4822
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4118
4823
  id: string;
@@ -4120,6 +4825,7 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4120
4825
  payload: Record<string, unknown>;
4121
4826
  requiresConfirmation?: boolean | undefined;
4122
4827
  }[] | undefined;
4828
+ modelUsed?: string | undefined;
4123
4829
  };
4124
4830
  }>;
4125
4831
  }, "strip", z.ZodTypeAny, {
@@ -4131,7 +4837,6 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4131
4837
  response: string;
4132
4838
  route: "general" | "agronomics" | "finance" | "operations";
4133
4839
  conversationId?: string | undefined;
4134
- modelUsed?: string | undefined;
4135
4840
  proposedActions?: {
4136
4841
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4137
4842
  id: string;
@@ -4139,6 +4844,7 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4139
4844
  payload: Record<string, unknown>;
4140
4845
  requiresConfirmation: boolean;
4141
4846
  }[] | undefined;
4847
+ modelUsed?: string | undefined;
4142
4848
  };
4143
4849
  };
4144
4850
  }, {
@@ -4150,7 +4856,6 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4150
4856
  response: string;
4151
4857
  route: "general" | "agronomics" | "finance" | "operations";
4152
4858
  conversationId?: string | undefined;
4153
- modelUsed?: string | undefined;
4154
4859
  proposedActions?: {
4155
4860
  type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
4156
4861
  id: string;
@@ -4158,6 +4863,7 @@ export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
4158
4863
  payload: Record<string, unknown>;
4159
4864
  requiresConfirmation?: boolean | undefined;
4160
4865
  }[] | undefined;
4866
+ modelUsed?: string | undefined;
4161
4867
  };
4162
4868
  };
4163
4869
  }>;