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