@deepintel-ltd/farmpro-contracts 1.2.0 → 1.3.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"agents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/agents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC"}
1
+ {"version":3,"file":"agents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/agents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEvB,CAAC"}
@@ -33,4 +33,44 @@ exports.agentsRouter = c.router({
33
33
  },
34
34
  },
35
35
  },
36
+ // Get conversation history
37
+ getConversationHistory: {
38
+ method: 'GET',
39
+ path: '/agents/agronomics/conversations/:conversationId/history',
40
+ pathParams: zod_1.z.object({
41
+ conversationId: zod_1.z.string().uuid(),
42
+ }),
43
+ query: zod_1.z.object({
44
+ limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(50),
45
+ }),
46
+ responses: {
47
+ 200: agents_schemas_1.conversationHistoryResponseSchema,
48
+ 400: common_schemas_1.jsonApiErrorResponseSchema,
49
+ 401: common_schemas_1.jsonApiErrorResponseSchema,
50
+ 404: common_schemas_1.jsonApiErrorResponseSchema,
51
+ 500: common_schemas_1.jsonApiErrorResponseSchema,
52
+ },
53
+ summary: 'Get conversation history',
54
+ description: 'Retrieve the message history for a specific conversation',
55
+ },
56
+ // List conversations for a farm
57
+ listConversations: {
58
+ method: 'GET',
59
+ path: '/farms/:farmId/agents/conversations',
60
+ pathParams: zod_1.z.object({
61
+ farmId: zod_1.z.string().uuid(),
62
+ }),
63
+ query: zod_1.z.object({
64
+ limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
65
+ offset: zod_1.z.coerce.number().int().min(0).optional().default(0),
66
+ }),
67
+ responses: {
68
+ 200: agents_schemas_1.conversationListResponseSchema,
69
+ 400: common_schemas_1.jsonApiErrorResponseSchema,
70
+ 401: common_schemas_1.jsonApiErrorResponseSchema,
71
+ 500: common_schemas_1.jsonApiErrorResponseSchema,
72
+ },
73
+ summary: 'List all conversations for a farm',
74
+ description: 'Retrieve a list of all conversations for a specific farm, ordered by most recent first',
75
+ },
36
76
  });
@@ -342,11 +342,639 @@ export declare const agentChatResponseSchema: z.ZodObject<{
342
342
  meta?: Record<string, unknown> | undefined;
343
343
  }[] | undefined;
344
344
  }>;
345
+ export declare const conversationHistoryMessageSchema: z.ZodObject<{
346
+ role: z.ZodEnum<["user", "assistant"]>;
347
+ content: z.ZodString;
348
+ createdAt: z.ZodOptional<z.ZodString>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ role: "user" | "assistant";
351
+ content: string;
352
+ createdAt?: string | undefined;
353
+ }, {
354
+ role: "user" | "assistant";
355
+ content: string;
356
+ createdAt?: string | undefined;
357
+ }>;
358
+ export declare const conversationHistoryAttributesSchema: z.ZodObject<{
359
+ messages: z.ZodArray<z.ZodObject<{
360
+ role: z.ZodEnum<["user", "assistant"]>;
361
+ content: z.ZodString;
362
+ createdAt: z.ZodOptional<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ role: "user" | "assistant";
365
+ content: string;
366
+ createdAt?: string | undefined;
367
+ }, {
368
+ role: "user" | "assistant";
369
+ content: string;
370
+ createdAt?: string | undefined;
371
+ }>, "many">;
372
+ conversationId: z.ZodString;
373
+ }, "strip", z.ZodTypeAny, {
374
+ conversationId: string;
375
+ messages: {
376
+ role: "user" | "assistant";
377
+ content: string;
378
+ createdAt?: string | undefined;
379
+ }[];
380
+ }, {
381
+ conversationId: string;
382
+ messages: {
383
+ role: "user" | "assistant";
384
+ content: string;
385
+ createdAt?: string | undefined;
386
+ }[];
387
+ }>;
388
+ export declare const conversationHistoryResourceSchema: z.ZodObject<{
389
+ type: z.ZodLiteral<string>;
390
+ id: z.ZodString;
391
+ attributes: z.ZodObject<{
392
+ messages: z.ZodArray<z.ZodObject<{
393
+ role: z.ZodEnum<["user", "assistant"]>;
394
+ content: z.ZodString;
395
+ createdAt: z.ZodOptional<z.ZodString>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ role: "user" | "assistant";
398
+ content: string;
399
+ createdAt?: string | undefined;
400
+ }, {
401
+ role: "user" | "assistant";
402
+ content: string;
403
+ createdAt?: string | undefined;
404
+ }>, "many">;
405
+ conversationId: z.ZodString;
406
+ }, "strip", z.ZodTypeAny, {
407
+ conversationId: string;
408
+ messages: {
409
+ role: "user" | "assistant";
410
+ content: string;
411
+ createdAt?: string | undefined;
412
+ }[];
413
+ }, {
414
+ conversationId: string;
415
+ messages: {
416
+ role: "user" | "assistant";
417
+ content: string;
418
+ createdAt?: string | undefined;
419
+ }[];
420
+ }>;
421
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
422
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
423
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ type: string;
426
+ id: string;
427
+ attributes: {
428
+ conversationId: string;
429
+ messages: {
430
+ role: "user" | "assistant";
431
+ content: string;
432
+ createdAt?: string | undefined;
433
+ }[];
434
+ };
435
+ relationships?: Record<string, unknown> | undefined;
436
+ links?: Record<string, string> | undefined;
437
+ meta?: Record<string, unknown> | undefined;
438
+ }, {
439
+ type: string;
440
+ id: string;
441
+ attributes: {
442
+ conversationId: string;
443
+ messages: {
444
+ role: "user" | "assistant";
445
+ content: string;
446
+ createdAt?: string | undefined;
447
+ }[];
448
+ };
449
+ relationships?: Record<string, unknown> | undefined;
450
+ links?: Record<string, string> | undefined;
451
+ meta?: Record<string, unknown> | undefined;
452
+ }>;
453
+ export declare const conversationHistoryResponseSchema: z.ZodObject<{
454
+ data: z.ZodObject<{
455
+ type: z.ZodLiteral<string>;
456
+ id: z.ZodString;
457
+ attributes: z.ZodObject<{
458
+ messages: z.ZodArray<z.ZodObject<{
459
+ role: z.ZodEnum<["user", "assistant"]>;
460
+ content: z.ZodString;
461
+ createdAt: z.ZodOptional<z.ZodString>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ role: "user" | "assistant";
464
+ content: string;
465
+ createdAt?: string | undefined;
466
+ }, {
467
+ role: "user" | "assistant";
468
+ content: string;
469
+ createdAt?: string | undefined;
470
+ }>, "many">;
471
+ conversationId: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ conversationId: string;
474
+ messages: {
475
+ role: "user" | "assistant";
476
+ content: string;
477
+ createdAt?: string | undefined;
478
+ }[];
479
+ }, {
480
+ conversationId: string;
481
+ messages: {
482
+ role: "user" | "assistant";
483
+ content: string;
484
+ createdAt?: string | undefined;
485
+ }[];
486
+ }>;
487
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
488
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
489
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ type: string;
492
+ id: string;
493
+ attributes: {
494
+ conversationId: string;
495
+ messages: {
496
+ role: "user" | "assistant";
497
+ content: string;
498
+ createdAt?: string | undefined;
499
+ }[];
500
+ };
501
+ relationships?: Record<string, unknown> | undefined;
502
+ links?: Record<string, string> | undefined;
503
+ meta?: Record<string, unknown> | undefined;
504
+ }, {
505
+ type: string;
506
+ id: string;
507
+ attributes: {
508
+ conversationId: string;
509
+ messages: {
510
+ role: "user" | "assistant";
511
+ content: string;
512
+ createdAt?: string | undefined;
513
+ }[];
514
+ };
515
+ relationships?: Record<string, unknown> | undefined;
516
+ links?: Record<string, string> | undefined;
517
+ meta?: Record<string, unknown> | undefined;
518
+ }>;
519
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
520
+ type: z.ZodString;
521
+ id: z.ZodString;
522
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
523
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
524
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
525
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: string;
528
+ id: string;
529
+ attributes?: Record<string, unknown> | undefined;
530
+ relationships?: Record<string, unknown> | undefined;
531
+ links?: Record<string, string> | undefined;
532
+ meta?: Record<string, unknown> | undefined;
533
+ }, {
534
+ type: string;
535
+ id: string;
536
+ attributes?: Record<string, unknown> | undefined;
537
+ relationships?: Record<string, unknown> | undefined;
538
+ links?: Record<string, string> | undefined;
539
+ meta?: Record<string, unknown> | undefined;
540
+ }>, "many">>;
541
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
542
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ data: {
545
+ type: string;
546
+ id: string;
547
+ attributes: {
548
+ conversationId: string;
549
+ messages: {
550
+ role: "user" | "assistant";
551
+ content: string;
552
+ createdAt?: string | undefined;
553
+ }[];
554
+ };
555
+ relationships?: Record<string, unknown> | undefined;
556
+ links?: Record<string, string> | undefined;
557
+ meta?: Record<string, unknown> | undefined;
558
+ };
559
+ links?: Record<string, string> | undefined;
560
+ meta?: Record<string, unknown> | undefined;
561
+ included?: {
562
+ type: string;
563
+ id: string;
564
+ attributes?: Record<string, unknown> | undefined;
565
+ relationships?: Record<string, unknown> | undefined;
566
+ links?: Record<string, string> | undefined;
567
+ meta?: Record<string, unknown> | undefined;
568
+ }[] | undefined;
569
+ }, {
570
+ data: {
571
+ type: string;
572
+ id: string;
573
+ attributes: {
574
+ conversationId: string;
575
+ messages: {
576
+ role: "user" | "assistant";
577
+ content: string;
578
+ createdAt?: string | undefined;
579
+ }[];
580
+ };
581
+ relationships?: Record<string, unknown> | undefined;
582
+ links?: Record<string, string> | undefined;
583
+ meta?: Record<string, unknown> | undefined;
584
+ };
585
+ links?: Record<string, string> | undefined;
586
+ meta?: Record<string, unknown> | undefined;
587
+ included?: {
588
+ type: string;
589
+ id: string;
590
+ attributes?: Record<string, unknown> | undefined;
591
+ relationships?: Record<string, unknown> | undefined;
592
+ links?: Record<string, string> | undefined;
593
+ meta?: Record<string, unknown> | undefined;
594
+ }[] | undefined;
595
+ }>;
596
+ export declare const conversationListItemSchema: z.ZodObject<{
597
+ id: z.ZodString;
598
+ title: z.ZodNullable<z.ZodString>;
599
+ summary: z.ZodNullable<z.ZodString>;
600
+ farmId: z.ZodNullable<z.ZodString>;
601
+ messageCount: z.ZodNumber;
602
+ lastMessageAt: z.ZodNullable<z.ZodString>;
603
+ createdAt: z.ZodString;
604
+ updatedAt: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ title: string | null;
608
+ createdAt: string;
609
+ updatedAt: string;
610
+ summary: string | null;
611
+ farmId: string | null;
612
+ messageCount: number;
613
+ lastMessageAt: string | null;
614
+ }, {
615
+ id: string;
616
+ title: string | null;
617
+ createdAt: string;
618
+ updatedAt: string;
619
+ summary: string | null;
620
+ farmId: string | null;
621
+ messageCount: number;
622
+ lastMessageAt: string | null;
623
+ }>;
624
+ export declare const conversationListAttributesSchema: z.ZodObject<{
625
+ conversations: z.ZodArray<z.ZodObject<{
626
+ id: z.ZodString;
627
+ title: z.ZodNullable<z.ZodString>;
628
+ summary: z.ZodNullable<z.ZodString>;
629
+ farmId: z.ZodNullable<z.ZodString>;
630
+ messageCount: z.ZodNumber;
631
+ lastMessageAt: z.ZodNullable<z.ZodString>;
632
+ createdAt: z.ZodString;
633
+ updatedAt: z.ZodString;
634
+ }, "strip", z.ZodTypeAny, {
635
+ id: string;
636
+ title: string | null;
637
+ createdAt: string;
638
+ updatedAt: string;
639
+ summary: string | null;
640
+ farmId: string | null;
641
+ messageCount: number;
642
+ lastMessageAt: string | null;
643
+ }, {
644
+ id: string;
645
+ title: string | null;
646
+ createdAt: string;
647
+ updatedAt: string;
648
+ summary: string | null;
649
+ farmId: string | null;
650
+ messageCount: number;
651
+ lastMessageAt: string | null;
652
+ }>, "many">;
653
+ total: z.ZodNumber;
654
+ }, "strip", z.ZodTypeAny, {
655
+ conversations: {
656
+ id: string;
657
+ title: string | null;
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ summary: string | null;
661
+ farmId: string | null;
662
+ messageCount: number;
663
+ lastMessageAt: string | null;
664
+ }[];
665
+ total: number;
666
+ }, {
667
+ conversations: {
668
+ id: string;
669
+ title: string | null;
670
+ createdAt: string;
671
+ updatedAt: string;
672
+ summary: string | null;
673
+ farmId: string | null;
674
+ messageCount: number;
675
+ lastMessageAt: string | null;
676
+ }[];
677
+ total: number;
678
+ }>;
679
+ export declare const conversationListResourceSchema: z.ZodObject<{
680
+ type: z.ZodLiteral<string>;
681
+ id: z.ZodString;
682
+ attributes: z.ZodObject<{
683
+ conversations: z.ZodArray<z.ZodObject<{
684
+ id: z.ZodString;
685
+ title: z.ZodNullable<z.ZodString>;
686
+ summary: z.ZodNullable<z.ZodString>;
687
+ farmId: z.ZodNullable<z.ZodString>;
688
+ messageCount: z.ZodNumber;
689
+ lastMessageAt: z.ZodNullable<z.ZodString>;
690
+ createdAt: z.ZodString;
691
+ updatedAt: z.ZodString;
692
+ }, "strip", z.ZodTypeAny, {
693
+ id: string;
694
+ title: string | null;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ summary: string | null;
698
+ farmId: string | null;
699
+ messageCount: number;
700
+ lastMessageAt: string | null;
701
+ }, {
702
+ id: string;
703
+ title: string | null;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ summary: string | null;
707
+ farmId: string | null;
708
+ messageCount: number;
709
+ lastMessageAt: string | null;
710
+ }>, "many">;
711
+ total: z.ZodNumber;
712
+ }, "strip", z.ZodTypeAny, {
713
+ conversations: {
714
+ id: string;
715
+ title: string | null;
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ summary: string | null;
719
+ farmId: string | null;
720
+ messageCount: number;
721
+ lastMessageAt: string | null;
722
+ }[];
723
+ total: number;
724
+ }, {
725
+ conversations: {
726
+ id: string;
727
+ title: string | null;
728
+ createdAt: string;
729
+ updatedAt: string;
730
+ summary: string | null;
731
+ farmId: string | null;
732
+ messageCount: number;
733
+ lastMessageAt: string | null;
734
+ }[];
735
+ total: number;
736
+ }>;
737
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
738
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
739
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: string;
742
+ id: string;
743
+ attributes: {
744
+ conversations: {
745
+ id: string;
746
+ title: string | null;
747
+ createdAt: string;
748
+ updatedAt: string;
749
+ summary: string | null;
750
+ farmId: string | null;
751
+ messageCount: number;
752
+ lastMessageAt: string | null;
753
+ }[];
754
+ total: number;
755
+ };
756
+ relationships?: Record<string, unknown> | undefined;
757
+ links?: Record<string, string> | undefined;
758
+ meta?: Record<string, unknown> | undefined;
759
+ }, {
760
+ type: string;
761
+ id: string;
762
+ attributes: {
763
+ conversations: {
764
+ id: string;
765
+ title: string | null;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ summary: string | null;
769
+ farmId: string | null;
770
+ messageCount: number;
771
+ lastMessageAt: string | null;
772
+ }[];
773
+ total: number;
774
+ };
775
+ relationships?: Record<string, unknown> | undefined;
776
+ links?: Record<string, string> | undefined;
777
+ meta?: Record<string, unknown> | undefined;
778
+ }>;
779
+ export declare const conversationListResponseSchema: z.ZodObject<{
780
+ data: z.ZodObject<{
781
+ type: z.ZodLiteral<string>;
782
+ id: z.ZodString;
783
+ attributes: z.ZodObject<{
784
+ conversations: z.ZodArray<z.ZodObject<{
785
+ id: z.ZodString;
786
+ title: z.ZodNullable<z.ZodString>;
787
+ summary: z.ZodNullable<z.ZodString>;
788
+ farmId: z.ZodNullable<z.ZodString>;
789
+ messageCount: z.ZodNumber;
790
+ lastMessageAt: z.ZodNullable<z.ZodString>;
791
+ createdAt: z.ZodString;
792
+ updatedAt: z.ZodString;
793
+ }, "strip", z.ZodTypeAny, {
794
+ id: string;
795
+ title: string | null;
796
+ createdAt: string;
797
+ updatedAt: string;
798
+ summary: string | null;
799
+ farmId: string | null;
800
+ messageCount: number;
801
+ lastMessageAt: string | null;
802
+ }, {
803
+ id: string;
804
+ title: string | null;
805
+ createdAt: string;
806
+ updatedAt: string;
807
+ summary: string | null;
808
+ farmId: string | null;
809
+ messageCount: number;
810
+ lastMessageAt: string | null;
811
+ }>, "many">;
812
+ total: z.ZodNumber;
813
+ }, "strip", z.ZodTypeAny, {
814
+ conversations: {
815
+ id: string;
816
+ title: string | null;
817
+ createdAt: string;
818
+ updatedAt: string;
819
+ summary: string | null;
820
+ farmId: string | null;
821
+ messageCount: number;
822
+ lastMessageAt: string | null;
823
+ }[];
824
+ total: number;
825
+ }, {
826
+ conversations: {
827
+ id: string;
828
+ title: string | null;
829
+ createdAt: string;
830
+ updatedAt: string;
831
+ summary: string | null;
832
+ farmId: string | null;
833
+ messageCount: number;
834
+ lastMessageAt: string | null;
835
+ }[];
836
+ total: number;
837
+ }>;
838
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
840
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ type: string;
843
+ id: string;
844
+ attributes: {
845
+ conversations: {
846
+ id: string;
847
+ title: string | null;
848
+ createdAt: string;
849
+ updatedAt: string;
850
+ summary: string | null;
851
+ farmId: string | null;
852
+ messageCount: number;
853
+ lastMessageAt: string | null;
854
+ }[];
855
+ total: number;
856
+ };
857
+ relationships?: Record<string, unknown> | undefined;
858
+ links?: Record<string, string> | undefined;
859
+ meta?: Record<string, unknown> | undefined;
860
+ }, {
861
+ type: string;
862
+ id: string;
863
+ attributes: {
864
+ conversations: {
865
+ id: string;
866
+ title: string | null;
867
+ createdAt: string;
868
+ updatedAt: string;
869
+ summary: string | null;
870
+ farmId: string | null;
871
+ messageCount: number;
872
+ lastMessageAt: string | null;
873
+ }[];
874
+ total: number;
875
+ };
876
+ relationships?: Record<string, unknown> | undefined;
877
+ links?: Record<string, string> | undefined;
878
+ meta?: Record<string, unknown> | undefined;
879
+ }>;
880
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
881
+ type: z.ZodString;
882
+ id: z.ZodString;
883
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
886
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: string;
889
+ id: string;
890
+ attributes?: Record<string, unknown> | undefined;
891
+ relationships?: Record<string, unknown> | undefined;
892
+ links?: Record<string, string> | undefined;
893
+ meta?: Record<string, unknown> | undefined;
894
+ }, {
895
+ type: string;
896
+ id: string;
897
+ attributes?: Record<string, unknown> | undefined;
898
+ relationships?: Record<string, unknown> | undefined;
899
+ links?: Record<string, string> | undefined;
900
+ meta?: Record<string, unknown> | undefined;
901
+ }>, "many">>;
902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
903
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ data: {
906
+ type: string;
907
+ id: string;
908
+ attributes: {
909
+ conversations: {
910
+ id: string;
911
+ title: string | null;
912
+ createdAt: string;
913
+ updatedAt: string;
914
+ summary: string | null;
915
+ farmId: string | null;
916
+ messageCount: number;
917
+ lastMessageAt: string | null;
918
+ }[];
919
+ total: number;
920
+ };
921
+ relationships?: Record<string, unknown> | undefined;
922
+ links?: Record<string, string> | undefined;
923
+ meta?: Record<string, unknown> | undefined;
924
+ };
925
+ links?: Record<string, string> | undefined;
926
+ meta?: Record<string, unknown> | undefined;
927
+ included?: {
928
+ type: string;
929
+ id: string;
930
+ attributes?: Record<string, unknown> | undefined;
931
+ relationships?: Record<string, unknown> | undefined;
932
+ links?: Record<string, string> | undefined;
933
+ meta?: Record<string, unknown> | undefined;
934
+ }[] | undefined;
935
+ }, {
936
+ data: {
937
+ type: string;
938
+ id: string;
939
+ attributes: {
940
+ conversations: {
941
+ id: string;
942
+ title: string | null;
943
+ createdAt: string;
944
+ updatedAt: string;
945
+ summary: string | null;
946
+ farmId: string | null;
947
+ messageCount: number;
948
+ lastMessageAt: string | null;
949
+ }[];
950
+ total: number;
951
+ };
952
+ relationships?: Record<string, unknown> | undefined;
953
+ links?: Record<string, string> | undefined;
954
+ meta?: Record<string, unknown> | undefined;
955
+ };
956
+ links?: Record<string, string> | undefined;
957
+ meta?: Record<string, unknown> | undefined;
958
+ included?: {
959
+ type: string;
960
+ id: string;
961
+ attributes?: Record<string, unknown> | undefined;
962
+ relationships?: Record<string, unknown> | undefined;
963
+ links?: Record<string, string> | undefined;
964
+ meta?: Record<string, unknown> | undefined;
965
+ }[] | undefined;
966
+ }>;
345
967
  export type MessageRole = z.infer<typeof messageRoleSchema>;
346
968
  export type ConversationMessage = z.infer<typeof conversationMessageSchema>;
969
+ export type ConversationHistoryMessage = z.infer<typeof conversationHistoryMessageSchema>;
347
970
  export type ToolCallResult = z.infer<typeof toolCallResultSchema>;
348
971
  export type ChatRequestAttributes = z.infer<typeof chatRequestAttributesSchema>;
349
972
  export type ChatRequestInput = z.infer<typeof chatRequestSchema>;
350
973
  export type AgentChatResponseAttributes = z.infer<typeof agentChatResponseAttributesSchema>;
351
974
  export type AgentChatResponse = z.infer<typeof agentChatResponseSchema>;
975
+ export type ConversationHistoryAttributes = z.infer<typeof conversationHistoryAttributesSchema>;
976
+ export type ConversationHistoryResponse = z.infer<typeof conversationHistoryResponseSchema>;
977
+ export type ConversationListItem = z.infer<typeof conversationListItemSchema>;
978
+ export type ConversationListAttributes = z.infer<typeof conversationListAttributesSchema>;
979
+ export type ConversationListResponse = z.infer<typeof conversationListResponseSchema>;
352
980
  //# sourceMappingURL=agents.schemas.d.ts.map