@happyvertical/smrt-voice 0.30.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.
@@ -0,0 +1,3047 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "timestamp": 1782177150822,
4
+ "packageName": "@happyvertical/smrt-voice",
5
+ "packageVersion": "0.30.0",
6
+ "objects": {
7
+ "@happyvertical/smrt-voice:VoiceOutput": {
8
+ "name": "voiceoutput",
9
+ "className": "VoiceOutput",
10
+ "qualifiedName": "@happyvertical/smrt-voice:VoiceOutput",
11
+ "collection": "contents",
12
+ "filePath": "/home/runner/_work/smrt/smrt/packages/voice/src/voice-output.ts",
13
+ "packageName": "@happyvertical/smrt-voice",
14
+ "fields": {
15
+ "created_at": {
16
+ "type": "datetime",
17
+ "required": false
18
+ },
19
+ "updated_at": {
20
+ "type": "datetime",
21
+ "required": false
22
+ },
23
+ "tenantId": {
24
+ "type": "text",
25
+ "required": false,
26
+ "_meta": {
27
+ "generated": true,
28
+ "source": "tenantScoped_decorator",
29
+ "sqlType": "UUID",
30
+ "__tenancy": {
31
+ "isTenantIdField": true,
32
+ "mode": "optional",
33
+ "field": "tenantId",
34
+ "autoFilter": true,
35
+ "autoPopulate": true,
36
+ "allowSuperAdminBypass": false
37
+ }
38
+ }
39
+ },
40
+ "type": {
41
+ "type": "text",
42
+ "required": false
43
+ },
44
+ "variant": {
45
+ "type": "text",
46
+ "required": false
47
+ },
48
+ "fileKey": {
49
+ "type": "text",
50
+ "required": false
51
+ },
52
+ "author": {
53
+ "type": "text",
54
+ "required": false
55
+ },
56
+ "name": {
57
+ "type": "text",
58
+ "required": true,
59
+ "default": "",
60
+ "_meta": {
61
+ "required": true
62
+ }
63
+ },
64
+ "title": {
65
+ "type": "text",
66
+ "required": false
67
+ },
68
+ "description": {
69
+ "type": "text",
70
+ "required": false
71
+ },
72
+ "body": {
73
+ "type": "text",
74
+ "required": false
75
+ },
76
+ "bodyFormat": {
77
+ "type": "text",
78
+ "required": false
79
+ },
80
+ "publish_date": {
81
+ "type": "datetime",
82
+ "required": false
83
+ },
84
+ "url": {
85
+ "type": "text",
86
+ "required": false
87
+ },
88
+ "source": {
89
+ "type": "text",
90
+ "required": false
91
+ },
92
+ "original_url": {
93
+ "type": "text",
94
+ "required": false
95
+ },
96
+ "language": {
97
+ "type": "text",
98
+ "required": false
99
+ },
100
+ "tags": {
101
+ "type": "json",
102
+ "required": false,
103
+ "default": []
104
+ },
105
+ "category": {
106
+ "type": "text",
107
+ "required": false
108
+ },
109
+ "status": {
110
+ "type": "text",
111
+ "required": false,
112
+ "default": "draft"
113
+ },
114
+ "state": {
115
+ "type": "text",
116
+ "required": false,
117
+ "default": "active"
118
+ },
119
+ "metadata": {
120
+ "type": "json",
121
+ "required": false,
122
+ "default": {}
123
+ },
124
+ "thumbnailAssetId": {
125
+ "type": "crossPackageRef",
126
+ "required": false,
127
+ "related": "@happyvertical/smrt-assets:Asset"
128
+ },
129
+ "voiceProfileId": {
130
+ "type": "foreignKey",
131
+ "required": false,
132
+ "related": "() => VoiceProfile"
133
+ },
134
+ "sourceText": {
135
+ "type": "text",
136
+ "required": false,
137
+ "default": ""
138
+ },
139
+ "audioAssetId": {
140
+ "type": "crossPackageRef",
141
+ "required": false,
142
+ "related": "@happyvertical/smrt-assets:Asset"
143
+ },
144
+ "duration": {
145
+ "type": "integer",
146
+ "required": false,
147
+ "default": 0
148
+ },
149
+ "wordTimings": {
150
+ "type": "json",
151
+ "required": false,
152
+ "default": []
153
+ },
154
+ "audioMetadata": {
155
+ "type": "json",
156
+ "required": false
157
+ }
158
+ },
159
+ "methods": {
160
+ "getAiUsageSnapshot": {
161
+ "name": "getAiUsageSnapshot",
162
+ "async": false,
163
+ "parameters": [],
164
+ "returnType": "AiUsageSnapshot | undefined",
165
+ "isStatic": false,
166
+ "isPublic": true
167
+ },
168
+ "resetAiUsage": {
169
+ "name": "resetAiUsage",
170
+ "async": false,
171
+ "parameters": [],
172
+ "returnType": "void",
173
+ "isStatic": false,
174
+ "isPublic": true
175
+ },
176
+ "listAiUsage": {
177
+ "name": "listAiUsage",
178
+ "async": true,
179
+ "parameters": [
180
+ {
181
+ "name": "options",
182
+ "type": "AiUsageListOptions",
183
+ "optional": true
184
+ }
185
+ ],
186
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
187
+ "isStatic": false,
188
+ "isPublic": true
189
+ },
190
+ "summarizeAiUsage": {
191
+ "name": "summarizeAiUsage",
192
+ "async": true,
193
+ "parameters": [
194
+ {
195
+ "name": "options",
196
+ "type": "AiUsageSummaryOptions",
197
+ "optional": true
198
+ }
199
+ ],
200
+ "returnType": "Promise<Record<string, AiUsageStats>>",
201
+ "isStatic": false,
202
+ "isPublic": true
203
+ },
204
+ "destroy": {
205
+ "name": "destroy",
206
+ "async": false,
207
+ "parameters": [],
208
+ "returnType": "void",
209
+ "isStatic": false,
210
+ "isPublic": true
211
+ },
212
+ "markAsPersisted": {
213
+ "name": "markAsPersisted",
214
+ "async": false,
215
+ "parameters": [],
216
+ "returnType": "void",
217
+ "isStatic": false,
218
+ "isPublic": true
219
+ },
220
+ "initialize": {
221
+ "name": "initialize",
222
+ "async": true,
223
+ "parameters": [],
224
+ "returnType": "Promise",
225
+ "isStatic": false,
226
+ "isPublic": true
227
+ },
228
+ "loadDataFromDb": {
229
+ "name": "loadDataFromDb",
230
+ "async": true,
231
+ "parameters": [
232
+ {
233
+ "name": "data",
234
+ "type": "any",
235
+ "optional": false
236
+ }
237
+ ],
238
+ "returnType": "any",
239
+ "isStatic": false,
240
+ "isPublic": true
241
+ },
242
+ "getFields": {
243
+ "name": "getFields",
244
+ "async": true,
245
+ "parameters": [],
246
+ "returnType": "any",
247
+ "isStatic": false,
248
+ "isPublic": true
249
+ },
250
+ "toJSON": {
251
+ "name": "toJSON",
252
+ "async": false,
253
+ "parameters": [],
254
+ "returnType": "any",
255
+ "isStatic": false,
256
+ "isPublic": true
257
+ },
258
+ "toPlainObject": {
259
+ "name": "toPlainObject",
260
+ "async": false,
261
+ "parameters": [],
262
+ "returnType": "Record<string>",
263
+ "isStatic": false,
264
+ "isPublic": true
265
+ },
266
+ "toPublicJSON": {
267
+ "name": "toPublicJSON",
268
+ "async": false,
269
+ "parameters": [],
270
+ "returnType": "Record<string>",
271
+ "isStatic": false,
272
+ "isPublic": true
273
+ },
274
+ "getId": {
275
+ "name": "getId",
276
+ "async": true,
277
+ "parameters": [],
278
+ "returnType": "any",
279
+ "isStatic": false,
280
+ "isPublic": true
281
+ },
282
+ "getSlug": {
283
+ "name": "getSlug",
284
+ "async": true,
285
+ "parameters": [],
286
+ "returnType": "any",
287
+ "isStatic": false,
288
+ "isPublic": true
289
+ },
290
+ "getSavedId": {
291
+ "name": "getSavedId",
292
+ "async": true,
293
+ "parameters": [],
294
+ "returnType": "any",
295
+ "isStatic": false,
296
+ "isPublic": true
297
+ },
298
+ "isSaved": {
299
+ "name": "isSaved",
300
+ "async": true,
301
+ "parameters": [],
302
+ "returnType": "any",
303
+ "isStatic": false,
304
+ "isPublic": true
305
+ },
306
+ "save": {
307
+ "name": "save",
308
+ "async": true,
309
+ "parameters": [],
310
+ "returnType": "any",
311
+ "isStatic": false,
312
+ "isPublic": true
313
+ },
314
+ "classifyConstraintError": {
315
+ "name": "classifyConstraintError",
316
+ "async": false,
317
+ "parameters": [
318
+ {
319
+ "name": "message",
320
+ "type": "string",
321
+ "optional": false
322
+ }
323
+ ],
324
+ "returnType": "'unique' | 'not_null' | null",
325
+ "isStatic": true,
326
+ "isPublic": true
327
+ },
328
+ "loadFromId": {
329
+ "name": "loadFromId",
330
+ "async": true,
331
+ "parameters": [],
332
+ "returnType": "any",
333
+ "isStatic": false,
334
+ "isPublic": true
335
+ },
336
+ "loadFromSlug": {
337
+ "name": "loadFromSlug",
338
+ "async": true,
339
+ "parameters": [],
340
+ "returnType": "any",
341
+ "isStatic": false,
342
+ "isPublic": true
343
+ },
344
+ "is": {
345
+ "name": "is",
346
+ "async": true,
347
+ "parameters": [
348
+ {
349
+ "name": "criteria",
350
+ "type": "string",
351
+ "optional": false
352
+ },
353
+ {
354
+ "name": "options",
355
+ "type": "any",
356
+ "optional": true
357
+ }
358
+ ],
359
+ "returnType": "any",
360
+ "isStatic": false,
361
+ "isPublic": true
362
+ },
363
+ "do": {
364
+ "name": "do",
365
+ "async": true,
366
+ "parameters": [
367
+ {
368
+ "name": "instructions",
369
+ "type": "string",
370
+ "optional": false
371
+ },
372
+ {
373
+ "name": "options",
374
+ "type": "any",
375
+ "optional": true
376
+ }
377
+ ],
378
+ "returnType": "any",
379
+ "isStatic": false,
380
+ "isPublic": true
381
+ },
382
+ "describe": {
383
+ "name": "describe",
384
+ "async": true,
385
+ "parameters": [
386
+ {
387
+ "name": "options",
388
+ "type": "any",
389
+ "optional": true
390
+ }
391
+ ],
392
+ "returnType": "any",
393
+ "isStatic": false,
394
+ "isPublic": true
395
+ },
396
+ "delete": {
397
+ "name": "delete",
398
+ "async": true,
399
+ "parameters": [],
400
+ "returnType": "Promise<void>",
401
+ "isStatic": false,
402
+ "isPublic": true
403
+ },
404
+ "isRelatedLoaded": {
405
+ "name": "isRelatedLoaded",
406
+ "async": false,
407
+ "parameters": [
408
+ {
409
+ "name": "fieldName",
410
+ "type": "string",
411
+ "optional": false
412
+ }
413
+ ],
414
+ "returnType": "boolean",
415
+ "isStatic": false,
416
+ "isPublic": true
417
+ },
418
+ "loadRelated": {
419
+ "name": "loadRelated",
420
+ "async": true,
421
+ "parameters": [
422
+ {
423
+ "name": "fieldName",
424
+ "type": "string",
425
+ "optional": false
426
+ },
427
+ {
428
+ "name": "opts",
429
+ "type": "LoadRelatedOptions",
430
+ "optional": true
431
+ }
432
+ ],
433
+ "returnType": "Promise<any>",
434
+ "isStatic": false,
435
+ "isPublic": true
436
+ },
437
+ "loadRelatedMany": {
438
+ "name": "loadRelatedMany",
439
+ "async": true,
440
+ "parameters": [
441
+ {
442
+ "name": "fieldName",
443
+ "type": "string",
444
+ "optional": false
445
+ },
446
+ {
447
+ "name": "opts",
448
+ "type": "LoadRelatedOptions",
449
+ "optional": true
450
+ }
451
+ ],
452
+ "returnType": "Promise<any[]>",
453
+ "isStatic": false,
454
+ "isPublic": true
455
+ },
456
+ "getRelated": {
457
+ "name": "getRelated",
458
+ "async": true,
459
+ "parameters": [
460
+ {
461
+ "name": "fieldName",
462
+ "type": "string",
463
+ "optional": false
464
+ },
465
+ {
466
+ "name": "opts",
467
+ "type": "LoadRelatedOptions",
468
+ "optional": true
469
+ }
470
+ ],
471
+ "returnType": "Promise<any>",
472
+ "isStatic": false,
473
+ "isPublic": true
474
+ },
475
+ "getAvailableTools": {
476
+ "name": "getAvailableTools",
477
+ "async": false,
478
+ "parameters": [],
479
+ "returnType": "AITool[]",
480
+ "isStatic": false,
481
+ "isPublic": true
482
+ },
483
+ "executeToolCall": {
484
+ "name": "executeToolCall",
485
+ "async": true,
486
+ "parameters": [
487
+ {
488
+ "name": "toolCall",
489
+ "type": "ToolCall",
490
+ "optional": false
491
+ }
492
+ ],
493
+ "returnType": "Promise<ToolCallResult>",
494
+ "isStatic": false,
495
+ "isPublic": true
496
+ },
497
+ "remember": {
498
+ "name": "remember",
499
+ "async": true,
500
+ "parameters": [
501
+ {
502
+ "name": "options",
503
+ "type": "object",
504
+ "optional": false
505
+ }
506
+ ],
507
+ "returnType": "Promise<void>",
508
+ "isStatic": false,
509
+ "isPublic": true
510
+ },
511
+ "recall": {
512
+ "name": "recall",
513
+ "async": true,
514
+ "parameters": [
515
+ {
516
+ "name": "options",
517
+ "type": "object",
518
+ "optional": false
519
+ }
520
+ ],
521
+ "returnType": "Promise<any | null>",
522
+ "isStatic": false,
523
+ "isPublic": true
524
+ },
525
+ "recallAll": {
526
+ "name": "recallAll",
527
+ "async": true,
528
+ "parameters": [
529
+ {
530
+ "name": "options",
531
+ "type": "object",
532
+ "optional": true
533
+ }
534
+ ],
535
+ "returnType": "Promise<Map<string, any>>",
536
+ "isStatic": false,
537
+ "isPublic": true
538
+ },
539
+ "forget": {
540
+ "name": "forget",
541
+ "async": true,
542
+ "parameters": [
543
+ {
544
+ "name": "options",
545
+ "type": "object",
546
+ "optional": false
547
+ }
548
+ ],
549
+ "returnType": "Promise<void>",
550
+ "isStatic": false,
551
+ "isPublic": true
552
+ },
553
+ "forgetScope": {
554
+ "name": "forgetScope",
555
+ "async": true,
556
+ "parameters": [
557
+ {
558
+ "name": "options",
559
+ "type": "object",
560
+ "optional": false
561
+ }
562
+ ],
563
+ "returnType": "Promise<number>",
564
+ "isStatic": false,
565
+ "isPublic": true
566
+ },
567
+ "generateEmbeddings": {
568
+ "name": "generateEmbeddings",
569
+ "async": true,
570
+ "parameters": [
571
+ {
572
+ "name": "options",
573
+ "type": "GenerateEmbeddingsOptions",
574
+ "optional": true
575
+ }
576
+ ],
577
+ "returnType": "Promise<void>",
578
+ "isStatic": false,
579
+ "isPublic": true
580
+ },
581
+ "getEmbedding": {
582
+ "name": "getEmbedding",
583
+ "async": true,
584
+ "parameters": [
585
+ {
586
+ "name": "fieldName",
587
+ "type": "string",
588
+ "optional": false
589
+ },
590
+ {
591
+ "name": "model",
592
+ "type": "string",
593
+ "optional": true
594
+ }
595
+ ],
596
+ "returnType": "Promise<number[] | null>",
597
+ "isStatic": false,
598
+ "isPublic": true
599
+ },
600
+ "hasStaleEmbeddings": {
601
+ "name": "hasStaleEmbeddings",
602
+ "async": true,
603
+ "parameters": [],
604
+ "returnType": "Promise<boolean>",
605
+ "isStatic": false,
606
+ "isPublic": true
607
+ },
608
+ "clearEmbeddings": {
609
+ "name": "clearEmbeddings",
610
+ "async": true,
611
+ "parameters": [],
612
+ "returnType": "Promise<void>",
613
+ "isStatic": false,
614
+ "isPublic": true
615
+ },
616
+ "resolveGovernance": {
617
+ "name": "resolveGovernance",
618
+ "async": true,
619
+ "parameters": [],
620
+ "returnType": "Promise<ResolvedContentGovernance>",
621
+ "isStatic": false,
622
+ "isPublic": true
623
+ },
624
+ "loadReferences": {
625
+ "name": "loadReferences",
626
+ "async": true,
627
+ "parameters": [],
628
+ "returnType": "any",
629
+ "isStatic": false,
630
+ "isPublic": true
631
+ },
632
+ "addReference": {
633
+ "name": "addReference",
634
+ "async": true,
635
+ "parameters": [
636
+ {
637
+ "name": "content",
638
+ "type": "Content | string",
639
+ "optional": false
640
+ },
641
+ {
642
+ "name": "options",
643
+ "type": "object",
644
+ "optional": true
645
+ }
646
+ ],
647
+ "returnType": "any",
648
+ "isStatic": false,
649
+ "isPublic": true
650
+ },
651
+ "removeReference": {
652
+ "name": "removeReference",
653
+ "async": true,
654
+ "parameters": [
655
+ {
656
+ "name": "targetId",
657
+ "type": "string",
658
+ "optional": false
659
+ }
660
+ ],
661
+ "returnType": "any",
662
+ "isStatic": false,
663
+ "isPublic": true
664
+ },
665
+ "getReferences": {
666
+ "name": "getReferences",
667
+ "async": true,
668
+ "parameters": [],
669
+ "returnType": "any",
670
+ "isStatic": false,
671
+ "isPublic": true
672
+ },
673
+ "getReferenceDrift": {
674
+ "name": "getReferenceDrift",
675
+ "async": true,
676
+ "parameters": [],
677
+ "returnType": "Promise<Array<object>>",
678
+ "isStatic": false,
679
+ "isPublic": true
680
+ },
681
+ "isGoverned": {
682
+ "name": "isGoverned",
683
+ "async": false,
684
+ "parameters": [],
685
+ "returnType": "boolean",
686
+ "isStatic": false,
687
+ "isPublic": true
688
+ },
689
+ "getFactLinks": {
690
+ "name": "getFactLinks",
691
+ "async": true,
692
+ "parameters": [
693
+ {
694
+ "name": "options",
695
+ "type": "object",
696
+ "optional": true
697
+ }
698
+ ],
699
+ "returnType": "any",
700
+ "isStatic": false,
701
+ "isPublic": true
702
+ },
703
+ "getFacts": {
704
+ "name": "getFacts",
705
+ "async": true,
706
+ "parameters": [
707
+ {
708
+ "name": "options",
709
+ "type": "object",
710
+ "optional": true
711
+ }
712
+ ],
713
+ "returnType": "Promise<Fact[]>",
714
+ "isStatic": false,
715
+ "isPublic": true
716
+ },
717
+ "addFact": {
718
+ "name": "addFact",
719
+ "async": true,
720
+ "parameters": [
721
+ {
722
+ "name": "fact",
723
+ "type": "Fact | string",
724
+ "optional": false
725
+ },
726
+ {
727
+ "name": "relationship",
728
+ "type": "FactContentRelationship",
729
+ "optional": true
730
+ },
731
+ {
732
+ "name": "metadata",
733
+ "type": "Record<string, any>",
734
+ "optional": true
735
+ }
736
+ ],
737
+ "returnType": "any",
738
+ "isStatic": false,
739
+ "isPublic": true
740
+ },
741
+ "removeFact": {
742
+ "name": "removeFact",
743
+ "async": true,
744
+ "parameters": [
745
+ {
746
+ "name": "factId",
747
+ "type": "string",
748
+ "optional": false
749
+ },
750
+ {
751
+ "name": "relationship",
752
+ "type": "FactContentRelationship",
753
+ "optional": true
754
+ }
755
+ ],
756
+ "returnType": "Promise<void>",
757
+ "isStatic": false,
758
+ "isPublic": true
759
+ },
760
+ "syncFacts": {
761
+ "name": "syncFacts",
762
+ "async": true,
763
+ "parameters": [
764
+ {
765
+ "name": "factIds",
766
+ "type": "string[]",
767
+ "optional": false
768
+ },
769
+ {
770
+ "name": "relationship",
771
+ "type": "FactContentRelationship",
772
+ "optional": true
773
+ }
774
+ ],
775
+ "returnType": "Promise<object>",
776
+ "isStatic": false,
777
+ "isPublic": true
778
+ },
779
+ "browseFacts": {
780
+ "name": "browseFacts",
781
+ "async": true,
782
+ "parameters": [
783
+ {
784
+ "name": "query",
785
+ "type": "any",
786
+ "optional": true,
787
+ "default": ""
788
+ },
789
+ {
790
+ "name": "options",
791
+ "type": "object",
792
+ "optional": true
793
+ }
794
+ ],
795
+ "returnType": "Promise<Fact[]>",
796
+ "isStatic": false,
797
+ "isPublic": true
798
+ },
799
+ "repairFactAudit": {
800
+ "name": "repairFactAudit",
801
+ "async": true,
802
+ "parameters": [
803
+ {
804
+ "name": "options",
805
+ "type": "object",
806
+ "optional": true
807
+ }
808
+ ],
809
+ "returnType": "any",
810
+ "isStatic": false,
811
+ "isPublic": true
812
+ },
813
+ "repairFactAuditAction": {
814
+ "name": "repairFactAuditAction",
815
+ "async": true,
816
+ "parameters": [
817
+ {
818
+ "name": "options",
819
+ "type": "object",
820
+ "optional": true
821
+ }
822
+ ],
823
+ "returnType": "any",
824
+ "isStatic": false,
825
+ "isPublic": true
826
+ },
827
+ "repairFactEvidence": {
828
+ "name": "repairFactEvidence",
829
+ "async": true,
830
+ "parameters": [
831
+ {
832
+ "name": "options",
833
+ "type": "FactAuditResourceRepairOptions",
834
+ "optional": true
835
+ }
836
+ ],
837
+ "returnType": "any",
838
+ "isStatic": false,
839
+ "isPublic": true
840
+ },
841
+ "repairFactEvidenceAction": {
842
+ "name": "repairFactEvidenceAction",
843
+ "async": true,
844
+ "parameters": [
845
+ {
846
+ "name": "options",
847
+ "type": "FactAuditResourceRepairOptions",
848
+ "optional": true
849
+ }
850
+ ],
851
+ "returnType": "any",
852
+ "isStatic": false,
853
+ "isPublic": true
854
+ },
855
+ "recheckFactClaims": {
856
+ "name": "recheckFactClaims",
857
+ "async": true,
858
+ "parameters": [
859
+ {
860
+ "name": "options",
861
+ "type": "FactAuditClaimRecheckOptions",
862
+ "optional": true
863
+ }
864
+ ],
865
+ "returnType": "any",
866
+ "isStatic": false,
867
+ "isPublic": true
868
+ },
869
+ "recheckFactClaimsAction": {
870
+ "name": "recheckFactClaimsAction",
871
+ "async": true,
872
+ "parameters": [
873
+ {
874
+ "name": "options",
875
+ "type": "FactAuditClaimRecheckOptions",
876
+ "optional": true
877
+ }
878
+ ],
879
+ "returnType": "any",
880
+ "isStatic": false,
881
+ "isPublic": true
882
+ },
883
+ "updateFactEvidenceStatus": {
884
+ "name": "updateFactEvidenceStatus",
885
+ "async": true,
886
+ "parameters": [
887
+ {
888
+ "name": "options",
889
+ "type": "FactEvidenceStatusUpdateOptions",
890
+ "optional": true
891
+ }
892
+ ],
893
+ "returnType": "any",
894
+ "isStatic": false,
895
+ "isPublic": true
896
+ },
897
+ "updateFactEvidenceStatusAction": {
898
+ "name": "updateFactEvidenceStatusAction",
899
+ "async": true,
900
+ "parameters": [
901
+ {
902
+ "name": "options",
903
+ "type": "FactEvidenceStatusUpdateOptions",
904
+ "optional": true
905
+ }
906
+ ],
907
+ "returnType": "any",
908
+ "isStatic": false,
909
+ "isPublic": true
910
+ },
911
+ "getFactAuditState": {
912
+ "name": "getFactAuditState",
913
+ "async": true,
914
+ "parameters": [],
915
+ "returnType": "Promise<FactAuditState>",
916
+ "isStatic": false,
917
+ "isPublic": true
918
+ },
919
+ "getFactAuditStateAction": {
920
+ "name": "getFactAuditStateAction",
921
+ "async": true,
922
+ "parameters": [],
923
+ "returnType": "any",
924
+ "isStatic": false,
925
+ "isPublic": true
926
+ },
927
+ "getFactsState": {
928
+ "name": "getFactsState",
929
+ "async": true,
930
+ "parameters": [
931
+ {
932
+ "name": "options",
933
+ "type": "object",
934
+ "optional": true
935
+ }
936
+ ],
937
+ "returnType": "any",
938
+ "isStatic": false,
939
+ "isPublic": true
940
+ },
941
+ "syncFactsState": {
942
+ "name": "syncFactsState",
943
+ "async": true,
944
+ "parameters": [
945
+ {
946
+ "name": "options",
947
+ "type": "object",
948
+ "optional": true
949
+ }
950
+ ],
951
+ "returnType": "any",
952
+ "isStatic": false,
953
+ "isPublic": true
954
+ },
955
+ "createVersion": {
956
+ "name": "createVersion",
957
+ "async": true,
958
+ "parameters": [
959
+ {
960
+ "name": "options",
961
+ "type": "CreateContentVersionOptions",
962
+ "optional": true
963
+ }
964
+ ],
965
+ "returnType": "any",
966
+ "isStatic": false,
967
+ "isPublic": true
968
+ },
969
+ "getVersions": {
970
+ "name": "getVersions",
971
+ "async": true,
972
+ "parameters": [],
973
+ "returnType": "any",
974
+ "isStatic": false,
975
+ "isPublic": true
976
+ },
977
+ "restoreFromVersion": {
978
+ "name": "restoreFromVersion",
979
+ "async": true,
980
+ "parameters": [
981
+ {
982
+ "name": "versionNumber",
983
+ "type": "number",
984
+ "optional": false
985
+ }
986
+ ],
987
+ "returnType": "any",
988
+ "isStatic": false,
989
+ "isPublic": true
990
+ },
991
+ "getReviews": {
992
+ "name": "getReviews",
993
+ "async": true,
994
+ "parameters": [
995
+ {
996
+ "name": "kind",
997
+ "type": "any",
998
+ "optional": true
999
+ }
1000
+ ],
1001
+ "returnType": "any",
1002
+ "isStatic": false,
1003
+ "isPublic": true
1004
+ },
1005
+ "listReviews": {
1006
+ "name": "listReviews",
1007
+ "async": true,
1008
+ "parameters": [
1009
+ {
1010
+ "name": "options",
1011
+ "type": "object",
1012
+ "optional": true
1013
+ }
1014
+ ],
1015
+ "returnType": "any",
1016
+ "isStatic": false,
1017
+ "isPublic": true
1018
+ },
1019
+ "getReviewRequirements": {
1020
+ "name": "getReviewRequirements",
1021
+ "async": true,
1022
+ "parameters": [
1023
+ {
1024
+ "name": "profileKey",
1025
+ "type": "string",
1026
+ "optional": false
1027
+ },
1028
+ {
1029
+ "name": "governance",
1030
+ "type": "ResolvedContentGovernance",
1031
+ "optional": true
1032
+ }
1033
+ ],
1034
+ "returnType": "any",
1035
+ "isStatic": false,
1036
+ "isPublic": true
1037
+ },
1038
+ "getGovernanceState": {
1039
+ "name": "getGovernanceState",
1040
+ "async": true,
1041
+ "parameters": [],
1042
+ "returnType": "Promise<ContentGovernanceState>",
1043
+ "isStatic": false,
1044
+ "isPublic": true
1045
+ },
1046
+ "getGovernanceStateAction": {
1047
+ "name": "getGovernanceStateAction",
1048
+ "async": true,
1049
+ "parameters": [],
1050
+ "returnType": "any",
1051
+ "isStatic": false,
1052
+ "isPublic": true
1053
+ },
1054
+ "listReviewProfilesAction": {
1055
+ "name": "listReviewProfilesAction",
1056
+ "async": true,
1057
+ "parameters": [],
1058
+ "returnType": "any",
1059
+ "isStatic": false,
1060
+ "isPublic": true
1061
+ },
1062
+ "evaluateReviewProfile": {
1063
+ "name": "evaluateReviewProfile",
1064
+ "async": true,
1065
+ "parameters": [
1066
+ {
1067
+ "name": "profileKey",
1068
+ "type": "string",
1069
+ "optional": false
1070
+ }
1071
+ ],
1072
+ "returnType": "Promise<ContentReviewProfileEvaluation>",
1073
+ "isStatic": false,
1074
+ "isPublic": true
1075
+ },
1076
+ "evaluateReviewProfileAction": {
1077
+ "name": "evaluateReviewProfileAction",
1078
+ "async": true,
1079
+ "parameters": [
1080
+ {
1081
+ "name": "options",
1082
+ "type": "object",
1083
+ "optional": true
1084
+ }
1085
+ ],
1086
+ "returnType": "any",
1087
+ "isStatic": false,
1088
+ "isPublic": true
1089
+ },
1090
+ "isReadyForReviewProfile": {
1091
+ "name": "isReadyForReviewProfile",
1092
+ "async": true,
1093
+ "parameters": [
1094
+ {
1095
+ "name": "profileKey",
1096
+ "type": "string",
1097
+ "optional": false
1098
+ }
1099
+ ],
1100
+ "returnType": "Promise<boolean>",
1101
+ "isStatic": false,
1102
+ "isPublic": true
1103
+ },
1104
+ "getPublishedTransparency": {
1105
+ "name": "getPublishedTransparency",
1106
+ "async": true,
1107
+ "parameters": [],
1108
+ "returnType": "any",
1109
+ "isStatic": false,
1110
+ "isPublic": true
1111
+ },
1112
+ "getPublishedTransparencyAction": {
1113
+ "name": "getPublishedTransparencyAction",
1114
+ "async": true,
1115
+ "parameters": [],
1116
+ "returnType": "any",
1117
+ "isStatic": false,
1118
+ "isPublic": true
1119
+ },
1120
+ "previewTransparency": {
1121
+ "name": "previewTransparency",
1122
+ "async": true,
1123
+ "parameters": [],
1124
+ "returnType": "any",
1125
+ "isStatic": false,
1126
+ "isPublic": true
1127
+ },
1128
+ "previewTransparencyAction": {
1129
+ "name": "previewTransparencyAction",
1130
+ "async": true,
1131
+ "parameters": [],
1132
+ "returnType": "any",
1133
+ "isStatic": false,
1134
+ "isPublic": true
1135
+ },
1136
+ "runReview": {
1137
+ "name": "runReview",
1138
+ "async": true,
1139
+ "parameters": [
1140
+ {
1141
+ "name": "options",
1142
+ "type": "RunContentReviewOptions",
1143
+ "optional": true
1144
+ }
1145
+ ],
1146
+ "returnType": "any",
1147
+ "isStatic": false,
1148
+ "isPublic": true
1149
+ },
1150
+ "runReviewAction": {
1151
+ "name": "runReviewAction",
1152
+ "async": true,
1153
+ "parameters": [
1154
+ {
1155
+ "name": "options",
1156
+ "type": "RunContentReviewOptions",
1157
+ "optional": true
1158
+ }
1159
+ ],
1160
+ "returnType": "any",
1161
+ "isStatic": false,
1162
+ "isPublic": true
1163
+ },
1164
+ "reviewFacts": {
1165
+ "name": "reviewFacts",
1166
+ "async": true,
1167
+ "parameters": [
1168
+ {
1169
+ "name": "options",
1170
+ "type": "Omit<RunContentReviewOptions, 'kind'>",
1171
+ "optional": true
1172
+ }
1173
+ ],
1174
+ "returnType": "any",
1175
+ "isStatic": false,
1176
+ "isPublic": true
1177
+ },
1178
+ "reviewSafety": {
1179
+ "name": "reviewSafety",
1180
+ "async": true,
1181
+ "parameters": [
1182
+ {
1183
+ "name": "options",
1184
+ "type": "Omit<RunContentReviewOptions, 'kind'>",
1185
+ "optional": true
1186
+ }
1187
+ ],
1188
+ "returnType": "any",
1189
+ "isStatic": false,
1190
+ "isPublic": true
1191
+ },
1192
+ "getCorrections": {
1193
+ "name": "getCorrections",
1194
+ "async": true,
1195
+ "parameters": [],
1196
+ "returnType": "any",
1197
+ "isStatic": false,
1198
+ "isPublic": true
1199
+ },
1200
+ "listCorrections": {
1201
+ "name": "listCorrections",
1202
+ "async": true,
1203
+ "parameters": [],
1204
+ "returnType": "any",
1205
+ "isStatic": false,
1206
+ "isPublic": true
1207
+ },
1208
+ "issueCorrection": {
1209
+ "name": "issueCorrection",
1210
+ "async": true,
1211
+ "parameters": [
1212
+ {
1213
+ "name": "options",
1214
+ "type": "IssueContentCorrectionOptions",
1215
+ "optional": false
1216
+ }
1217
+ ],
1218
+ "returnType": "any",
1219
+ "isStatic": false,
1220
+ "isPublic": true
1221
+ },
1222
+ "issueCorrectionAction": {
1223
+ "name": "issueCorrectionAction",
1224
+ "async": true,
1225
+ "parameters": [
1226
+ {
1227
+ "name": "options",
1228
+ "type": "IssueContentCorrectionOptions",
1229
+ "optional": false
1230
+ }
1231
+ ],
1232
+ "returnType": "any",
1233
+ "isStatic": false,
1234
+ "isPublic": true
1235
+ },
1236
+ "listVersions": {
1237
+ "name": "listVersions",
1238
+ "async": true,
1239
+ "parameters": [],
1240
+ "returnType": "any",
1241
+ "isStatic": false,
1242
+ "isPublic": true
1243
+ },
1244
+ "mutateVersionAction": {
1245
+ "name": "mutateVersionAction",
1246
+ "async": true,
1247
+ "parameters": [
1248
+ {
1249
+ "name": "options",
1250
+ "type": "any",
1251
+ "optional": true
1252
+ }
1253
+ ],
1254
+ "returnType": "any",
1255
+ "isStatic": false,
1256
+ "isPublic": true
1257
+ },
1258
+ "getCategorySegments": {
1259
+ "name": "getCategorySegments",
1260
+ "async": false,
1261
+ "parameters": [],
1262
+ "returnType": "string[]",
1263
+ "isStatic": false,
1264
+ "isPublic": true
1265
+ },
1266
+ "getParentCategory": {
1267
+ "name": "getParentCategory",
1268
+ "async": false,
1269
+ "parameters": [],
1270
+ "returnType": "string | null",
1271
+ "isStatic": false,
1272
+ "isPublic": true
1273
+ },
1274
+ "getRootCategory": {
1275
+ "name": "getRootCategory",
1276
+ "async": false,
1277
+ "parameters": [],
1278
+ "returnType": "string | null",
1279
+ "isStatic": false,
1280
+ "isPublic": true
1281
+ },
1282
+ "getAncestorPaths": {
1283
+ "name": "getAncestorPaths",
1284
+ "async": false,
1285
+ "parameters": [],
1286
+ "returnType": "string[]",
1287
+ "isStatic": false,
1288
+ "isPublic": true
1289
+ },
1290
+ "isInCategory": {
1291
+ "name": "isInCategory",
1292
+ "async": false,
1293
+ "parameters": [
1294
+ {
1295
+ "name": "categoryPath",
1296
+ "type": "string",
1297
+ "optional": false
1298
+ },
1299
+ {
1300
+ "name": "includeChildren",
1301
+ "type": "any",
1302
+ "optional": true
1303
+ }
1304
+ ],
1305
+ "returnType": "boolean",
1306
+ "isStatic": false,
1307
+ "isPublic": true
1308
+ },
1309
+ "getAssets": {
1310
+ "name": "getAssets",
1311
+ "async": true,
1312
+ "parameters": [
1313
+ {
1314
+ "name": "relationship",
1315
+ "type": "string",
1316
+ "optional": true
1317
+ }
1318
+ ],
1319
+ "returnType": "Promise<Asset[]>",
1320
+ "isStatic": false,
1321
+ "isPublic": true
1322
+ },
1323
+ "addAsset": {
1324
+ "name": "addAsset",
1325
+ "async": true,
1326
+ "parameters": [
1327
+ {
1328
+ "name": "asset",
1329
+ "type": "Asset",
1330
+ "optional": false
1331
+ },
1332
+ {
1333
+ "name": "relationship",
1334
+ "type": "any",
1335
+ "optional": true,
1336
+ "default": "attachment"
1337
+ },
1338
+ {
1339
+ "name": "sortOrder",
1340
+ "type": "any",
1341
+ "optional": true
1342
+ }
1343
+ ],
1344
+ "returnType": "Promise<void>",
1345
+ "isStatic": false,
1346
+ "isPublic": true
1347
+ },
1348
+ "removeAsset": {
1349
+ "name": "removeAsset",
1350
+ "async": true,
1351
+ "parameters": [
1352
+ {
1353
+ "name": "assetId",
1354
+ "type": "string",
1355
+ "optional": false
1356
+ },
1357
+ {
1358
+ "name": "relationship",
1359
+ "type": "string",
1360
+ "optional": true
1361
+ }
1362
+ ],
1363
+ "returnType": "Promise<void>",
1364
+ "isStatic": false,
1365
+ "isPublic": true
1366
+ },
1367
+ "getMetadata": {
1368
+ "name": "getMetadata",
1369
+ "async": false,
1370
+ "parameters": [],
1371
+ "returnType": "Record<string, any>",
1372
+ "isStatic": false,
1373
+ "isPublic": true
1374
+ },
1375
+ "setMetadata": {
1376
+ "name": "setMetadata",
1377
+ "async": false,
1378
+ "parameters": [
1379
+ {
1380
+ "name": "metadata",
1381
+ "type": "Record<string, any> | null | undefined",
1382
+ "optional": false
1383
+ }
1384
+ ],
1385
+ "returnType": "void",
1386
+ "isStatic": false,
1387
+ "isPublic": true
1388
+ },
1389
+ "updateMetadata": {
1390
+ "name": "updateMetadata",
1391
+ "async": false,
1392
+ "parameters": [
1393
+ {
1394
+ "name": "patch",
1395
+ "type": "Partial<Record<string, any>>",
1396
+ "optional": false
1397
+ }
1398
+ ],
1399
+ "returnType": "Record<string, any>",
1400
+ "isStatic": false,
1401
+ "isPublic": true
1402
+ },
1403
+ "getThumbnail": {
1404
+ "name": "getThumbnail",
1405
+ "async": true,
1406
+ "parameters": [],
1407
+ "returnType": "Promise<Image | null>",
1408
+ "isStatic": false,
1409
+ "isPublic": true
1410
+ },
1411
+ "setThumbnail": {
1412
+ "name": "setThumbnail",
1413
+ "async": true,
1414
+ "parameters": [
1415
+ {
1416
+ "name": "image",
1417
+ "type": "Image",
1418
+ "optional": false
1419
+ }
1420
+ ],
1421
+ "returnType": "Promise<void>",
1422
+ "isStatic": false,
1423
+ "isPublic": true
1424
+ },
1425
+ "generateThumbnail": {
1426
+ "name": "generateThumbnail",
1427
+ "async": true,
1428
+ "parameters": [
1429
+ {
1430
+ "name": "options",
1431
+ "type": "ThumbnailOptions",
1432
+ "optional": false
1433
+ }
1434
+ ],
1435
+ "returnType": "Promise<Image>",
1436
+ "isStatic": false,
1437
+ "isPublic": true
1438
+ },
1439
+ "getWordAtTime": {
1440
+ "name": "getWordAtTime",
1441
+ "async": false,
1442
+ "parameters": [
1443
+ {
1444
+ "name": "seconds",
1445
+ "type": "number",
1446
+ "optional": false
1447
+ }
1448
+ ],
1449
+ "returnType": "WordTiming | null",
1450
+ "isStatic": false,
1451
+ "isPublic": true
1452
+ }
1453
+ },
1454
+ "decoratorConfig": {
1455
+ "tableStrategy": "sti",
1456
+ "api": {
1457
+ "include": [
1458
+ "list",
1459
+ "get",
1460
+ "create",
1461
+ "delete"
1462
+ ]
1463
+ },
1464
+ "mcp": {
1465
+ "include": [
1466
+ "list",
1467
+ "get"
1468
+ ]
1469
+ },
1470
+ "cli": true,
1471
+ "tenantScoped": {
1472
+ "mode": "optional"
1473
+ },
1474
+ "tableName": "contents"
1475
+ },
1476
+ "extends": "Content",
1477
+ "exportName": "VoiceOutput",
1478
+ "collectionExportName": "VoiceOutputCollection",
1479
+ "validationRules": [
1480
+ {
1481
+ "field": "name",
1482
+ "rule": "required",
1483
+ "fieldType": "text"
1484
+ }
1485
+ ],
1486
+ "schema": {
1487
+ "tableName": "contents",
1488
+ "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"voice_profile_id\" UUID,\n \"source_text\" TEXT DEFAULT '',\n \"audio_asset_id\" UUID,\n \"duration\" INTEGER DEFAULT 0,\n \"word_timings\" JSON DEFAULT '[]',\n \"audio_metadata\" JSON\n);",
1489
+ "columns": {
1490
+ "id": {
1491
+ "type": "UUID",
1492
+ "primaryKey": true,
1493
+ "referenceKind": "id",
1494
+ "notNull": true
1495
+ },
1496
+ "slug": {
1497
+ "type": "TEXT",
1498
+ "notNull": true
1499
+ },
1500
+ "context": {
1501
+ "type": "TEXT",
1502
+ "notNull": true,
1503
+ "default": ""
1504
+ },
1505
+ "_meta_type": {
1506
+ "type": "TEXT",
1507
+ "notNull": true
1508
+ },
1509
+ "_meta_data": {
1510
+ "type": "JSON",
1511
+ "notNull": false
1512
+ },
1513
+ "created_at": {
1514
+ "type": "TIMESTAMP",
1515
+ "notNull": true,
1516
+ "default": "current_timestamp"
1517
+ },
1518
+ "updated_at": {
1519
+ "type": "TIMESTAMP",
1520
+ "notNull": true,
1521
+ "default": "current_timestamp"
1522
+ },
1523
+ "tenant_id": {
1524
+ "type": "UUID",
1525
+ "referenceKind": "tenantId",
1526
+ "notNull": false
1527
+ },
1528
+ "type": {
1529
+ "type": "TEXT",
1530
+ "notNull": false
1531
+ },
1532
+ "variant": {
1533
+ "type": "TEXT",
1534
+ "notNull": false
1535
+ },
1536
+ "file_key": {
1537
+ "type": "TEXT",
1538
+ "notNull": false
1539
+ },
1540
+ "author": {
1541
+ "type": "TEXT",
1542
+ "notNull": false
1543
+ },
1544
+ "name": {
1545
+ "type": "TEXT",
1546
+ "notNull": false,
1547
+ "default": ""
1548
+ },
1549
+ "title": {
1550
+ "type": "TEXT",
1551
+ "notNull": false
1552
+ },
1553
+ "description": {
1554
+ "type": "TEXT",
1555
+ "notNull": false
1556
+ },
1557
+ "body": {
1558
+ "type": "TEXT",
1559
+ "notNull": false
1560
+ },
1561
+ "body_format": {
1562
+ "type": "TEXT",
1563
+ "notNull": false
1564
+ },
1565
+ "publish_date": {
1566
+ "type": "TIMESTAMP",
1567
+ "notNull": false
1568
+ },
1569
+ "url": {
1570
+ "type": "TEXT",
1571
+ "notNull": false
1572
+ },
1573
+ "source": {
1574
+ "type": "TEXT",
1575
+ "notNull": false
1576
+ },
1577
+ "original_url": {
1578
+ "type": "TEXT",
1579
+ "notNull": false
1580
+ },
1581
+ "language": {
1582
+ "type": "TEXT",
1583
+ "notNull": false
1584
+ },
1585
+ "tags": {
1586
+ "type": "JSON",
1587
+ "notNull": false,
1588
+ "default": []
1589
+ },
1590
+ "category": {
1591
+ "type": "TEXT",
1592
+ "notNull": false
1593
+ },
1594
+ "status": {
1595
+ "type": "TEXT",
1596
+ "notNull": false,
1597
+ "default": "draft"
1598
+ },
1599
+ "state": {
1600
+ "type": "TEXT",
1601
+ "notNull": false,
1602
+ "default": "active"
1603
+ },
1604
+ "metadata": {
1605
+ "type": "JSON",
1606
+ "notNull": false,
1607
+ "default": {}
1608
+ },
1609
+ "thumbnail_asset_id": {
1610
+ "type": "UUID",
1611
+ "referenceKind": "crossPackageRef",
1612
+ "notNull": false
1613
+ },
1614
+ "voice_profile_id": {
1615
+ "type": "UUID",
1616
+ "referenceKind": "foreignKey",
1617
+ "notNull": false
1618
+ },
1619
+ "source_text": {
1620
+ "type": "TEXT",
1621
+ "notNull": false,
1622
+ "default": ""
1623
+ },
1624
+ "audio_asset_id": {
1625
+ "type": "UUID",
1626
+ "referenceKind": "crossPackageRef",
1627
+ "notNull": false
1628
+ },
1629
+ "duration": {
1630
+ "type": "INTEGER",
1631
+ "notNull": false,
1632
+ "default": 0
1633
+ },
1634
+ "word_timings": {
1635
+ "type": "JSON",
1636
+ "notNull": false,
1637
+ "default": []
1638
+ },
1639
+ "audio_metadata": {
1640
+ "type": "JSON",
1641
+ "notNull": false
1642
+ }
1643
+ },
1644
+ "indexes": [
1645
+ {
1646
+ "name": "contents_id_idx",
1647
+ "columns": [
1648
+ "id"
1649
+ ]
1650
+ },
1651
+ {
1652
+ "name": "contents_slug_context_meta_type_idx",
1653
+ "columns": [
1654
+ "slug",
1655
+ "context",
1656
+ "_meta_type"
1657
+ ],
1658
+ "unique": true
1659
+ },
1660
+ {
1661
+ "name": "contents_meta_type_idx",
1662
+ "columns": [
1663
+ "_meta_type"
1664
+ ]
1665
+ }
1666
+ ],
1667
+ "version": "2bba46d6"
1668
+ }
1669
+ },
1670
+ "@happyvertical/smrt-voice:VoiceProfile": {
1671
+ "name": "voiceprofile",
1672
+ "className": "VoiceProfile",
1673
+ "qualifiedName": "@happyvertical/smrt-voice:VoiceProfile",
1674
+ "collection": "voiceprofiles",
1675
+ "filePath": "/home/runner/_work/smrt/smrt/packages/voice/src/voice-profile.ts",
1676
+ "packageName": "@happyvertical/smrt-voice",
1677
+ "fields": {
1678
+ "created_at": {
1679
+ "type": "datetime",
1680
+ "required": false
1681
+ },
1682
+ "updated_at": {
1683
+ "type": "datetime",
1684
+ "required": false
1685
+ },
1686
+ "tenantId": {
1687
+ "type": "text",
1688
+ "required": false,
1689
+ "_meta": {
1690
+ "sqlType": "UUID",
1691
+ "nullable": true,
1692
+ "__tenancy": {
1693
+ "isTenantIdField": true,
1694
+ "autoFilter": true,
1695
+ "required": false,
1696
+ "autoPopulate": true,
1697
+ "nullable": true,
1698
+ "mode": "optional",
1699
+ "field": "tenantId",
1700
+ "allowSuperAdminBypass": false
1701
+ }
1702
+ }
1703
+ },
1704
+ "name": {
1705
+ "type": "text",
1706
+ "required": false,
1707
+ "default": ""
1708
+ },
1709
+ "description": {
1710
+ "type": "text",
1711
+ "required": false
1712
+ },
1713
+ "language": {
1714
+ "type": "text",
1715
+ "required": false,
1716
+ "default": "en-US"
1717
+ },
1718
+ "gender": {
1719
+ "type": "text",
1720
+ "required": false,
1721
+ "default": "neutral"
1722
+ },
1723
+ "designPrompt": {
1724
+ "type": "text",
1725
+ "required": false
1726
+ },
1727
+ "sampleAssetId": {
1728
+ "type": "crossPackageRef",
1729
+ "required": false,
1730
+ "related": "@happyvertical/smrt-assets:Asset"
1731
+ },
1732
+ "voiceData": {
1733
+ "type": "json",
1734
+ "required": false,
1735
+ "default": {}
1736
+ },
1737
+ "defaultSpeed": {
1738
+ "type": "decimal",
1739
+ "required": false,
1740
+ "default": 1
1741
+ },
1742
+ "defaultPitch": {
1743
+ "type": "integer",
1744
+ "required": false,
1745
+ "default": 0
1746
+ },
1747
+ "status": {
1748
+ "type": "text",
1749
+ "required": false,
1750
+ "default": "pending"
1751
+ },
1752
+ "provider": {
1753
+ "type": "text",
1754
+ "required": false,
1755
+ "default": "qwen3-tts"
1756
+ },
1757
+ "errorMessage": {
1758
+ "type": "text",
1759
+ "required": false
1760
+ }
1761
+ },
1762
+ "methods": {
1763
+ "getAiUsageSnapshot": {
1764
+ "name": "getAiUsageSnapshot",
1765
+ "async": false,
1766
+ "parameters": [],
1767
+ "returnType": "AiUsageSnapshot | undefined",
1768
+ "isStatic": false,
1769
+ "isPublic": true
1770
+ },
1771
+ "resetAiUsage": {
1772
+ "name": "resetAiUsage",
1773
+ "async": false,
1774
+ "parameters": [],
1775
+ "returnType": "void",
1776
+ "isStatic": false,
1777
+ "isPublic": true
1778
+ },
1779
+ "listAiUsage": {
1780
+ "name": "listAiUsage",
1781
+ "async": true,
1782
+ "parameters": [
1783
+ {
1784
+ "name": "options",
1785
+ "type": "AiUsageListOptions",
1786
+ "optional": true
1787
+ }
1788
+ ],
1789
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
1790
+ "isStatic": false,
1791
+ "isPublic": true
1792
+ },
1793
+ "summarizeAiUsage": {
1794
+ "name": "summarizeAiUsage",
1795
+ "async": true,
1796
+ "parameters": [
1797
+ {
1798
+ "name": "options",
1799
+ "type": "AiUsageSummaryOptions",
1800
+ "optional": true
1801
+ }
1802
+ ],
1803
+ "returnType": "Promise<Record<string, AiUsageStats>>",
1804
+ "isStatic": false,
1805
+ "isPublic": true
1806
+ },
1807
+ "destroy": {
1808
+ "name": "destroy",
1809
+ "async": false,
1810
+ "parameters": [],
1811
+ "returnType": "void",
1812
+ "isStatic": false,
1813
+ "isPublic": true
1814
+ },
1815
+ "markAsPersisted": {
1816
+ "name": "markAsPersisted",
1817
+ "async": false,
1818
+ "parameters": [],
1819
+ "returnType": "void",
1820
+ "isStatic": false,
1821
+ "isPublic": true
1822
+ },
1823
+ "initialize": {
1824
+ "name": "initialize",
1825
+ "async": true,
1826
+ "parameters": [],
1827
+ "returnType": "Promise",
1828
+ "isStatic": false,
1829
+ "isPublic": true
1830
+ },
1831
+ "loadDataFromDb": {
1832
+ "name": "loadDataFromDb",
1833
+ "async": true,
1834
+ "parameters": [
1835
+ {
1836
+ "name": "data",
1837
+ "type": "any",
1838
+ "optional": false
1839
+ }
1840
+ ],
1841
+ "returnType": "any",
1842
+ "isStatic": false,
1843
+ "isPublic": true
1844
+ },
1845
+ "getFields": {
1846
+ "name": "getFields",
1847
+ "async": true,
1848
+ "parameters": [],
1849
+ "returnType": "any",
1850
+ "isStatic": false,
1851
+ "isPublic": true
1852
+ },
1853
+ "toJSON": {
1854
+ "name": "toJSON",
1855
+ "async": false,
1856
+ "parameters": [],
1857
+ "returnType": "any",
1858
+ "isStatic": false,
1859
+ "isPublic": true
1860
+ },
1861
+ "toPlainObject": {
1862
+ "name": "toPlainObject",
1863
+ "async": false,
1864
+ "parameters": [],
1865
+ "returnType": "Record<string>",
1866
+ "isStatic": false,
1867
+ "isPublic": true
1868
+ },
1869
+ "toPublicJSON": {
1870
+ "name": "toPublicJSON",
1871
+ "async": false,
1872
+ "parameters": [],
1873
+ "returnType": "Record<string>",
1874
+ "isStatic": false,
1875
+ "isPublic": true
1876
+ },
1877
+ "getId": {
1878
+ "name": "getId",
1879
+ "async": true,
1880
+ "parameters": [],
1881
+ "returnType": "any",
1882
+ "isStatic": false,
1883
+ "isPublic": true
1884
+ },
1885
+ "getSlug": {
1886
+ "name": "getSlug",
1887
+ "async": true,
1888
+ "parameters": [],
1889
+ "returnType": "any",
1890
+ "isStatic": false,
1891
+ "isPublic": true
1892
+ },
1893
+ "getSavedId": {
1894
+ "name": "getSavedId",
1895
+ "async": true,
1896
+ "parameters": [],
1897
+ "returnType": "any",
1898
+ "isStatic": false,
1899
+ "isPublic": true
1900
+ },
1901
+ "isSaved": {
1902
+ "name": "isSaved",
1903
+ "async": true,
1904
+ "parameters": [],
1905
+ "returnType": "any",
1906
+ "isStatic": false,
1907
+ "isPublic": true
1908
+ },
1909
+ "save": {
1910
+ "name": "save",
1911
+ "async": true,
1912
+ "parameters": [],
1913
+ "returnType": "any",
1914
+ "isStatic": false,
1915
+ "isPublic": true
1916
+ },
1917
+ "classifyConstraintError": {
1918
+ "name": "classifyConstraintError",
1919
+ "async": false,
1920
+ "parameters": [
1921
+ {
1922
+ "name": "message",
1923
+ "type": "string",
1924
+ "optional": false
1925
+ }
1926
+ ],
1927
+ "returnType": "'unique' | 'not_null' | null",
1928
+ "isStatic": true,
1929
+ "isPublic": true
1930
+ },
1931
+ "loadFromId": {
1932
+ "name": "loadFromId",
1933
+ "async": true,
1934
+ "parameters": [],
1935
+ "returnType": "any",
1936
+ "isStatic": false,
1937
+ "isPublic": true
1938
+ },
1939
+ "loadFromSlug": {
1940
+ "name": "loadFromSlug",
1941
+ "async": true,
1942
+ "parameters": [],
1943
+ "returnType": "any",
1944
+ "isStatic": false,
1945
+ "isPublic": true
1946
+ },
1947
+ "is": {
1948
+ "name": "is",
1949
+ "async": true,
1950
+ "parameters": [
1951
+ {
1952
+ "name": "criteria",
1953
+ "type": "string",
1954
+ "optional": false
1955
+ },
1956
+ {
1957
+ "name": "options",
1958
+ "type": "any",
1959
+ "optional": true
1960
+ }
1961
+ ],
1962
+ "returnType": "any",
1963
+ "isStatic": false,
1964
+ "isPublic": true
1965
+ },
1966
+ "do": {
1967
+ "name": "do",
1968
+ "async": true,
1969
+ "parameters": [
1970
+ {
1971
+ "name": "instructions",
1972
+ "type": "string",
1973
+ "optional": false
1974
+ },
1975
+ {
1976
+ "name": "options",
1977
+ "type": "any",
1978
+ "optional": true
1979
+ }
1980
+ ],
1981
+ "returnType": "any",
1982
+ "isStatic": false,
1983
+ "isPublic": true
1984
+ },
1985
+ "describe": {
1986
+ "name": "describe",
1987
+ "async": true,
1988
+ "parameters": [
1989
+ {
1990
+ "name": "options",
1991
+ "type": "any",
1992
+ "optional": true
1993
+ }
1994
+ ],
1995
+ "returnType": "any",
1996
+ "isStatic": false,
1997
+ "isPublic": true
1998
+ },
1999
+ "delete": {
2000
+ "name": "delete",
2001
+ "async": true,
2002
+ "parameters": [],
2003
+ "returnType": "Promise<void>",
2004
+ "isStatic": false,
2005
+ "isPublic": true
2006
+ },
2007
+ "isRelatedLoaded": {
2008
+ "name": "isRelatedLoaded",
2009
+ "async": false,
2010
+ "parameters": [
2011
+ {
2012
+ "name": "fieldName",
2013
+ "type": "string",
2014
+ "optional": false
2015
+ }
2016
+ ],
2017
+ "returnType": "boolean",
2018
+ "isStatic": false,
2019
+ "isPublic": true
2020
+ },
2021
+ "loadRelated": {
2022
+ "name": "loadRelated",
2023
+ "async": true,
2024
+ "parameters": [
2025
+ {
2026
+ "name": "fieldName",
2027
+ "type": "string",
2028
+ "optional": false
2029
+ },
2030
+ {
2031
+ "name": "opts",
2032
+ "type": "LoadRelatedOptions",
2033
+ "optional": true
2034
+ }
2035
+ ],
2036
+ "returnType": "Promise<any>",
2037
+ "isStatic": false,
2038
+ "isPublic": true
2039
+ },
2040
+ "loadRelatedMany": {
2041
+ "name": "loadRelatedMany",
2042
+ "async": true,
2043
+ "parameters": [
2044
+ {
2045
+ "name": "fieldName",
2046
+ "type": "string",
2047
+ "optional": false
2048
+ },
2049
+ {
2050
+ "name": "opts",
2051
+ "type": "LoadRelatedOptions",
2052
+ "optional": true
2053
+ }
2054
+ ],
2055
+ "returnType": "Promise<any[]>",
2056
+ "isStatic": false,
2057
+ "isPublic": true
2058
+ },
2059
+ "getRelated": {
2060
+ "name": "getRelated",
2061
+ "async": true,
2062
+ "parameters": [
2063
+ {
2064
+ "name": "fieldName",
2065
+ "type": "string",
2066
+ "optional": false
2067
+ },
2068
+ {
2069
+ "name": "opts",
2070
+ "type": "LoadRelatedOptions",
2071
+ "optional": true
2072
+ }
2073
+ ],
2074
+ "returnType": "Promise<any>",
2075
+ "isStatic": false,
2076
+ "isPublic": true
2077
+ },
2078
+ "getAvailableTools": {
2079
+ "name": "getAvailableTools",
2080
+ "async": false,
2081
+ "parameters": [],
2082
+ "returnType": "AITool[]",
2083
+ "isStatic": false,
2084
+ "isPublic": true
2085
+ },
2086
+ "executeToolCall": {
2087
+ "name": "executeToolCall",
2088
+ "async": true,
2089
+ "parameters": [
2090
+ {
2091
+ "name": "toolCall",
2092
+ "type": "ToolCall",
2093
+ "optional": false
2094
+ }
2095
+ ],
2096
+ "returnType": "Promise<ToolCallResult>",
2097
+ "isStatic": false,
2098
+ "isPublic": true
2099
+ },
2100
+ "remember": {
2101
+ "name": "remember",
2102
+ "async": true,
2103
+ "parameters": [
2104
+ {
2105
+ "name": "options",
2106
+ "type": "object",
2107
+ "optional": false
2108
+ }
2109
+ ],
2110
+ "returnType": "Promise<void>",
2111
+ "isStatic": false,
2112
+ "isPublic": true
2113
+ },
2114
+ "recall": {
2115
+ "name": "recall",
2116
+ "async": true,
2117
+ "parameters": [
2118
+ {
2119
+ "name": "options",
2120
+ "type": "object",
2121
+ "optional": false
2122
+ }
2123
+ ],
2124
+ "returnType": "Promise<any | null>",
2125
+ "isStatic": false,
2126
+ "isPublic": true
2127
+ },
2128
+ "recallAll": {
2129
+ "name": "recallAll",
2130
+ "async": true,
2131
+ "parameters": [
2132
+ {
2133
+ "name": "options",
2134
+ "type": "object",
2135
+ "optional": true
2136
+ }
2137
+ ],
2138
+ "returnType": "Promise<Map<string, any>>",
2139
+ "isStatic": false,
2140
+ "isPublic": true
2141
+ },
2142
+ "forget": {
2143
+ "name": "forget",
2144
+ "async": true,
2145
+ "parameters": [
2146
+ {
2147
+ "name": "options",
2148
+ "type": "object",
2149
+ "optional": false
2150
+ }
2151
+ ],
2152
+ "returnType": "Promise<void>",
2153
+ "isStatic": false,
2154
+ "isPublic": true
2155
+ },
2156
+ "forgetScope": {
2157
+ "name": "forgetScope",
2158
+ "async": true,
2159
+ "parameters": [
2160
+ {
2161
+ "name": "options",
2162
+ "type": "object",
2163
+ "optional": false
2164
+ }
2165
+ ],
2166
+ "returnType": "Promise<number>",
2167
+ "isStatic": false,
2168
+ "isPublic": true
2169
+ },
2170
+ "generateEmbeddings": {
2171
+ "name": "generateEmbeddings",
2172
+ "async": true,
2173
+ "parameters": [
2174
+ {
2175
+ "name": "options",
2176
+ "type": "GenerateEmbeddingsOptions",
2177
+ "optional": true
2178
+ }
2179
+ ],
2180
+ "returnType": "Promise<void>",
2181
+ "isStatic": false,
2182
+ "isPublic": true
2183
+ },
2184
+ "getEmbedding": {
2185
+ "name": "getEmbedding",
2186
+ "async": true,
2187
+ "parameters": [
2188
+ {
2189
+ "name": "fieldName",
2190
+ "type": "string",
2191
+ "optional": false
2192
+ },
2193
+ {
2194
+ "name": "model",
2195
+ "type": "string",
2196
+ "optional": true
2197
+ }
2198
+ ],
2199
+ "returnType": "Promise<number[] | null>",
2200
+ "isStatic": false,
2201
+ "isPublic": true
2202
+ },
2203
+ "hasStaleEmbeddings": {
2204
+ "name": "hasStaleEmbeddings",
2205
+ "async": true,
2206
+ "parameters": [],
2207
+ "returnType": "Promise<boolean>",
2208
+ "isStatic": false,
2209
+ "isPublic": true
2210
+ },
2211
+ "clearEmbeddings": {
2212
+ "name": "clearEmbeddings",
2213
+ "async": true,
2214
+ "parameters": [],
2215
+ "returnType": "Promise<void>",
2216
+ "isStatic": false,
2217
+ "isPublic": true
2218
+ }
2219
+ },
2220
+ "decoratorConfig": {
2221
+ "tableStrategy": "sti",
2222
+ "api": {
2223
+ "include": [
2224
+ "list",
2225
+ "get",
2226
+ "create",
2227
+ "update",
2228
+ "delete"
2229
+ ]
2230
+ },
2231
+ "mcp": {
2232
+ "include": [
2233
+ "list",
2234
+ "get"
2235
+ ]
2236
+ },
2237
+ "cli": true,
2238
+ "tenantScoped": {
2239
+ "mode": "optional"
2240
+ }
2241
+ },
2242
+ "extends": "SmrtObject",
2243
+ "exportName": "VoiceProfile",
2244
+ "collectionExportName": "VoiceProfileCollection",
2245
+ "schema": {
2246
+ "tableName": "voice_profiles",
2247
+ "ddl": "CREATE TABLE IF NOT EXISTS \"voice_profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"language\" TEXT DEFAULT 'en-US',\n \"gender\" TEXT DEFAULT 'neutral',\n \"design_prompt\" TEXT,\n \"sample_asset_id\" UUID,\n \"voice_data\" JSON DEFAULT '{}',\n \"default_speed\" REAL DEFAULT 1,\n \"default_pitch\" INTEGER DEFAULT 0,\n \"status\" TEXT DEFAULT 'pending',\n \"provider\" TEXT DEFAULT 'qwen3-tts',\n \"error_message\" TEXT\n);",
2248
+ "columns": {
2249
+ "id": {
2250
+ "type": "UUID",
2251
+ "primaryKey": true,
2252
+ "referenceKind": "id",
2253
+ "notNull": true
2254
+ },
2255
+ "slug": {
2256
+ "type": "TEXT",
2257
+ "notNull": true
2258
+ },
2259
+ "context": {
2260
+ "type": "TEXT",
2261
+ "notNull": true,
2262
+ "default": ""
2263
+ },
2264
+ "_meta_type": {
2265
+ "type": "TEXT",
2266
+ "notNull": true
2267
+ },
2268
+ "_meta_data": {
2269
+ "type": "JSON",
2270
+ "notNull": false
2271
+ },
2272
+ "created_at": {
2273
+ "type": "TIMESTAMP",
2274
+ "notNull": true,
2275
+ "default": "current_timestamp"
2276
+ },
2277
+ "updated_at": {
2278
+ "type": "TIMESTAMP",
2279
+ "notNull": true,
2280
+ "default": "current_timestamp"
2281
+ },
2282
+ "tenant_id": {
2283
+ "type": "UUID",
2284
+ "referenceKind": "tenantId",
2285
+ "notNull": false
2286
+ },
2287
+ "name": {
2288
+ "type": "TEXT",
2289
+ "notNull": false,
2290
+ "default": ""
2291
+ },
2292
+ "description": {
2293
+ "type": "TEXT",
2294
+ "notNull": false
2295
+ },
2296
+ "language": {
2297
+ "type": "TEXT",
2298
+ "notNull": false,
2299
+ "default": "en-US"
2300
+ },
2301
+ "gender": {
2302
+ "type": "TEXT",
2303
+ "notNull": false,
2304
+ "default": "neutral"
2305
+ },
2306
+ "design_prompt": {
2307
+ "type": "TEXT",
2308
+ "notNull": false
2309
+ },
2310
+ "sample_asset_id": {
2311
+ "type": "UUID",
2312
+ "referenceKind": "crossPackageRef",
2313
+ "notNull": false
2314
+ },
2315
+ "voice_data": {
2316
+ "type": "JSON",
2317
+ "notNull": false,
2318
+ "default": {}
2319
+ },
2320
+ "default_speed": {
2321
+ "type": "REAL",
2322
+ "notNull": false,
2323
+ "default": 1
2324
+ },
2325
+ "default_pitch": {
2326
+ "type": "INTEGER",
2327
+ "notNull": false,
2328
+ "default": 0
2329
+ },
2330
+ "status": {
2331
+ "type": "TEXT",
2332
+ "notNull": false,
2333
+ "default": "pending"
2334
+ },
2335
+ "provider": {
2336
+ "type": "TEXT",
2337
+ "notNull": false,
2338
+ "default": "qwen3-tts"
2339
+ },
2340
+ "error_message": {
2341
+ "type": "TEXT",
2342
+ "notNull": false
2343
+ }
2344
+ },
2345
+ "indexes": [
2346
+ {
2347
+ "name": "voice_profiles_id_idx",
2348
+ "columns": [
2349
+ "id"
2350
+ ]
2351
+ },
2352
+ {
2353
+ "name": "voice_profiles_slug_context_meta_type_idx",
2354
+ "columns": [
2355
+ "slug",
2356
+ "context",
2357
+ "_meta_type"
2358
+ ],
2359
+ "unique": true
2360
+ },
2361
+ {
2362
+ "name": "voice_profiles_meta_type_idx",
2363
+ "columns": [
2364
+ "_meta_type"
2365
+ ]
2366
+ }
2367
+ ],
2368
+ "version": "b3717c47"
2369
+ }
2370
+ },
2371
+ "@happyvertical/smrt-voice:VoiceSample": {
2372
+ "name": "voicesample",
2373
+ "className": "VoiceSample",
2374
+ "qualifiedName": "@happyvertical/smrt-voice:VoiceSample",
2375
+ "collection": "voicesamples",
2376
+ "filePath": "/home/runner/_work/smrt/smrt/packages/voice/src/voice-sample.ts",
2377
+ "packageName": "@happyvertical/smrt-voice",
2378
+ "fields": {
2379
+ "created_at": {
2380
+ "type": "datetime",
2381
+ "required": false
2382
+ },
2383
+ "updated_at": {
2384
+ "type": "datetime",
2385
+ "required": false
2386
+ },
2387
+ "tenantId": {
2388
+ "type": "text",
2389
+ "required": false,
2390
+ "_meta": {
2391
+ "sqlType": "UUID",
2392
+ "nullable": true,
2393
+ "__tenancy": {
2394
+ "isTenantIdField": true,
2395
+ "autoFilter": true,
2396
+ "required": false,
2397
+ "autoPopulate": true,
2398
+ "nullable": true,
2399
+ "mode": "optional",
2400
+ "field": "tenantId",
2401
+ "allowSuperAdminBypass": false
2402
+ }
2403
+ }
2404
+ },
2405
+ "voiceProfileId": {
2406
+ "type": "foreignKey",
2407
+ "required": false,
2408
+ "related": "() => VoiceProfile"
2409
+ },
2410
+ "assetId": {
2411
+ "type": "crossPackageRef",
2412
+ "required": false,
2413
+ "related": "@happyvertical/smrt-assets:Asset"
2414
+ },
2415
+ "duration": {
2416
+ "type": "integer",
2417
+ "required": false,
2418
+ "default": 0
2419
+ },
2420
+ "transcription": {
2421
+ "type": "text",
2422
+ "required": false
2423
+ },
2424
+ "quality": {
2425
+ "type": "text",
2426
+ "required": false,
2427
+ "default": "medium"
2428
+ },
2429
+ "sampleRate": {
2430
+ "type": "integer",
2431
+ "required": false
2432
+ },
2433
+ "channels": {
2434
+ "type": "integer",
2435
+ "required": false
2436
+ },
2437
+ "format": {
2438
+ "type": "text",
2439
+ "required": false
2440
+ },
2441
+ "isPrimary": {
2442
+ "type": "boolean",
2443
+ "required": false,
2444
+ "default": false
2445
+ }
2446
+ },
2447
+ "methods": {
2448
+ "getAiUsageSnapshot": {
2449
+ "name": "getAiUsageSnapshot",
2450
+ "async": false,
2451
+ "parameters": [],
2452
+ "returnType": "AiUsageSnapshot | undefined",
2453
+ "isStatic": false,
2454
+ "isPublic": true
2455
+ },
2456
+ "resetAiUsage": {
2457
+ "name": "resetAiUsage",
2458
+ "async": false,
2459
+ "parameters": [],
2460
+ "returnType": "void",
2461
+ "isStatic": false,
2462
+ "isPublic": true
2463
+ },
2464
+ "listAiUsage": {
2465
+ "name": "listAiUsage",
2466
+ "async": true,
2467
+ "parameters": [
2468
+ {
2469
+ "name": "options",
2470
+ "type": "AiUsageListOptions",
2471
+ "optional": true
2472
+ }
2473
+ ],
2474
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
2475
+ "isStatic": false,
2476
+ "isPublic": true
2477
+ },
2478
+ "summarizeAiUsage": {
2479
+ "name": "summarizeAiUsage",
2480
+ "async": true,
2481
+ "parameters": [
2482
+ {
2483
+ "name": "options",
2484
+ "type": "AiUsageSummaryOptions",
2485
+ "optional": true
2486
+ }
2487
+ ],
2488
+ "returnType": "Promise<Record<string, AiUsageStats>>",
2489
+ "isStatic": false,
2490
+ "isPublic": true
2491
+ },
2492
+ "destroy": {
2493
+ "name": "destroy",
2494
+ "async": false,
2495
+ "parameters": [],
2496
+ "returnType": "void",
2497
+ "isStatic": false,
2498
+ "isPublic": true
2499
+ },
2500
+ "markAsPersisted": {
2501
+ "name": "markAsPersisted",
2502
+ "async": false,
2503
+ "parameters": [],
2504
+ "returnType": "void",
2505
+ "isStatic": false,
2506
+ "isPublic": true
2507
+ },
2508
+ "initialize": {
2509
+ "name": "initialize",
2510
+ "async": true,
2511
+ "parameters": [],
2512
+ "returnType": "Promise",
2513
+ "isStatic": false,
2514
+ "isPublic": true
2515
+ },
2516
+ "loadDataFromDb": {
2517
+ "name": "loadDataFromDb",
2518
+ "async": true,
2519
+ "parameters": [
2520
+ {
2521
+ "name": "data",
2522
+ "type": "any",
2523
+ "optional": false
2524
+ }
2525
+ ],
2526
+ "returnType": "any",
2527
+ "isStatic": false,
2528
+ "isPublic": true
2529
+ },
2530
+ "getFields": {
2531
+ "name": "getFields",
2532
+ "async": true,
2533
+ "parameters": [],
2534
+ "returnType": "any",
2535
+ "isStatic": false,
2536
+ "isPublic": true
2537
+ },
2538
+ "toJSON": {
2539
+ "name": "toJSON",
2540
+ "async": false,
2541
+ "parameters": [],
2542
+ "returnType": "any",
2543
+ "isStatic": false,
2544
+ "isPublic": true
2545
+ },
2546
+ "toPlainObject": {
2547
+ "name": "toPlainObject",
2548
+ "async": false,
2549
+ "parameters": [],
2550
+ "returnType": "Record<string>",
2551
+ "isStatic": false,
2552
+ "isPublic": true
2553
+ },
2554
+ "toPublicJSON": {
2555
+ "name": "toPublicJSON",
2556
+ "async": false,
2557
+ "parameters": [],
2558
+ "returnType": "Record<string>",
2559
+ "isStatic": false,
2560
+ "isPublic": true
2561
+ },
2562
+ "getId": {
2563
+ "name": "getId",
2564
+ "async": true,
2565
+ "parameters": [],
2566
+ "returnType": "any",
2567
+ "isStatic": false,
2568
+ "isPublic": true
2569
+ },
2570
+ "getSlug": {
2571
+ "name": "getSlug",
2572
+ "async": true,
2573
+ "parameters": [],
2574
+ "returnType": "any",
2575
+ "isStatic": false,
2576
+ "isPublic": true
2577
+ },
2578
+ "getSavedId": {
2579
+ "name": "getSavedId",
2580
+ "async": true,
2581
+ "parameters": [],
2582
+ "returnType": "any",
2583
+ "isStatic": false,
2584
+ "isPublic": true
2585
+ },
2586
+ "isSaved": {
2587
+ "name": "isSaved",
2588
+ "async": true,
2589
+ "parameters": [],
2590
+ "returnType": "any",
2591
+ "isStatic": false,
2592
+ "isPublic": true
2593
+ },
2594
+ "save": {
2595
+ "name": "save",
2596
+ "async": true,
2597
+ "parameters": [],
2598
+ "returnType": "any",
2599
+ "isStatic": false,
2600
+ "isPublic": true
2601
+ },
2602
+ "classifyConstraintError": {
2603
+ "name": "classifyConstraintError",
2604
+ "async": false,
2605
+ "parameters": [
2606
+ {
2607
+ "name": "message",
2608
+ "type": "string",
2609
+ "optional": false
2610
+ }
2611
+ ],
2612
+ "returnType": "'unique' | 'not_null' | null",
2613
+ "isStatic": true,
2614
+ "isPublic": true
2615
+ },
2616
+ "loadFromId": {
2617
+ "name": "loadFromId",
2618
+ "async": true,
2619
+ "parameters": [],
2620
+ "returnType": "any",
2621
+ "isStatic": false,
2622
+ "isPublic": true
2623
+ },
2624
+ "loadFromSlug": {
2625
+ "name": "loadFromSlug",
2626
+ "async": true,
2627
+ "parameters": [],
2628
+ "returnType": "any",
2629
+ "isStatic": false,
2630
+ "isPublic": true
2631
+ },
2632
+ "is": {
2633
+ "name": "is",
2634
+ "async": true,
2635
+ "parameters": [
2636
+ {
2637
+ "name": "criteria",
2638
+ "type": "string",
2639
+ "optional": false
2640
+ },
2641
+ {
2642
+ "name": "options",
2643
+ "type": "any",
2644
+ "optional": true
2645
+ }
2646
+ ],
2647
+ "returnType": "any",
2648
+ "isStatic": false,
2649
+ "isPublic": true
2650
+ },
2651
+ "do": {
2652
+ "name": "do",
2653
+ "async": true,
2654
+ "parameters": [
2655
+ {
2656
+ "name": "instructions",
2657
+ "type": "string",
2658
+ "optional": false
2659
+ },
2660
+ {
2661
+ "name": "options",
2662
+ "type": "any",
2663
+ "optional": true
2664
+ }
2665
+ ],
2666
+ "returnType": "any",
2667
+ "isStatic": false,
2668
+ "isPublic": true
2669
+ },
2670
+ "describe": {
2671
+ "name": "describe",
2672
+ "async": true,
2673
+ "parameters": [
2674
+ {
2675
+ "name": "options",
2676
+ "type": "any",
2677
+ "optional": true
2678
+ }
2679
+ ],
2680
+ "returnType": "any",
2681
+ "isStatic": false,
2682
+ "isPublic": true
2683
+ },
2684
+ "delete": {
2685
+ "name": "delete",
2686
+ "async": true,
2687
+ "parameters": [],
2688
+ "returnType": "Promise<void>",
2689
+ "isStatic": false,
2690
+ "isPublic": true
2691
+ },
2692
+ "isRelatedLoaded": {
2693
+ "name": "isRelatedLoaded",
2694
+ "async": false,
2695
+ "parameters": [
2696
+ {
2697
+ "name": "fieldName",
2698
+ "type": "string",
2699
+ "optional": false
2700
+ }
2701
+ ],
2702
+ "returnType": "boolean",
2703
+ "isStatic": false,
2704
+ "isPublic": true
2705
+ },
2706
+ "loadRelated": {
2707
+ "name": "loadRelated",
2708
+ "async": true,
2709
+ "parameters": [
2710
+ {
2711
+ "name": "fieldName",
2712
+ "type": "string",
2713
+ "optional": false
2714
+ },
2715
+ {
2716
+ "name": "opts",
2717
+ "type": "LoadRelatedOptions",
2718
+ "optional": true
2719
+ }
2720
+ ],
2721
+ "returnType": "Promise<any>",
2722
+ "isStatic": false,
2723
+ "isPublic": true
2724
+ },
2725
+ "loadRelatedMany": {
2726
+ "name": "loadRelatedMany",
2727
+ "async": true,
2728
+ "parameters": [
2729
+ {
2730
+ "name": "fieldName",
2731
+ "type": "string",
2732
+ "optional": false
2733
+ },
2734
+ {
2735
+ "name": "opts",
2736
+ "type": "LoadRelatedOptions",
2737
+ "optional": true
2738
+ }
2739
+ ],
2740
+ "returnType": "Promise<any[]>",
2741
+ "isStatic": false,
2742
+ "isPublic": true
2743
+ },
2744
+ "getRelated": {
2745
+ "name": "getRelated",
2746
+ "async": true,
2747
+ "parameters": [
2748
+ {
2749
+ "name": "fieldName",
2750
+ "type": "string",
2751
+ "optional": false
2752
+ },
2753
+ {
2754
+ "name": "opts",
2755
+ "type": "LoadRelatedOptions",
2756
+ "optional": true
2757
+ }
2758
+ ],
2759
+ "returnType": "Promise<any>",
2760
+ "isStatic": false,
2761
+ "isPublic": true
2762
+ },
2763
+ "getAvailableTools": {
2764
+ "name": "getAvailableTools",
2765
+ "async": false,
2766
+ "parameters": [],
2767
+ "returnType": "AITool[]",
2768
+ "isStatic": false,
2769
+ "isPublic": true
2770
+ },
2771
+ "executeToolCall": {
2772
+ "name": "executeToolCall",
2773
+ "async": true,
2774
+ "parameters": [
2775
+ {
2776
+ "name": "toolCall",
2777
+ "type": "ToolCall",
2778
+ "optional": false
2779
+ }
2780
+ ],
2781
+ "returnType": "Promise<ToolCallResult>",
2782
+ "isStatic": false,
2783
+ "isPublic": true
2784
+ },
2785
+ "remember": {
2786
+ "name": "remember",
2787
+ "async": true,
2788
+ "parameters": [
2789
+ {
2790
+ "name": "options",
2791
+ "type": "object",
2792
+ "optional": false
2793
+ }
2794
+ ],
2795
+ "returnType": "Promise<void>",
2796
+ "isStatic": false,
2797
+ "isPublic": true
2798
+ },
2799
+ "recall": {
2800
+ "name": "recall",
2801
+ "async": true,
2802
+ "parameters": [
2803
+ {
2804
+ "name": "options",
2805
+ "type": "object",
2806
+ "optional": false
2807
+ }
2808
+ ],
2809
+ "returnType": "Promise<any | null>",
2810
+ "isStatic": false,
2811
+ "isPublic": true
2812
+ },
2813
+ "recallAll": {
2814
+ "name": "recallAll",
2815
+ "async": true,
2816
+ "parameters": [
2817
+ {
2818
+ "name": "options",
2819
+ "type": "object",
2820
+ "optional": true
2821
+ }
2822
+ ],
2823
+ "returnType": "Promise<Map<string, any>>",
2824
+ "isStatic": false,
2825
+ "isPublic": true
2826
+ },
2827
+ "forget": {
2828
+ "name": "forget",
2829
+ "async": true,
2830
+ "parameters": [
2831
+ {
2832
+ "name": "options",
2833
+ "type": "object",
2834
+ "optional": false
2835
+ }
2836
+ ],
2837
+ "returnType": "Promise<void>",
2838
+ "isStatic": false,
2839
+ "isPublic": true
2840
+ },
2841
+ "forgetScope": {
2842
+ "name": "forgetScope",
2843
+ "async": true,
2844
+ "parameters": [
2845
+ {
2846
+ "name": "options",
2847
+ "type": "object",
2848
+ "optional": false
2849
+ }
2850
+ ],
2851
+ "returnType": "Promise<number>",
2852
+ "isStatic": false,
2853
+ "isPublic": true
2854
+ },
2855
+ "generateEmbeddings": {
2856
+ "name": "generateEmbeddings",
2857
+ "async": true,
2858
+ "parameters": [
2859
+ {
2860
+ "name": "options",
2861
+ "type": "GenerateEmbeddingsOptions",
2862
+ "optional": true
2863
+ }
2864
+ ],
2865
+ "returnType": "Promise<void>",
2866
+ "isStatic": false,
2867
+ "isPublic": true
2868
+ },
2869
+ "getEmbedding": {
2870
+ "name": "getEmbedding",
2871
+ "async": true,
2872
+ "parameters": [
2873
+ {
2874
+ "name": "fieldName",
2875
+ "type": "string",
2876
+ "optional": false
2877
+ },
2878
+ {
2879
+ "name": "model",
2880
+ "type": "string",
2881
+ "optional": true
2882
+ }
2883
+ ],
2884
+ "returnType": "Promise<number[] | null>",
2885
+ "isStatic": false,
2886
+ "isPublic": true
2887
+ },
2888
+ "hasStaleEmbeddings": {
2889
+ "name": "hasStaleEmbeddings",
2890
+ "async": true,
2891
+ "parameters": [],
2892
+ "returnType": "Promise<boolean>",
2893
+ "isStatic": false,
2894
+ "isPublic": true
2895
+ },
2896
+ "clearEmbeddings": {
2897
+ "name": "clearEmbeddings",
2898
+ "async": true,
2899
+ "parameters": [],
2900
+ "returnType": "Promise<void>",
2901
+ "isStatic": false,
2902
+ "isPublic": true
2903
+ }
2904
+ },
2905
+ "decoratorConfig": {
2906
+ "tableStrategy": "sti",
2907
+ "api": {
2908
+ "include": [
2909
+ "list",
2910
+ "get",
2911
+ "create",
2912
+ "delete"
2913
+ ]
2914
+ },
2915
+ "mcp": {
2916
+ "include": [
2917
+ "list",
2918
+ "get"
2919
+ ]
2920
+ },
2921
+ "cli": true,
2922
+ "tenantScoped": {
2923
+ "mode": "optional"
2924
+ }
2925
+ },
2926
+ "extends": "SmrtObject",
2927
+ "exportName": "VoiceSample",
2928
+ "collectionExportName": "VoiceSampleCollection",
2929
+ "schema": {
2930
+ "tableName": "voice_samples",
2931
+ "ddl": "CREATE TABLE IF NOT EXISTS \"voice_samples\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"voice_profile_id\" UUID,\n \"asset_id\" UUID,\n \"duration\" INTEGER DEFAULT 0,\n \"transcription\" TEXT,\n \"quality\" TEXT DEFAULT 'medium',\n \"sample_rate\" INTEGER,\n \"channels\" INTEGER,\n \"format\" TEXT,\n \"is_primary\" BOOLEAN DEFAULT FALSE\n);",
2932
+ "columns": {
2933
+ "id": {
2934
+ "type": "UUID",
2935
+ "primaryKey": true,
2936
+ "referenceKind": "id",
2937
+ "notNull": true
2938
+ },
2939
+ "slug": {
2940
+ "type": "TEXT",
2941
+ "notNull": true
2942
+ },
2943
+ "context": {
2944
+ "type": "TEXT",
2945
+ "notNull": true,
2946
+ "default": ""
2947
+ },
2948
+ "_meta_type": {
2949
+ "type": "TEXT",
2950
+ "notNull": true
2951
+ },
2952
+ "_meta_data": {
2953
+ "type": "JSON",
2954
+ "notNull": false
2955
+ },
2956
+ "created_at": {
2957
+ "type": "TIMESTAMP",
2958
+ "notNull": true,
2959
+ "default": "current_timestamp"
2960
+ },
2961
+ "updated_at": {
2962
+ "type": "TIMESTAMP",
2963
+ "notNull": true,
2964
+ "default": "current_timestamp"
2965
+ },
2966
+ "tenant_id": {
2967
+ "type": "UUID",
2968
+ "referenceKind": "tenantId",
2969
+ "notNull": false
2970
+ },
2971
+ "voice_profile_id": {
2972
+ "type": "UUID",
2973
+ "referenceKind": "foreignKey",
2974
+ "notNull": false
2975
+ },
2976
+ "asset_id": {
2977
+ "type": "UUID",
2978
+ "referenceKind": "crossPackageRef",
2979
+ "notNull": false
2980
+ },
2981
+ "duration": {
2982
+ "type": "INTEGER",
2983
+ "notNull": false,
2984
+ "default": 0
2985
+ },
2986
+ "transcription": {
2987
+ "type": "TEXT",
2988
+ "notNull": false
2989
+ },
2990
+ "quality": {
2991
+ "type": "TEXT",
2992
+ "notNull": false,
2993
+ "default": "medium"
2994
+ },
2995
+ "sample_rate": {
2996
+ "type": "INTEGER",
2997
+ "notNull": false
2998
+ },
2999
+ "channels": {
3000
+ "type": "INTEGER",
3001
+ "notNull": false
3002
+ },
3003
+ "format": {
3004
+ "type": "TEXT",
3005
+ "notNull": false
3006
+ },
3007
+ "is_primary": {
3008
+ "type": "BOOLEAN",
3009
+ "notNull": false,
3010
+ "default": false
3011
+ }
3012
+ },
3013
+ "indexes": [
3014
+ {
3015
+ "name": "voice_samples_id_idx",
3016
+ "columns": [
3017
+ "id"
3018
+ ]
3019
+ },
3020
+ {
3021
+ "name": "voice_samples_slug_context_meta_type_idx",
3022
+ "columns": [
3023
+ "slug",
3024
+ "context",
3025
+ "_meta_type"
3026
+ ],
3027
+ "unique": true
3028
+ },
3029
+ {
3030
+ "name": "voice_samples_meta_type_idx",
3031
+ "columns": [
3032
+ "_meta_type"
3033
+ ]
3034
+ }
3035
+ ],
3036
+ "version": "f593a3a1"
3037
+ }
3038
+ }
3039
+ },
3040
+ "moduleType": "smrt",
3041
+ "smrtDependencies": [
3042
+ "@happyvertical/smrt-assets",
3043
+ "@happyvertical/smrt-content",
3044
+ "@happyvertical/smrt-core",
3045
+ "@happyvertical/smrt-tenancy"
3046
+ ]
3047
+ }