@happyvertical/smrt-voice 0.40.65 → 0.40.67

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,13 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
+ "sensitiveFieldsExcluded": true,
3
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
4
5
  "packageName": "@happyvertical/smrt-voice",
5
- "packageVersion": "0.40.65",
6
+ "packageVersion": "0.40.67",
6
7
  "sourceManifestPath": "dist/manifest.json",
7
8
  "agentDocPath": "AGENTS.md",
8
9
  "sourceHashes": {
9
- "manifest": "6b56d5e119c8cf6bc01b46c53b73c5a7c63cc1e09be11c7678e7ed454b2ac0bf",
10
- "packageJson": "a5e4b4933787c27d2a9a75fbf7dfe1a98bfe1d755b4900b3494ce7be55119932",
10
+ "manifest": "a6f75c10c99e6a881c621ad09e14c65c229c1ea9ce37cfef8d5a5cb0e4861591",
11
+ "packageJson": "fd21629408a4973b2c55587d767af0715b4e517d746ec8aeb0bc78d04536fa16",
11
12
  "agents": "e7726fd0cee96291548c1bc951b0048bb11a4d5eee3c19632f419779c36be550"
12
13
  },
13
14
  "exports": [
@@ -102,7 +103,8 @@
102
103
  "name": "name",
103
104
  "type": "text",
104
105
  "required": true,
105
- "columnType": "TEXT"
106
+ "columnType": "TEXT",
107
+ "default": ""
106
108
  },
107
109
  {
108
110
  "name": "title",
@@ -162,7 +164,8 @@
162
164
  "name": "tags",
163
165
  "type": "json",
164
166
  "required": false,
165
- "columnType": "JSON"
167
+ "columnType": "JSON",
168
+ "default": []
166
169
  },
167
170
  {
168
171
  "name": "category",
@@ -174,19 +177,22 @@
174
177
  "name": "status",
175
178
  "type": "text",
176
179
  "required": false,
177
- "columnType": "TEXT"
180
+ "columnType": "TEXT",
181
+ "default": "draft"
178
182
  },
179
183
  {
180
184
  "name": "state",
181
185
  "type": "text",
182
186
  "required": false,
183
- "columnType": "TEXT"
187
+ "columnType": "TEXT",
188
+ "default": "active"
184
189
  },
185
190
  {
186
191
  "name": "metadata",
187
192
  "type": "json",
188
193
  "required": false,
189
- "columnType": "JSON"
194
+ "columnType": "JSON",
195
+ "default": {}
190
196
  },
191
197
  {
192
198
  "name": "thumbnailAssetId",
@@ -206,7 +212,8 @@
206
212
  "name": "sourceText",
207
213
  "type": "text",
208
214
  "required": false,
209
- "columnType": "TEXT"
215
+ "columnType": "TEXT",
216
+ "default": ""
210
217
  },
211
218
  {
212
219
  "name": "audioAssetId",
@@ -219,13 +226,15 @@
219
226
  "name": "duration",
220
227
  "type": "integer",
221
228
  "required": false,
222
- "columnType": "INTEGER"
229
+ "columnType": "INTEGER",
230
+ "default": 0
223
231
  },
224
232
  {
225
233
  "name": "wordTimings",
226
234
  "type": "json",
227
235
  "required": false,
228
- "columnType": "JSON"
236
+ "columnType": "JSON",
237
+ "default": []
229
238
  },
230
239
  {
231
240
  "name": "audioMetadata",
@@ -368,6 +377,748 @@
368
377
  "updateFactEvidenceStatusAction",
369
378
  "updateMetadata"
370
379
  ],
380
+ "methodSignatures": [
381
+ {
382
+ "name": "_setLoadedRelationship",
383
+ "params": [
384
+ "fieldName: string",
385
+ "value: any"
386
+ ],
387
+ "returns": "void"
388
+ },
389
+ {
390
+ "name": "addAsset",
391
+ "async": true,
392
+ "params": [
393
+ "asset: Asset",
394
+ "relationship?: any",
395
+ "sortOrder?: any"
396
+ ],
397
+ "returns": "Promise<void>"
398
+ },
399
+ {
400
+ "name": "addFact",
401
+ "async": true,
402
+ "params": [
403
+ "fact: Fact | string",
404
+ "relationship?: FactContentRelationship",
405
+ "metadata?: Record<string>"
406
+ ],
407
+ "returns": "any"
408
+ },
409
+ {
410
+ "name": "addReference",
411
+ "async": true,
412
+ "params": [
413
+ "content: Content | string",
414
+ "options?: object"
415
+ ],
416
+ "returns": "any"
417
+ },
418
+ {
419
+ "name": "browseFacts",
420
+ "async": true,
421
+ "params": [
422
+ "query?: any",
423
+ "options?: object"
424
+ ],
425
+ "returns": "Promise<Fact[]>"
426
+ },
427
+ {
428
+ "name": "classifyConstraintError",
429
+ "static": true,
430
+ "params": [
431
+ "message: string"
432
+ ],
433
+ "returns": "'unique' | 'not_null' | null"
434
+ },
435
+ {
436
+ "name": "clearEmbeddings",
437
+ "async": true,
438
+ "returns": "Promise<void>"
439
+ },
440
+ {
441
+ "name": "createVersion",
442
+ "async": true,
443
+ "params": [
444
+ "options?: CreateContentVersionOptions"
445
+ ],
446
+ "returns": "any"
447
+ },
448
+ {
449
+ "name": "delete",
450
+ "async": true,
451
+ "returns": "Promise<void>"
452
+ },
453
+ {
454
+ "name": "describe",
455
+ "async": true,
456
+ "params": [
457
+ "options?: AiOperationOptions"
458
+ ],
459
+ "returns": "any"
460
+ },
461
+ {
462
+ "name": "destroy",
463
+ "returns": "void"
464
+ },
465
+ {
466
+ "name": "do",
467
+ "async": true,
468
+ "params": [
469
+ "instructions: string",
470
+ "options?: AiOperationOptions"
471
+ ],
472
+ "returns": "any"
473
+ },
474
+ {
475
+ "name": "evaluateReviewProfile",
476
+ "async": true,
477
+ "params": [
478
+ "profileKey: string"
479
+ ],
480
+ "returns": "Promise<ContentReviewProfileEvaluation>"
481
+ },
482
+ {
483
+ "name": "evaluateReviewProfileAction",
484
+ "async": true,
485
+ "params": [
486
+ "options?: object"
487
+ ],
488
+ "returns": "any"
489
+ },
490
+ {
491
+ "name": "executeToolCall",
492
+ "async": true,
493
+ "params": [
494
+ "toolCall: ToolCall"
495
+ ],
496
+ "returns": "Promise<ToolCallResult>"
497
+ },
498
+ {
499
+ "name": "forget",
500
+ "async": true,
501
+ "params": [
502
+ "options: object"
503
+ ],
504
+ "returns": "Promise<void>"
505
+ },
506
+ {
507
+ "name": "forgetScope",
508
+ "async": true,
509
+ "params": [
510
+ "options: object"
511
+ ],
512
+ "returns": "Promise<number>"
513
+ },
514
+ {
515
+ "name": "fromSynthesizedSpeech",
516
+ "static": true,
517
+ "params": [
518
+ "options: VoiceOutputFromSynthesizedSpeechOptions"
519
+ ],
520
+ "returns": "VoiceOutput"
521
+ },
522
+ {
523
+ "name": "generateEmbeddings",
524
+ "async": true,
525
+ "params": [
526
+ "options?: GenerateEmbeddingsOptions"
527
+ ],
528
+ "returns": "Promise<void>"
529
+ },
530
+ {
531
+ "name": "generateThumbnail",
532
+ "async": true,
533
+ "params": [
534
+ "options: ThumbnailOptions"
535
+ ],
536
+ "returns": "Promise<Image>"
537
+ },
538
+ {
539
+ "name": "getAiUsageSnapshot",
540
+ "returns": "AiUsageSnapshot | undefined"
541
+ },
542
+ {
543
+ "name": "getAncestorPaths",
544
+ "returns": "string[]"
545
+ },
546
+ {
547
+ "name": "getAssets",
548
+ "async": true,
549
+ "params": [
550
+ "relationship?: string"
551
+ ],
552
+ "returns": "Promise<Asset[]>"
553
+ },
554
+ {
555
+ "name": "getAvailableTools",
556
+ "returns": "AITool[]"
557
+ },
558
+ {
559
+ "name": "getCategorySegments",
560
+ "returns": "string[]"
561
+ },
562
+ {
563
+ "name": "getCorrections",
564
+ "async": true,
565
+ "returns": "any"
566
+ },
567
+ {
568
+ "name": "getEmbedding",
569
+ "async": true,
570
+ "params": [
571
+ "fieldName: string",
572
+ "model?: string"
573
+ ],
574
+ "returns": "Promise<number[] | null>"
575
+ },
576
+ {
577
+ "name": "getFactAuditState",
578
+ "async": true,
579
+ "returns": "Promise<FactAuditState>"
580
+ },
581
+ {
582
+ "name": "getFactAuditStateAction",
583
+ "async": true,
584
+ "returns": "any"
585
+ },
586
+ {
587
+ "name": "getFactLinks",
588
+ "async": true,
589
+ "params": [
590
+ "options?: object"
591
+ ],
592
+ "returns": "any"
593
+ },
594
+ {
595
+ "name": "getFacts",
596
+ "async": true,
597
+ "params": [
598
+ "options?: object"
599
+ ],
600
+ "returns": "Promise<Fact[]>"
601
+ },
602
+ {
603
+ "name": "getFactsState",
604
+ "async": true,
605
+ "params": [
606
+ "options?: object"
607
+ ],
608
+ "returns": "any"
609
+ },
610
+ {
611
+ "name": "getFields",
612
+ "async": true,
613
+ "returns": "Promise<any>"
614
+ },
615
+ {
616
+ "name": "getGovernanceState",
617
+ "async": true,
618
+ "returns": "Promise<ContentGovernanceState>"
619
+ },
620
+ {
621
+ "name": "getGovernanceStateAction",
622
+ "async": true,
623
+ "returns": "any"
624
+ },
625
+ {
626
+ "name": "getId",
627
+ "async": true,
628
+ "returns": "any"
629
+ },
630
+ {
631
+ "name": "getMetadata",
632
+ "returns": "Record<string>"
633
+ },
634
+ {
635
+ "name": "getParentCategory",
636
+ "returns": "string | null"
637
+ },
638
+ {
639
+ "name": "getPublishedTransparency",
640
+ "async": true,
641
+ "returns": "any"
642
+ },
643
+ {
644
+ "name": "getPublishedTransparencyAction",
645
+ "async": true,
646
+ "returns": "any"
647
+ },
648
+ {
649
+ "name": "getReferenceDrift",
650
+ "async": true,
651
+ "returns": "Promise<Array<object>>"
652
+ },
653
+ {
654
+ "name": "getReferenceEdges",
655
+ "async": true,
656
+ "returns": "Promise<Array<object>>"
657
+ },
658
+ {
659
+ "name": "getReferences",
660
+ "async": true,
661
+ "returns": "any"
662
+ },
663
+ {
664
+ "name": "getRelated",
665
+ "async": true,
666
+ "params": [
667
+ "fieldName: string",
668
+ "opts?: LoadRelatedOptions"
669
+ ],
670
+ "returns": "Promise<any>"
671
+ },
672
+ {
673
+ "name": "getReviewRequirements",
674
+ "async": true,
675
+ "params": [
676
+ "profileKey: string",
677
+ "governance?: ResolvedContentGovernance"
678
+ ],
679
+ "returns": "any"
680
+ },
681
+ {
682
+ "name": "getReviews",
683
+ "async": true,
684
+ "params": [
685
+ "kind?: any"
686
+ ],
687
+ "returns": "any"
688
+ },
689
+ {
690
+ "name": "getRootCategory",
691
+ "returns": "string | null"
692
+ },
693
+ {
694
+ "name": "getSavedId",
695
+ "async": true,
696
+ "returns": "any"
697
+ },
698
+ {
699
+ "name": "getSlug",
700
+ "async": true,
701
+ "returns": "any"
702
+ },
703
+ {
704
+ "name": "getThumbnail",
705
+ "async": true,
706
+ "returns": "Promise<Image | null>"
707
+ },
708
+ {
709
+ "name": "getVersions",
710
+ "async": true,
711
+ "returns": "any"
712
+ },
713
+ {
714
+ "name": "getWordAtTime",
715
+ "params": [
716
+ "seconds: number"
717
+ ],
718
+ "returns": "WordTiming | null"
719
+ },
720
+ {
721
+ "name": "hasStaleEmbeddings",
722
+ "async": true,
723
+ "returns": "Promise<boolean>"
724
+ },
725
+ {
726
+ "name": "initialize",
727
+ "async": true,
728
+ "returns": "Promise"
729
+ },
730
+ {
731
+ "name": "is",
732
+ "async": true,
733
+ "params": [
734
+ "criteria: string",
735
+ "options?: AiOperationOptions"
736
+ ],
737
+ "returns": "any"
738
+ },
739
+ {
740
+ "name": "isGoverned",
741
+ "returns": "boolean"
742
+ },
743
+ {
744
+ "name": "isInCategory",
745
+ "params": [
746
+ "categoryPath: string",
747
+ "includeChildren?: any"
748
+ ],
749
+ "returns": "boolean"
750
+ },
751
+ {
752
+ "name": "isReadyForReviewProfile",
753
+ "async": true,
754
+ "params": [
755
+ "profileKey: string"
756
+ ],
757
+ "returns": "Promise<boolean>"
758
+ },
759
+ {
760
+ "name": "isRelatedLoaded",
761
+ "params": [
762
+ "fieldName: string"
763
+ ],
764
+ "returns": "boolean"
765
+ },
766
+ {
767
+ "name": "isSaved",
768
+ "async": true,
769
+ "returns": "any"
770
+ },
771
+ {
772
+ "name": "issueCorrection",
773
+ "async": true,
774
+ "params": [
775
+ "options: IssueContentCorrectionOptions"
776
+ ],
777
+ "returns": "any"
778
+ },
779
+ {
780
+ "name": "issueCorrectionAction",
781
+ "async": true,
782
+ "params": [
783
+ "options: IssueContentCorrectionOptions"
784
+ ],
785
+ "returns": "any"
786
+ },
787
+ {
788
+ "name": "listAiUsage",
789
+ "async": true,
790
+ "params": [
791
+ "options?: AiUsageListOptions"
792
+ ],
793
+ "returns": "Promise<SmrtAiUsageRecord[]>"
794
+ },
795
+ {
796
+ "name": "listCorrections",
797
+ "async": true,
798
+ "returns": "any"
799
+ },
800
+ {
801
+ "name": "listReviewProfilesAction",
802
+ "async": true,
803
+ "returns": "any"
804
+ },
805
+ {
806
+ "name": "listReviews",
807
+ "async": true,
808
+ "params": [
809
+ "options?: object"
810
+ ],
811
+ "returns": "any"
812
+ },
813
+ {
814
+ "name": "listVersions",
815
+ "async": true,
816
+ "returns": "any"
817
+ },
818
+ {
819
+ "name": "loadDataFromDb",
820
+ "async": true,
821
+ "params": [
822
+ "data: Record<string>"
823
+ ],
824
+ "returns": "any"
825
+ },
826
+ {
827
+ "name": "loadFromId",
828
+ "async": true,
829
+ "returns": "any"
830
+ },
831
+ {
832
+ "name": "loadFromSlug",
833
+ "async": true,
834
+ "returns": "any"
835
+ },
836
+ {
837
+ "name": "loadReferences",
838
+ "async": true,
839
+ "returns": "any"
840
+ },
841
+ {
842
+ "name": "loadRelated",
843
+ "async": true,
844
+ "params": [
845
+ "fieldName: string",
846
+ "opts?: LoadRelatedOptions"
847
+ ],
848
+ "returns": "Promise<any>"
849
+ },
850
+ {
851
+ "name": "loadRelatedMany",
852
+ "async": true,
853
+ "params": [
854
+ "fieldName: string",
855
+ "opts?: LoadRelatedOptions"
856
+ ],
857
+ "returns": "Promise<any[]>"
858
+ },
859
+ {
860
+ "name": "markAsPersisted",
861
+ "returns": "void"
862
+ },
863
+ {
864
+ "name": "mutateVersionAction",
865
+ "async": true,
866
+ "params": [
867
+ "options?: any"
868
+ ],
869
+ "returns": "any"
870
+ },
871
+ {
872
+ "name": "previewTransparency",
873
+ "async": true,
874
+ "returns": "any"
875
+ },
876
+ {
877
+ "name": "previewTransparencyAction",
878
+ "async": true,
879
+ "returns": "any"
880
+ },
881
+ {
882
+ "name": "recall",
883
+ "async": true,
884
+ "params": [
885
+ "options: object"
886
+ ],
887
+ "returns": "Promise"
888
+ },
889
+ {
890
+ "name": "recallAll",
891
+ "async": true,
892
+ "params": [
893
+ "options?: object"
894
+ ],
895
+ "returns": "Promise<Map<string>>"
896
+ },
897
+ {
898
+ "name": "recheckFactClaims",
899
+ "async": true,
900
+ "params": [
901
+ "options?: FactAuditClaimRecheckOptions"
902
+ ],
903
+ "returns": "any"
904
+ },
905
+ {
906
+ "name": "recheckFactClaimsAction",
907
+ "async": true,
908
+ "params": [
909
+ "options?: FactAuditClaimRecheckOptions"
910
+ ],
911
+ "returns": "any"
912
+ },
913
+ {
914
+ "name": "remember",
915
+ "async": true,
916
+ "params": [
917
+ "options: object"
918
+ ],
919
+ "returns": "Promise<void>"
920
+ },
921
+ {
922
+ "name": "removeAsset",
923
+ "async": true,
924
+ "params": [
925
+ "assetId: string",
926
+ "relationship?: string"
927
+ ],
928
+ "returns": "Promise<void>"
929
+ },
930
+ {
931
+ "name": "removeFact",
932
+ "async": true,
933
+ "params": [
934
+ "factId: string",
935
+ "relationship?: FactContentRelationship"
936
+ ],
937
+ "returns": "Promise<void>"
938
+ },
939
+ {
940
+ "name": "removeReference",
941
+ "async": true,
942
+ "params": [
943
+ "targetId: string"
944
+ ],
945
+ "returns": "any"
946
+ },
947
+ {
948
+ "name": "repairFactAudit",
949
+ "async": true,
950
+ "params": [
951
+ "options?: object"
952
+ ],
953
+ "returns": "any"
954
+ },
955
+ {
956
+ "name": "repairFactAuditAction",
957
+ "async": true,
958
+ "params": [
959
+ "options?: object"
960
+ ],
961
+ "returns": "any"
962
+ },
963
+ {
964
+ "name": "repairFactEvidence",
965
+ "async": true,
966
+ "params": [
967
+ "options?: FactAuditResourceRepairOptions"
968
+ ],
969
+ "returns": "any"
970
+ },
971
+ {
972
+ "name": "repairFactEvidenceAction",
973
+ "async": true,
974
+ "params": [
975
+ "options?: FactAuditResourceRepairOptions"
976
+ ],
977
+ "returns": "any"
978
+ },
979
+ {
980
+ "name": "requireInsertOnSave",
981
+ "returns": "void"
982
+ },
983
+ {
984
+ "name": "resetAiUsage",
985
+ "returns": "void"
986
+ },
987
+ {
988
+ "name": "resolveGovernance",
989
+ "async": true,
990
+ "returns": "Promise<ResolvedContentGovernance>"
991
+ },
992
+ {
993
+ "name": "restoreFromVersion",
994
+ "async": true,
995
+ "params": [
996
+ "versionNumber: number"
997
+ ],
998
+ "returns": "any"
999
+ },
1000
+ {
1001
+ "name": "reviewFacts",
1002
+ "async": true,
1003
+ "params": [
1004
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
1005
+ ],
1006
+ "returns": "any"
1007
+ },
1008
+ {
1009
+ "name": "reviewSafety",
1010
+ "async": true,
1011
+ "params": [
1012
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
1013
+ ],
1014
+ "returns": "any"
1015
+ },
1016
+ {
1017
+ "name": "runReview",
1018
+ "async": true,
1019
+ "params": [
1020
+ "options?: RunContentReviewOptions"
1021
+ ],
1022
+ "returns": "any"
1023
+ },
1024
+ {
1025
+ "name": "runReviewAction",
1026
+ "async": true,
1027
+ "params": [
1028
+ "options?: RunContentReviewOptions"
1029
+ ],
1030
+ "returns": "any"
1031
+ },
1032
+ {
1033
+ "name": "save",
1034
+ "async": true,
1035
+ "returns": "any"
1036
+ },
1037
+ {
1038
+ "name": "setMetadata",
1039
+ "params": [
1040
+ "metadata: Record<string> | null | undefined"
1041
+ ],
1042
+ "returns": "void"
1043
+ },
1044
+ {
1045
+ "name": "setThumbnail",
1046
+ "async": true,
1047
+ "params": [
1048
+ "image: Image"
1049
+ ],
1050
+ "returns": "Promise<void>"
1051
+ },
1052
+ {
1053
+ "name": "summarizeAiUsage",
1054
+ "async": true,
1055
+ "params": [
1056
+ "options?: AiUsageSummaryOptions"
1057
+ ],
1058
+ "returns": "Promise<Record<string, AiUsageStats>>"
1059
+ },
1060
+ {
1061
+ "name": "syncFacts",
1062
+ "async": true,
1063
+ "params": [
1064
+ "factIds: string[]",
1065
+ "relationship?: FactContentRelationship"
1066
+ ],
1067
+ "returns": "Promise<object>"
1068
+ },
1069
+ {
1070
+ "name": "syncFactsState",
1071
+ "async": true,
1072
+ "params": [
1073
+ "options?: object"
1074
+ ],
1075
+ "returns": "any"
1076
+ },
1077
+ {
1078
+ "name": "toJSON",
1079
+ "returns": "any"
1080
+ },
1081
+ {
1082
+ "name": "toPlainObject",
1083
+ "returns": "Record<string>"
1084
+ },
1085
+ {
1086
+ "name": "toPublicJSON",
1087
+ "params": [
1088
+ "options?: PublicJsonOptions"
1089
+ ],
1090
+ "returns": "Record<string>"
1091
+ },
1092
+ {
1093
+ "name": "updateFactEvidenceStatus",
1094
+ "async": true,
1095
+ "params": [
1096
+ "options?: FactEvidenceStatusUpdateOptions"
1097
+ ],
1098
+ "returns": "any"
1099
+ },
1100
+ {
1101
+ "name": "updateFactEvidenceStatusAction",
1102
+ "async": true,
1103
+ "params": [
1104
+ "options?: FactEvidenceStatusUpdateOptions"
1105
+ ],
1106
+ "returns": "any"
1107
+ },
1108
+ {
1109
+ "name": "updateMetadata",
1110
+ "params": [
1111
+ "patch: Partial<Record<string>>"
1112
+ ],
1113
+ "returns": "Record<string>"
1114
+ }
1115
+ ],
1116
+ "tenant": {
1117
+ "scoped": true,
1118
+ "mode": "optional",
1119
+ "field": "tenantId"
1120
+ },
1121
+ "tableStrategy": "sti",
371
1122
  "surfaces": [
372
1123
  {
373
1124
  "kind": "api",
@@ -482,7 +1233,8 @@
482
1233
  "name": "name",
483
1234
  "type": "text",
484
1235
  "required": false,
485
- "columnType": "TEXT"
1236
+ "columnType": "TEXT",
1237
+ "default": ""
486
1238
  },
487
1239
  {
488
1240
  "name": "description",
@@ -494,13 +1246,15 @@
494
1246
  "name": "language",
495
1247
  "type": "text",
496
1248
  "required": false,
497
- "columnType": "TEXT"
1249
+ "columnType": "TEXT",
1250
+ "default": "en-US"
498
1251
  },
499
1252
  {
500
1253
  "name": "gender",
501
1254
  "type": "text",
502
1255
  "required": false,
503
- "columnType": "TEXT"
1256
+ "columnType": "TEXT",
1257
+ "default": "neutral"
504
1258
  },
505
1259
  {
506
1260
  "name": "designPrompt",
@@ -519,31 +1273,36 @@
519
1273
  "name": "voiceData",
520
1274
  "type": "json",
521
1275
  "required": false,
522
- "columnType": "JSON"
1276
+ "columnType": "JSON",
1277
+ "default": {}
523
1278
  },
524
1279
  {
525
1280
  "name": "defaultSpeed",
526
1281
  "type": "decimal",
527
1282
  "required": false,
528
- "columnType": "REAL"
1283
+ "columnType": "REAL",
1284
+ "default": 1
529
1285
  },
530
1286
  {
531
1287
  "name": "defaultPitch",
532
1288
  "type": "integer",
533
1289
  "required": false,
534
- "columnType": "INTEGER"
1290
+ "columnType": "INTEGER",
1291
+ "default": 0
535
1292
  },
536
1293
  {
537
1294
  "name": "status",
538
1295
  "type": "text",
539
1296
  "required": false,
540
- "columnType": "TEXT"
1297
+ "columnType": "TEXT",
1298
+ "default": "pending"
541
1299
  },
542
1300
  {
543
1301
  "name": "provider",
544
1302
  "type": "text",
545
1303
  "required": false,
546
- "columnType": "TEXT"
1304
+ "columnType": "TEXT",
1305
+ "default": "qwen3-tts"
547
1306
  },
548
1307
  {
549
1308
  "name": "errorMessage",
@@ -605,6 +1364,282 @@
605
1364
  "toPublicJSON",
606
1365
  "toSpeechVoice"
607
1366
  ],
1367
+ "methodSignatures": [
1368
+ {
1369
+ "name": "_setLoadedRelationship",
1370
+ "params": [
1371
+ "fieldName: string",
1372
+ "value: any"
1373
+ ],
1374
+ "returns": "void"
1375
+ },
1376
+ {
1377
+ "name": "classifyConstraintError",
1378
+ "static": true,
1379
+ "params": [
1380
+ "message: string"
1381
+ ],
1382
+ "returns": "'unique' | 'not_null' | null"
1383
+ },
1384
+ {
1385
+ "name": "clearEmbeddings",
1386
+ "async": true,
1387
+ "returns": "Promise<void>"
1388
+ },
1389
+ {
1390
+ "name": "delete",
1391
+ "async": true,
1392
+ "returns": "Promise<void>"
1393
+ },
1394
+ {
1395
+ "name": "describe",
1396
+ "async": true,
1397
+ "params": [
1398
+ "options?: AiOperationOptions"
1399
+ ],
1400
+ "returns": "any"
1401
+ },
1402
+ {
1403
+ "name": "destroy",
1404
+ "returns": "void"
1405
+ },
1406
+ {
1407
+ "name": "do",
1408
+ "async": true,
1409
+ "params": [
1410
+ "instructions: string",
1411
+ "options?: AiOperationOptions"
1412
+ ],
1413
+ "returns": "any"
1414
+ },
1415
+ {
1416
+ "name": "executeToolCall",
1417
+ "async": true,
1418
+ "params": [
1419
+ "toolCall: ToolCall"
1420
+ ],
1421
+ "returns": "Promise<ToolCallResult>"
1422
+ },
1423
+ {
1424
+ "name": "forget",
1425
+ "async": true,
1426
+ "params": [
1427
+ "options: object"
1428
+ ],
1429
+ "returns": "Promise<void>"
1430
+ },
1431
+ {
1432
+ "name": "forgetScope",
1433
+ "async": true,
1434
+ "params": [
1435
+ "options: object"
1436
+ ],
1437
+ "returns": "Promise<number>"
1438
+ },
1439
+ {
1440
+ "name": "generateEmbeddings",
1441
+ "async": true,
1442
+ "params": [
1443
+ "options?: GenerateEmbeddingsOptions"
1444
+ ],
1445
+ "returns": "Promise<void>"
1446
+ },
1447
+ {
1448
+ "name": "getAiUsageSnapshot",
1449
+ "returns": "AiUsageSnapshot | undefined"
1450
+ },
1451
+ {
1452
+ "name": "getAvailableTools",
1453
+ "returns": "AITool[]"
1454
+ },
1455
+ {
1456
+ "name": "getEmbedding",
1457
+ "async": true,
1458
+ "params": [
1459
+ "fieldName: string",
1460
+ "model?: string"
1461
+ ],
1462
+ "returns": "Promise<number[] | null>"
1463
+ },
1464
+ {
1465
+ "name": "getFields",
1466
+ "async": true,
1467
+ "returns": "Promise<any>"
1468
+ },
1469
+ {
1470
+ "name": "getId",
1471
+ "async": true,
1472
+ "returns": "any"
1473
+ },
1474
+ {
1475
+ "name": "getRelated",
1476
+ "async": true,
1477
+ "params": [
1478
+ "fieldName: string",
1479
+ "opts?: LoadRelatedOptions"
1480
+ ],
1481
+ "returns": "Promise<any>"
1482
+ },
1483
+ {
1484
+ "name": "getSavedId",
1485
+ "async": true,
1486
+ "returns": "any"
1487
+ },
1488
+ {
1489
+ "name": "getSlug",
1490
+ "async": true,
1491
+ "returns": "any"
1492
+ },
1493
+ {
1494
+ "name": "hasStaleEmbeddings",
1495
+ "async": true,
1496
+ "returns": "Promise<boolean>"
1497
+ },
1498
+ {
1499
+ "name": "initialize",
1500
+ "async": true,
1501
+ "returns": "Promise"
1502
+ },
1503
+ {
1504
+ "name": "is",
1505
+ "async": true,
1506
+ "params": [
1507
+ "criteria: string",
1508
+ "options?: AiOperationOptions"
1509
+ ],
1510
+ "returns": "any"
1511
+ },
1512
+ {
1513
+ "name": "isRelatedLoaded",
1514
+ "params": [
1515
+ "fieldName: string"
1516
+ ],
1517
+ "returns": "boolean"
1518
+ },
1519
+ {
1520
+ "name": "isSaved",
1521
+ "async": true,
1522
+ "returns": "any"
1523
+ },
1524
+ {
1525
+ "name": "listAiUsage",
1526
+ "async": true,
1527
+ "params": [
1528
+ "options?: AiUsageListOptions"
1529
+ ],
1530
+ "returns": "Promise<SmrtAiUsageRecord[]>"
1531
+ },
1532
+ {
1533
+ "name": "loadDataFromDb",
1534
+ "async": true,
1535
+ "params": [
1536
+ "data: Record<string>"
1537
+ ],
1538
+ "returns": "any"
1539
+ },
1540
+ {
1541
+ "name": "loadFromId",
1542
+ "async": true,
1543
+ "returns": "any"
1544
+ },
1545
+ {
1546
+ "name": "loadFromSlug",
1547
+ "async": true,
1548
+ "returns": "any"
1549
+ },
1550
+ {
1551
+ "name": "loadRelated",
1552
+ "async": true,
1553
+ "params": [
1554
+ "fieldName: string",
1555
+ "opts?: LoadRelatedOptions"
1556
+ ],
1557
+ "returns": "Promise<any>"
1558
+ },
1559
+ {
1560
+ "name": "loadRelatedMany",
1561
+ "async": true,
1562
+ "params": [
1563
+ "fieldName: string",
1564
+ "opts?: LoadRelatedOptions"
1565
+ ],
1566
+ "returns": "Promise<any[]>"
1567
+ },
1568
+ {
1569
+ "name": "markAsPersisted",
1570
+ "returns": "void"
1571
+ },
1572
+ {
1573
+ "name": "recall",
1574
+ "async": true,
1575
+ "params": [
1576
+ "options: object"
1577
+ ],
1578
+ "returns": "Promise"
1579
+ },
1580
+ {
1581
+ "name": "recallAll",
1582
+ "async": true,
1583
+ "params": [
1584
+ "options?: object"
1585
+ ],
1586
+ "returns": "Promise<Map<string>>"
1587
+ },
1588
+ {
1589
+ "name": "remember",
1590
+ "async": true,
1591
+ "params": [
1592
+ "options: object"
1593
+ ],
1594
+ "returns": "Promise<void>"
1595
+ },
1596
+ {
1597
+ "name": "requireInsertOnSave",
1598
+ "returns": "void"
1599
+ },
1600
+ {
1601
+ "name": "resetAiUsage",
1602
+ "returns": "void"
1603
+ },
1604
+ {
1605
+ "name": "save",
1606
+ "async": true,
1607
+ "returns": "any"
1608
+ },
1609
+ {
1610
+ "name": "summarizeAiUsage",
1611
+ "async": true,
1612
+ "params": [
1613
+ "options?: AiUsageSummaryOptions"
1614
+ ],
1615
+ "returns": "Promise<Record<string, AiUsageStats>>"
1616
+ },
1617
+ {
1618
+ "name": "toJSON",
1619
+ "returns": "any"
1620
+ },
1621
+ {
1622
+ "name": "toPlainObject",
1623
+ "returns": "Record<string>"
1624
+ },
1625
+ {
1626
+ "name": "toPublicJSON",
1627
+ "params": [
1628
+ "options?: PublicJsonOptions"
1629
+ ],
1630
+ "returns": "Record<string>"
1631
+ },
1632
+ {
1633
+ "name": "toSpeechVoice",
1634
+ "returns": "SpeechVoice"
1635
+ }
1636
+ ],
1637
+ "tenant": {
1638
+ "scoped": true,
1639
+ "mode": "optional",
1640
+ "field": "tenantId"
1641
+ },
1642
+ "tableStrategy": "sti",
608
1643
  "surfaces": [
609
1644
  {
610
1645
  "kind": "api",
@@ -740,7 +1775,8 @@
740
1775
  "name": "duration",
741
1776
  "type": "integer",
742
1777
  "required": false,
743
- "columnType": "INTEGER"
1778
+ "columnType": "INTEGER",
1779
+ "default": 0
744
1780
  },
745
1781
  {
746
1782
  "name": "transcription",
@@ -752,7 +1788,8 @@
752
1788
  "name": "quality",
753
1789
  "type": "text",
754
1790
  "required": false,
755
- "columnType": "TEXT"
1791
+ "columnType": "TEXT",
1792
+ "default": "medium"
756
1793
  },
757
1794
  {
758
1795
  "name": "sampleRate",
@@ -776,7 +1813,8 @@
776
1813
  "name": "isPrimary",
777
1814
  "type": "boolean",
778
1815
  "required": false,
779
- "columnType": "BOOLEAN"
1816
+ "columnType": "BOOLEAN",
1817
+ "default": false
780
1818
  }
781
1819
  ],
782
1820
  "relationships": [
@@ -838,6 +1876,278 @@
838
1876
  "toPlainObject",
839
1877
  "toPublicJSON"
840
1878
  ],
1879
+ "methodSignatures": [
1880
+ {
1881
+ "name": "_setLoadedRelationship",
1882
+ "params": [
1883
+ "fieldName: string",
1884
+ "value: any"
1885
+ ],
1886
+ "returns": "void"
1887
+ },
1888
+ {
1889
+ "name": "classifyConstraintError",
1890
+ "static": true,
1891
+ "params": [
1892
+ "message: string"
1893
+ ],
1894
+ "returns": "'unique' | 'not_null' | null"
1895
+ },
1896
+ {
1897
+ "name": "clearEmbeddings",
1898
+ "async": true,
1899
+ "returns": "Promise<void>"
1900
+ },
1901
+ {
1902
+ "name": "delete",
1903
+ "async": true,
1904
+ "returns": "Promise<void>"
1905
+ },
1906
+ {
1907
+ "name": "describe",
1908
+ "async": true,
1909
+ "params": [
1910
+ "options?: AiOperationOptions"
1911
+ ],
1912
+ "returns": "any"
1913
+ },
1914
+ {
1915
+ "name": "destroy",
1916
+ "returns": "void"
1917
+ },
1918
+ {
1919
+ "name": "do",
1920
+ "async": true,
1921
+ "params": [
1922
+ "instructions: string",
1923
+ "options?: AiOperationOptions"
1924
+ ],
1925
+ "returns": "any"
1926
+ },
1927
+ {
1928
+ "name": "executeToolCall",
1929
+ "async": true,
1930
+ "params": [
1931
+ "toolCall: ToolCall"
1932
+ ],
1933
+ "returns": "Promise<ToolCallResult>"
1934
+ },
1935
+ {
1936
+ "name": "forget",
1937
+ "async": true,
1938
+ "params": [
1939
+ "options: object"
1940
+ ],
1941
+ "returns": "Promise<void>"
1942
+ },
1943
+ {
1944
+ "name": "forgetScope",
1945
+ "async": true,
1946
+ "params": [
1947
+ "options: object"
1948
+ ],
1949
+ "returns": "Promise<number>"
1950
+ },
1951
+ {
1952
+ "name": "generateEmbeddings",
1953
+ "async": true,
1954
+ "params": [
1955
+ "options?: GenerateEmbeddingsOptions"
1956
+ ],
1957
+ "returns": "Promise<void>"
1958
+ },
1959
+ {
1960
+ "name": "getAiUsageSnapshot",
1961
+ "returns": "AiUsageSnapshot | undefined"
1962
+ },
1963
+ {
1964
+ "name": "getAvailableTools",
1965
+ "returns": "AITool[]"
1966
+ },
1967
+ {
1968
+ "name": "getEmbedding",
1969
+ "async": true,
1970
+ "params": [
1971
+ "fieldName: string",
1972
+ "model?: string"
1973
+ ],
1974
+ "returns": "Promise<number[] | null>"
1975
+ },
1976
+ {
1977
+ "name": "getFields",
1978
+ "async": true,
1979
+ "returns": "Promise<any>"
1980
+ },
1981
+ {
1982
+ "name": "getId",
1983
+ "async": true,
1984
+ "returns": "any"
1985
+ },
1986
+ {
1987
+ "name": "getRelated",
1988
+ "async": true,
1989
+ "params": [
1990
+ "fieldName: string",
1991
+ "opts?: LoadRelatedOptions"
1992
+ ],
1993
+ "returns": "Promise<any>"
1994
+ },
1995
+ {
1996
+ "name": "getSavedId",
1997
+ "async": true,
1998
+ "returns": "any"
1999
+ },
2000
+ {
2001
+ "name": "getSlug",
2002
+ "async": true,
2003
+ "returns": "any"
2004
+ },
2005
+ {
2006
+ "name": "hasStaleEmbeddings",
2007
+ "async": true,
2008
+ "returns": "Promise<boolean>"
2009
+ },
2010
+ {
2011
+ "name": "initialize",
2012
+ "async": true,
2013
+ "returns": "Promise"
2014
+ },
2015
+ {
2016
+ "name": "is",
2017
+ "async": true,
2018
+ "params": [
2019
+ "criteria: string",
2020
+ "options?: AiOperationOptions"
2021
+ ],
2022
+ "returns": "any"
2023
+ },
2024
+ {
2025
+ "name": "isRelatedLoaded",
2026
+ "params": [
2027
+ "fieldName: string"
2028
+ ],
2029
+ "returns": "boolean"
2030
+ },
2031
+ {
2032
+ "name": "isSaved",
2033
+ "async": true,
2034
+ "returns": "any"
2035
+ },
2036
+ {
2037
+ "name": "listAiUsage",
2038
+ "async": true,
2039
+ "params": [
2040
+ "options?: AiUsageListOptions"
2041
+ ],
2042
+ "returns": "Promise<SmrtAiUsageRecord[]>"
2043
+ },
2044
+ {
2045
+ "name": "loadDataFromDb",
2046
+ "async": true,
2047
+ "params": [
2048
+ "data: Record<string>"
2049
+ ],
2050
+ "returns": "any"
2051
+ },
2052
+ {
2053
+ "name": "loadFromId",
2054
+ "async": true,
2055
+ "returns": "any"
2056
+ },
2057
+ {
2058
+ "name": "loadFromSlug",
2059
+ "async": true,
2060
+ "returns": "any"
2061
+ },
2062
+ {
2063
+ "name": "loadRelated",
2064
+ "async": true,
2065
+ "params": [
2066
+ "fieldName: string",
2067
+ "opts?: LoadRelatedOptions"
2068
+ ],
2069
+ "returns": "Promise<any>"
2070
+ },
2071
+ {
2072
+ "name": "loadRelatedMany",
2073
+ "async": true,
2074
+ "params": [
2075
+ "fieldName: string",
2076
+ "opts?: LoadRelatedOptions"
2077
+ ],
2078
+ "returns": "Promise<any[]>"
2079
+ },
2080
+ {
2081
+ "name": "markAsPersisted",
2082
+ "returns": "void"
2083
+ },
2084
+ {
2085
+ "name": "recall",
2086
+ "async": true,
2087
+ "params": [
2088
+ "options: object"
2089
+ ],
2090
+ "returns": "Promise"
2091
+ },
2092
+ {
2093
+ "name": "recallAll",
2094
+ "async": true,
2095
+ "params": [
2096
+ "options?: object"
2097
+ ],
2098
+ "returns": "Promise<Map<string>>"
2099
+ },
2100
+ {
2101
+ "name": "remember",
2102
+ "async": true,
2103
+ "params": [
2104
+ "options: object"
2105
+ ],
2106
+ "returns": "Promise<void>"
2107
+ },
2108
+ {
2109
+ "name": "requireInsertOnSave",
2110
+ "returns": "void"
2111
+ },
2112
+ {
2113
+ "name": "resetAiUsage",
2114
+ "returns": "void"
2115
+ },
2116
+ {
2117
+ "name": "save",
2118
+ "async": true,
2119
+ "returns": "any"
2120
+ },
2121
+ {
2122
+ "name": "summarizeAiUsage",
2123
+ "async": true,
2124
+ "params": [
2125
+ "options?: AiUsageSummaryOptions"
2126
+ ],
2127
+ "returns": "Promise<Record<string, AiUsageStats>>"
2128
+ },
2129
+ {
2130
+ "name": "toJSON",
2131
+ "returns": "any"
2132
+ },
2133
+ {
2134
+ "name": "toPlainObject",
2135
+ "returns": "Record<string>"
2136
+ },
2137
+ {
2138
+ "name": "toPublicJSON",
2139
+ "params": [
2140
+ "options?: PublicJsonOptions"
2141
+ ],
2142
+ "returns": "Record<string>"
2143
+ }
2144
+ ],
2145
+ "tenant": {
2146
+ "scoped": true,
2147
+ "mode": "optional",
2148
+ "field": "tenantId"
2149
+ },
2150
+ "tableStrategy": "sti",
841
2151
  "surfaces": [
842
2152
  {
843
2153
  "kind": "api",