@happyvertical/smrt-properties 0.44.1 → 0.45.1

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.1",
5
+ "packageVersion": "0.45.1",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-properties:PropertyCollection": {
8
8
  "name": "propertycollection",
@@ -588,554 +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
- {
899
- "name": "options",
900
- "type": "SmrtDeleteOptions",
901
- "optional": true
902
- }
903
- ],
904
- "returnType": "Promise<void>",
905
- "isStatic": false,
906
- "isPublic": true
907
- },
908
- "isRelatedLoaded": {
909
- "name": "isRelatedLoaded",
910
- "async": false,
911
- "parameters": [
912
- {
913
- "name": "fieldName",
914
- "type": "string",
915
- "optional": false
916
- }
917
- ],
918
- "returnType": "boolean",
919
- "isStatic": false,
920
- "isPublic": true
921
- },
922
- "_setLoadedRelationship": {
923
- "name": "_setLoadedRelationship",
924
- "async": false,
925
- "parameters": [
926
- {
927
- "name": "fieldName",
928
- "type": "string",
929
- "optional": false
930
- },
931
- {
932
- "name": "value",
933
- "type": "any",
934
- "optional": false
935
- }
936
- ],
937
- "returnType": "void",
938
- "isStatic": false,
939
- "isPublic": true
940
- },
941
- "loadRelated": {
942
- "name": "loadRelated",
943
- "async": true,
944
- "parameters": [
945
- {
946
- "name": "fieldName",
947
- "type": "string",
948
- "optional": false
949
- },
950
- {
951
- "name": "opts",
952
- "type": "LoadRelatedOptions",
953
- "optional": true
954
- }
955
- ],
956
- "returnType": "Promise<any>",
957
- "isStatic": false,
958
- "isPublic": true
959
- },
960
- "loadRelatedMany": {
961
- "name": "loadRelatedMany",
962
- "async": true,
963
- "parameters": [
964
- {
965
- "name": "fieldName",
966
- "type": "string",
967
- "optional": false
968
- },
969
- {
970
- "name": "opts",
971
- "type": "LoadRelatedOptions",
972
- "optional": true
973
- }
974
- ],
975
- "returnType": "Promise<any[]>",
976
- "isStatic": false,
977
- "isPublic": true
978
- },
979
- "getRelated": {
980
- "name": "getRelated",
981
- "async": true,
982
- "parameters": [
983
- {
984
- "name": "fieldName",
985
- "type": "string",
986
- "optional": false
987
- },
988
- {
989
- "name": "opts",
990
- "type": "LoadRelatedOptions",
991
- "optional": true
992
- }
993
- ],
994
- "returnType": "Promise<any>",
995
- "isStatic": false,
996
- "isPublic": true
997
- },
998
- "getAvailableTools": {
999
- "name": "getAvailableTools",
1000
- "async": false,
1001
- "parameters": [],
1002
- "returnType": "AITool[]",
1003
- "isStatic": false,
1004
- "isPublic": true
1005
- },
1006
- "executeToolCall": {
1007
- "name": "executeToolCall",
1008
- "async": true,
1009
- "parameters": [
1010
- {
1011
- "name": "toolCall",
1012
- "type": "ToolCall",
1013
- "optional": false
1014
- }
1015
- ],
1016
- "returnType": "Promise<ToolCallResult>",
1017
- "isStatic": false,
1018
- "isPublic": true
1019
- },
1020
- "remember": {
1021
- "name": "remember",
1022
- "async": true,
1023
- "parameters": [
1024
- {
1025
- "name": "options",
1026
- "type": "object",
1027
- "optional": false
1028
- }
1029
- ],
1030
- "returnType": "Promise<void>",
1031
- "isStatic": false,
1032
- "isPublic": true
1033
- },
1034
- "recall": {
1035
- "name": "recall",
1036
- "async": true,
1037
- "parameters": [
1038
- {
1039
- "name": "options",
1040
- "type": "object",
1041
- "optional": false
1042
- }
1043
- ],
1044
- "returnType": "Promise",
1045
- "isStatic": false,
1046
- "isPublic": true
1047
- },
1048
- "recallAll": {
1049
- "name": "recallAll",
1050
- "async": true,
1051
- "parameters": [
1052
- {
1053
- "name": "options",
1054
- "type": "object",
1055
- "optional": true
1056
- }
1057
- ],
1058
- "returnType": "Promise<Map<string>>",
1059
- "isStatic": false,
1060
- "isPublic": true
1061
- },
1062
- "forget": {
1063
- "name": "forget",
1064
- "async": true,
1065
- "parameters": [
1066
- {
1067
- "name": "options",
1068
- "type": "object",
1069
- "optional": false
1070
- }
1071
- ],
1072
- "returnType": "Promise<void>",
1073
- "isStatic": false,
1074
- "isPublic": true
1075
- },
1076
- "forgetScope": {
1077
- "name": "forgetScope",
1078
- "async": true,
1079
- "parameters": [
1080
- {
1081
- "name": "options",
1082
- "type": "object",
1083
- "optional": false
1084
- }
1085
- ],
1086
- "returnType": "Promise<number>",
1087
- "isStatic": false,
1088
- "isPublic": true
1089
- },
1090
- "generateEmbeddings": {
1091
- "name": "generateEmbeddings",
1092
- "async": true,
1093
- "parameters": [
1094
- {
1095
- "name": "options",
1096
- "type": "GenerateEmbeddingsOptions",
1097
- "optional": true
1098
- }
1099
- ],
1100
- "returnType": "Promise<void>",
1101
- "isStatic": false,
1102
- "isPublic": true
1103
- },
1104
- "getEmbedding": {
1105
- "name": "getEmbedding",
1106
- "async": true,
1107
- "parameters": [
1108
- {
1109
- "name": "fieldName",
1110
- "type": "string",
1111
- "optional": false
1112
- },
1113
- {
1114
- "name": "model",
1115
- "type": "string",
1116
- "optional": true
1117
- }
1118
- ],
1119
- "returnType": "Promise<number[] | null>",
1120
- "isStatic": false,
1121
- "isPublic": true
1122
- },
1123
- "hasStaleEmbeddings": {
1124
- "name": "hasStaleEmbeddings",
1125
- "async": true,
1126
- "parameters": [],
1127
- "returnType": "Promise<boolean>",
1128
- "isStatic": false,
1129
- "isPublic": true
1130
- },
1131
- "clearEmbeddings": {
1132
- "name": "clearEmbeddings",
1133
- "async": true,
1134
- "parameters": [],
1135
- "returnType": "Promise<void>",
1136
- "isStatic": false,
1137
- "isPublic": true
1138
- },
1139
591
  "getZones": {
1140
592
  "name": "getZones",
1141
593
  "async": true,