@agentbadge/database 0.6.2 → 0.6.3

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.
@@ -16,6 +16,18 @@
16
16
  "model": "A2ATask",
17
17
  "namespace": "public"
18
18
  },
19
+ "agentQAPair": {
20
+ "model": "AgentQAPair",
21
+ "namespace": "public"
22
+ },
23
+ "agentRequest": {
24
+ "model": "AgentRequest",
25
+ "namespace": "public"
26
+ },
27
+ "agentSurvey": {
28
+ "model": "AgentSurvey",
29
+ "namespace": "public"
30
+ },
19
31
  "agentTrustEdge": {
20
32
  "model": "AgentTrustEdge",
21
33
  "namespace": "public"
@@ -132,6 +144,10 @@
132
144
  "model": "PaymentEvent",
133
145
  "namespace": "public"
134
146
  },
147
+ "paymentException": {
148
+ "model": "PaymentException",
149
+ "namespace": "public"
150
+ },
135
151
  "paymentPrice": {
136
152
  "model": "PaymentPrice",
137
153
  "namespace": "public"
@@ -164,6 +180,14 @@
164
180
  "model": "SpendEvent",
165
181
  "namespace": "public"
166
182
  },
183
+ "surveyAnswer": {
184
+ "model": "SurveyAnswer",
185
+ "namespace": "public"
186
+ },
187
+ "usageRecord": {
188
+ "model": "UsageRecord",
189
+ "namespace": "public"
190
+ },
167
191
  "venueJob": {
168
192
  "model": "VenueJob",
169
193
  "namespace": "public"
@@ -444,7 +468,7 @@
444
468
  "table": "a2ATask"
445
469
  }
446
470
  },
447
- "AgentTrustEdge": {
471
+ "AgentQAPair": {
448
472
  "fields": {
449
473
  "createdAt": {
450
474
  "nullable": false,
@@ -453,34 +477,13 @@
453
477
  "kind": "scalar"
454
478
  }
455
479
  },
456
- "eventCount": {
480
+ "createdAtMs": {
457
481
  "nullable": false,
458
- "type": {
459
- "codecId": "pg/int4@1",
460
- "kind": "scalar"
461
- }
462
- },
463
- "firstEventAt": {
464
- "nullable": true,
465
- "type": {
466
- "codecId": "pg/text@1",
467
- "kind": "scalar"
468
- }
469
- },
470
- "firstEventSeq": {
471
- "nullable": true,
472
482
  "type": {
473
483
  "codecId": "pg/int8@1",
474
484
  "kind": "scalar"
475
485
  }
476
486
  },
477
- "fromAgent": {
478
- "nullable": false,
479
- "type": {
480
- "codecId": "pg/text@1",
481
- "kind": "scalar"
482
- }
483
- },
484
487
  "id": {
485
488
  "nullable": false,
486
489
  "type": {
@@ -488,45 +491,45 @@
488
491
  "kind": "scalar"
489
492
  }
490
493
  },
491
- "kind": {
494
+ "question": {
492
495
  "nullable": false,
493
496
  "type": {
494
497
  "codecId": "pg/text@1",
495
498
  "kind": "scalar"
496
499
  }
497
500
  },
498
- "lastEventAt": {
501
+ "questionHash": {
499
502
  "nullable": false,
500
503
  "type": {
501
504
  "codecId": "pg/text@1",
502
505
  "kind": "scalar"
503
506
  }
504
507
  },
505
- "lastEventSeq": {
508
+ "response": {
506
509
  "nullable": false,
507
510
  "type": {
508
- "codecId": "pg/int8@1",
511
+ "codecId": "pg/json@1",
509
512
  "kind": "scalar"
510
513
  }
511
514
  },
512
- "toAgent": {
515
+ "sourceRequestId": {
513
516
  "nullable": false,
514
517
  "type": {
515
518
  "codecId": "pg/text@1",
516
519
  "kind": "scalar"
517
520
  }
518
521
  },
519
- "totalUsd": {
522
+ "updatedAt": {
520
523
  "nullable": false,
521
524
  "type": {
522
- "codecId": "pg/numeric@1",
525
+ "codecId": "pg/timestamptz-string@1",
523
526
  "kind": "scalar"
524
527
  }
525
528
  },
526
- "updatedAt": {
529
+ "uses": {
527
530
  "nullable": false,
528
531
  "type": {
529
- "codecId": "pg/timestamptz-string@1",
532
+ "codecId": "pg/int4@1",
530
533
  "kind": "scalar"
531
534
  }
532
535
  }
@@ -537,60 +540,37 @@
537
540
  "createdAt": {
538
541
  "column": "createdAt"
539
542
  },
540
- "eventCount": {
541
- "column": "eventCount"
542
- },
543
- "firstEventAt": {
544
- "column": "firstEventAt"
545
- },
546
- "firstEventSeq": {
547
- "column": "firstEventSeq"
548
- },
549
- "fromAgent": {
550
- "column": "fromAgent"
543
+ "createdAtMs": {
544
+ "column": "createdAtMs"
551
545
  },
552
546
  "id": {
553
547
  "column": "id"
554
548
  },
555
- "kind": {
556
- "column": "kind"
557
- },
558
- "lastEventAt": {
559
- "column": "lastEventAt"
549
+ "question": {
550
+ "column": "question"
560
551
  },
561
- "lastEventSeq": {
562
- "column": "lastEventSeq"
552
+ "questionHash": {
553
+ "column": "questionHash"
563
554
  },
564
- "toAgent": {
565
- "column": "toAgent"
555
+ "response": {
556
+ "column": "response"
566
557
  },
567
- "totalUsd": {
568
- "column": "totalUsd"
558
+ "sourceRequestId": {
559
+ "column": "sourceRequestId"
569
560
  },
570
561
  "updatedAt": {
571
562
  "column": "updatedAt"
563
+ },
564
+ "uses": {
565
+ "column": "uses"
572
566
  }
573
567
  },
574
568
  "namespaceId": "public",
575
- "table": "agentTrustEdge"
569
+ "table": "agentQAPair"
576
570
  }
577
571
  },
578
- "AgentWallet": {
572
+ "AgentRequest": {
579
573
  "fields": {
580
- "active": {
581
- "nullable": false,
582
- "type": {
583
- "codecId": "pg/bool@1",
584
- "kind": "scalar"
585
- }
586
- },
587
- "address": {
588
- "nullable": false,
589
- "type": {
590
- "codecId": "pg/text@1",
591
- "kind": "scalar"
592
- }
593
- },
594
574
  "agentId": {
595
575
  "nullable": true,
596
576
  "type": {
@@ -598,92 +578,92 @@
598
578
  "kind": "scalar"
599
579
  }
600
580
  },
601
- "allowedKinds": {
602
- "nullable": true,
581
+ "createdAt": {
582
+ "nullable": false,
603
583
  "type": {
604
- "codecId": "pg/json@1",
584
+ "codecId": "pg/timestamptz-string@1",
605
585
  "kind": "scalar"
606
586
  }
607
587
  },
608
- "approvalAboveUsd": {
609
- "nullable": true,
588
+ "createdAtMs": {
589
+ "nullable": false,
610
590
  "type": {
611
- "codecId": "pg/numeric@1",
591
+ "codecId": "pg/int8@1",
612
592
  "kind": "scalar"
613
593
  }
614
594
  },
615
- "createdAt": {
595
+ "expiresAtMs": {
616
596
  "nullable": false,
617
597
  "type": {
618
- "codecId": "pg/timestamptz-string@1",
598
+ "codecId": "pg/int8@1",
619
599
  "kind": "scalar"
620
600
  }
621
601
  },
622
- "id": {
602
+ "fingerprint": {
623
603
  "nullable": false,
624
604
  "type": {
625
- "codecId": "pg/text@1",
605
+ "codecId": "pg/json@1",
626
606
  "kind": "scalar"
627
607
  }
628
608
  },
629
- "kind": {
609
+ "fpHash": {
630
610
  "nullable": false,
631
611
  "type": {
632
612
  "codecId": "pg/text@1",
633
613
  "kind": "scalar"
634
614
  }
635
615
  },
636
- "label": {
616
+ "id": {
637
617
  "nullable": false,
638
618
  "type": {
639
619
  "codecId": "pg/text@1",
640
620
  "kind": "scalar"
641
621
  }
642
622
  },
643
- "maxAmountPerHour": {
623
+ "idempotencyKey": {
644
624
  "nullable": true,
645
625
  "type": {
646
- "codecId": "pg/numeric@1",
626
+ "codecId": "pg/text@1",
647
627
  "kind": "scalar"
648
628
  }
649
629
  },
650
- "maxTxPerHour": {
630
+ "kind": {
651
631
  "nullable": true,
652
632
  "type": {
653
- "codecId": "pg/int4@1",
633
+ "codecId": "pg/text@1",
654
634
  "kind": "scalar"
655
635
  }
656
636
  },
657
637
  "payload": {
658
- "nullable": false,
638
+ "nullable": true,
659
639
  "type": {
660
640
  "codecId": "pg/json@1",
661
641
  "kind": "scalar"
662
642
  }
663
643
  },
664
- "registeredBy": {
665
- "nullable": false,
644
+ "respondedAtMs": {
645
+ "nullable": true,
666
646
  "type": {
667
- "codecId": "pg/text@1",
647
+ "codecId": "pg/int8@1",
668
648
  "kind": "scalar"
669
649
  }
670
650
  },
671
- "suspended": {
672
- "nullable": false,
651
+ "response": {
652
+ "nullable": true,
673
653
  "type": {
674
- "codecId": "pg/bool@1",
654
+ "codecId": "pg/json@1",
675
655
  "kind": "scalar"
676
656
  }
677
657
  },
678
- "suspendedAt": {
679
- "nullable": true,
658
+ "spamFlag": {
659
+ "nullable": false,
680
660
  "type": {
681
- "codecId": "pg/int8@1",
661
+ "codecId": "pg/bool@1",
682
662
  "kind": "scalar"
683
663
  }
684
664
  },
685
- "suspendedBy": {
686
- "nullable": true,
665
+ "state": {
666
+ "nullable": false,
687
667
  "type": {
688
668
  "codecId": "pg/text@1",
689
669
  "kind": "scalar"
@@ -696,10 +676,10 @@
696
676
  "kind": "scalar"
697
677
  }
698
678
  },
699
- "venueId": {
700
- "nullable": true,
679
+ "verified": {
680
+ "nullable": false,
701
681
  "type": {
702
- "codecId": "pg/text@1",
682
+ "codecId": "pg/bool@1",
703
683
  "kind": "scalar"
704
684
  }
705
685
  }
@@ -707,99 +687,107 @@
707
687
  "relations": {},
708
688
  "storage": {
709
689
  "fields": {
710
- "active": {
711
- "column": "active"
712
- },
713
- "address": {
714
- "column": "address"
715
- },
716
690
  "agentId": {
717
691
  "column": "agentId"
718
692
  },
719
- "allowedKinds": {
720
- "column": "allowedKinds"
721
- },
722
- "approvalAboveUsd": {
723
- "column": "approvalAboveUsd"
724
- },
725
693
  "createdAt": {
726
694
  "column": "createdAt"
727
695
  },
696
+ "createdAtMs": {
697
+ "column": "createdAtMs"
698
+ },
699
+ "expiresAtMs": {
700
+ "column": "expiresAtMs"
701
+ },
702
+ "fingerprint": {
703
+ "column": "fingerprint"
704
+ },
705
+ "fpHash": {
706
+ "column": "fpHash"
707
+ },
728
708
  "id": {
729
709
  "column": "id"
730
710
  },
711
+ "idempotencyKey": {
712
+ "column": "idempotencyKey"
713
+ },
731
714
  "kind": {
732
715
  "column": "kind"
733
716
  },
734
- "label": {
735
- "column": "label"
736
- },
737
- "maxAmountPerHour": {
738
- "column": "maxAmountPerHour"
739
- },
740
- "maxTxPerHour": {
741
- "column": "maxTxPerHour"
742
- },
743
717
  "payload": {
744
718
  "column": "payload"
745
719
  },
746
- "registeredBy": {
747
- "column": "registeredBy"
720
+ "respondedAtMs": {
721
+ "column": "respondedAtMs"
748
722
  },
749
- "suspended": {
750
- "column": "suspended"
723
+ "response": {
724
+ "column": "response"
751
725
  },
752
- "suspendedAt": {
753
- "column": "suspendedAt"
726
+ "spamFlag": {
727
+ "column": "spamFlag"
754
728
  },
755
- "suspendedBy": {
756
- "column": "suspendedBy"
729
+ "state": {
730
+ "column": "state"
757
731
  },
758
732
  "updatedAt": {
759
733
  "column": "updatedAt"
760
734
  },
761
- "venueId": {
762
- "column": "venueId"
735
+ "verified": {
736
+ "column": "verified"
763
737
  }
764
738
  },
765
739
  "namespaceId": "public",
766
- "table": "agentWallet"
740
+ "table": "agentRequest"
767
741
  }
768
742
  },
769
- "ArchiveCursor": {
743
+ "AgentSurvey": {
770
744
  "fields": {
771
- "id": {
745
+ "active": {
772
746
  "nullable": false,
773
747
  "type": {
774
- "codecId": "pg/text@1",
748
+ "codecId": "pg/bool@1",
775
749
  "kind": "scalar"
776
750
  }
777
751
  },
778
- "lastMessageId": {
752
+ "closesAtMs": {
779
753
  "nullable": true,
780
754
  "type": {
781
755
  "codecId": "pg/int8@1",
782
756
  "kind": "scalar"
783
757
  }
784
758
  },
785
- "note": {
786
- "nullable": true,
759
+ "createdAt": {
760
+ "nullable": false,
787
761
  "type": {
788
- "codecId": "pg/text@1",
762
+ "codecId": "pg/timestamptz-string@1",
789
763
  "kind": "scalar"
790
764
  }
791
765
  },
792
- "stream": {
766
+ "createdAtMs": {
767
+ "nullable": false,
768
+ "type": {
769
+ "codecId": "pg/int8@1",
770
+ "kind": "scalar"
771
+ }
772
+ },
773
+ "id": {
793
774
  "nullable": false,
794
775
  "type": {
795
776
  "codecId": "pg/text@1",
796
777
  "kind": "scalar"
797
778
  }
798
779
  },
799
- "throughAt": {
780
+ "questions": {
800
781
  "nullable": false,
801
782
  "type": {
802
- "codecId": "pg/int8@1",
783
+ "codecId": "pg/json@1",
784
+ "kind": "scalar"
785
+ }
786
+ },
787
+ "title": {
788
+ "nullable": false,
789
+ "type": {
790
+ "codecId": "pg/text@1",
803
791
  "kind": "scalar"
804
792
  }
805
793
  },
@@ -814,42 +802,441 @@
814
802
  "relations": {},
815
803
  "storage": {
816
804
  "fields": {
817
- "id": {
818
- "column": "id"
805
+ "active": {
806
+ "column": "active"
819
807
  },
820
- "lastMessageId": {
821
- "column": "lastMessageId"
808
+ "closesAtMs": {
809
+ "column": "closesAtMs"
822
810
  },
823
- "note": {
824
- "column": "note"
811
+ "createdAt": {
812
+ "column": "createdAt"
825
813
  },
826
- "stream": {
827
- "column": "stream"
814
+ "createdAtMs": {
815
+ "column": "createdAtMs"
828
816
  },
829
- "throughAt": {
830
- "column": "throughAt"
817
+ "id": {
818
+ "column": "id"
819
+ },
820
+ "questions": {
821
+ "column": "questions"
822
+ },
823
+ "title": {
824
+ "column": "title"
831
825
  },
832
826
  "updatedAt": {
833
827
  "column": "updatedAt"
834
828
  }
835
829
  },
836
830
  "namespaceId": "public",
837
- "table": "archiveCursor"
831
+ "table": "agentSurvey"
838
832
  }
839
833
  },
840
- "BoardCard": {
834
+ "AgentTrustEdge": {
841
835
  "fields": {
842
- "bountyId": {
836
+ "createdAt": {
843
837
  "nullable": false,
844
838
  "type": {
845
- "codecId": "pg/text@1",
839
+ "codecId": "pg/timestamptz-string@1",
846
840
  "kind": "scalar"
847
841
  }
848
842
  },
849
- "budgetUsdc": {
850
- "nullable": true,
843
+ "eventCount": {
844
+ "nullable": false,
851
845
  "type": {
852
- "codecId": "pg/numeric@1",
846
+ "codecId": "pg/int4@1",
847
+ "kind": "scalar"
848
+ }
849
+ },
850
+ "firstEventAt": {
851
+ "nullable": true,
852
+ "type": {
853
+ "codecId": "pg/text@1",
854
+ "kind": "scalar"
855
+ }
856
+ },
857
+ "firstEventSeq": {
858
+ "nullable": true,
859
+ "type": {
860
+ "codecId": "pg/int8@1",
861
+ "kind": "scalar"
862
+ }
863
+ },
864
+ "fromAgent": {
865
+ "nullable": false,
866
+ "type": {
867
+ "codecId": "pg/text@1",
868
+ "kind": "scalar"
869
+ }
870
+ },
871
+ "id": {
872
+ "nullable": false,
873
+ "type": {
874
+ "codecId": "pg/text@1",
875
+ "kind": "scalar"
876
+ }
877
+ },
878
+ "kind": {
879
+ "nullable": false,
880
+ "type": {
881
+ "codecId": "pg/text@1",
882
+ "kind": "scalar"
883
+ }
884
+ },
885
+ "lastEventAt": {
886
+ "nullable": false,
887
+ "type": {
888
+ "codecId": "pg/text@1",
889
+ "kind": "scalar"
890
+ }
891
+ },
892
+ "lastEventSeq": {
893
+ "nullable": false,
894
+ "type": {
895
+ "codecId": "pg/int8@1",
896
+ "kind": "scalar"
897
+ }
898
+ },
899
+ "toAgent": {
900
+ "nullable": false,
901
+ "type": {
902
+ "codecId": "pg/text@1",
903
+ "kind": "scalar"
904
+ }
905
+ },
906
+ "totalUsd": {
907
+ "nullable": false,
908
+ "type": {
909
+ "codecId": "pg/numeric@1",
910
+ "kind": "scalar"
911
+ }
912
+ },
913
+ "updatedAt": {
914
+ "nullable": false,
915
+ "type": {
916
+ "codecId": "pg/timestamptz-string@1",
917
+ "kind": "scalar"
918
+ }
919
+ }
920
+ },
921
+ "relations": {},
922
+ "storage": {
923
+ "fields": {
924
+ "createdAt": {
925
+ "column": "createdAt"
926
+ },
927
+ "eventCount": {
928
+ "column": "eventCount"
929
+ },
930
+ "firstEventAt": {
931
+ "column": "firstEventAt"
932
+ },
933
+ "firstEventSeq": {
934
+ "column": "firstEventSeq"
935
+ },
936
+ "fromAgent": {
937
+ "column": "fromAgent"
938
+ },
939
+ "id": {
940
+ "column": "id"
941
+ },
942
+ "kind": {
943
+ "column": "kind"
944
+ },
945
+ "lastEventAt": {
946
+ "column": "lastEventAt"
947
+ },
948
+ "lastEventSeq": {
949
+ "column": "lastEventSeq"
950
+ },
951
+ "toAgent": {
952
+ "column": "toAgent"
953
+ },
954
+ "totalUsd": {
955
+ "column": "totalUsd"
956
+ },
957
+ "updatedAt": {
958
+ "column": "updatedAt"
959
+ }
960
+ },
961
+ "namespaceId": "public",
962
+ "table": "agentTrustEdge"
963
+ }
964
+ },
965
+ "AgentWallet": {
966
+ "fields": {
967
+ "active": {
968
+ "nullable": false,
969
+ "type": {
970
+ "codecId": "pg/bool@1",
971
+ "kind": "scalar"
972
+ }
973
+ },
974
+ "address": {
975
+ "nullable": false,
976
+ "type": {
977
+ "codecId": "pg/text@1",
978
+ "kind": "scalar"
979
+ }
980
+ },
981
+ "agentId": {
982
+ "nullable": true,
983
+ "type": {
984
+ "codecId": "pg/text@1",
985
+ "kind": "scalar"
986
+ }
987
+ },
988
+ "allowedKinds": {
989
+ "nullable": true,
990
+ "type": {
991
+ "codecId": "pg/json@1",
992
+ "kind": "scalar"
993
+ }
994
+ },
995
+ "approvalAboveUsd": {
996
+ "nullable": true,
997
+ "type": {
998
+ "codecId": "pg/numeric@1",
999
+ "kind": "scalar"
1000
+ }
1001
+ },
1002
+ "createdAt": {
1003
+ "nullable": false,
1004
+ "type": {
1005
+ "codecId": "pg/timestamptz-string@1",
1006
+ "kind": "scalar"
1007
+ }
1008
+ },
1009
+ "id": {
1010
+ "nullable": false,
1011
+ "type": {
1012
+ "codecId": "pg/text@1",
1013
+ "kind": "scalar"
1014
+ }
1015
+ },
1016
+ "kind": {
1017
+ "nullable": false,
1018
+ "type": {
1019
+ "codecId": "pg/text@1",
1020
+ "kind": "scalar"
1021
+ }
1022
+ },
1023
+ "label": {
1024
+ "nullable": false,
1025
+ "type": {
1026
+ "codecId": "pg/text@1",
1027
+ "kind": "scalar"
1028
+ }
1029
+ },
1030
+ "maxAmountPerHour": {
1031
+ "nullable": true,
1032
+ "type": {
1033
+ "codecId": "pg/numeric@1",
1034
+ "kind": "scalar"
1035
+ }
1036
+ },
1037
+ "maxTxPerHour": {
1038
+ "nullable": true,
1039
+ "type": {
1040
+ "codecId": "pg/int4@1",
1041
+ "kind": "scalar"
1042
+ }
1043
+ },
1044
+ "payload": {
1045
+ "nullable": false,
1046
+ "type": {
1047
+ "codecId": "pg/json@1",
1048
+ "kind": "scalar"
1049
+ }
1050
+ },
1051
+ "registeredBy": {
1052
+ "nullable": false,
1053
+ "type": {
1054
+ "codecId": "pg/text@1",
1055
+ "kind": "scalar"
1056
+ }
1057
+ },
1058
+ "suspended": {
1059
+ "nullable": false,
1060
+ "type": {
1061
+ "codecId": "pg/bool@1",
1062
+ "kind": "scalar"
1063
+ }
1064
+ },
1065
+ "suspendedAt": {
1066
+ "nullable": true,
1067
+ "type": {
1068
+ "codecId": "pg/int8@1",
1069
+ "kind": "scalar"
1070
+ }
1071
+ },
1072
+ "suspendedBy": {
1073
+ "nullable": true,
1074
+ "type": {
1075
+ "codecId": "pg/text@1",
1076
+ "kind": "scalar"
1077
+ }
1078
+ },
1079
+ "updatedAt": {
1080
+ "nullable": false,
1081
+ "type": {
1082
+ "codecId": "pg/timestamptz-string@1",
1083
+ "kind": "scalar"
1084
+ }
1085
+ },
1086
+ "venueId": {
1087
+ "nullable": true,
1088
+ "type": {
1089
+ "codecId": "pg/text@1",
1090
+ "kind": "scalar"
1091
+ }
1092
+ }
1093
+ },
1094
+ "relations": {},
1095
+ "storage": {
1096
+ "fields": {
1097
+ "active": {
1098
+ "column": "active"
1099
+ },
1100
+ "address": {
1101
+ "column": "address"
1102
+ },
1103
+ "agentId": {
1104
+ "column": "agentId"
1105
+ },
1106
+ "allowedKinds": {
1107
+ "column": "allowedKinds"
1108
+ },
1109
+ "approvalAboveUsd": {
1110
+ "column": "approvalAboveUsd"
1111
+ },
1112
+ "createdAt": {
1113
+ "column": "createdAt"
1114
+ },
1115
+ "id": {
1116
+ "column": "id"
1117
+ },
1118
+ "kind": {
1119
+ "column": "kind"
1120
+ },
1121
+ "label": {
1122
+ "column": "label"
1123
+ },
1124
+ "maxAmountPerHour": {
1125
+ "column": "maxAmountPerHour"
1126
+ },
1127
+ "maxTxPerHour": {
1128
+ "column": "maxTxPerHour"
1129
+ },
1130
+ "payload": {
1131
+ "column": "payload"
1132
+ },
1133
+ "registeredBy": {
1134
+ "column": "registeredBy"
1135
+ },
1136
+ "suspended": {
1137
+ "column": "suspended"
1138
+ },
1139
+ "suspendedAt": {
1140
+ "column": "suspendedAt"
1141
+ },
1142
+ "suspendedBy": {
1143
+ "column": "suspendedBy"
1144
+ },
1145
+ "updatedAt": {
1146
+ "column": "updatedAt"
1147
+ },
1148
+ "venueId": {
1149
+ "column": "venueId"
1150
+ }
1151
+ },
1152
+ "namespaceId": "public",
1153
+ "table": "agentWallet"
1154
+ }
1155
+ },
1156
+ "ArchiveCursor": {
1157
+ "fields": {
1158
+ "id": {
1159
+ "nullable": false,
1160
+ "type": {
1161
+ "codecId": "pg/text@1",
1162
+ "kind": "scalar"
1163
+ }
1164
+ },
1165
+ "lastMessageId": {
1166
+ "nullable": true,
1167
+ "type": {
1168
+ "codecId": "pg/int8@1",
1169
+ "kind": "scalar"
1170
+ }
1171
+ },
1172
+ "note": {
1173
+ "nullable": true,
1174
+ "type": {
1175
+ "codecId": "pg/text@1",
1176
+ "kind": "scalar"
1177
+ }
1178
+ },
1179
+ "stream": {
1180
+ "nullable": false,
1181
+ "type": {
1182
+ "codecId": "pg/text@1",
1183
+ "kind": "scalar"
1184
+ }
1185
+ },
1186
+ "throughAt": {
1187
+ "nullable": false,
1188
+ "type": {
1189
+ "codecId": "pg/int8@1",
1190
+ "kind": "scalar"
1191
+ }
1192
+ },
1193
+ "updatedAt": {
1194
+ "nullable": false,
1195
+ "type": {
1196
+ "codecId": "pg/timestamptz-string@1",
1197
+ "kind": "scalar"
1198
+ }
1199
+ }
1200
+ },
1201
+ "relations": {},
1202
+ "storage": {
1203
+ "fields": {
1204
+ "id": {
1205
+ "column": "id"
1206
+ },
1207
+ "lastMessageId": {
1208
+ "column": "lastMessageId"
1209
+ },
1210
+ "note": {
1211
+ "column": "note"
1212
+ },
1213
+ "stream": {
1214
+ "column": "stream"
1215
+ },
1216
+ "throughAt": {
1217
+ "column": "throughAt"
1218
+ },
1219
+ "updatedAt": {
1220
+ "column": "updatedAt"
1221
+ }
1222
+ },
1223
+ "namespaceId": "public",
1224
+ "table": "archiveCursor"
1225
+ }
1226
+ },
1227
+ "BoardCard": {
1228
+ "fields": {
1229
+ "bountyId": {
1230
+ "nullable": false,
1231
+ "type": {
1232
+ "codecId": "pg/text@1",
1233
+ "kind": "scalar"
1234
+ }
1235
+ },
1236
+ "budgetUsdc": {
1237
+ "nullable": true,
1238
+ "type": {
1239
+ "codecId": "pg/numeric@1",
853
1240
  "kind": "scalar"
854
1241
  }
855
1242
  },
@@ -3576,35 +3963,156 @@
3576
3963
  "kind": "scalar"
3577
3964
  }
3578
3965
  },
3579
- "id": {
3580
- "nullable": false,
3966
+ "id": {
3967
+ "nullable": false,
3968
+ "type": {
3969
+ "codecId": "pg/text@1",
3970
+ "kind": "scalar"
3971
+ }
3972
+ },
3973
+ "payload": {
3974
+ "nullable": false,
3975
+ "type": {
3976
+ "codecId": "pg/json@1",
3977
+ "kind": "scalar"
3978
+ }
3979
+ },
3980
+ "paymentId": {
3981
+ "nullable": false,
3982
+ "type": {
3983
+ "codecId": "pg/text@1",
3984
+ "kind": "scalar"
3985
+ }
3986
+ },
3987
+ "reason": {
3988
+ "nullable": true,
3989
+ "type": {
3990
+ "codecId": "pg/text@1",
3991
+ "kind": "scalar"
3992
+ }
3993
+ },
3994
+ "to": {
3995
+ "nullable": false,
3996
+ "type": {
3997
+ "codecId": "pg/text@1",
3998
+ "kind": "scalar"
3999
+ }
4000
+ }
4001
+ },
4002
+ "relations": {},
4003
+ "storage": {
4004
+ "fields": {
4005
+ "actor": {
4006
+ "column": "actor"
4007
+ },
4008
+ "atMs": {
4009
+ "column": "atMs"
4010
+ },
4011
+ "attemptId": {
4012
+ "column": "attemptId"
4013
+ },
4014
+ "createdAt": {
4015
+ "column": "createdAt"
4016
+ },
4017
+ "entity": {
4018
+ "column": "entity"
4019
+ },
4020
+ "from": {
4021
+ "column": "from"
4022
+ },
4023
+ "id": {
4024
+ "column": "id"
4025
+ },
4026
+ "payload": {
4027
+ "column": "payload"
4028
+ },
4029
+ "paymentId": {
4030
+ "column": "paymentId"
4031
+ },
4032
+ "reason": {
4033
+ "column": "reason"
4034
+ },
4035
+ "to": {
4036
+ "column": "to"
4037
+ }
4038
+ },
4039
+ "namespaceId": "public",
4040
+ "table": "paymentEvent"
4041
+ }
4042
+ },
4043
+ "PaymentException": {
4044
+ "fields": {
4045
+ "attemptId": {
4046
+ "nullable": true,
4047
+ "type": {
4048
+ "codecId": "pg/text@1",
4049
+ "kind": "scalar"
4050
+ }
4051
+ },
4052
+ "createdAt": {
4053
+ "nullable": false,
4054
+ "type": {
4055
+ "codecId": "pg/timestamptz-string@1",
4056
+ "kind": "scalar"
4057
+ }
4058
+ },
4059
+ "createdAtMs": {
4060
+ "nullable": false,
4061
+ "type": {
4062
+ "codecId": "pg/int8@1",
4063
+ "kind": "scalar"
4064
+ }
4065
+ },
4066
+ "details": {
4067
+ "nullable": true,
4068
+ "type": {
4069
+ "codecId": "pg/json@1",
4070
+ "kind": "scalar"
4071
+ }
4072
+ },
4073
+ "id": {
4074
+ "nullable": false,
4075
+ "type": {
4076
+ "codecId": "pg/text@1",
4077
+ "kind": "scalar"
4078
+ }
4079
+ },
4080
+ "kind": {
4081
+ "nullable": false,
4082
+ "type": {
4083
+ "codecId": "pg/text@1",
4084
+ "kind": "scalar"
4085
+ }
4086
+ },
4087
+ "paymentId": {
4088
+ "nullable": true,
3581
4089
  "type": {
3582
4090
  "codecId": "pg/text@1",
3583
4091
  "kind": "scalar"
3584
4092
  }
3585
4093
  },
3586
- "payload": {
3587
- "nullable": false,
4094
+ "resolutionNote": {
4095
+ "nullable": true,
3588
4096
  "type": {
3589
- "codecId": "pg/json@1",
4097
+ "codecId": "pg/text@1",
3590
4098
  "kind": "scalar"
3591
4099
  }
3592
4100
  },
3593
- "paymentId": {
3594
- "nullable": false,
4101
+ "resolvedAtMs": {
4102
+ "nullable": true,
3595
4103
  "type": {
3596
- "codecId": "pg/text@1",
4104
+ "codecId": "pg/int8@1",
3597
4105
  "kind": "scalar"
3598
4106
  }
3599
4107
  },
3600
- "reason": {
3601
- "nullable": true,
4108
+ "severity": {
4109
+ "nullable": false,
3602
4110
  "type": {
3603
4111
  "codecId": "pg/text@1",
3604
4112
  "kind": "scalar"
3605
4113
  }
3606
4114
  },
3607
- "to": {
4115
+ "status": {
3608
4116
  "nullable": false,
3609
4117
  "type": {
3610
4118
  "codecId": "pg/text@1",
@@ -3615,42 +4123,42 @@
3615
4123
  "relations": {},
3616
4124
  "storage": {
3617
4125
  "fields": {
3618
- "actor": {
3619
- "column": "actor"
3620
- },
3621
- "atMs": {
3622
- "column": "atMs"
3623
- },
3624
4126
  "attemptId": {
3625
4127
  "column": "attemptId"
3626
4128
  },
3627
4129
  "createdAt": {
3628
4130
  "column": "createdAt"
3629
4131
  },
3630
- "entity": {
3631
- "column": "entity"
4132
+ "createdAtMs": {
4133
+ "column": "createdAtMs"
3632
4134
  },
3633
- "from": {
3634
- "column": "from"
4135
+ "details": {
4136
+ "column": "details"
3635
4137
  },
3636
4138
  "id": {
3637
4139
  "column": "id"
3638
4140
  },
3639
- "payload": {
3640
- "column": "payload"
4141
+ "kind": {
4142
+ "column": "kind"
3641
4143
  },
3642
4144
  "paymentId": {
3643
4145
  "column": "paymentId"
3644
4146
  },
3645
- "reason": {
3646
- "column": "reason"
4147
+ "resolutionNote": {
4148
+ "column": "resolutionNote"
3647
4149
  },
3648
- "to": {
3649
- "column": "to"
4150
+ "resolvedAtMs": {
4151
+ "column": "resolvedAtMs"
4152
+ },
4153
+ "severity": {
4154
+ "column": "severity"
4155
+ },
4156
+ "status": {
4157
+ "column": "status"
3650
4158
  }
3651
4159
  },
3652
4160
  "namespaceId": "public",
3653
- "table": "paymentEvent"
4161
+ "table": "paymentException"
3654
4162
  }
3655
4163
  },
3656
4164
  "PaymentPrice": {
@@ -4694,21 +5202,253 @@
4694
5202
  "state": {
4695
5203
  "column": "state"
4696
5204
  },
4697
- "txHash": {
4698
- "column": "txHash"
5205
+ "txHash": {
5206
+ "column": "txHash"
5207
+ },
5208
+ "updatedAt": {
5209
+ "column": "updatedAt"
5210
+ },
5211
+ "venueId": {
5212
+ "column": "venueId"
5213
+ },
5214
+ "wallet": {
5215
+ "column": "wallet"
5216
+ }
5217
+ },
5218
+ "namespaceId": "public",
5219
+ "table": "spendEvent"
5220
+ }
5221
+ },
5222
+ "SurveyAnswer": {
5223
+ "fields": {
5224
+ "agentId": {
5225
+ "nullable": true,
5226
+ "type": {
5227
+ "codecId": "pg/text@1",
5228
+ "kind": "scalar"
5229
+ }
5230
+ },
5231
+ "answers": {
5232
+ "nullable": false,
5233
+ "type": {
5234
+ "codecId": "pg/json@1",
5235
+ "kind": "scalar"
5236
+ }
5237
+ },
5238
+ "createdAt": {
5239
+ "nullable": false,
5240
+ "type": {
5241
+ "codecId": "pg/timestamptz-string@1",
5242
+ "kind": "scalar"
5243
+ }
5244
+ },
5245
+ "createdAtMs": {
5246
+ "nullable": false,
5247
+ "type": {
5248
+ "codecId": "pg/int8@1",
5249
+ "kind": "scalar"
5250
+ }
5251
+ },
5252
+ "fpHash": {
5253
+ "nullable": true,
5254
+ "type": {
5255
+ "codecId": "pg/text@1",
5256
+ "kind": "scalar"
5257
+ }
5258
+ },
5259
+ "id": {
5260
+ "nullable": false,
5261
+ "type": {
5262
+ "codecId": "pg/text@1",
5263
+ "kind": "scalar"
5264
+ }
5265
+ },
5266
+ "rated": {
5267
+ "nullable": false,
5268
+ "type": {
5269
+ "codecId": "pg/bool@1",
5270
+ "kind": "scalar"
5271
+ }
5272
+ },
5273
+ "surveyId": {
5274
+ "nullable": false,
5275
+ "type": {
5276
+ "codecId": "pg/text@1",
5277
+ "kind": "scalar"
5278
+ }
5279
+ }
5280
+ },
5281
+ "relations": {},
5282
+ "storage": {
5283
+ "fields": {
5284
+ "agentId": {
5285
+ "column": "agentId"
5286
+ },
5287
+ "answers": {
5288
+ "column": "answers"
5289
+ },
5290
+ "createdAt": {
5291
+ "column": "createdAt"
5292
+ },
5293
+ "createdAtMs": {
5294
+ "column": "createdAtMs"
5295
+ },
5296
+ "fpHash": {
5297
+ "column": "fpHash"
5298
+ },
5299
+ "id": {
5300
+ "column": "id"
5301
+ },
5302
+ "rated": {
5303
+ "column": "rated"
5304
+ },
5305
+ "surveyId": {
5306
+ "column": "surveyId"
5307
+ }
5308
+ },
5309
+ "namespaceId": "public",
5310
+ "table": "surveyAnswer"
5311
+ }
5312
+ },
5313
+ "UsageRecord": {
5314
+ "fields": {
5315
+ "agentId": {
5316
+ "nullable": true,
5317
+ "type": {
5318
+ "codecId": "pg/text@1",
5319
+ "kind": "scalar"
5320
+ }
5321
+ },
5322
+ "amount": {
5323
+ "nullable": false,
5324
+ "type": {
5325
+ "codecId": "pg/numeric@1",
5326
+ "kind": "scalar"
5327
+ }
5328
+ },
5329
+ "createdAt": {
5330
+ "nullable": false,
5331
+ "type": {
5332
+ "codecId": "pg/timestamptz-string@1",
5333
+ "kind": "scalar"
5334
+ }
5335
+ },
5336
+ "createdAtMs": {
5337
+ "nullable": false,
5338
+ "type": {
5339
+ "codecId": "pg/int8@1",
5340
+ "kind": "scalar"
5341
+ }
5342
+ },
5343
+ "currency": {
5344
+ "nullable": false,
5345
+ "type": {
5346
+ "codecId": "pg/text@1",
5347
+ "kind": "scalar"
5348
+ }
5349
+ },
5350
+ "id": {
5351
+ "nullable": false,
5352
+ "type": {
5353
+ "codecId": "pg/text@1",
5354
+ "kind": "scalar"
5355
+ }
5356
+ },
5357
+ "network": {
5358
+ "nullable": false,
5359
+ "type": {
5360
+ "codecId": "pg/text@1",
5361
+ "kind": "scalar"
5362
+ }
5363
+ },
5364
+ "payerAddress": {
5365
+ "nullable": false,
5366
+ "type": {
5367
+ "codecId": "pg/text@1",
5368
+ "kind": "scalar"
5369
+ }
5370
+ },
5371
+ "payload": {
5372
+ "nullable": false,
5373
+ "type": {
5374
+ "codecId": "pg/json@1",
5375
+ "kind": "scalar"
5376
+ }
5377
+ },
5378
+ "paymentId": {
5379
+ "nullable": false,
5380
+ "type": {
5381
+ "codecId": "pg/text@1",
5382
+ "kind": "scalar"
5383
+ }
5384
+ },
5385
+ "requestId": {
5386
+ "nullable": false,
5387
+ "type": {
5388
+ "codecId": "pg/text@1",
5389
+ "kind": "scalar"
5390
+ }
5391
+ },
5392
+ "resource": {
5393
+ "nullable": false,
5394
+ "type": {
5395
+ "codecId": "pg/text@1",
5396
+ "kind": "scalar"
5397
+ }
5398
+ },
5399
+ "txHash": {
5400
+ "nullable": true,
5401
+ "type": {
5402
+ "codecId": "pg/text@1",
5403
+ "kind": "scalar"
5404
+ }
5405
+ }
5406
+ },
5407
+ "relations": {},
5408
+ "storage": {
5409
+ "fields": {
5410
+ "agentId": {
5411
+ "column": "agentId"
5412
+ },
5413
+ "amount": {
5414
+ "column": "amount"
5415
+ },
5416
+ "createdAt": {
5417
+ "column": "createdAt"
5418
+ },
5419
+ "createdAtMs": {
5420
+ "column": "createdAtMs"
5421
+ },
5422
+ "currency": {
5423
+ "column": "currency"
5424
+ },
5425
+ "id": {
5426
+ "column": "id"
5427
+ },
5428
+ "network": {
5429
+ "column": "network"
5430
+ },
5431
+ "payerAddress": {
5432
+ "column": "payerAddress"
5433
+ },
5434
+ "payload": {
5435
+ "column": "payload"
5436
+ },
5437
+ "paymentId": {
5438
+ "column": "paymentId"
4699
5439
  },
4700
- "updatedAt": {
4701
- "column": "updatedAt"
5440
+ "requestId": {
5441
+ "column": "requestId"
4702
5442
  },
4703
- "venueId": {
4704
- "column": "venueId"
5443
+ "resource": {
5444
+ "column": "resource"
4705
5445
  },
4706
- "wallet": {
4707
- "column": "wallet"
5446
+ "txHash": {
5447
+ "column": "txHash"
4708
5448
  }
4709
5449
  },
4710
5450
  "namespaceId": "public",
4711
- "table": "spendEvent"
5451
+ "table": "usageRecord"
4712
5452
  }
4713
5453
  },
4714
5454
  "VenueJob": {
@@ -4973,8 +5713,275 @@
4973
5713
  },
4974
5714
  "uniques": []
4975
5715
  },
4976
- "a2AMessage": {
5716
+ "a2AMessage": {
5717
+ "columns": {
5718
+ "createdAt": {
5719
+ "codecId": "pg/timestamptz-string@1",
5720
+ "default": {
5721
+ "expression": "now()",
5722
+ "kind": "function"
5723
+ },
5724
+ "nativeType": "timestamptz",
5725
+ "nullable": false
5726
+ },
5727
+ "fromAgentId": {
5728
+ "codecId": "pg/text@1",
5729
+ "nativeType": "text",
5730
+ "nullable": true
5731
+ },
5732
+ "id": {
5733
+ "codecId": "pg/text@1",
5734
+ "nativeType": "text",
5735
+ "nullable": false
5736
+ },
5737
+ "partsJson": {
5738
+ "codecId": "pg/json@1",
5739
+ "nativeType": "json",
5740
+ "nullable": false
5741
+ },
5742
+ "readAt": {
5743
+ "codecId": "pg/int8@1",
5744
+ "nativeType": "int8",
5745
+ "nullable": true
5746
+ },
5747
+ "role": {
5748
+ "codecId": "pg/text@1",
5749
+ "nativeType": "text",
5750
+ "nullable": false
5751
+ },
5752
+ "taskId": {
5753
+ "codecId": "pg/text@1",
5754
+ "nativeType": "text",
5755
+ "nullable": false
5756
+ },
5757
+ "toAgentId": {
5758
+ "codecId": "pg/text@1",
5759
+ "nativeType": "text",
5760
+ "nullable": true
5761
+ }
5762
+ },
5763
+ "foreignKeys": [],
5764
+ "indexes": [
5765
+ {
5766
+ "columns": [
5767
+ "fromAgentId"
5768
+ ],
5769
+ "name": "a2AMessage_fromAgentId_idx_f948ee59",
5770
+ "prefix": "a2AMessage_fromAgentId_idx",
5771
+ "unique": false
5772
+ },
5773
+ {
5774
+ "columns": [
5775
+ "taskId"
5776
+ ],
5777
+ "name": "a2AMessage_taskId_idx_4965c936",
5778
+ "prefix": "a2AMessage_taskId_idx",
5779
+ "unique": false
5780
+ },
5781
+ {
5782
+ "columns": [
5783
+ "toAgentId",
5784
+ "readAt"
5785
+ ],
5786
+ "name": "a2AMessage_toAgentId_readAt_idx_5be374e1",
5787
+ "prefix": "a2AMessage_toAgentId_readAt_idx",
5788
+ "unique": false
5789
+ }
5790
+ ],
5791
+ "primaryKey": {
5792
+ "columns": [
5793
+ "id"
5794
+ ]
5795
+ },
5796
+ "uniques": []
5797
+ },
5798
+ "a2ATask": {
5799
+ "columns": {
5800
+ "anchorSeq": {
5801
+ "codecId": "pg/int8@1",
5802
+ "nativeType": "int8",
5803
+ "nullable": true
5804
+ },
5805
+ "anchoredAt": {
5806
+ "codecId": "pg/int8@1",
5807
+ "nativeType": "int8",
5808
+ "nullable": true
5809
+ },
5810
+ "contextId": {
5811
+ "codecId": "pg/text@1",
5812
+ "nativeType": "text",
5813
+ "nullable": false
5814
+ },
5815
+ "createdAt": {
5816
+ "codecId": "pg/timestamptz-string@1",
5817
+ "default": {
5818
+ "expression": "now()",
5819
+ "kind": "function"
5820
+ },
5821
+ "nativeType": "timestamptz",
5822
+ "nullable": false
5823
+ },
5824
+ "id": {
5825
+ "codecId": "pg/text@1",
5826
+ "nativeType": "text",
5827
+ "nullable": false
5828
+ },
5829
+ "ownerAgentId": {
5830
+ "codecId": "pg/text@1",
5831
+ "nativeType": "text",
5832
+ "nullable": false
5833
+ },
5834
+ "payload": {
5835
+ "codecId": "pg/json@1",
5836
+ "nativeType": "json",
5837
+ "nullable": false
5838
+ },
5839
+ "status": {
5840
+ "codecId": "pg/text@1",
5841
+ "nativeType": "text",
5842
+ "nullable": false
5843
+ },
5844
+ "tenant": {
5845
+ "codecId": "pg/text@1",
5846
+ "nativeType": "text",
5847
+ "nullable": false
5848
+ },
5849
+ "updatedAt": {
5850
+ "codecId": "pg/timestamptz-string@1",
5851
+ "nativeType": "timestamptz",
5852
+ "nullable": false
5853
+ }
5854
+ },
5855
+ "foreignKeys": [],
5856
+ "indexes": [
5857
+ {
5858
+ "columns": [
5859
+ "anchoredAt"
5860
+ ],
5861
+ "name": "a2ATask_anchoredAt_idx_893527a5",
5862
+ "prefix": "a2ATask_anchoredAt_idx",
5863
+ "unique": false
5864
+ },
5865
+ {
5866
+ "columns": [
5867
+ "contextId"
5868
+ ],
5869
+ "name": "a2ATask_contextId_idx_b3ef67fd",
5870
+ "prefix": "a2ATask_contextId_idx",
5871
+ "unique": false
5872
+ },
5873
+ {
5874
+ "columns": [
5875
+ "tenant",
5876
+ "ownerAgentId"
5877
+ ],
5878
+ "name": "a2ATask_tenant_ownerAgentId_idx_2c464bde",
5879
+ "prefix": "a2ATask_tenant_ownerAgentId_idx",
5880
+ "unique": false
5881
+ }
5882
+ ],
5883
+ "primaryKey": {
5884
+ "columns": [
5885
+ "id"
5886
+ ]
5887
+ },
5888
+ "uniques": []
5889
+ },
5890
+ "agentQAPair": {
5891
+ "columns": {
5892
+ "createdAt": {
5893
+ "codecId": "pg/timestamptz-string@1",
5894
+ "default": {
5895
+ "expression": "now()",
5896
+ "kind": "function"
5897
+ },
5898
+ "nativeType": "timestamptz",
5899
+ "nullable": false
5900
+ },
5901
+ "createdAtMs": {
5902
+ "codecId": "pg/int8@1",
5903
+ "nativeType": "int8",
5904
+ "nullable": false
5905
+ },
5906
+ "id": {
5907
+ "codecId": "pg/text@1",
5908
+ "nativeType": "text",
5909
+ "nullable": false
5910
+ },
5911
+ "question": {
5912
+ "codecId": "pg/text@1",
5913
+ "nativeType": "text",
5914
+ "nullable": false
5915
+ },
5916
+ "questionHash": {
5917
+ "codecId": "pg/text@1",
5918
+ "nativeType": "text",
5919
+ "nullable": false
5920
+ },
5921
+ "response": {
5922
+ "codecId": "pg/json@1",
5923
+ "nativeType": "json",
5924
+ "nullable": false
5925
+ },
5926
+ "sourceRequestId": {
5927
+ "codecId": "pg/text@1",
5928
+ "nativeType": "text",
5929
+ "nullable": false
5930
+ },
5931
+ "updatedAt": {
5932
+ "codecId": "pg/timestamptz-string@1",
5933
+ "nativeType": "timestamptz",
5934
+ "nullable": false
5935
+ },
5936
+ "uses": {
5937
+ "codecId": "pg/int4@1",
5938
+ "default": {
5939
+ "kind": "literal",
5940
+ "value": 0
5941
+ },
5942
+ "nativeType": "int4",
5943
+ "nullable": false
5944
+ }
5945
+ },
5946
+ "foreignKeys": [],
5947
+ "indexes": [
5948
+ {
5949
+ "columns": [
5950
+ "question"
5951
+ ],
5952
+ "name": "agentQAPair_question_idx_191eccf6",
5953
+ "prefix": "agentQAPair_question_idx",
5954
+ "unique": false
5955
+ },
5956
+ {
5957
+ "columns": [
5958
+ "sourceRequestId"
5959
+ ],
5960
+ "name": "agentQAPair_sourceRequestId_idx_949a5766",
5961
+ "prefix": "agentQAPair_sourceRequestId_idx",
5962
+ "unique": false
5963
+ }
5964
+ ],
5965
+ "primaryKey": {
5966
+ "columns": [
5967
+ "id"
5968
+ ]
5969
+ },
5970
+ "uniques": [
5971
+ {
5972
+ "columns": [
5973
+ "questionHash"
5974
+ ]
5975
+ }
5976
+ ]
5977
+ },
5978
+ "agentRequest": {
4977
5979
  "columns": {
5980
+ "agentId": {
5981
+ "codecId": "pg/text@1",
5982
+ "nativeType": "text",
5983
+ "nullable": true
5984
+ },
4978
5985
  "createdAt": {
4979
5986
  "codecId": "pg/timestamptz-string@1",
4980
5987
  "default": {
@@ -4984,67 +5991,118 @@
4984
5991
  "nativeType": "timestamptz",
4985
5992
  "nullable": false
4986
5993
  },
4987
- "fromAgentId": {
5994
+ "createdAtMs": {
5995
+ "codecId": "pg/int8@1",
5996
+ "nativeType": "int8",
5997
+ "nullable": false
5998
+ },
5999
+ "expiresAtMs": {
6000
+ "codecId": "pg/int8@1",
6001
+ "nativeType": "int8",
6002
+ "nullable": false
6003
+ },
6004
+ "fingerprint": {
6005
+ "codecId": "pg/json@1",
6006
+ "nativeType": "json",
6007
+ "nullable": false
6008
+ },
6009
+ "fpHash": {
4988
6010
  "codecId": "pg/text@1",
4989
6011
  "nativeType": "text",
4990
- "nullable": true
6012
+ "nullable": false
4991
6013
  },
4992
6014
  "id": {
4993
6015
  "codecId": "pg/text@1",
4994
6016
  "nativeType": "text",
4995
6017
  "nullable": false
4996
6018
  },
4997
- "partsJson": {
6019
+ "idempotencyKey": {
6020
+ "codecId": "pg/text@1",
6021
+ "nativeType": "text",
6022
+ "nullable": true
6023
+ },
6024
+ "kind": {
6025
+ "codecId": "pg/text@1",
6026
+ "nativeType": "text",
6027
+ "nullable": true
6028
+ },
6029
+ "payload": {
4998
6030
  "codecId": "pg/json@1",
4999
6031
  "nativeType": "json",
5000
- "nullable": false
6032
+ "nullable": true
5001
6033
  },
5002
- "readAt": {
6034
+ "respondedAtMs": {
5003
6035
  "codecId": "pg/int8@1",
5004
6036
  "nativeType": "int8",
5005
6037
  "nullable": true
5006
6038
  },
5007
- "role": {
5008
- "codecId": "pg/text@1",
5009
- "nativeType": "text",
6039
+ "response": {
6040
+ "codecId": "pg/json@1",
6041
+ "nativeType": "json",
6042
+ "nullable": true
6043
+ },
6044
+ "spamFlag": {
6045
+ "codecId": "pg/bool@1",
6046
+ "default": {
6047
+ "kind": "literal",
6048
+ "value": false
6049
+ },
6050
+ "nativeType": "bool",
5010
6051
  "nullable": false
5011
6052
  },
5012
- "taskId": {
6053
+ "state": {
5013
6054
  "codecId": "pg/text@1",
5014
6055
  "nativeType": "text",
5015
6056
  "nullable": false
5016
6057
  },
5017
- "toAgentId": {
5018
- "codecId": "pg/text@1",
5019
- "nativeType": "text",
5020
- "nullable": true
6058
+ "updatedAt": {
6059
+ "codecId": "pg/timestamptz-string@1",
6060
+ "nativeType": "timestamptz",
6061
+ "nullable": false
6062
+ },
6063
+ "verified": {
6064
+ "codecId": "pg/bool@1",
6065
+ "default": {
6066
+ "kind": "literal",
6067
+ "value": false
6068
+ },
6069
+ "nativeType": "bool",
6070
+ "nullable": false
5021
6071
  }
5022
6072
  },
5023
6073
  "foreignKeys": [],
5024
6074
  "indexes": [
5025
6075
  {
5026
6076
  "columns": [
5027
- "fromAgentId"
6077
+ "agentId"
5028
6078
  ],
5029
- "name": "a2AMessage_fromAgentId_idx_f948ee59",
5030
- "prefix": "a2AMessage_fromAgentId_idx",
6079
+ "name": "agentRequest_agentId_idx_8d0ba4f0",
6080
+ "prefix": "agentRequest_agentId_idx",
5031
6081
  "unique": false
5032
6082
  },
5033
6083
  {
5034
6084
  "columns": [
5035
- "taskId"
6085
+ "expiresAtMs"
5036
6086
  ],
5037
- "name": "a2AMessage_taskId_idx_4965c936",
5038
- "prefix": "a2AMessage_taskId_idx",
6087
+ "name": "agentRequest_expiresAtMs_idx_89d46aa4",
6088
+ "prefix": "agentRequest_expiresAtMs_idx",
5039
6089
  "unique": false
5040
6090
  },
5041
6091
  {
5042
6092
  "columns": [
5043
- "toAgentId",
5044
- "readAt"
6093
+ "fpHash"
5045
6094
  ],
5046
- "name": "a2AMessage_toAgentId_readAt_idx_5be374e1",
5047
- "prefix": "a2AMessage_toAgentId_readAt_idx",
6095
+ "name": "agentRequest_fpHash_idx_7a44a30a",
6096
+ "prefix": "agentRequest_fpHash_idx",
6097
+ "unique": false
6098
+ },
6099
+ {
6100
+ "columns": [
6101
+ "state",
6102
+ "createdAt"
6103
+ ],
6104
+ "name": "agentRequest_state_createdAt_idx_f9712fdb",
6105
+ "prefix": "agentRequest_state_createdAt_idx",
5048
6106
  "unique": false
5049
6107
  }
5050
6108
  ],
@@ -5053,25 +6111,31 @@
5053
6111
  "id"
5054
6112
  ]
5055
6113
  },
5056
- "uniques": []
6114
+ "uniques": [
6115
+ {
6116
+ "columns": [
6117
+ "idempotencyKey",
6118
+ "fpHash"
6119
+ ]
6120
+ }
6121
+ ]
5057
6122
  },
5058
- "a2ATask": {
6123
+ "agentSurvey": {
5059
6124
  "columns": {
5060
- "anchorSeq": {
5061
- "codecId": "pg/int8@1",
5062
- "nativeType": "int8",
5063
- "nullable": true
6125
+ "active": {
6126
+ "codecId": "pg/bool@1",
6127
+ "default": {
6128
+ "kind": "literal",
6129
+ "value": true
6130
+ },
6131
+ "nativeType": "bool",
6132
+ "nullable": false
5064
6133
  },
5065
- "anchoredAt": {
6134
+ "closesAtMs": {
5066
6135
  "codecId": "pg/int8@1",
5067
6136
  "nativeType": "int8",
5068
6137
  "nullable": true
5069
6138
  },
5070
- "contextId": {
5071
- "codecId": "pg/text@1",
5072
- "nativeType": "text",
5073
- "nullable": false
5074
- },
5075
6139
  "createdAt": {
5076
6140
  "codecId": "pg/timestamptz-string@1",
5077
6141
  "default": {
@@ -5081,27 +6145,22 @@
5081
6145
  "nativeType": "timestamptz",
5082
6146
  "nullable": false
5083
6147
  },
5084
- "id": {
5085
- "codecId": "pg/text@1",
5086
- "nativeType": "text",
6148
+ "createdAtMs": {
6149
+ "codecId": "pg/int8@1",
6150
+ "nativeType": "int8",
5087
6151
  "nullable": false
5088
6152
  },
5089
- "ownerAgentId": {
6153
+ "id": {
5090
6154
  "codecId": "pg/text@1",
5091
6155
  "nativeType": "text",
5092
6156
  "nullable": false
5093
6157
  },
5094
- "payload": {
6158
+ "questions": {
5095
6159
  "codecId": "pg/json@1",
5096
6160
  "nativeType": "json",
5097
6161
  "nullable": false
5098
6162
  },
5099
- "status": {
5100
- "codecId": "pg/text@1",
5101
- "nativeType": "text",
5102
- "nullable": false
5103
- },
5104
- "tenant": {
6163
+ "title": {
5105
6164
  "codecId": "pg/text@1",
5106
6165
  "nativeType": "text",
5107
6166
  "nullable": false
@@ -5116,27 +6175,11 @@
5116
6175
  "indexes": [
5117
6176
  {
5118
6177
  "columns": [
5119
- "anchoredAt"
5120
- ],
5121
- "name": "a2ATask_anchoredAt_idx_893527a5",
5122
- "prefix": "a2ATask_anchoredAt_idx",
5123
- "unique": false
5124
- },
5125
- {
5126
- "columns": [
5127
- "contextId"
5128
- ],
5129
- "name": "a2ATask_contextId_idx_b3ef67fd",
5130
- "prefix": "a2ATask_contextId_idx",
5131
- "unique": false
5132
- },
5133
- {
5134
- "columns": [
5135
- "tenant",
5136
- "ownerAgentId"
6178
+ "active",
6179
+ "createdAt"
5137
6180
  ],
5138
- "name": "a2ATask_tenant_ownerAgentId_idx_2c464bde",
5139
- "prefix": "a2ATask_tenant_ownerAgentId_idx",
6181
+ "name": "agentSurvey_active_createdAt_idx_7cd57621",
6182
+ "prefix": "agentSurvey_active_createdAt_idx",
5140
6183
  "unique": false
5141
6184
  }
5142
6185
  ],
@@ -7667,26 +8710,131 @@
7667
8710
  "attemptId",
7668
8711
  "atMs"
7669
8712
  ],
7670
- "name": "paymentEvent_attemptId_atMs_idx_ea3be0a0",
7671
- "prefix": "paymentEvent_attemptId_atMs_idx",
8713
+ "name": "paymentEvent_attemptId_atMs_idx_ea3be0a0",
8714
+ "prefix": "paymentEvent_attemptId_atMs_idx",
8715
+ "unique": false
8716
+ },
8717
+ {
8718
+ "columns": [
8719
+ "entity",
8720
+ "atMs"
8721
+ ],
8722
+ "name": "paymentEvent_entity_atMs_idx_45e980a0",
8723
+ "prefix": "paymentEvent_entity_atMs_idx",
8724
+ "unique": false
8725
+ },
8726
+ {
8727
+ "columns": [
8728
+ "paymentId",
8729
+ "atMs"
8730
+ ],
8731
+ "name": "paymentEvent_paymentId_atMs_idx_d0ad8de1",
8732
+ "prefix": "paymentEvent_paymentId_atMs_idx",
8733
+ "unique": false
8734
+ }
8735
+ ],
8736
+ "primaryKey": {
8737
+ "columns": [
8738
+ "id"
8739
+ ]
8740
+ },
8741
+ "uniques": []
8742
+ },
8743
+ "paymentException": {
8744
+ "columns": {
8745
+ "attemptId": {
8746
+ "codecId": "pg/text@1",
8747
+ "nativeType": "text",
8748
+ "nullable": true
8749
+ },
8750
+ "createdAt": {
8751
+ "codecId": "pg/timestamptz-string@1",
8752
+ "default": {
8753
+ "expression": "now()",
8754
+ "kind": "function"
8755
+ },
8756
+ "nativeType": "timestamptz",
8757
+ "nullable": false
8758
+ },
8759
+ "createdAtMs": {
8760
+ "codecId": "pg/int8@1",
8761
+ "nativeType": "int8",
8762
+ "nullable": false
8763
+ },
8764
+ "details": {
8765
+ "codecId": "pg/json@1",
8766
+ "nativeType": "json",
8767
+ "nullable": true
8768
+ },
8769
+ "id": {
8770
+ "codecId": "pg/text@1",
8771
+ "nativeType": "text",
8772
+ "nullable": false
8773
+ },
8774
+ "kind": {
8775
+ "codecId": "pg/text@1",
8776
+ "nativeType": "text",
8777
+ "nullable": false
8778
+ },
8779
+ "paymentId": {
8780
+ "codecId": "pg/text@1",
8781
+ "nativeType": "text",
8782
+ "nullable": true
8783
+ },
8784
+ "resolutionNote": {
8785
+ "codecId": "pg/text@1",
8786
+ "nativeType": "text",
8787
+ "nullable": true
8788
+ },
8789
+ "resolvedAtMs": {
8790
+ "codecId": "pg/int8@1",
8791
+ "nativeType": "int8",
8792
+ "nullable": true
8793
+ },
8794
+ "severity": {
8795
+ "codecId": "pg/text@1",
8796
+ "nativeType": "text",
8797
+ "nullable": false
8798
+ },
8799
+ "status": {
8800
+ "codecId": "pg/text@1",
8801
+ "nativeType": "text",
8802
+ "nullable": false
8803
+ }
8804
+ },
8805
+ "foreignKeys": [],
8806
+ "indexes": [
8807
+ {
8808
+ "columns": [
8809
+ "attemptId"
8810
+ ],
8811
+ "name": "paymentException_attemptId_idx_94f50eb9",
8812
+ "prefix": "paymentException_attemptId_idx",
8813
+ "unique": false
8814
+ },
8815
+ {
8816
+ "columns": [
8817
+ "kind"
8818
+ ],
8819
+ "name": "paymentException_kind_idx_c9ca668f",
8820
+ "prefix": "paymentException_kind_idx",
7672
8821
  "unique": false
7673
8822
  },
7674
8823
  {
7675
8824
  "columns": [
7676
- "entity",
7677
- "atMs"
8825
+ "paymentId"
7678
8826
  ],
7679
- "name": "paymentEvent_entity_atMs_idx_45e980a0",
7680
- "prefix": "paymentEvent_entity_atMs_idx",
8827
+ "name": "paymentException_paymentId_idx_b2fe9a10",
8828
+ "prefix": "paymentException_paymentId_idx",
7681
8829
  "unique": false
7682
8830
  },
7683
8831
  {
7684
8832
  "columns": [
7685
- "paymentId",
7686
- "atMs"
8833
+ "status",
8834
+ "createdAtMs"
7687
8835
  ],
7688
- "name": "paymentEvent_paymentId_atMs_idx_d0ad8de1",
7689
- "prefix": "paymentEvent_paymentId_atMs_idx",
8836
+ "name": "paymentException_status_createdAtMs_idx_95013a06",
8837
+ "prefix": "paymentException_status_createdAtMs_idx",
7690
8838
  "unique": false
7691
8839
  }
7692
8840
  ],
@@ -8268,11 +9416,256 @@
8268
9416
  "indexes": [
8269
9417
  {
8270
9418
  "columns": [
8271
- "domain",
8272
- "createdAt"
9419
+ "domain",
9420
+ "createdAt"
9421
+ ],
9422
+ "name": "scanResult_domain_createdAt_idx_c5bd4696",
9423
+ "prefix": "scanResult_domain_createdAt_idx",
9424
+ "unique": false
9425
+ }
9426
+ ],
9427
+ "primaryKey": {
9428
+ "columns": [
9429
+ "id"
9430
+ ]
9431
+ },
9432
+ "uniques": []
9433
+ },
9434
+ "spendApproval": {
9435
+ "columns": {
9436
+ "amountUsd": {
9437
+ "codecId": "pg/numeric@1",
9438
+ "nativeType": "numeric",
9439
+ "nullable": false
9440
+ },
9441
+ "consumedAtMs": {
9442
+ "codecId": "pg/int8@1",
9443
+ "nativeType": "int8",
9444
+ "nullable": true
9445
+ },
9446
+ "createdAt": {
9447
+ "codecId": "pg/timestamptz-string@1",
9448
+ "default": {
9449
+ "expression": "now()",
9450
+ "kind": "function"
9451
+ },
9452
+ "nativeType": "timestamptz",
9453
+ "nullable": false
9454
+ },
9455
+ "createdAtMs": {
9456
+ "codecId": "pg/int8@1",
9457
+ "nativeType": "int8",
9458
+ "nullable": false
9459
+ },
9460
+ "decidedAtMs": {
9461
+ "codecId": "pg/int8@1",
9462
+ "nativeType": "int8",
9463
+ "nullable": true
9464
+ },
9465
+ "decidedBy": {
9466
+ "codecId": "pg/text@1",
9467
+ "nativeType": "text",
9468
+ "nullable": true
9469
+ },
9470
+ "expiresAtMs": {
9471
+ "codecId": "pg/int8@1",
9472
+ "nativeType": "int8",
9473
+ "nullable": false
9474
+ },
9475
+ "id": {
9476
+ "codecId": "pg/text@1",
9477
+ "nativeType": "text",
9478
+ "nullable": false
9479
+ },
9480
+ "kind": {
9481
+ "codecId": "pg/text@1",
9482
+ "nativeType": "text",
9483
+ "nullable": false
9484
+ },
9485
+ "payload": {
9486
+ "codecId": "pg/json@1",
9487
+ "nativeType": "json",
9488
+ "nullable": false
9489
+ },
9490
+ "refId": {
9491
+ "codecId": "pg/text@1",
9492
+ "nativeType": "text",
9493
+ "nullable": false
9494
+ },
9495
+ "state": {
9496
+ "codecId": "pg/text@1",
9497
+ "default": {
9498
+ "kind": "literal",
9499
+ "value": "pending"
9500
+ },
9501
+ "nativeType": "text",
9502
+ "nullable": false
9503
+ },
9504
+ "updatedAt": {
9505
+ "codecId": "pg/timestamptz-string@1",
9506
+ "nativeType": "timestamptz",
9507
+ "nullable": false
9508
+ },
9509
+ "venueId": {
9510
+ "codecId": "pg/text@1",
9511
+ "nativeType": "text",
9512
+ "nullable": true
9513
+ },
9514
+ "wallet": {
9515
+ "codecId": "pg/text@1",
9516
+ "nativeType": "text",
9517
+ "nullable": false
9518
+ }
9519
+ },
9520
+ "foreignKeys": [],
9521
+ "indexes": [
9522
+ {
9523
+ "columns": [
9524
+ "wallet",
9525
+ "createdAtMs"
9526
+ ],
9527
+ "name": "spendApproval_wallet_createdAtMs_idx_70458d62",
9528
+ "prefix": "spendApproval_wallet_createdAtMs_idx",
9529
+ "unique": false
9530
+ },
9531
+ {
9532
+ "columns": [
9533
+ "wallet",
9534
+ "state"
9535
+ ],
9536
+ "name": "spendApproval_wallet_state_idx_68707ee0",
9537
+ "prefix": "spendApproval_wallet_state_idx",
9538
+ "unique": false
9539
+ }
9540
+ ],
9541
+ "primaryKey": {
9542
+ "columns": [
9543
+ "id"
9544
+ ]
9545
+ },
9546
+ "uniques": []
9547
+ },
9548
+ "spendEvent": {
9549
+ "columns": {
9550
+ "amountUsd": {
9551
+ "codecId": "pg/numeric@1",
9552
+ "nativeType": "numeric",
9553
+ "nullable": false
9554
+ },
9555
+ "at": {
9556
+ "codecId": "pg/int8@1",
9557
+ "nativeType": "int8",
9558
+ "nullable": false
9559
+ },
9560
+ "createdAt": {
9561
+ "codecId": "pg/timestamptz-string@1",
9562
+ "default": {
9563
+ "expression": "now()",
9564
+ "kind": "function"
9565
+ },
9566
+ "nativeType": "timestamptz",
9567
+ "nullable": false
9568
+ },
9569
+ "denialReason": {
9570
+ "codecId": "pg/text@1",
9571
+ "nativeType": "text",
9572
+ "nullable": true
9573
+ },
9574
+ "id": {
9575
+ "codecId": "pg/text@1",
9576
+ "nativeType": "text",
9577
+ "nullable": false
9578
+ },
9579
+ "kind": {
9580
+ "codecId": "pg/text@1",
9581
+ "nativeType": "text",
9582
+ "nullable": false
9583
+ },
9584
+ "payload": {
9585
+ "codecId": "pg/json@1",
9586
+ "nativeType": "json",
9587
+ "nullable": false
9588
+ },
9589
+ "refId": {
9590
+ "codecId": "pg/text@1",
9591
+ "nativeType": "text",
9592
+ "nullable": false
9593
+ },
9594
+ "sourceChain": {
9595
+ "codecId": "pg/text@1",
9596
+ "nativeType": "text",
9597
+ "nullable": true
9598
+ },
9599
+ "state": {
9600
+ "codecId": "pg/text@1",
9601
+ "nativeType": "text",
9602
+ "nullable": false
9603
+ },
9604
+ "txHash": {
9605
+ "codecId": "pg/text@1",
9606
+ "nativeType": "text",
9607
+ "nullable": true
9608
+ },
9609
+ "updatedAt": {
9610
+ "codecId": "pg/timestamptz-string@1",
9611
+ "nativeType": "timestamptz",
9612
+ "nullable": false
9613
+ },
9614
+ "venueId": {
9615
+ "codecId": "pg/text@1",
9616
+ "nativeType": "text",
9617
+ "nullable": true
9618
+ },
9619
+ "wallet": {
9620
+ "codecId": "pg/text@1",
9621
+ "nativeType": "text",
9622
+ "nullable": false
9623
+ }
9624
+ },
9625
+ "foreignKeys": [],
9626
+ "indexes": [
9627
+ {
9628
+ "columns": [
9629
+ "denialReason",
9630
+ "at"
9631
+ ],
9632
+ "name": "spendEvent_denialReason_at_idx_84ea573f",
9633
+ "prefix": "spendEvent_denialReason_at_idx",
9634
+ "unique": false
9635
+ },
9636
+ {
9637
+ "columns": [
9638
+ "state",
9639
+ "at"
9640
+ ],
9641
+ "name": "spendEvent_state_at_idx_b570e6ae",
9642
+ "prefix": "spendEvent_state_at_idx",
9643
+ "unique": false
9644
+ },
9645
+ {
9646
+ "columns": [
9647
+ "txHash"
9648
+ ],
9649
+ "name": "spendEvent_txHash_idx_3fbe8b55",
9650
+ "prefix": "spendEvent_txHash_idx",
9651
+ "unique": false
9652
+ },
9653
+ {
9654
+ "columns": [
9655
+ "venueId",
9656
+ "at"
9657
+ ],
9658
+ "name": "spendEvent_venueId_at_idx_6ab90d05",
9659
+ "prefix": "spendEvent_venueId_at_idx",
9660
+ "unique": false
9661
+ },
9662
+ {
9663
+ "columns": [
9664
+ "wallet",
9665
+ "at"
8273
9666
  ],
8274
- "name": "scanResult_domain_createdAt_idx_c5bd4696",
8275
- "prefix": "scanResult_domain_createdAt_idx",
9667
+ "name": "spendEvent_wallet_at_idx_b76ec1ce",
9668
+ "prefix": "spendEvent_wallet_at_idx",
8276
9669
  "unique": false
8277
9670
  }
8278
9671
  ],
@@ -8283,18 +9676,18 @@
8283
9676
  },
8284
9677
  "uniques": []
8285
9678
  },
8286
- "spendApproval": {
9679
+ "surveyAnswer": {
8287
9680
  "columns": {
8288
- "amountUsd": {
8289
- "codecId": "pg/numeric@1",
8290
- "nativeType": "numeric",
8291
- "nullable": false
8292
- },
8293
- "consumedAtMs": {
8294
- "codecId": "pg/int8@1",
8295
- "nativeType": "int8",
9681
+ "agentId": {
9682
+ "codecId": "pg/text@1",
9683
+ "nativeType": "text",
8296
9684
  "nullable": true
8297
9685
  },
9686
+ "answers": {
9687
+ "codecId": "pg/json@1",
9688
+ "nativeType": "json",
9689
+ "nullable": false
9690
+ },
8298
9691
  "createdAt": {
8299
9692
  "codecId": "pg/timestamptz-string@1",
8300
9693
  "default": {
@@ -8309,61 +9702,26 @@
8309
9702
  "nativeType": "int8",
8310
9703
  "nullable": false
8311
9704
  },
8312
- "decidedAtMs": {
8313
- "codecId": "pg/int8@1",
8314
- "nativeType": "int8",
8315
- "nullable": true
8316
- },
8317
- "decidedBy": {
9705
+ "fpHash": {
8318
9706
  "codecId": "pg/text@1",
8319
9707
  "nativeType": "text",
8320
9708
  "nullable": true
8321
9709
  },
8322
- "expiresAtMs": {
8323
- "codecId": "pg/int8@1",
8324
- "nativeType": "int8",
8325
- "nullable": false
8326
- },
8327
9710
  "id": {
8328
9711
  "codecId": "pg/text@1",
8329
9712
  "nativeType": "text",
8330
9713
  "nullable": false
8331
9714
  },
8332
- "kind": {
8333
- "codecId": "pg/text@1",
8334
- "nativeType": "text",
8335
- "nullable": false
8336
- },
8337
- "payload": {
8338
- "codecId": "pg/json@1",
8339
- "nativeType": "json",
8340
- "nullable": false
8341
- },
8342
- "refId": {
8343
- "codecId": "pg/text@1",
8344
- "nativeType": "text",
8345
- "nullable": false
8346
- },
8347
- "state": {
8348
- "codecId": "pg/text@1",
9715
+ "rated": {
9716
+ "codecId": "pg/bool@1",
8349
9717
  "default": {
8350
9718
  "kind": "literal",
8351
- "value": "pending"
9719
+ "value": false
8352
9720
  },
8353
- "nativeType": "text",
8354
- "nullable": false
8355
- },
8356
- "updatedAt": {
8357
- "codecId": "pg/timestamptz-string@1",
8358
- "nativeType": "timestamptz",
9721
+ "nativeType": "bool",
8359
9722
  "nullable": false
8360
9723
  },
8361
- "venueId": {
8362
- "codecId": "pg/text@1",
8363
- "nativeType": "text",
8364
- "nullable": true
8365
- },
8366
- "wallet": {
9724
+ "surveyId": {
8367
9725
  "codecId": "pg/text@1",
8368
9726
  "nativeType": "text",
8369
9727
  "nullable": false
@@ -8373,20 +9731,11 @@
8373
9731
  "indexes": [
8374
9732
  {
8375
9733
  "columns": [
8376
- "wallet",
8377
- "createdAtMs"
8378
- ],
8379
- "name": "spendApproval_wallet_createdAtMs_idx_70458d62",
8380
- "prefix": "spendApproval_wallet_createdAtMs_idx",
8381
- "unique": false
8382
- },
8383
- {
8384
- "columns": [
8385
- "wallet",
8386
- "state"
9734
+ "surveyId",
9735
+ "fpHash"
8387
9736
  ],
8388
- "name": "spendApproval_wallet_state_idx_68707ee0",
8389
- "prefix": "spendApproval_wallet_state_idx",
9737
+ "name": "surveyAnswer_surveyId_fpHash_idx_114d0920",
9738
+ "prefix": "surveyAnswer_surveyId_fpHash_idx",
8390
9739
  "unique": false
8391
9740
  }
8392
9741
  ],
@@ -8395,20 +9744,27 @@
8395
9744
  "id"
8396
9745
  ]
8397
9746
  },
8398
- "uniques": []
9747
+ "uniques": [
9748
+ {
9749
+ "columns": [
9750
+ "surveyId",
9751
+ "agentId"
9752
+ ]
9753
+ }
9754
+ ]
8399
9755
  },
8400
- "spendEvent": {
9756
+ "usageRecord": {
8401
9757
  "columns": {
8402
- "amountUsd": {
9758
+ "agentId": {
9759
+ "codecId": "pg/text@1",
9760
+ "nativeType": "text",
9761
+ "nullable": true
9762
+ },
9763
+ "amount": {
8403
9764
  "codecId": "pg/numeric@1",
8404
9765
  "nativeType": "numeric",
8405
9766
  "nullable": false
8406
9767
  },
8407
- "at": {
8408
- "codecId": "pg/int8@1",
8409
- "nativeType": "int8",
8410
- "nullable": false
8411
- },
8412
9768
  "createdAt": {
8413
9769
  "codecId": "pg/timestamptz-string@1",
8414
9770
  "default": {
@@ -8418,17 +9774,31 @@
8418
9774
  "nativeType": "timestamptz",
8419
9775
  "nullable": false
8420
9776
  },
8421
- "denialReason": {
9777
+ "createdAtMs": {
9778
+ "codecId": "pg/int8@1",
9779
+ "nativeType": "int8",
9780
+ "nullable": false
9781
+ },
9782
+ "currency": {
8422
9783
  "codecId": "pg/text@1",
9784
+ "default": {
9785
+ "kind": "literal",
9786
+ "value": "USDC"
9787
+ },
8423
9788
  "nativeType": "text",
8424
- "nullable": true
9789
+ "nullable": false
8425
9790
  },
8426
9791
  "id": {
8427
9792
  "codecId": "pg/text@1",
8428
9793
  "nativeType": "text",
8429
9794
  "nullable": false
8430
9795
  },
8431
- "kind": {
9796
+ "network": {
9797
+ "codecId": "pg/text@1",
9798
+ "nativeType": "text",
9799
+ "nullable": false
9800
+ },
9801
+ "payerAddress": {
8432
9802
  "codecId": "pg/text@1",
8433
9803
  "nativeType": "text",
8434
9804
  "nullable": false
@@ -8438,86 +9808,69 @@
8438
9808
  "nativeType": "json",
8439
9809
  "nullable": false
8440
9810
  },
8441
- "refId": {
9811
+ "paymentId": {
8442
9812
  "codecId": "pg/text@1",
8443
9813
  "nativeType": "text",
8444
9814
  "nullable": false
8445
9815
  },
8446
- "sourceChain": {
8447
- "codecId": "pg/text@1",
8448
- "nativeType": "text",
8449
- "nullable": true
8450
- },
8451
- "state": {
9816
+ "requestId": {
8452
9817
  "codecId": "pg/text@1",
8453
9818
  "nativeType": "text",
8454
9819
  "nullable": false
8455
9820
  },
8456
- "txHash": {
9821
+ "resource": {
8457
9822
  "codecId": "pg/text@1",
8458
9823
  "nativeType": "text",
8459
- "nullable": true
8460
- },
8461
- "updatedAt": {
8462
- "codecId": "pg/timestamptz-string@1",
8463
- "nativeType": "timestamptz",
8464
9824
  "nullable": false
8465
9825
  },
8466
- "venueId": {
9826
+ "txHash": {
8467
9827
  "codecId": "pg/text@1",
8468
9828
  "nativeType": "text",
8469
9829
  "nullable": true
8470
- },
8471
- "wallet": {
8472
- "codecId": "pg/text@1",
8473
- "nativeType": "text",
8474
- "nullable": false
8475
9830
  }
8476
9831
  },
8477
9832
  "foreignKeys": [],
8478
9833
  "indexes": [
8479
9834
  {
8480
9835
  "columns": [
8481
- "denialReason",
8482
- "at"
9836
+ "agentId",
9837
+ "createdAtMs"
8483
9838
  ],
8484
- "name": "spendEvent_denialReason_at_idx_84ea573f",
8485
- "prefix": "spendEvent_denialReason_at_idx",
9839
+ "name": "usageRecord_agentId_createdAtMs_idx_be65b811",
9840
+ "prefix": "usageRecord_agentId_createdAtMs_idx",
8486
9841
  "unique": false
8487
9842
  },
8488
9843
  {
8489
9844
  "columns": [
8490
- "state",
8491
- "at"
9845
+ "payerAddress"
8492
9846
  ],
8493
- "name": "spendEvent_state_at_idx_b570e6ae",
8494
- "prefix": "spendEvent_state_at_idx",
9847
+ "name": "usageRecord_payerAddress_idx_de0e56a9",
9848
+ "prefix": "usageRecord_payerAddress_idx",
8495
9849
  "unique": false
8496
9850
  },
8497
9851
  {
8498
9852
  "columns": [
8499
- "txHash"
9853
+ "paymentId"
8500
9854
  ],
8501
- "name": "spendEvent_txHash_idx_3fbe8b55",
8502
- "prefix": "spendEvent_txHash_idx",
9855
+ "name": "usageRecord_paymentId_idx_b2fe9a10",
9856
+ "prefix": "usageRecord_paymentId_idx",
8503
9857
  "unique": false
8504
9858
  },
8505
9859
  {
8506
9860
  "columns": [
8507
- "venueId",
8508
- "at"
9861
+ "resource",
9862
+ "createdAtMs"
8509
9863
  ],
8510
- "name": "spendEvent_venueId_at_idx_6ab90d05",
8511
- "prefix": "spendEvent_venueId_at_idx",
9864
+ "name": "usageRecord_resource_createdAtMs_idx_0a23f75d",
9865
+ "prefix": "usageRecord_resource_createdAtMs_idx",
8512
9866
  "unique": false
8513
9867
  },
8514
9868
  {
8515
9869
  "columns": [
8516
- "wallet",
8517
- "at"
9870
+ "txHash"
8518
9871
  ],
8519
- "name": "spendEvent_wallet_at_idx_b76ec1ce",
8520
- "prefix": "spendEvent_wallet_at_idx",
9872
+ "name": "usageRecord_txHash_idx_3fbe8b55",
9873
+ "prefix": "usageRecord_txHash_idx",
8521
9874
  "unique": false
8522
9875
  }
8523
9876
  ],
@@ -8526,7 +9879,13 @@
8526
9879
  "id"
8527
9880
  ]
8528
9881
  },
8529
- "uniques": []
9882
+ "uniques": [
9883
+ {
9884
+ "columns": [
9885
+ "requestId"
9886
+ ]
9887
+ }
9888
+ ]
8530
9889
  },
8531
9890
  "venueJob": {
8532
9891
  "columns": {
@@ -8701,10 +10060,10 @@
8701
10060
  "kind": "postgres-schema"
8702
10061
  }
8703
10062
  },
8704
- "storageHash": "a84d100b2b55b78a8ab308f84649f9e05392eab61c064cb5010946534c042b79"
10063
+ "storageHash": "ce3dbc982e847a806062a4801576fae3198b8816f91dc6805498b6bf7626a45d"
8705
10064
  },
8706
10065
  "execution": {
8707
- "executionHash": "910d9ce211368f3d8498773dfaf997615627fdabfd5ee30a74f268d21982ffe4",
10066
+ "executionHash": "b8fb732d8399fc62aa96939743a5369536a121143cc0643b71275c68508f5247",
8708
10067
  "mutations": {
8709
10068
  "defaults": [
8710
10069
  {
@@ -8755,6 +10114,84 @@
8755
10114
  "table": "a2ATask"
8756
10115
  }
8757
10116
  },
10117
+ {
10118
+ "onCreate": {
10119
+ "id": "uuidv4",
10120
+ "kind": "generator"
10121
+ },
10122
+ "ref": {
10123
+ "column": "id",
10124
+ "namespace": "public",
10125
+ "table": "agentQAPair"
10126
+ }
10127
+ },
10128
+ {
10129
+ "onCreate": {
10130
+ "id": "timestampNow",
10131
+ "kind": "generator"
10132
+ },
10133
+ "onUpdate": {
10134
+ "id": "timestampNow",
10135
+ "kind": "generator"
10136
+ },
10137
+ "ref": {
10138
+ "column": "updatedAt",
10139
+ "namespace": "public",
10140
+ "table": "agentQAPair"
10141
+ }
10142
+ },
10143
+ {
10144
+ "onCreate": {
10145
+ "id": "uuidv4",
10146
+ "kind": "generator"
10147
+ },
10148
+ "ref": {
10149
+ "column": "id",
10150
+ "namespace": "public",
10151
+ "table": "agentRequest"
10152
+ }
10153
+ },
10154
+ {
10155
+ "onCreate": {
10156
+ "id": "timestampNow",
10157
+ "kind": "generator"
10158
+ },
10159
+ "onUpdate": {
10160
+ "id": "timestampNow",
10161
+ "kind": "generator"
10162
+ },
10163
+ "ref": {
10164
+ "column": "updatedAt",
10165
+ "namespace": "public",
10166
+ "table": "agentRequest"
10167
+ }
10168
+ },
10169
+ {
10170
+ "onCreate": {
10171
+ "id": "uuidv4",
10172
+ "kind": "generator"
10173
+ },
10174
+ "ref": {
10175
+ "column": "id",
10176
+ "namespace": "public",
10177
+ "table": "agentSurvey"
10178
+ }
10179
+ },
10180
+ {
10181
+ "onCreate": {
10182
+ "id": "timestampNow",
10183
+ "kind": "generator"
10184
+ },
10185
+ "onUpdate": {
10186
+ "id": "timestampNow",
10187
+ "kind": "generator"
10188
+ },
10189
+ "ref": {
10190
+ "column": "updatedAt",
10191
+ "namespace": "public",
10192
+ "table": "agentSurvey"
10193
+ }
10194
+ },
8758
10195
  {
8759
10196
  "onCreate": {
8760
10197
  "id": "uuidv4",
@@ -9403,6 +10840,17 @@
9403
10840
  "table": "spendEvent"
9404
10841
  }
9405
10842
  },
10843
+ {
10844
+ "onCreate": {
10845
+ "id": "uuidv4",
10846
+ "kind": "generator"
10847
+ },
10848
+ "ref": {
10849
+ "column": "id",
10850
+ "namespace": "public",
10851
+ "table": "surveyAnswer"
10852
+ }
10853
+ },
9406
10854
  {
9407
10855
  "onCreate": {
9408
10856
  "id": "uuidv4",