@happyvertical/smrt-voice 0.44.0 → 0.45.0

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