@happyvertical/smrt-properties 0.44.0 → 0.45.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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-properties",
5
- "packageVersion": "0.44.0",
5
+ "packageVersion": "0.45.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-properties:PropertyCollection": {
8
8
  "name": "propertycollection",
@@ -588,548 +588,6 @@
588
588
  }
589
589
  },
590
590
  "methods": {
591
- "withDatabase": {
592
- "name": "withDatabase",
593
- "async": true,
594
- "parameters": [
595
- {
596
- "name": "db",
597
- "type": "DatabaseInterface",
598
- "optional": false
599
- },
600
- {
601
- "name": "operation",
602
- "type": "Function",
603
- "optional": false
604
- }
605
- ],
606
- "returnType": "Promise<T>",
607
- "isStatic": false,
608
- "isPublic": true
609
- },
610
- "getAiUsageSnapshot": {
611
- "name": "getAiUsageSnapshot",
612
- "async": false,
613
- "parameters": [],
614
- "returnType": "AiUsageSnapshot | undefined",
615
- "isStatic": false,
616
- "isPublic": true
617
- },
618
- "resetAiUsage": {
619
- "name": "resetAiUsage",
620
- "async": false,
621
- "parameters": [],
622
- "returnType": "void",
623
- "isStatic": false,
624
- "isPublic": true
625
- },
626
- "listAiUsage": {
627
- "name": "listAiUsage",
628
- "async": true,
629
- "parameters": [
630
- {
631
- "name": "options",
632
- "type": "AiUsageListOptions",
633
- "optional": true
634
- }
635
- ],
636
- "returnType": "Promise<SmrtAiUsageRecord[]>",
637
- "isStatic": false,
638
- "isPublic": true
639
- },
640
- "summarizeAiUsage": {
641
- "name": "summarizeAiUsage",
642
- "async": true,
643
- "parameters": [
644
- {
645
- "name": "options",
646
- "type": "AiUsageSummaryOptions",
647
- "optional": true
648
- }
649
- ],
650
- "returnType": "Promise<Record<string, AiUsageStats>>",
651
- "isStatic": false,
652
- "isPublic": true
653
- },
654
- "destroy": {
655
- "name": "destroy",
656
- "async": false,
657
- "parameters": [],
658
- "returnType": "void",
659
- "isStatic": false,
660
- "isPublic": true
661
- },
662
- "markAsPersisted": {
663
- "name": "markAsPersisted",
664
- "async": false,
665
- "parameters": [],
666
- "returnType": "void",
667
- "isStatic": false,
668
- "isPublic": true
669
- },
670
- "requireInsertOnSave": {
671
- "name": "requireInsertOnSave",
672
- "async": false,
673
- "parameters": [],
674
- "returnType": "void",
675
- "isStatic": false,
676
- "isPublic": true
677
- },
678
- "withTransaction": {
679
- "name": "withTransaction",
680
- "async": true,
681
- "parameters": [
682
- {
683
- "name": "operation",
684
- "type": "Function",
685
- "optional": false
686
- }
687
- ],
688
- "returnType": "Promise<T>",
689
- "isStatic": false,
690
- "isPublic": true
691
- },
692
- "initialize": {
693
- "name": "initialize",
694
- "async": true,
695
- "parameters": [],
696
- "returnType": "Promise",
697
- "isStatic": false,
698
- "isPublic": true
699
- },
700
- "loadDataFromDb": {
701
- "name": "loadDataFromDb",
702
- "async": true,
703
- "parameters": [
704
- {
705
- "name": "data",
706
- "type": "Record<string>",
707
- "optional": false
708
- }
709
- ],
710
- "returnType": "any",
711
- "isStatic": false,
712
- "isPublic": true
713
- },
714
- "getFields": {
715
- "name": "getFields",
716
- "async": true,
717
- "parameters": [],
718
- "returnType": "Promise<any>",
719
- "isStatic": false,
720
- "isPublic": true
721
- },
722
- "toJSON": {
723
- "name": "toJSON",
724
- "async": false,
725
- "parameters": [],
726
- "returnType": "any",
727
- "isStatic": false,
728
- "isPublic": true
729
- },
730
- "toPlainObject": {
731
- "name": "toPlainObject",
732
- "async": false,
733
- "parameters": [],
734
- "returnType": "Record<string>",
735
- "isStatic": false,
736
- "isPublic": true
737
- },
738
- "toPublicJSON": {
739
- "name": "toPublicJSON",
740
- "async": false,
741
- "parameters": [
742
- {
743
- "name": "options",
744
- "type": "PublicJsonOptions",
745
- "optional": true
746
- }
747
- ],
748
- "returnType": "Record<string>",
749
- "isStatic": false,
750
- "isPublic": true
751
- },
752
- "getId": {
753
- "name": "getId",
754
- "async": true,
755
- "parameters": [],
756
- "returnType": "any",
757
- "isStatic": false,
758
- "isPublic": true
759
- },
760
- "getSlug": {
761
- "name": "getSlug",
762
- "async": true,
763
- "parameters": [],
764
- "returnType": "any",
765
- "isStatic": false,
766
- "isPublic": true
767
- },
768
- "getSavedId": {
769
- "name": "getSavedId",
770
- "async": true,
771
- "parameters": [],
772
- "returnType": "any",
773
- "isStatic": false,
774
- "isPublic": true
775
- },
776
- "isSaved": {
777
- "name": "isSaved",
778
- "async": true,
779
- "parameters": [],
780
- "returnType": "any",
781
- "isStatic": false,
782
- "isPublic": true
783
- },
784
- "save": {
785
- "name": "save",
786
- "async": true,
787
- "parameters": [
788
- {
789
- "name": "options",
790
- "type": "SmrtSaveOptions",
791
- "optional": true
792
- }
793
- ],
794
- "returnType": "any",
795
- "isStatic": false,
796
- "isPublic": true
797
- },
798
- "claimRevision": {
799
- "name": "claimRevision",
800
- "async": true,
801
- "parameters": [
802
- {
803
- "name": "expectedUpdatedAt",
804
- "type": "Date | string",
805
- "optional": false
806
- }
807
- ],
808
- "returnType": "Promise",
809
- "isStatic": false,
810
- "isPublic": true
811
- },
812
- "classifyConstraintError": {
813
- "name": "classifyConstraintError",
814
- "async": false,
815
- "parameters": [
816
- {
817
- "name": "message",
818
- "type": "string",
819
- "optional": false
820
- }
821
- ],
822
- "returnType": "'unique' | 'not_null' | null",
823
- "isStatic": true,
824
- "isPublic": true
825
- },
826
- "loadFromId": {
827
- "name": "loadFromId",
828
- "async": true,
829
- "parameters": [],
830
- "returnType": "any",
831
- "isStatic": false,
832
- "isPublic": true
833
- },
834
- "loadFromSlug": {
835
- "name": "loadFromSlug",
836
- "async": true,
837
- "parameters": [],
838
- "returnType": "any",
839
- "isStatic": false,
840
- "isPublic": true
841
- },
842
- "is": {
843
- "name": "is",
844
- "async": true,
845
- "parameters": [
846
- {
847
- "name": "criteria",
848
- "type": "string",
849
- "optional": false
850
- },
851
- {
852
- "name": "options",
853
- "type": "AiOperationOptions",
854
- "optional": true
855
- }
856
- ],
857
- "returnType": "any",
858
- "isStatic": false,
859
- "isPublic": true
860
- },
861
- "do": {
862
- "name": "do",
863
- "async": true,
864
- "parameters": [
865
- {
866
- "name": "instructions",
867
- "type": "string",
868
- "optional": false
869
- },
870
- {
871
- "name": "options",
872
- "type": "AiOperationOptions",
873
- "optional": true
874
- }
875
- ],
876
- "returnType": "any",
877
- "isStatic": false,
878
- "isPublic": true
879
- },
880
- "describe": {
881
- "name": "describe",
882
- "async": true,
883
- "parameters": [
884
- {
885
- "name": "options",
886
- "type": "AiOperationOptions",
887
- "optional": true
888
- }
889
- ],
890
- "returnType": "any",
891
- "isStatic": false,
892
- "isPublic": true
893
- },
894
- "delete": {
895
- "name": "delete",
896
- "async": true,
897
- "parameters": [],
898
- "returnType": "Promise<void>",
899
- "isStatic": false,
900
- "isPublic": true
901
- },
902
- "isRelatedLoaded": {
903
- "name": "isRelatedLoaded",
904
- "async": false,
905
- "parameters": [
906
- {
907
- "name": "fieldName",
908
- "type": "string",
909
- "optional": false
910
- }
911
- ],
912
- "returnType": "boolean",
913
- "isStatic": false,
914
- "isPublic": true
915
- },
916
- "_setLoadedRelationship": {
917
- "name": "_setLoadedRelationship",
918
- "async": false,
919
- "parameters": [
920
- {
921
- "name": "fieldName",
922
- "type": "string",
923
- "optional": false
924
- },
925
- {
926
- "name": "value",
927
- "type": "any",
928
- "optional": false
929
- }
930
- ],
931
- "returnType": "void",
932
- "isStatic": false,
933
- "isPublic": true
934
- },
935
- "loadRelated": {
936
- "name": "loadRelated",
937
- "async": true,
938
- "parameters": [
939
- {
940
- "name": "fieldName",
941
- "type": "string",
942
- "optional": false
943
- },
944
- {
945
- "name": "opts",
946
- "type": "LoadRelatedOptions",
947
- "optional": true
948
- }
949
- ],
950
- "returnType": "Promise<any>",
951
- "isStatic": false,
952
- "isPublic": true
953
- },
954
- "loadRelatedMany": {
955
- "name": "loadRelatedMany",
956
- "async": true,
957
- "parameters": [
958
- {
959
- "name": "fieldName",
960
- "type": "string",
961
- "optional": false
962
- },
963
- {
964
- "name": "opts",
965
- "type": "LoadRelatedOptions",
966
- "optional": true
967
- }
968
- ],
969
- "returnType": "Promise<any[]>",
970
- "isStatic": false,
971
- "isPublic": true
972
- },
973
- "getRelated": {
974
- "name": "getRelated",
975
- "async": true,
976
- "parameters": [
977
- {
978
- "name": "fieldName",
979
- "type": "string",
980
- "optional": false
981
- },
982
- {
983
- "name": "opts",
984
- "type": "LoadRelatedOptions",
985
- "optional": true
986
- }
987
- ],
988
- "returnType": "Promise<any>",
989
- "isStatic": false,
990
- "isPublic": true
991
- },
992
- "getAvailableTools": {
993
- "name": "getAvailableTools",
994
- "async": false,
995
- "parameters": [],
996
- "returnType": "AITool[]",
997
- "isStatic": false,
998
- "isPublic": true
999
- },
1000
- "executeToolCall": {
1001
- "name": "executeToolCall",
1002
- "async": true,
1003
- "parameters": [
1004
- {
1005
- "name": "toolCall",
1006
- "type": "ToolCall",
1007
- "optional": false
1008
- }
1009
- ],
1010
- "returnType": "Promise<ToolCallResult>",
1011
- "isStatic": false,
1012
- "isPublic": true
1013
- },
1014
- "remember": {
1015
- "name": "remember",
1016
- "async": true,
1017
- "parameters": [
1018
- {
1019
- "name": "options",
1020
- "type": "object",
1021
- "optional": false
1022
- }
1023
- ],
1024
- "returnType": "Promise<void>",
1025
- "isStatic": false,
1026
- "isPublic": true
1027
- },
1028
- "recall": {
1029
- "name": "recall",
1030
- "async": true,
1031
- "parameters": [
1032
- {
1033
- "name": "options",
1034
- "type": "object",
1035
- "optional": false
1036
- }
1037
- ],
1038
- "returnType": "Promise",
1039
- "isStatic": false,
1040
- "isPublic": true
1041
- },
1042
- "recallAll": {
1043
- "name": "recallAll",
1044
- "async": true,
1045
- "parameters": [
1046
- {
1047
- "name": "options",
1048
- "type": "object",
1049
- "optional": true
1050
- }
1051
- ],
1052
- "returnType": "Promise<Map<string>>",
1053
- "isStatic": false,
1054
- "isPublic": true
1055
- },
1056
- "forget": {
1057
- "name": "forget",
1058
- "async": true,
1059
- "parameters": [
1060
- {
1061
- "name": "options",
1062
- "type": "object",
1063
- "optional": false
1064
- }
1065
- ],
1066
- "returnType": "Promise<void>",
1067
- "isStatic": false,
1068
- "isPublic": true
1069
- },
1070
- "forgetScope": {
1071
- "name": "forgetScope",
1072
- "async": true,
1073
- "parameters": [
1074
- {
1075
- "name": "options",
1076
- "type": "object",
1077
- "optional": false
1078
- }
1079
- ],
1080
- "returnType": "Promise<number>",
1081
- "isStatic": false,
1082
- "isPublic": true
1083
- },
1084
- "generateEmbeddings": {
1085
- "name": "generateEmbeddings",
1086
- "async": true,
1087
- "parameters": [
1088
- {
1089
- "name": "options",
1090
- "type": "GenerateEmbeddingsOptions",
1091
- "optional": true
1092
- }
1093
- ],
1094
- "returnType": "Promise<void>",
1095
- "isStatic": false,
1096
- "isPublic": true
1097
- },
1098
- "getEmbedding": {
1099
- "name": "getEmbedding",
1100
- "async": true,
1101
- "parameters": [
1102
- {
1103
- "name": "fieldName",
1104
- "type": "string",
1105
- "optional": false
1106
- },
1107
- {
1108
- "name": "model",
1109
- "type": "string",
1110
- "optional": true
1111
- }
1112
- ],
1113
- "returnType": "Promise<number[] | null>",
1114
- "isStatic": false,
1115
- "isPublic": true
1116
- },
1117
- "hasStaleEmbeddings": {
1118
- "name": "hasStaleEmbeddings",
1119
- "async": true,
1120
- "parameters": [],
1121
- "returnType": "Promise<boolean>",
1122
- "isStatic": false,
1123
- "isPublic": true
1124
- },
1125
- "clearEmbeddings": {
1126
- "name": "clearEmbeddings",
1127
- "async": true,
1128
- "parameters": [],
1129
- "returnType": "Promise<void>",
1130
- "isStatic": false,
1131
- "isPublic": true
1132
- },
1133
591
  "getZones": {
1134
592
  "name": "getZones",
1135
593
  "async": true,