@happyvertical/smrt-content 0.40.65 → 0.40.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
+ "sensitiveFieldsExcluded": true,
3
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
4
5
  "packageName": "@happyvertical/smrt-content",
5
- "packageVersion": "0.40.65",
6
+ "packageVersion": "0.40.67",
6
7
  "sourceManifestPath": "dist/manifest.json",
7
8
  "agentDocPath": "AGENTS.md",
8
9
  "sourceHashes": {
9
- "manifest": "3920e26e7a4097f4f678eff93097b9beb2f6d65d73e8bb83a8992183b4a4b7df",
10
- "packageJson": "505208cc9369235b6c3a198e240a5c7aa100d2c4bf86b69bd9b708c41f116360",
10
+ "manifest": "84f608fbe4d06d044107aecdf4f1db5b4800e64307548c0eed631dcbcf1230e9",
11
+ "packageJson": "ba71f165942ede3777f12e56616c2a6c8a7c51cfdbfc30cacf769ecf9c75508e",
11
12
  "agents": "a75d356eadcd57611bbe3ba544254fd9a374aecb64a5ce13de2205ea2f7f48bb"
12
13
  },
13
14
  "exports": [
@@ -17,7 +18,8 @@
17
18
  "./mock-smrt-client",
18
19
  "./playground",
19
20
  "./svelte",
20
- "./ui"
21
+ "./ui",
22
+ "./workbench"
21
23
  ],
22
24
  "dependencies": {
23
25
  "@happyvertical/ai": "catalog:",
@@ -126,7 +128,8 @@
126
128
  "name": "sortOrder",
127
129
  "type": "integer",
128
130
  "required": true,
129
- "columnType": "INTEGER"
131
+ "columnType": "INTEGER",
132
+ "default": 0
130
133
  }
131
134
  ],
132
135
  "relationships": [
@@ -146,6 +149,16 @@
146
149
  }
147
150
  ],
148
151
  "methods": [],
152
+ "tenant": {
153
+ "scoped": true,
154
+ "mode": "optional",
155
+ "field": "tenantId"
156
+ },
157
+ "conflictColumns": [
158
+ "content_id",
159
+ "asset_id",
160
+ "relationship"
161
+ ],
149
162
  "surfaces": [],
150
163
  "relationshipFeatures": [
151
164
  "crossPackageRef",
@@ -171,6 +184,56 @@
171
184
  "detach",
172
185
  "setLinks"
173
186
  ],
187
+ "methodSignatures": [
188
+ {
189
+ "name": "attach",
190
+ "async": true,
191
+ "params": [
192
+ "leftId: string",
193
+ "rightId: string",
194
+ "opts?: JunctionAttachOptions"
195
+ ],
196
+ "returns": "Promise<TItem>"
197
+ },
198
+ {
199
+ "name": "byLeft",
200
+ "async": true,
201
+ "params": [
202
+ "leftId: string",
203
+ "opts?: JunctionFilterOptions"
204
+ ],
205
+ "returns": "Promise<TItem[]>"
206
+ },
207
+ {
208
+ "name": "byRight",
209
+ "async": true,
210
+ "params": [
211
+ "rightId: string",
212
+ "opts?: JunctionFilterOptions"
213
+ ],
214
+ "returns": "Promise<TItem[]>"
215
+ },
216
+ {
217
+ "name": "detach",
218
+ "async": true,
219
+ "params": [
220
+ "leftId: string",
221
+ "rightId: string",
222
+ "opts?: JunctionFilterOptions"
223
+ ],
224
+ "returns": "Promise<void>"
225
+ },
226
+ {
227
+ "name": "setLinks",
228
+ "async": true,
229
+ "params": [
230
+ "leftId: string",
231
+ "rightIds: string[]",
232
+ "opts?: JunctionAttachOptions"
233
+ ],
234
+ "returns": "Promise<void>"
235
+ }
236
+ ],
174
237
  "surfaces": [],
175
238
  "relationshipFeatures": [
176
239
  "SmrtJunction",
@@ -217,7 +280,8 @@
217
280
  "name": "size",
218
281
  "type": "integer",
219
282
  "required": true,
220
- "columnType": "INTEGER"
283
+ "columnType": "INTEGER",
284
+ "default": 0
221
285
  },
222
286
  {
223
287
  "name": "fileKey",
@@ -235,7 +299,8 @@
235
299
  "name": "channel",
236
300
  "type": "text",
237
301
  "required": false,
238
- "columnType": "TEXT"
302
+ "columnType": "TEXT",
303
+ "default": "web"
239
304
  },
240
305
  {
241
306
  "name": "promotedAssetId",
@@ -295,6 +360,20 @@
295
360
  "methods": [
296
361
  "getMetadata"
297
362
  ],
363
+ "methodSignatures": [
364
+ {
365
+ "name": "getMetadata",
366
+ "returns": "Record<string>"
367
+ }
368
+ ],
369
+ "tenant": {
370
+ "scoped": true,
371
+ "mode": "optional",
372
+ "field": "tenantId"
373
+ },
374
+ "conflictColumns": [
375
+ "id"
376
+ ],
298
377
  "surfaces": [
299
378
  {
300
379
  "kind": "api",
@@ -418,6 +497,24 @@
418
497
  "listForContribution",
419
498
  "listForRevision"
420
499
  ],
500
+ "methodSignatures": [
501
+ {
502
+ "name": "listForContribution",
503
+ "async": true,
504
+ "params": [
505
+ "contributionId: string"
506
+ ],
507
+ "returns": "Promise<ContentContributionAttachment[]>"
508
+ },
509
+ {
510
+ "name": "listForRevision",
511
+ "async": true,
512
+ "params": [
513
+ "revisionId: string"
514
+ ],
515
+ "returns": "Promise<ContentContributionAttachment[]>"
516
+ }
517
+ ],
421
518
  "surfaces": [],
422
519
  "relationshipFeatures": [
423
520
  "uuidColumns"
@@ -444,13 +541,15 @@
444
541
  "name": "revisionNumber",
445
542
  "type": "integer",
446
543
  "required": true,
447
- "columnType": "INTEGER"
544
+ "columnType": "INTEGER",
545
+ "default": 1
448
546
  },
449
547
  {
450
548
  "name": "channel",
451
549
  "type": "text",
452
550
  "required": false,
453
- "columnType": "TEXT"
551
+ "columnType": "TEXT",
552
+ "default": "web"
454
553
  },
455
554
  {
456
555
  "name": "title",
@@ -527,6 +626,21 @@
527
626
  "methods": [
528
627
  "getMetadata"
529
628
  ],
629
+ "methodSignatures": [
630
+ {
631
+ "name": "getMetadata",
632
+ "returns": "Record<string>"
633
+ }
634
+ ],
635
+ "tenant": {
636
+ "scoped": true,
637
+ "mode": "optional",
638
+ "field": "tenantId"
639
+ },
640
+ "conflictColumns": [
641
+ "contribution_id",
642
+ "revision_number"
643
+ ],
530
644
  "surfaces": [
531
645
  {
532
646
  "kind": "api",
@@ -650,6 +764,24 @@
650
764
  "getLatestForContribution",
651
765
  "listForContribution"
652
766
  ],
767
+ "methodSignatures": [
768
+ {
769
+ "name": "getLatestForContribution",
770
+ "async": true,
771
+ "params": [
772
+ "contributionId: string"
773
+ ],
774
+ "returns": "Promise<ContentContributionRevision | null>"
775
+ },
776
+ {
777
+ "name": "listForContribution",
778
+ "async": true,
779
+ "params": [
780
+ "contributionId: string"
781
+ ],
782
+ "returns": "Promise<ContentContributionRevision[]>"
783
+ }
784
+ ],
653
785
  "surfaces": [],
654
786
  "relationshipFeatures": [
655
787
  "uuidColumns"
@@ -681,7 +813,8 @@
681
813
  "name": "enabled",
682
814
  "type": "boolean",
683
815
  "required": true,
684
- "columnType": "BOOLEAN"
816
+ "columnType": "BOOLEAN",
817
+ "default": true
685
818
  },
686
819
  {
687
820
  "name": "allowedChannels",
@@ -693,19 +826,22 @@
693
826
  "name": "allowText",
694
827
  "type": "boolean",
695
828
  "required": true,
696
- "columnType": "BOOLEAN"
829
+ "columnType": "BOOLEAN",
830
+ "default": true
697
831
  },
698
832
  {
699
833
  "name": "allowFiles",
700
834
  "type": "boolean",
701
835
  "required": true,
702
- "columnType": "BOOLEAN"
836
+ "columnType": "BOOLEAN",
837
+ "default": false
703
838
  },
704
839
  {
705
840
  "name": "allowEmptyText",
706
841
  "type": "boolean",
707
842
  "required": true,
708
- "columnType": "BOOLEAN"
843
+ "columnType": "BOOLEAN",
844
+ "default": false
709
845
  },
710
846
  {
711
847
  "name": "intakeRules",
@@ -757,6 +893,69 @@
757
893
  "setPromotion",
758
894
  "toDefinition"
759
895
  ],
896
+ "methodSignatures": [
897
+ {
898
+ "name": "delete",
899
+ "async": true,
900
+ "returns": "Promise<void>"
901
+ },
902
+ {
903
+ "name": "getAllowedChannels",
904
+ "returns": "ContentContributionChannel[]"
905
+ },
906
+ {
907
+ "name": "getIntakeRules",
908
+ "returns": "ContentContributionIntakeRules"
909
+ },
910
+ {
911
+ "name": "getMetadata",
912
+ "returns": "Record<string>"
913
+ },
914
+ {
915
+ "name": "getPromotion",
916
+ "returns": "ContentContributionPromotionMapping"
917
+ },
918
+ {
919
+ "name": "setAllowedChannels",
920
+ "params": [
921
+ "channels: ContentContributionChannel[]"
922
+ ],
923
+ "returns": "void"
924
+ },
925
+ {
926
+ "name": "setIntakeRules",
927
+ "params": [
928
+ "rules: ContentContributionIntakeRules"
929
+ ],
930
+ "returns": "void"
931
+ },
932
+ {
933
+ "name": "setMetadata",
934
+ "params": [
935
+ "metadata: Record<string>"
936
+ ],
937
+ "returns": "void"
938
+ },
939
+ {
940
+ "name": "setPromotion",
941
+ "params": [
942
+ "promotion: ContentContributionPromotionMapping"
943
+ ],
944
+ "returns": "void"
945
+ },
946
+ {
947
+ "name": "toDefinition",
948
+ "returns": "ContentContributionTypeDefinition"
949
+ }
950
+ ],
951
+ "tenant": {
952
+ "scoped": true,
953
+ "mode": "optional",
954
+ "field": "tenantId"
955
+ },
956
+ "conflictColumns": [
957
+ "key"
958
+ ],
760
959
  "surfaces": [
761
960
  {
762
961
  "kind": "api",
@@ -877,6 +1076,16 @@
877
1076
  "methods": [
878
1077
  "getByKey"
879
1078
  ],
1079
+ "methodSignatures": [
1080
+ {
1081
+ "name": "getByKey",
1082
+ "async": true,
1083
+ "params": [
1084
+ "key: string"
1085
+ ],
1086
+ "returns": "Promise<ContentContributionType | null>"
1087
+ }
1088
+ ],
880
1089
  "surfaces": [],
881
1090
  "relationshipFeatures": [
882
1091
  "uuidColumns"
@@ -909,19 +1118,22 @@
909
1118
  "name": "status",
910
1119
  "type": "text",
911
1120
  "required": false,
912
- "columnType": "TEXT"
1121
+ "columnType": "TEXT",
1122
+ "default": "submitted"
913
1123
  },
914
1124
  {
915
1125
  "name": "intakeDecision",
916
1126
  "type": "text",
917
1127
  "required": false,
918
- "columnType": "TEXT"
1128
+ "columnType": "TEXT",
1129
+ "default": "accepted"
919
1130
  },
920
1131
  {
921
1132
  "name": "channel",
922
1133
  "type": "text",
923
1134
  "required": false,
924
- "columnType": "TEXT"
1135
+ "columnType": "TEXT",
1136
+ "default": "web"
925
1137
  },
926
1138
  {
927
1139
  "name": "title",
@@ -983,7 +1195,8 @@
983
1195
  "name": "revisionCount",
984
1196
  "type": "integer",
985
1197
  "required": true,
986
- "columnType": "INTEGER"
1198
+ "columnType": "INTEGER",
1199
+ "default": 0
987
1200
  },
988
1201
  {
989
1202
  "name": "approvedAt",
@@ -1078,6 +1291,100 @@
1078
1291
  "setMetadata",
1079
1292
  "withdrawAction"
1080
1293
  ],
1294
+ "methodSignatures": [
1295
+ {
1296
+ "name": "appendRevisionAction",
1297
+ "async": true,
1298
+ "params": [
1299
+ "options?: AppendContentContributionRevisionOptions"
1300
+ ],
1301
+ "returns": "any"
1302
+ },
1303
+ {
1304
+ "name": "approveAction",
1305
+ "async": true,
1306
+ "params": [
1307
+ "options?: ApproveContentContributionOptions"
1308
+ ],
1309
+ "returns": "any"
1310
+ },
1311
+ {
1312
+ "name": "getAttachments",
1313
+ "async": true,
1314
+ "returns": "Promise<ContentContributionAttachment[]>"
1315
+ },
1316
+ {
1317
+ "name": "getContributor",
1318
+ "async": true,
1319
+ "returns": "Promise<ContentContributor | null>"
1320
+ },
1321
+ {
1322
+ "name": "getLatestRevision",
1323
+ "async": true,
1324
+ "returns": "Promise<ContentContributionRevision | null>"
1325
+ },
1326
+ {
1327
+ "name": "getMetadata",
1328
+ "returns": "Record<string>"
1329
+ },
1330
+ {
1331
+ "name": "getRevisions",
1332
+ "async": true,
1333
+ "returns": "Promise<ContentContributionRevision[]>"
1334
+ },
1335
+ {
1336
+ "name": "promoteAction",
1337
+ "async": true,
1338
+ "params": [
1339
+ "options?: PromoteContentContributionOptions"
1340
+ ],
1341
+ "returns": "any"
1342
+ },
1343
+ {
1344
+ "name": "rejectAction",
1345
+ "async": true,
1346
+ "params": [
1347
+ "options?: RejectContentContributionOptions"
1348
+ ],
1349
+ "returns": "any"
1350
+ },
1351
+ {
1352
+ "name": "requestChangesAction",
1353
+ "async": true,
1354
+ "params": [
1355
+ "options?: RequestChangesContentContributionOptions"
1356
+ ],
1357
+ "returns": "any"
1358
+ },
1359
+ {
1360
+ "name": "resolveContributionType",
1361
+ "async": true,
1362
+ "returns": "Promise<ContentContributionTypeDefinition | null>"
1363
+ },
1364
+ {
1365
+ "name": "setMetadata",
1366
+ "params": [
1367
+ "metadata: Record<string>"
1368
+ ],
1369
+ "returns": "void"
1370
+ },
1371
+ {
1372
+ "name": "withdrawAction",
1373
+ "async": true,
1374
+ "params": [
1375
+ "options?: WithdrawContentContributionOptions"
1376
+ ],
1377
+ "returns": "any"
1378
+ }
1379
+ ],
1380
+ "tenant": {
1381
+ "scoped": true,
1382
+ "mode": "optional",
1383
+ "field": "tenantId"
1384
+ },
1385
+ "conflictColumns": [
1386
+ "id"
1387
+ ],
1081
1388
  "surfaces": [
1082
1389
  {
1083
1390
  "kind": "api",
@@ -1246,6 +1553,48 @@
1246
1553
  "listInboxAction",
1247
1554
  "submitWebContribution"
1248
1555
  ],
1556
+ "methodSignatures": [
1557
+ {
1558
+ "name": "getContributionTypesAction",
1559
+ "async": true,
1560
+ "params": [
1561
+ "options?: object"
1562
+ ],
1563
+ "returns": "any"
1564
+ },
1565
+ {
1566
+ "name": "ingestEmailContribution",
1567
+ "async": true,
1568
+ "params": [
1569
+ "options: IngestEmailContentContributionOptions"
1570
+ ],
1571
+ "returns": "any"
1572
+ },
1573
+ {
1574
+ "name": "listForContributor",
1575
+ "async": true,
1576
+ "params": [
1577
+ "options?: object"
1578
+ ],
1579
+ "returns": "any"
1580
+ },
1581
+ {
1582
+ "name": "listInboxAction",
1583
+ "async": true,
1584
+ "params": [
1585
+ "options?: object"
1586
+ ],
1587
+ "returns": "Promise<ContentContribution[]>"
1588
+ },
1589
+ {
1590
+ "name": "submitWebContribution",
1591
+ "async": true,
1592
+ "params": [
1593
+ "options: SubmitWebContentContributionOptions"
1594
+ ],
1595
+ "returns": "any"
1596
+ }
1597
+ ],
1249
1598
  "surfaces": [
1250
1599
  {
1251
1600
  "kind": "api",
@@ -1325,7 +1674,8 @@
1325
1674
  "name": "trustLevel",
1326
1675
  "type": "text",
1327
1676
  "required": false,
1328
- "columnType": "TEXT"
1677
+ "columnType": "TEXT",
1678
+ "default": "standard"
1329
1679
  },
1330
1680
  {
1331
1681
  "name": "metadata",
@@ -1365,6 +1715,27 @@
1365
1715
  "getMetadata",
1366
1716
  "setMetadata"
1367
1717
  ],
1718
+ "methodSignatures": [
1719
+ {
1720
+ "name": "getMetadata",
1721
+ "returns": "Record<string>"
1722
+ },
1723
+ {
1724
+ "name": "setMetadata",
1725
+ "params": [
1726
+ "metadata: Record<string>"
1727
+ ],
1728
+ "returns": "void"
1729
+ }
1730
+ ],
1731
+ "tenant": {
1732
+ "scoped": true,
1733
+ "mode": "optional",
1734
+ "field": "tenantId"
1735
+ },
1736
+ "conflictColumns": [
1737
+ "email"
1738
+ ],
1368
1739
  "surfaces": [
1369
1740
  {
1370
1741
  "kind": "api",
@@ -1488,6 +1859,32 @@
1488
1859
  "getByEmail",
1489
1860
  "getByProfileId"
1490
1861
  ],
1862
+ "methodSignatures": [
1863
+ {
1864
+ "name": "findOrCreateByEmail",
1865
+ "async": true,
1866
+ "params": [
1867
+ "options: object"
1868
+ ],
1869
+ "returns": "Promise<ContentContributor>"
1870
+ },
1871
+ {
1872
+ "name": "getByEmail",
1873
+ "async": true,
1874
+ "params": [
1875
+ "email: string"
1876
+ ],
1877
+ "returns": "Promise<ContentContributor | null>"
1878
+ },
1879
+ {
1880
+ "name": "getByProfileId",
1881
+ "async": true,
1882
+ "params": [
1883
+ "profileId: string"
1884
+ ],
1885
+ "returns": "Promise<ContentContributor | null>"
1886
+ }
1887
+ ],
1491
1888
  "surfaces": [],
1492
1889
  "relationshipFeatures": [
1493
1890
  "uuidColumns"
@@ -1535,13 +1932,15 @@
1535
1932
  "name": "correctionType",
1536
1933
  "type": "text",
1537
1934
  "required": false,
1538
- "columnType": "TEXT"
1935
+ "columnType": "TEXT",
1936
+ "default": "fact"
1539
1937
  },
1540
1938
  {
1541
1939
  "name": "status",
1542
1940
  "type": "text",
1543
1941
  "required": false,
1544
- "columnType": "TEXT"
1942
+ "columnType": "TEXT",
1943
+ "default": "draft"
1545
1944
  },
1546
1945
  {
1547
1946
  "name": "summary",
@@ -1631,6 +2030,17 @@
1631
2030
  "methods": [
1632
2031
  "getMetadata"
1633
2032
  ],
2033
+ "methodSignatures": [
2034
+ {
2035
+ "name": "getMetadata",
2036
+ "returns": "Record<string>"
2037
+ }
2038
+ ],
2039
+ "tenant": {
2040
+ "scoped": true,
2041
+ "mode": "optional",
2042
+ "field": "tenantId"
2043
+ },
1634
2044
  "surfaces": [
1635
2045
  {
1636
2046
  "kind": "api",
@@ -1741,6 +2151,32 @@
1741
2151
  "issue",
1742
2152
  "listForContent"
1743
2153
  ],
2154
+ "methodSignatures": [
2155
+ {
2156
+ "name": "getPublishedForContent",
2157
+ "async": true,
2158
+ "params": [
2159
+ "contentId: string"
2160
+ ],
2161
+ "returns": "Promise<ContentCorrection[]>"
2162
+ },
2163
+ {
2164
+ "name": "issue",
2165
+ "async": true,
2166
+ "params": [
2167
+ "options: any"
2168
+ ],
2169
+ "returns": "Promise<ContentCorrection>"
2170
+ },
2171
+ {
2172
+ "name": "listForContent",
2173
+ "async": true,
2174
+ "params": [
2175
+ "contentId: string"
2176
+ ],
2177
+ "returns": "Promise<ContentCorrection[]>"
2178
+ }
2179
+ ],
1744
2180
  "surfaces": [],
1745
2181
  "relationshipFeatures": [
1746
2182
  "uuidColumns"
@@ -1790,7 +2226,8 @@
1790
2226
  "name": "status",
1791
2227
  "type": "text",
1792
2228
  "required": true,
1793
- "columnType": "TEXT"
2229
+ "columnType": "TEXT",
2230
+ "default": "active"
1794
2231
  },
1795
2232
  {
1796
2233
  "name": "defaultCategory",
@@ -1808,7 +2245,8 @@
1808
2245
  "name": "pollIntervalMinutes",
1809
2246
  "type": "integer",
1810
2247
  "required": true,
1811
- "columnType": "INTEGER"
2248
+ "columnType": "INTEGER",
2249
+ "default": 15
1812
2250
  },
1813
2251
  {
1814
2252
  "name": "etag",
@@ -1844,7 +2282,8 @@
1844
2282
  "name": "metadata",
1845
2283
  "type": "json",
1846
2284
  "required": false,
1847
- "columnType": "JSON"
2285
+ "columnType": "JSON",
2286
+ "default": {}
1848
2287
  },
1849
2288
  {
1850
2289
  "name": "createdAt",
@@ -1867,6 +2306,51 @@
1867
2306
  "markFetchSucceeded",
1868
2307
  "setMetadata"
1869
2308
  ],
2309
+ "methodSignatures": [
2310
+ {
2311
+ "name": "getMetadata",
2312
+ "returns": "Record<string>"
2313
+ },
2314
+ {
2315
+ "name": "markFetchFailed",
2316
+ "params": [
2317
+ "error: any",
2318
+ "at?: any"
2319
+ ],
2320
+ "returns": "void"
2321
+ },
2322
+ {
2323
+ "name": "markFetchStarted",
2324
+ "params": [
2325
+ "at?: any"
2326
+ ],
2327
+ "returns": "void"
2328
+ },
2329
+ {
2330
+ "name": "markFetchSucceeded",
2331
+ "params": [
2332
+ "at?: any",
2333
+ "headers?: object"
2334
+ ],
2335
+ "returns": "void"
2336
+ },
2337
+ {
2338
+ "name": "setMetadata",
2339
+ "params": [
2340
+ "metadata: Record<string>"
2341
+ ],
2342
+ "returns": "void"
2343
+ }
2344
+ ],
2345
+ "tenant": {
2346
+ "scoped": true,
2347
+ "mode": "optional",
2348
+ "field": "tenantId"
2349
+ },
2350
+ "conflictColumns": [
2351
+ "tenant_id",
2352
+ "feed_url"
2353
+ ],
1870
2354
  "surfaces": [
1871
2355
  {
1872
2356
  "kind": "api",
@@ -1989,6 +2473,34 @@
1989
2473
  "findByFeedUrl",
1990
2474
  "findByStatus"
1991
2475
  ],
2476
+ "methodSignatures": [
2477
+ {
2478
+ "name": "findActive",
2479
+ "async": true,
2480
+ "params": [
2481
+ "tenantId?: string | null"
2482
+ ],
2483
+ "returns": "Promise<ContentFeedSource[]>"
2484
+ },
2485
+ {
2486
+ "name": "findByFeedUrl",
2487
+ "async": true,
2488
+ "params": [
2489
+ "feedUrl: string",
2490
+ "tenantId?: string | null"
2491
+ ],
2492
+ "returns": "Promise<ContentFeedSource | null>"
2493
+ },
2494
+ {
2495
+ "name": "findByStatus",
2496
+ "async": true,
2497
+ "params": [
2498
+ "status: ContentFeedSourceStatus",
2499
+ "tenantId?: string | null"
2500
+ ],
2501
+ "returns": "Promise<ContentFeedSource[]>"
2502
+ }
2503
+ ],
1992
2504
  "surfaces": [],
1993
2505
  "relationshipFeatures": [
1994
2506
  "uuidColumns"
@@ -2032,19 +2544,22 @@
2032
2544
  "name": "enabled",
2033
2545
  "type": "boolean",
2034
2546
  "required": true,
2035
- "columnType": "BOOLEAN"
2547
+ "columnType": "BOOLEAN",
2548
+ "default": true
2036
2549
  },
2037
2550
  {
2038
2551
  "name": "factLinkingEnabled",
2039
2552
  "type": "boolean",
2040
2553
  "required": true,
2041
- "columnType": "BOOLEAN"
2554
+ "columnType": "BOOLEAN",
2555
+ "default": false
2042
2556
  },
2043
2557
  {
2044
2558
  "name": "transparencyEnabled",
2045
2559
  "type": "boolean",
2046
2560
  "required": true,
2047
- "columnType": "BOOLEAN"
2561
+ "columnType": "BOOLEAN",
2562
+ "default": false
2048
2563
  },
2049
2564
  {
2050
2565
  "name": "publicationProfileKey",
@@ -2062,13 +2577,15 @@
2062
2577
  "name": "enforcePublishReadiness",
2063
2578
  "type": "boolean",
2064
2579
  "required": true,
2065
- "columnType": "BOOLEAN"
2580
+ "columnType": "BOOLEAN",
2581
+ "default": false
2066
2582
  },
2067
2583
  {
2068
2584
  "name": "defaultFactRelationship",
2069
2585
  "type": "text",
2070
2586
  "required": false,
2071
- "columnType": "TEXT"
2587
+ "columnType": "TEXT",
2588
+ "default": "supports"
2072
2589
  },
2073
2590
  {
2074
2591
  "name": "metadata",
@@ -2100,6 +2617,24 @@
2100
2617
  "getMetadata",
2101
2618
  "toDefinition"
2102
2619
  ],
2620
+ "methodSignatures": [
2621
+ {
2622
+ "name": "getMetadata",
2623
+ "returns": "Record<string>"
2624
+ },
2625
+ {
2626
+ "name": "toDefinition",
2627
+ "returns": "ContentGovernanceAssignmentDefinition"
2628
+ }
2629
+ ],
2630
+ "tenant": {
2631
+ "scoped": true,
2632
+ "mode": "optional",
2633
+ "field": "tenantId"
2634
+ },
2635
+ "conflictColumns": [
2636
+ "key"
2637
+ ],
2103
2638
  "surfaces": [
2104
2639
  {
2105
2640
  "kind": "api",
@@ -2221,6 +2756,24 @@
2221
2756
  "getByKey",
2222
2757
  "resolveForContent"
2223
2758
  ],
2759
+ "methodSignatures": [
2760
+ {
2761
+ "name": "getByKey",
2762
+ "async": true,
2763
+ "params": [
2764
+ "key: string"
2765
+ ],
2766
+ "returns": "Promise<ContentGovernanceAssignment | null>"
2767
+ },
2768
+ {
2769
+ "name": "resolveForContent",
2770
+ "async": true,
2771
+ "params": [
2772
+ "options: object"
2773
+ ],
2774
+ "returns": "Promise<ContentGovernanceAssignment | null>"
2775
+ }
2776
+ ],
2224
2777
  "surfaces": [],
2225
2778
  "relationshipFeatures": [
2226
2779
  "uuidColumns"
@@ -2240,6 +2793,16 @@
2240
2793
  "methods": [
2241
2794
  "getByKey"
2242
2795
  ],
2796
+ "methodSignatures": [
2797
+ {
2798
+ "name": "getByKey",
2799
+ "async": true,
2800
+ "params": [
2801
+ "key: string"
2802
+ ],
2803
+ "returns": "Promise<ContentGovernancePolicy | null>"
2804
+ }
2805
+ ],
2243
2806
  "surfaces": [],
2244
2807
  "relationshipFeatures": [
2245
2808
  "uuidColumns"
@@ -2271,7 +2834,8 @@
2271
2834
  "name": "kind",
2272
2835
  "type": "text",
2273
2836
  "required": false,
2274
- "columnType": "TEXT"
2837
+ "columnType": "TEXT",
2838
+ "default": "custom"
2275
2839
  },
2276
2840
  {
2277
2841
  "name": "instructions",
@@ -2283,7 +2847,8 @@
2283
2847
  "name": "enabled",
2284
2848
  "type": "boolean",
2285
2849
  "required": true,
2286
- "columnType": "BOOLEAN"
2850
+ "columnType": "BOOLEAN",
2851
+ "default": true
2287
2852
  },
2288
2853
  {
2289
2854
  "name": "metadata",
@@ -2316,6 +2881,29 @@
2316
2881
  "getMetadata",
2317
2882
  "toDefinition"
2318
2883
  ],
2884
+ "methodSignatures": [
2885
+ {
2886
+ "name": "delete",
2887
+ "async": true,
2888
+ "returns": "Promise<void>"
2889
+ },
2890
+ {
2891
+ "name": "getMetadata",
2892
+ "returns": "Record<string>"
2893
+ },
2894
+ {
2895
+ "name": "toDefinition",
2896
+ "returns": "ContentReviewPolicyDefinition"
2897
+ }
2898
+ ],
2899
+ "tenant": {
2900
+ "scoped": true,
2901
+ "mode": "optional",
2902
+ "field": "tenantId"
2903
+ },
2904
+ "conflictColumns": [
2905
+ "key"
2906
+ ],
2319
2907
  "surfaces": [
2320
2908
  {
2321
2909
  "kind": "api",
@@ -2454,7 +3042,8 @@
2454
3042
  "name": "enabled",
2455
3043
  "type": "boolean",
2456
3044
  "required": true,
2457
- "columnType": "BOOLEAN"
3045
+ "columnType": "BOOLEAN",
3046
+ "default": true
2458
3047
  },
2459
3048
  {
2460
3049
  "name": "requirements",
@@ -2494,6 +3083,33 @@
2494
3083
  "getRequirements",
2495
3084
  "toDefinition"
2496
3085
  ],
3086
+ "methodSignatures": [
3087
+ {
3088
+ "name": "delete",
3089
+ "async": true,
3090
+ "returns": "Promise<void>"
3091
+ },
3092
+ {
3093
+ "name": "getMetadata",
3094
+ "returns": "Record<string>"
3095
+ },
3096
+ {
3097
+ "name": "getRequirements",
3098
+ "returns": "ContentReviewRequirement[]"
3099
+ },
3100
+ {
3101
+ "name": "toDefinition",
3102
+ "returns": "ContentGovernanceProfileDefinition"
3103
+ }
3104
+ ],
3105
+ "tenant": {
3106
+ "scoped": true,
3107
+ "mode": "optional",
3108
+ "field": "tenantId"
3109
+ },
3110
+ "conflictColumns": [
3111
+ "key"
3112
+ ],
2497
3113
  "surfaces": [
2498
3114
  {
2499
3115
  "kind": "api",
@@ -2614,6 +3230,16 @@
2614
3230
  "methods": [
2615
3231
  "getByKey"
2616
3232
  ],
3233
+ "methodSignatures": [
3234
+ {
3235
+ "name": "getByKey",
3236
+ "async": true,
3237
+ "params": [
3238
+ "key: string"
3239
+ ],
3240
+ "returns": "Promise<ContentGovernanceProfile | null>"
3241
+ }
3242
+ ],
2617
3243
  "surfaces": [],
2618
3244
  "relationshipFeatures": [
2619
3245
  "uuidColumns"
@@ -2679,6 +3305,15 @@
2679
3305
  }
2680
3306
  ],
2681
3307
  "methods": [],
3308
+ "tenant": {
3309
+ "scoped": true,
3310
+ "mode": "optional",
3311
+ "field": "tenantId"
3312
+ },
3313
+ "conflictColumns": [
3314
+ "source_id",
3315
+ "target_id"
3316
+ ],
2682
3317
  "surfaces": [],
2683
3318
  "relationshipFeatures": [
2684
3319
  "foreignKey",
@@ -2706,6 +3341,81 @@
2706
3341
  "setLinks",
2707
3342
  "unlink"
2708
3343
  ],
3344
+ "methodSignatures": [
3345
+ {
3346
+ "name": "attach",
3347
+ "async": true,
3348
+ "params": [
3349
+ "sourceId: string",
3350
+ "targetId: string",
3351
+ "opts?: JunctionAttachOptions"
3352
+ ],
3353
+ "returns": "Promise<ContentReference>"
3354
+ },
3355
+ {
3356
+ "name": "byLeft",
3357
+ "async": true,
3358
+ "params": [
3359
+ "leftId: string",
3360
+ "opts?: JunctionFilterOptions"
3361
+ ],
3362
+ "returns": "Promise<TItem[]>"
3363
+ },
3364
+ {
3365
+ "name": "byRight",
3366
+ "async": true,
3367
+ "params": [
3368
+ "rightId: string",
3369
+ "opts?: JunctionFilterOptions"
3370
+ ],
3371
+ "returns": "Promise<TItem[]>"
3372
+ },
3373
+ {
3374
+ "name": "detach",
3375
+ "async": true,
3376
+ "params": [
3377
+ "leftId: string",
3378
+ "rightId: string",
3379
+ "opts?: JunctionFilterOptions"
3380
+ ],
3381
+ "returns": "Promise<void>"
3382
+ },
3383
+ {
3384
+ "name": "getForSource",
3385
+ "async": true,
3386
+ "params": [
3387
+ "sourceId: string"
3388
+ ],
3389
+ "returns": "Promise<ContentReference[]>"
3390
+ },
3391
+ {
3392
+ "name": "getForTarget",
3393
+ "async": true,
3394
+ "params": [
3395
+ "targetId: string"
3396
+ ],
3397
+ "returns": "Promise<ContentReference[]>"
3398
+ },
3399
+ {
3400
+ "name": "setLinks",
3401
+ "async": true,
3402
+ "params": [
3403
+ "leftId: string",
3404
+ "rightIds: string[]",
3405
+ "opts?: JunctionAttachOptions"
3406
+ ],
3407
+ "returns": "Promise<void>"
3408
+ },
3409
+ {
3410
+ "name": "unlink",
3411
+ "async": true,
3412
+ "params": [
3413
+ "sourceId: string",
3414
+ "targetId: string"
3415
+ ],
3416
+ "returns": "Promise<void>"
3417
+ }
3418
+ ],
2709
3419
  "surfaces": [],
2710
3420
  "relationshipFeatures": [
2711
3421
  "SmrtJunction",
@@ -2740,7 +3450,8 @@
2740
3450
  "name": "kind",
2741
3451
  "type": "text",
2742
3452
  "required": false,
2743
- "columnType": "TEXT"
3453
+ "columnType": "TEXT",
3454
+ "default": "custom"
2744
3455
  },
2745
3456
  {
2746
3457
  "name": "policyKey",
@@ -2752,7 +3463,8 @@
2752
3463
  "name": "status",
2753
3464
  "type": "text",
2754
3465
  "required": false,
2755
- "columnType": "TEXT"
3466
+ "columnType": "TEXT",
3467
+ "default": "pending"
2756
3468
  },
2757
3469
  {
2758
3470
  "name": "summary",
@@ -2817,6 +3529,21 @@
2817
3529
  "getFindings",
2818
3530
  "getMetadata"
2819
3531
  ],
3532
+ "methodSignatures": [
3533
+ {
3534
+ "name": "getFindings",
3535
+ "returns": "ContentReviewFinding[]"
3536
+ },
3537
+ {
3538
+ "name": "getMetadata",
3539
+ "returns": "Record<string>"
3540
+ }
3541
+ ],
3542
+ "tenant": {
3543
+ "scoped": true,
3544
+ "mode": "optional",
3545
+ "field": "tenantId"
3546
+ },
2820
3547
  "surfaces": [
2821
3548
  {
2822
3549
  "kind": "api",
@@ -2928,6 +3655,52 @@
2928
3655
  "listForContent",
2929
3656
  "listForContentByPolicyKey"
2930
3657
  ],
3658
+ "methodSignatures": [
3659
+ {
3660
+ "name": "createFromResult",
3661
+ "async": true,
3662
+ "params": [
3663
+ "options: object"
3664
+ ],
3665
+ "returns": "Promise<ContentReview>"
3666
+ },
3667
+ {
3668
+ "name": "getLatestForContent",
3669
+ "async": true,
3670
+ "params": [
3671
+ "contentId: string",
3672
+ "kind?: ContentReviewKind"
3673
+ ],
3674
+ "returns": "Promise<ContentReview | null>"
3675
+ },
3676
+ {
3677
+ "name": "getLatestForPolicyKey",
3678
+ "async": true,
3679
+ "params": [
3680
+ "contentId: string",
3681
+ "policyKey: string"
3682
+ ],
3683
+ "returns": "Promise<ContentReview | null>"
3684
+ },
3685
+ {
3686
+ "name": "listForContent",
3687
+ "async": true,
3688
+ "params": [
3689
+ "contentId: string",
3690
+ "kind?: ContentReviewKind"
3691
+ ],
3692
+ "returns": "Promise<ContentReview[]>"
3693
+ },
3694
+ {
3695
+ "name": "listForContentByPolicyKey",
3696
+ "async": true,
3697
+ "params": [
3698
+ "contentId: string",
3699
+ "policyKey: string"
3700
+ ],
3701
+ "returns": "Promise<ContentReview[]>"
3702
+ }
3703
+ ],
2931
3704
  "surfaces": [],
2932
3705
  "relationshipFeatures": [
2933
3706
  "uuidColumns"
@@ -2989,7 +3762,8 @@
2989
3762
  "name": "name",
2990
3763
  "type": "text",
2991
3764
  "required": true,
2992
- "columnType": "TEXT"
3765
+ "columnType": "TEXT",
3766
+ "default": ""
2993
3767
  },
2994
3768
  {
2995
3769
  "name": "title",
@@ -3049,7 +3823,8 @@
3049
3823
  "name": "tags",
3050
3824
  "type": "json",
3051
3825
  "required": false,
3052
- "columnType": "JSON"
3826
+ "columnType": "JSON",
3827
+ "default": []
3053
3828
  },
3054
3829
  {
3055
3830
  "name": "category",
@@ -3061,19 +3836,22 @@
3061
3836
  "name": "status",
3062
3837
  "type": "text",
3063
3838
  "required": false,
3064
- "columnType": "TEXT"
3839
+ "columnType": "TEXT",
3840
+ "default": "draft"
3065
3841
  },
3066
3842
  {
3067
3843
  "name": "state",
3068
3844
  "type": "text",
3069
3845
  "required": false,
3070
- "columnType": "TEXT"
3846
+ "columnType": "TEXT",
3847
+ "default": "active"
3071
3848
  },
3072
3849
  {
3073
3850
  "name": "metadata",
3074
3851
  "type": "json",
3075
3852
  "required": false,
3076
- "columnType": "JSON"
3853
+ "columnType": "JSON",
3854
+ "default": {}
3077
3855
  },
3078
3856
  {
3079
3857
  "name": "thumbnailAssetId",
@@ -3201,153 +3979,880 @@
3201
3979
  "updateFactEvidenceStatusAction",
3202
3980
  "updateMetadata"
3203
3981
  ],
3204
- "surfaces": [],
3205
- "relationshipFeatures": [
3206
- "crossPackageRef",
3207
- "uuidColumns"
3208
- ],
3209
- "tags": [],
3210
- "risks": []
3211
- },
3212
- {
3213
- "name": "ContentDocument",
3214
- "qualifiedName": "@happyvertical/smrt-content:ContentDocument",
3215
- "collection": "contents",
3216
- "tableName": "contents",
3217
- "packageName": "@happyvertical/smrt-content",
3218
- "extends": "Content",
3219
- "fields": [
3982
+ "methodSignatures": [
3220
3983
  {
3221
- "name": "created_at",
3222
- "type": "datetime",
3223
- "required": false,
3224
- "columnType": "TIMESTAMP"
3984
+ "name": "_setLoadedRelationship",
3985
+ "params": [
3986
+ "fieldName: string",
3987
+ "value: any"
3988
+ ],
3989
+ "returns": "void"
3225
3990
  },
3226
3991
  {
3227
- "name": "updated_at",
3228
- "type": "datetime",
3229
- "required": false,
3230
- "columnType": "TIMESTAMP"
3992
+ "name": "addAsset",
3993
+ "async": true,
3994
+ "params": [
3995
+ "asset: Asset",
3996
+ "relationship?: any",
3997
+ "sortOrder?: any"
3998
+ ],
3999
+ "returns": "Promise<void>"
3231
4000
  },
3232
4001
  {
3233
- "name": "tenantId",
3234
- "type": "text",
3235
- "required": false,
3236
- "columnType": "UUID"
4002
+ "name": "addFact",
4003
+ "async": true,
4004
+ "params": [
4005
+ "fact: Fact | string",
4006
+ "relationship?: FactContentRelationship",
4007
+ "metadata?: Record<string>"
4008
+ ],
4009
+ "returns": "any"
3237
4010
  },
3238
4011
  {
3239
- "name": "type",
3240
- "type": "text",
3241
- "required": false,
3242
- "columnType": "TEXT"
4012
+ "name": "addReference",
4013
+ "async": true,
4014
+ "params": [
4015
+ "content: Content | string",
4016
+ "options?: object"
4017
+ ],
4018
+ "returns": "any"
3243
4019
  },
3244
4020
  {
3245
- "name": "variant",
3246
- "type": "text",
3247
- "required": false,
3248
- "columnType": "TEXT"
4021
+ "name": "browseFacts",
4022
+ "async": true,
4023
+ "params": [
4024
+ "query?: any",
4025
+ "options?: object"
4026
+ ],
4027
+ "returns": "Promise<Fact[]>"
3249
4028
  },
3250
4029
  {
3251
- "name": "fileKey",
3252
- "type": "text",
3253
- "required": false,
3254
- "columnType": "TEXT"
4030
+ "name": "classifyConstraintError",
4031
+ "static": true,
4032
+ "params": [
4033
+ "message: string"
4034
+ ],
4035
+ "returns": "'unique' | 'not_null' | null"
3255
4036
  },
3256
4037
  {
3257
- "name": "author",
3258
- "type": "text",
3259
- "required": false,
3260
- "columnType": "TEXT"
4038
+ "name": "clearEmbeddings",
4039
+ "async": true,
4040
+ "returns": "Promise<void>"
3261
4041
  },
3262
4042
  {
3263
- "name": "name",
3264
- "type": "text",
3265
- "required": true,
3266
- "columnType": "TEXT"
4043
+ "name": "createVersion",
4044
+ "async": true,
4045
+ "params": [
4046
+ "options?: CreateContentVersionOptions"
4047
+ ],
4048
+ "returns": "any"
3267
4049
  },
3268
4050
  {
3269
- "name": "title",
3270
- "type": "text",
3271
- "required": false,
3272
- "columnType": "TEXT"
4051
+ "name": "delete",
4052
+ "async": true,
4053
+ "returns": "Promise<void>"
3273
4054
  },
3274
4055
  {
3275
- "name": "description",
3276
- "type": "text",
3277
- "required": false,
3278
- "columnType": "TEXT"
4056
+ "name": "describe",
4057
+ "async": true,
4058
+ "params": [
4059
+ "options?: AiOperationOptions"
4060
+ ],
4061
+ "returns": "any"
3279
4062
  },
3280
4063
  {
3281
- "name": "body",
3282
- "type": "text",
3283
- "required": false,
3284
- "columnType": "TEXT"
4064
+ "name": "destroy",
4065
+ "returns": "void"
3285
4066
  },
3286
4067
  {
3287
- "name": "bodyFormat",
3288
- "type": "text",
3289
- "required": false,
3290
- "columnType": "TEXT"
4068
+ "name": "do",
4069
+ "async": true,
4070
+ "params": [
4071
+ "instructions: string",
4072
+ "options?: AiOperationOptions"
4073
+ ],
4074
+ "returns": "any"
3291
4075
  },
3292
4076
  {
3293
- "name": "publish_date",
3294
- "type": "datetime",
3295
- "required": false,
3296
- "columnType": "TIMESTAMP"
4077
+ "name": "evaluateReviewProfile",
4078
+ "async": true,
4079
+ "params": [
4080
+ "profileKey: string"
4081
+ ],
4082
+ "returns": "Promise<ContentReviewProfileEvaluation>"
3297
4083
  },
3298
4084
  {
3299
- "name": "url",
3300
- "type": "text",
3301
- "required": false,
3302
- "columnType": "TEXT"
4085
+ "name": "evaluateReviewProfileAction",
4086
+ "async": true,
4087
+ "params": [
4088
+ "options?: object"
4089
+ ],
4090
+ "returns": "any"
3303
4091
  },
3304
4092
  {
3305
- "name": "source",
3306
- "type": "text",
3307
- "required": false,
3308
- "columnType": "TEXT"
4093
+ "name": "executeToolCall",
4094
+ "async": true,
4095
+ "params": [
4096
+ "toolCall: ToolCall"
4097
+ ],
4098
+ "returns": "Promise<ToolCallResult>"
3309
4099
  },
3310
4100
  {
3311
- "name": "original_url",
3312
- "type": "text",
3313
- "required": false,
3314
- "columnType": "TEXT"
4101
+ "name": "forget",
4102
+ "async": true,
4103
+ "params": [
4104
+ "options: object"
4105
+ ],
4106
+ "returns": "Promise<void>"
3315
4107
  },
3316
4108
  {
3317
- "name": "language",
3318
- "type": "text",
3319
- "required": false,
3320
- "columnType": "TEXT"
4109
+ "name": "forgetScope",
4110
+ "async": true,
4111
+ "params": [
4112
+ "options: object"
4113
+ ],
4114
+ "returns": "Promise<number>"
3321
4115
  },
3322
4116
  {
3323
- "name": "tags",
3324
- "type": "json",
3325
- "required": false,
3326
- "columnType": "JSON"
4117
+ "name": "generateEmbeddings",
4118
+ "async": true,
4119
+ "params": [
4120
+ "options?: GenerateEmbeddingsOptions"
4121
+ ],
4122
+ "returns": "Promise<void>"
3327
4123
  },
3328
4124
  {
3329
- "name": "category",
3330
- "type": "text",
3331
- "required": false,
3332
- "columnType": "TEXT"
4125
+ "name": "generateThumbnail",
4126
+ "async": true,
4127
+ "params": [
4128
+ "options: ThumbnailOptions"
4129
+ ],
4130
+ "returns": "Promise<Image>"
3333
4131
  },
3334
4132
  {
3335
- "name": "status",
3336
- "type": "text",
3337
- "required": false,
3338
- "columnType": "TEXT"
4133
+ "name": "getAiUsageSnapshot",
4134
+ "returns": "AiUsageSnapshot | undefined"
3339
4135
  },
3340
4136
  {
3341
- "name": "state",
4137
+ "name": "getAncestorPaths",
4138
+ "returns": "string[]"
4139
+ },
4140
+ {
4141
+ "name": "getAssets",
4142
+ "async": true,
4143
+ "params": [
4144
+ "relationship?: string"
4145
+ ],
4146
+ "returns": "Promise<Asset[]>"
4147
+ },
4148
+ {
4149
+ "name": "getAvailableTools",
4150
+ "returns": "AITool[]"
4151
+ },
4152
+ {
4153
+ "name": "getCategorySegments",
4154
+ "returns": "string[]"
4155
+ },
4156
+ {
4157
+ "name": "getCorrections",
4158
+ "async": true,
4159
+ "returns": "any"
4160
+ },
4161
+ {
4162
+ "name": "getEmbedding",
4163
+ "async": true,
4164
+ "params": [
4165
+ "fieldName: string",
4166
+ "model?: string"
4167
+ ],
4168
+ "returns": "Promise<number[] | null>"
4169
+ },
4170
+ {
4171
+ "name": "getFactAuditState",
4172
+ "async": true,
4173
+ "returns": "Promise<FactAuditState>"
4174
+ },
4175
+ {
4176
+ "name": "getFactAuditStateAction",
4177
+ "async": true,
4178
+ "returns": "any"
4179
+ },
4180
+ {
4181
+ "name": "getFactLinks",
4182
+ "async": true,
4183
+ "params": [
4184
+ "options?: object"
4185
+ ],
4186
+ "returns": "any"
4187
+ },
4188
+ {
4189
+ "name": "getFacts",
4190
+ "async": true,
4191
+ "params": [
4192
+ "options?: object"
4193
+ ],
4194
+ "returns": "Promise<Fact[]>"
4195
+ },
4196
+ {
4197
+ "name": "getFactsState",
4198
+ "async": true,
4199
+ "params": [
4200
+ "options?: object"
4201
+ ],
4202
+ "returns": "any"
4203
+ },
4204
+ {
4205
+ "name": "getFields",
4206
+ "async": true,
4207
+ "returns": "Promise<any>"
4208
+ },
4209
+ {
4210
+ "name": "getGovernanceState",
4211
+ "async": true,
4212
+ "returns": "Promise<ContentGovernanceState>"
4213
+ },
4214
+ {
4215
+ "name": "getGovernanceStateAction",
4216
+ "async": true,
4217
+ "returns": "any"
4218
+ },
4219
+ {
4220
+ "name": "getId",
4221
+ "async": true,
4222
+ "returns": "any"
4223
+ },
4224
+ {
4225
+ "name": "getMetadata",
4226
+ "returns": "Record<string>"
4227
+ },
4228
+ {
4229
+ "name": "getParentCategory",
4230
+ "returns": "string | null"
4231
+ },
4232
+ {
4233
+ "name": "getPublishedTransparency",
4234
+ "async": true,
4235
+ "returns": "any"
4236
+ },
4237
+ {
4238
+ "name": "getPublishedTransparencyAction",
4239
+ "async": true,
4240
+ "returns": "any"
4241
+ },
4242
+ {
4243
+ "name": "getReferenceDrift",
4244
+ "async": true,
4245
+ "returns": "Promise<Array<object>>"
4246
+ },
4247
+ {
4248
+ "name": "getReferenceEdges",
4249
+ "async": true,
4250
+ "returns": "Promise<Array<object>>"
4251
+ },
4252
+ {
4253
+ "name": "getReferences",
4254
+ "async": true,
4255
+ "returns": "any"
4256
+ },
4257
+ {
4258
+ "name": "getRelated",
4259
+ "async": true,
4260
+ "params": [
4261
+ "fieldName: string",
4262
+ "opts?: LoadRelatedOptions"
4263
+ ],
4264
+ "returns": "Promise<any>"
4265
+ },
4266
+ {
4267
+ "name": "getReviewRequirements",
4268
+ "async": true,
4269
+ "params": [
4270
+ "profileKey: string",
4271
+ "governance?: ResolvedContentGovernance"
4272
+ ],
4273
+ "returns": "any"
4274
+ },
4275
+ {
4276
+ "name": "getReviews",
4277
+ "async": true,
4278
+ "params": [
4279
+ "kind?: any"
4280
+ ],
4281
+ "returns": "any"
4282
+ },
4283
+ {
4284
+ "name": "getRootCategory",
4285
+ "returns": "string | null"
4286
+ },
4287
+ {
4288
+ "name": "getSavedId",
4289
+ "async": true,
4290
+ "returns": "any"
4291
+ },
4292
+ {
4293
+ "name": "getSlug",
4294
+ "async": true,
4295
+ "returns": "any"
4296
+ },
4297
+ {
4298
+ "name": "getThumbnail",
4299
+ "async": true,
4300
+ "returns": "Promise<Image | null>"
4301
+ },
4302
+ {
4303
+ "name": "getVersions",
4304
+ "async": true,
4305
+ "returns": "any"
4306
+ },
4307
+ {
4308
+ "name": "hasStaleEmbeddings",
4309
+ "async": true,
4310
+ "returns": "Promise<boolean>"
4311
+ },
4312
+ {
4313
+ "name": "initialize",
4314
+ "async": true,
4315
+ "returns": "Promise"
4316
+ },
4317
+ {
4318
+ "name": "is",
4319
+ "async": true,
4320
+ "params": [
4321
+ "criteria: string",
4322
+ "options?: AiOperationOptions"
4323
+ ],
4324
+ "returns": "any"
4325
+ },
4326
+ {
4327
+ "name": "isGoverned",
4328
+ "returns": "boolean"
4329
+ },
4330
+ {
4331
+ "name": "isInCategory",
4332
+ "params": [
4333
+ "categoryPath: string",
4334
+ "includeChildren?: any"
4335
+ ],
4336
+ "returns": "boolean"
4337
+ },
4338
+ {
4339
+ "name": "isReadyForReviewProfile",
4340
+ "async": true,
4341
+ "params": [
4342
+ "profileKey: string"
4343
+ ],
4344
+ "returns": "Promise<boolean>"
4345
+ },
4346
+ {
4347
+ "name": "isRelatedLoaded",
4348
+ "params": [
4349
+ "fieldName: string"
4350
+ ],
4351
+ "returns": "boolean"
4352
+ },
4353
+ {
4354
+ "name": "isSaved",
4355
+ "async": true,
4356
+ "returns": "any"
4357
+ },
4358
+ {
4359
+ "name": "issueCorrection",
4360
+ "async": true,
4361
+ "params": [
4362
+ "options: IssueContentCorrectionOptions"
4363
+ ],
4364
+ "returns": "any"
4365
+ },
4366
+ {
4367
+ "name": "issueCorrectionAction",
4368
+ "async": true,
4369
+ "params": [
4370
+ "options: IssueContentCorrectionOptions"
4371
+ ],
4372
+ "returns": "any"
4373
+ },
4374
+ {
4375
+ "name": "listAiUsage",
4376
+ "async": true,
4377
+ "params": [
4378
+ "options?: AiUsageListOptions"
4379
+ ],
4380
+ "returns": "Promise<SmrtAiUsageRecord[]>"
4381
+ },
4382
+ {
4383
+ "name": "listCorrections",
4384
+ "async": true,
4385
+ "returns": "any"
4386
+ },
4387
+ {
4388
+ "name": "listReviewProfilesAction",
4389
+ "async": true,
4390
+ "returns": "any"
4391
+ },
4392
+ {
4393
+ "name": "listReviews",
4394
+ "async": true,
4395
+ "params": [
4396
+ "options?: object"
4397
+ ],
4398
+ "returns": "any"
4399
+ },
4400
+ {
4401
+ "name": "listVersions",
4402
+ "async": true,
4403
+ "returns": "any"
4404
+ },
4405
+ {
4406
+ "name": "loadDataFromDb",
4407
+ "async": true,
4408
+ "params": [
4409
+ "data: Record<string>"
4410
+ ],
4411
+ "returns": "any"
4412
+ },
4413
+ {
4414
+ "name": "loadFromId",
4415
+ "async": true,
4416
+ "returns": "any"
4417
+ },
4418
+ {
4419
+ "name": "loadFromSlug",
4420
+ "async": true,
4421
+ "returns": "any"
4422
+ },
4423
+ {
4424
+ "name": "loadReferences",
4425
+ "async": true,
4426
+ "returns": "any"
4427
+ },
4428
+ {
4429
+ "name": "loadRelated",
4430
+ "async": true,
4431
+ "params": [
4432
+ "fieldName: string",
4433
+ "opts?: LoadRelatedOptions"
4434
+ ],
4435
+ "returns": "Promise<any>"
4436
+ },
4437
+ {
4438
+ "name": "loadRelatedMany",
4439
+ "async": true,
4440
+ "params": [
4441
+ "fieldName: string",
4442
+ "opts?: LoadRelatedOptions"
4443
+ ],
4444
+ "returns": "Promise<any[]>"
4445
+ },
4446
+ {
4447
+ "name": "markAsPersisted",
4448
+ "returns": "void"
4449
+ },
4450
+ {
4451
+ "name": "mutateVersionAction",
4452
+ "async": true,
4453
+ "params": [
4454
+ "options?: any"
4455
+ ],
4456
+ "returns": "any"
4457
+ },
4458
+ {
4459
+ "name": "previewTransparency",
4460
+ "async": true,
4461
+ "returns": "any"
4462
+ },
4463
+ {
4464
+ "name": "previewTransparencyAction",
4465
+ "async": true,
4466
+ "returns": "any"
4467
+ },
4468
+ {
4469
+ "name": "recall",
4470
+ "async": true,
4471
+ "params": [
4472
+ "options: object"
4473
+ ],
4474
+ "returns": "Promise"
4475
+ },
4476
+ {
4477
+ "name": "recallAll",
4478
+ "async": true,
4479
+ "params": [
4480
+ "options?: object"
4481
+ ],
4482
+ "returns": "Promise<Map<string>>"
4483
+ },
4484
+ {
4485
+ "name": "recheckFactClaims",
4486
+ "async": true,
4487
+ "params": [
4488
+ "options?: FactAuditClaimRecheckOptions"
4489
+ ],
4490
+ "returns": "any"
4491
+ },
4492
+ {
4493
+ "name": "recheckFactClaimsAction",
4494
+ "async": true,
4495
+ "params": [
4496
+ "options?: FactAuditClaimRecheckOptions"
4497
+ ],
4498
+ "returns": "any"
4499
+ },
4500
+ {
4501
+ "name": "remember",
4502
+ "async": true,
4503
+ "params": [
4504
+ "options: object"
4505
+ ],
4506
+ "returns": "Promise<void>"
4507
+ },
4508
+ {
4509
+ "name": "removeAsset",
4510
+ "async": true,
4511
+ "params": [
4512
+ "assetId: string",
4513
+ "relationship?: string"
4514
+ ],
4515
+ "returns": "Promise<void>"
4516
+ },
4517
+ {
4518
+ "name": "removeFact",
4519
+ "async": true,
4520
+ "params": [
4521
+ "factId: string",
4522
+ "relationship?: FactContentRelationship"
4523
+ ],
4524
+ "returns": "Promise<void>"
4525
+ },
4526
+ {
4527
+ "name": "removeReference",
4528
+ "async": true,
4529
+ "params": [
4530
+ "targetId: string"
4531
+ ],
4532
+ "returns": "any"
4533
+ },
4534
+ {
4535
+ "name": "repairFactAudit",
4536
+ "async": true,
4537
+ "params": [
4538
+ "options?: object"
4539
+ ],
4540
+ "returns": "any"
4541
+ },
4542
+ {
4543
+ "name": "repairFactAuditAction",
4544
+ "async": true,
4545
+ "params": [
4546
+ "options?: object"
4547
+ ],
4548
+ "returns": "any"
4549
+ },
4550
+ {
4551
+ "name": "repairFactEvidence",
4552
+ "async": true,
4553
+ "params": [
4554
+ "options?: FactAuditResourceRepairOptions"
4555
+ ],
4556
+ "returns": "any"
4557
+ },
4558
+ {
4559
+ "name": "repairFactEvidenceAction",
4560
+ "async": true,
4561
+ "params": [
4562
+ "options?: FactAuditResourceRepairOptions"
4563
+ ],
4564
+ "returns": "any"
4565
+ },
4566
+ {
4567
+ "name": "requireInsertOnSave",
4568
+ "returns": "void"
4569
+ },
4570
+ {
4571
+ "name": "resetAiUsage",
4572
+ "returns": "void"
4573
+ },
4574
+ {
4575
+ "name": "resolveGovernance",
4576
+ "async": true,
4577
+ "returns": "Promise<ResolvedContentGovernance>"
4578
+ },
4579
+ {
4580
+ "name": "restoreFromVersion",
4581
+ "async": true,
4582
+ "params": [
4583
+ "versionNumber: number"
4584
+ ],
4585
+ "returns": "any"
4586
+ },
4587
+ {
4588
+ "name": "reviewFacts",
4589
+ "async": true,
4590
+ "params": [
4591
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
4592
+ ],
4593
+ "returns": "any"
4594
+ },
4595
+ {
4596
+ "name": "reviewSafety",
4597
+ "async": true,
4598
+ "params": [
4599
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
4600
+ ],
4601
+ "returns": "any"
4602
+ },
4603
+ {
4604
+ "name": "runReview",
4605
+ "async": true,
4606
+ "params": [
4607
+ "options?: RunContentReviewOptions"
4608
+ ],
4609
+ "returns": "any"
4610
+ },
4611
+ {
4612
+ "name": "runReviewAction",
4613
+ "async": true,
4614
+ "params": [
4615
+ "options?: RunContentReviewOptions"
4616
+ ],
4617
+ "returns": "any"
4618
+ },
4619
+ {
4620
+ "name": "save",
4621
+ "async": true,
4622
+ "returns": "any"
4623
+ },
4624
+ {
4625
+ "name": "setMetadata",
4626
+ "params": [
4627
+ "metadata: Record<string> | null | undefined"
4628
+ ],
4629
+ "returns": "void"
4630
+ },
4631
+ {
4632
+ "name": "setThumbnail",
4633
+ "async": true,
4634
+ "params": [
4635
+ "image: Image"
4636
+ ],
4637
+ "returns": "Promise<void>"
4638
+ },
4639
+ {
4640
+ "name": "summarizeAiUsage",
4641
+ "async": true,
4642
+ "params": [
4643
+ "options?: AiUsageSummaryOptions"
4644
+ ],
4645
+ "returns": "Promise<Record<string, AiUsageStats>>"
4646
+ },
4647
+ {
4648
+ "name": "syncFacts",
4649
+ "async": true,
4650
+ "params": [
4651
+ "factIds: string[]",
4652
+ "relationship?: FactContentRelationship"
4653
+ ],
4654
+ "returns": "Promise<object>"
4655
+ },
4656
+ {
4657
+ "name": "syncFactsState",
4658
+ "async": true,
4659
+ "params": [
4660
+ "options?: object"
4661
+ ],
4662
+ "returns": "any"
4663
+ },
4664
+ {
4665
+ "name": "toJSON",
4666
+ "returns": "any"
4667
+ },
4668
+ {
4669
+ "name": "toPlainObject",
4670
+ "returns": "Record<string>"
4671
+ },
4672
+ {
4673
+ "name": "toPublicJSON",
4674
+ "params": [
4675
+ "options?: PublicJsonOptions"
4676
+ ],
4677
+ "returns": "Record<string>"
4678
+ },
4679
+ {
4680
+ "name": "updateFactEvidenceStatus",
4681
+ "async": true,
4682
+ "params": [
4683
+ "options?: FactEvidenceStatusUpdateOptions"
4684
+ ],
4685
+ "returns": "any"
4686
+ },
4687
+ {
4688
+ "name": "updateFactEvidenceStatusAction",
4689
+ "async": true,
4690
+ "params": [
4691
+ "options?: FactEvidenceStatusUpdateOptions"
4692
+ ],
4693
+ "returns": "any"
4694
+ },
4695
+ {
4696
+ "name": "updateMetadata",
4697
+ "params": [
4698
+ "patch: Partial<Record<string>>"
4699
+ ],
4700
+ "returns": "Record<string>"
4701
+ }
4702
+ ],
4703
+ "tableStrategy": "sti",
4704
+ "surfaces": [],
4705
+ "relationshipFeatures": [
4706
+ "crossPackageRef",
4707
+ "uuidColumns"
4708
+ ],
4709
+ "tags": [],
4710
+ "risks": []
4711
+ },
4712
+ {
4713
+ "name": "ContentDocument",
4714
+ "qualifiedName": "@happyvertical/smrt-content:ContentDocument",
4715
+ "collection": "contents",
4716
+ "tableName": "contents",
4717
+ "packageName": "@happyvertical/smrt-content",
4718
+ "extends": "Content",
4719
+ "fields": [
4720
+ {
4721
+ "name": "created_at",
4722
+ "type": "datetime",
4723
+ "required": false,
4724
+ "columnType": "TIMESTAMP"
4725
+ },
4726
+ {
4727
+ "name": "updated_at",
4728
+ "type": "datetime",
4729
+ "required": false,
4730
+ "columnType": "TIMESTAMP"
4731
+ },
4732
+ {
4733
+ "name": "tenantId",
4734
+ "type": "text",
4735
+ "required": false,
4736
+ "columnType": "UUID"
4737
+ },
4738
+ {
4739
+ "name": "type",
4740
+ "type": "text",
4741
+ "required": false,
4742
+ "columnType": "TEXT"
4743
+ },
4744
+ {
4745
+ "name": "variant",
4746
+ "type": "text",
4747
+ "required": false,
4748
+ "columnType": "TEXT"
4749
+ },
4750
+ {
4751
+ "name": "fileKey",
4752
+ "type": "text",
4753
+ "required": false,
4754
+ "columnType": "TEXT"
4755
+ },
4756
+ {
4757
+ "name": "author",
4758
+ "type": "text",
4759
+ "required": false,
4760
+ "columnType": "TEXT"
4761
+ },
4762
+ {
4763
+ "name": "name",
4764
+ "type": "text",
4765
+ "required": true,
4766
+ "columnType": "TEXT",
4767
+ "default": ""
4768
+ },
4769
+ {
4770
+ "name": "title",
4771
+ "type": "text",
4772
+ "required": false,
4773
+ "columnType": "TEXT"
4774
+ },
4775
+ {
4776
+ "name": "description",
4777
+ "type": "text",
4778
+ "required": false,
4779
+ "columnType": "TEXT"
4780
+ },
4781
+ {
4782
+ "name": "body",
3342
4783
  "type": "text",
3343
4784
  "required": false,
3344
4785
  "columnType": "TEXT"
3345
4786
  },
4787
+ {
4788
+ "name": "bodyFormat",
4789
+ "type": "text",
4790
+ "required": false,
4791
+ "columnType": "TEXT"
4792
+ },
4793
+ {
4794
+ "name": "publish_date",
4795
+ "type": "datetime",
4796
+ "required": false,
4797
+ "columnType": "TIMESTAMP"
4798
+ },
4799
+ {
4800
+ "name": "url",
4801
+ "type": "text",
4802
+ "required": false,
4803
+ "columnType": "TEXT"
4804
+ },
4805
+ {
4806
+ "name": "source",
4807
+ "type": "text",
4808
+ "required": false,
4809
+ "columnType": "TEXT"
4810
+ },
4811
+ {
4812
+ "name": "original_url",
4813
+ "type": "text",
4814
+ "required": false,
4815
+ "columnType": "TEXT"
4816
+ },
4817
+ {
4818
+ "name": "language",
4819
+ "type": "text",
4820
+ "required": false,
4821
+ "columnType": "TEXT"
4822
+ },
4823
+ {
4824
+ "name": "tags",
4825
+ "type": "json",
4826
+ "required": false,
4827
+ "columnType": "JSON",
4828
+ "default": []
4829
+ },
4830
+ {
4831
+ "name": "category",
4832
+ "type": "text",
4833
+ "required": false,
4834
+ "columnType": "TEXT"
4835
+ },
4836
+ {
4837
+ "name": "status",
4838
+ "type": "text",
4839
+ "required": false,
4840
+ "columnType": "TEXT",
4841
+ "default": "draft"
4842
+ },
4843
+ {
4844
+ "name": "state",
4845
+ "type": "text",
4846
+ "required": false,
4847
+ "columnType": "TEXT",
4848
+ "default": "active"
4849
+ },
3346
4850
  {
3347
4851
  "name": "metadata",
3348
4852
  "type": "json",
3349
4853
  "required": false,
3350
- "columnType": "JSON"
4854
+ "columnType": "JSON",
4855
+ "default": {}
3351
4856
  },
3352
4857
  {
3353
4858
  "name": "thumbnailAssetId",
@@ -3475,6 +4980,728 @@
3475
4980
  "updateFactEvidenceStatusAction",
3476
4981
  "updateMetadata"
3477
4982
  ],
4983
+ "methodSignatures": [
4984
+ {
4985
+ "name": "_setLoadedRelationship",
4986
+ "params": [
4987
+ "fieldName: string",
4988
+ "value: any"
4989
+ ],
4990
+ "returns": "void"
4991
+ },
4992
+ {
4993
+ "name": "addAsset",
4994
+ "async": true,
4995
+ "params": [
4996
+ "asset: Asset",
4997
+ "relationship?: any",
4998
+ "sortOrder?: any"
4999
+ ],
5000
+ "returns": "Promise<void>"
5001
+ },
5002
+ {
5003
+ "name": "addFact",
5004
+ "async": true,
5005
+ "params": [
5006
+ "fact: Fact | string",
5007
+ "relationship?: FactContentRelationship",
5008
+ "metadata?: Record<string>"
5009
+ ],
5010
+ "returns": "any"
5011
+ },
5012
+ {
5013
+ "name": "addReference",
5014
+ "async": true,
5015
+ "params": [
5016
+ "content: Content | string",
5017
+ "options?: object"
5018
+ ],
5019
+ "returns": "any"
5020
+ },
5021
+ {
5022
+ "name": "browseFacts",
5023
+ "async": true,
5024
+ "params": [
5025
+ "query?: any",
5026
+ "options?: object"
5027
+ ],
5028
+ "returns": "Promise<Fact[]>"
5029
+ },
5030
+ {
5031
+ "name": "classifyConstraintError",
5032
+ "static": true,
5033
+ "params": [
5034
+ "message: string"
5035
+ ],
5036
+ "returns": "'unique' | 'not_null' | null"
5037
+ },
5038
+ {
5039
+ "name": "clearEmbeddings",
5040
+ "async": true,
5041
+ "returns": "Promise<void>"
5042
+ },
5043
+ {
5044
+ "name": "createVersion",
5045
+ "async": true,
5046
+ "params": [
5047
+ "options?: CreateContentVersionOptions"
5048
+ ],
5049
+ "returns": "any"
5050
+ },
5051
+ {
5052
+ "name": "delete",
5053
+ "async": true,
5054
+ "returns": "Promise<void>"
5055
+ },
5056
+ {
5057
+ "name": "describe",
5058
+ "async": true,
5059
+ "params": [
5060
+ "options?: AiOperationOptions"
5061
+ ],
5062
+ "returns": "any"
5063
+ },
5064
+ {
5065
+ "name": "destroy",
5066
+ "returns": "void"
5067
+ },
5068
+ {
5069
+ "name": "do",
5070
+ "async": true,
5071
+ "params": [
5072
+ "instructions: string",
5073
+ "options?: AiOperationOptions"
5074
+ ],
5075
+ "returns": "any"
5076
+ },
5077
+ {
5078
+ "name": "evaluateReviewProfile",
5079
+ "async": true,
5080
+ "params": [
5081
+ "profileKey: string"
5082
+ ],
5083
+ "returns": "Promise<ContentReviewProfileEvaluation>"
5084
+ },
5085
+ {
5086
+ "name": "evaluateReviewProfileAction",
5087
+ "async": true,
5088
+ "params": [
5089
+ "options?: object"
5090
+ ],
5091
+ "returns": "any"
5092
+ },
5093
+ {
5094
+ "name": "executeToolCall",
5095
+ "async": true,
5096
+ "params": [
5097
+ "toolCall: ToolCall"
5098
+ ],
5099
+ "returns": "Promise<ToolCallResult>"
5100
+ },
5101
+ {
5102
+ "name": "forget",
5103
+ "async": true,
5104
+ "params": [
5105
+ "options: object"
5106
+ ],
5107
+ "returns": "Promise<void>"
5108
+ },
5109
+ {
5110
+ "name": "forgetScope",
5111
+ "async": true,
5112
+ "params": [
5113
+ "options: object"
5114
+ ],
5115
+ "returns": "Promise<number>"
5116
+ },
5117
+ {
5118
+ "name": "generateEmbeddings",
5119
+ "async": true,
5120
+ "params": [
5121
+ "options?: GenerateEmbeddingsOptions"
5122
+ ],
5123
+ "returns": "Promise<void>"
5124
+ },
5125
+ {
5126
+ "name": "generateThumbnail",
5127
+ "async": true,
5128
+ "params": [
5129
+ "options: ThumbnailOptions"
5130
+ ],
5131
+ "returns": "Promise<Image>"
5132
+ },
5133
+ {
5134
+ "name": "getAiUsageSnapshot",
5135
+ "returns": "AiUsageSnapshot | undefined"
5136
+ },
5137
+ {
5138
+ "name": "getAncestorPaths",
5139
+ "returns": "string[]"
5140
+ },
5141
+ {
5142
+ "name": "getAssets",
5143
+ "async": true,
5144
+ "params": [
5145
+ "relationship?: string"
5146
+ ],
5147
+ "returns": "Promise<Asset[]>"
5148
+ },
5149
+ {
5150
+ "name": "getAvailableTools",
5151
+ "returns": "AITool[]"
5152
+ },
5153
+ {
5154
+ "name": "getCategorySegments",
5155
+ "returns": "string[]"
5156
+ },
5157
+ {
5158
+ "name": "getCorrections",
5159
+ "async": true,
5160
+ "returns": "any"
5161
+ },
5162
+ {
5163
+ "name": "getEmbedding",
5164
+ "async": true,
5165
+ "params": [
5166
+ "fieldName: string",
5167
+ "model?: string"
5168
+ ],
5169
+ "returns": "Promise<number[] | null>"
5170
+ },
5171
+ {
5172
+ "name": "getFactAuditState",
5173
+ "async": true,
5174
+ "returns": "Promise<FactAuditState>"
5175
+ },
5176
+ {
5177
+ "name": "getFactAuditStateAction",
5178
+ "async": true,
5179
+ "returns": "any"
5180
+ },
5181
+ {
5182
+ "name": "getFactLinks",
5183
+ "async": true,
5184
+ "params": [
5185
+ "options?: object"
5186
+ ],
5187
+ "returns": "any"
5188
+ },
5189
+ {
5190
+ "name": "getFacts",
5191
+ "async": true,
5192
+ "params": [
5193
+ "options?: object"
5194
+ ],
5195
+ "returns": "Promise<Fact[]>"
5196
+ },
5197
+ {
5198
+ "name": "getFactsState",
5199
+ "async": true,
5200
+ "params": [
5201
+ "options?: object"
5202
+ ],
5203
+ "returns": "any"
5204
+ },
5205
+ {
5206
+ "name": "getFields",
5207
+ "async": true,
5208
+ "returns": "Promise<any>"
5209
+ },
5210
+ {
5211
+ "name": "getGovernanceState",
5212
+ "async": true,
5213
+ "returns": "Promise<ContentGovernanceState>"
5214
+ },
5215
+ {
5216
+ "name": "getGovernanceStateAction",
5217
+ "async": true,
5218
+ "returns": "any"
5219
+ },
5220
+ {
5221
+ "name": "getId",
5222
+ "async": true,
5223
+ "returns": "any"
5224
+ },
5225
+ {
5226
+ "name": "getMetadata",
5227
+ "returns": "Record<string>"
5228
+ },
5229
+ {
5230
+ "name": "getParentCategory",
5231
+ "returns": "string | null"
5232
+ },
5233
+ {
5234
+ "name": "getPublishedTransparency",
5235
+ "async": true,
5236
+ "returns": "any"
5237
+ },
5238
+ {
5239
+ "name": "getPublishedTransparencyAction",
5240
+ "async": true,
5241
+ "returns": "any"
5242
+ },
5243
+ {
5244
+ "name": "getReferenceDrift",
5245
+ "async": true,
5246
+ "returns": "Promise<Array<object>>"
5247
+ },
5248
+ {
5249
+ "name": "getReferenceEdges",
5250
+ "async": true,
5251
+ "returns": "Promise<Array<object>>"
5252
+ },
5253
+ {
5254
+ "name": "getReferences",
5255
+ "async": true,
5256
+ "returns": "any"
5257
+ },
5258
+ {
5259
+ "name": "getRelated",
5260
+ "async": true,
5261
+ "params": [
5262
+ "fieldName: string",
5263
+ "opts?: LoadRelatedOptions"
5264
+ ],
5265
+ "returns": "Promise<any>"
5266
+ },
5267
+ {
5268
+ "name": "getReviewRequirements",
5269
+ "async": true,
5270
+ "params": [
5271
+ "profileKey: string",
5272
+ "governance?: ResolvedContentGovernance"
5273
+ ],
5274
+ "returns": "any"
5275
+ },
5276
+ {
5277
+ "name": "getReviews",
5278
+ "async": true,
5279
+ "params": [
5280
+ "kind?: any"
5281
+ ],
5282
+ "returns": "any"
5283
+ },
5284
+ {
5285
+ "name": "getRootCategory",
5286
+ "returns": "string | null"
5287
+ },
5288
+ {
5289
+ "name": "getSavedId",
5290
+ "async": true,
5291
+ "returns": "any"
5292
+ },
5293
+ {
5294
+ "name": "getSlug",
5295
+ "async": true,
5296
+ "returns": "any"
5297
+ },
5298
+ {
5299
+ "name": "getThumbnail",
5300
+ "async": true,
5301
+ "returns": "Promise<Image | null>"
5302
+ },
5303
+ {
5304
+ "name": "getVersions",
5305
+ "async": true,
5306
+ "returns": "any"
5307
+ },
5308
+ {
5309
+ "name": "hasStaleEmbeddings",
5310
+ "async": true,
5311
+ "returns": "Promise<boolean>"
5312
+ },
5313
+ {
5314
+ "name": "initialize",
5315
+ "async": true,
5316
+ "returns": "Promise"
5317
+ },
5318
+ {
5319
+ "name": "is",
5320
+ "async": true,
5321
+ "params": [
5322
+ "criteria: string",
5323
+ "options?: AiOperationOptions"
5324
+ ],
5325
+ "returns": "any"
5326
+ },
5327
+ {
5328
+ "name": "isGoverned",
5329
+ "returns": "boolean"
5330
+ },
5331
+ {
5332
+ "name": "isInCategory",
5333
+ "params": [
5334
+ "categoryPath: string",
5335
+ "includeChildren?: any"
5336
+ ],
5337
+ "returns": "boolean"
5338
+ },
5339
+ {
5340
+ "name": "isReadyForReviewProfile",
5341
+ "async": true,
5342
+ "params": [
5343
+ "profileKey: string"
5344
+ ],
5345
+ "returns": "Promise<boolean>"
5346
+ },
5347
+ {
5348
+ "name": "isRelatedLoaded",
5349
+ "params": [
5350
+ "fieldName: string"
5351
+ ],
5352
+ "returns": "boolean"
5353
+ },
5354
+ {
5355
+ "name": "isSaved",
5356
+ "async": true,
5357
+ "returns": "any"
5358
+ },
5359
+ {
5360
+ "name": "issueCorrection",
5361
+ "async": true,
5362
+ "params": [
5363
+ "options: IssueContentCorrectionOptions"
5364
+ ],
5365
+ "returns": "any"
5366
+ },
5367
+ {
5368
+ "name": "issueCorrectionAction",
5369
+ "async": true,
5370
+ "params": [
5371
+ "options: IssueContentCorrectionOptions"
5372
+ ],
5373
+ "returns": "any"
5374
+ },
5375
+ {
5376
+ "name": "listAiUsage",
5377
+ "async": true,
5378
+ "params": [
5379
+ "options?: AiUsageListOptions"
5380
+ ],
5381
+ "returns": "Promise<SmrtAiUsageRecord[]>"
5382
+ },
5383
+ {
5384
+ "name": "listCorrections",
5385
+ "async": true,
5386
+ "returns": "any"
5387
+ },
5388
+ {
5389
+ "name": "listReviewProfilesAction",
5390
+ "async": true,
5391
+ "returns": "any"
5392
+ },
5393
+ {
5394
+ "name": "listReviews",
5395
+ "async": true,
5396
+ "params": [
5397
+ "options?: object"
5398
+ ],
5399
+ "returns": "any"
5400
+ },
5401
+ {
5402
+ "name": "listVersions",
5403
+ "async": true,
5404
+ "returns": "any"
5405
+ },
5406
+ {
5407
+ "name": "loadDataFromDb",
5408
+ "async": true,
5409
+ "params": [
5410
+ "data: Record<string>"
5411
+ ],
5412
+ "returns": "any"
5413
+ },
5414
+ {
5415
+ "name": "loadFromId",
5416
+ "async": true,
5417
+ "returns": "any"
5418
+ },
5419
+ {
5420
+ "name": "loadFromSlug",
5421
+ "async": true,
5422
+ "returns": "any"
5423
+ },
5424
+ {
5425
+ "name": "loadReferences",
5426
+ "async": true,
5427
+ "returns": "any"
5428
+ },
5429
+ {
5430
+ "name": "loadRelated",
5431
+ "async": true,
5432
+ "params": [
5433
+ "fieldName: string",
5434
+ "opts?: LoadRelatedOptions"
5435
+ ],
5436
+ "returns": "Promise<any>"
5437
+ },
5438
+ {
5439
+ "name": "loadRelatedMany",
5440
+ "async": true,
5441
+ "params": [
5442
+ "fieldName: string",
5443
+ "opts?: LoadRelatedOptions"
5444
+ ],
5445
+ "returns": "Promise<any[]>"
5446
+ },
5447
+ {
5448
+ "name": "markAsPersisted",
5449
+ "returns": "void"
5450
+ },
5451
+ {
5452
+ "name": "mutateVersionAction",
5453
+ "async": true,
5454
+ "params": [
5455
+ "options?: any"
5456
+ ],
5457
+ "returns": "any"
5458
+ },
5459
+ {
5460
+ "name": "previewTransparency",
5461
+ "async": true,
5462
+ "returns": "any"
5463
+ },
5464
+ {
5465
+ "name": "previewTransparencyAction",
5466
+ "async": true,
5467
+ "returns": "any"
5468
+ },
5469
+ {
5470
+ "name": "recall",
5471
+ "async": true,
5472
+ "params": [
5473
+ "options: object"
5474
+ ],
5475
+ "returns": "Promise"
5476
+ },
5477
+ {
5478
+ "name": "recallAll",
5479
+ "async": true,
5480
+ "params": [
5481
+ "options?: object"
5482
+ ],
5483
+ "returns": "Promise<Map<string>>"
5484
+ },
5485
+ {
5486
+ "name": "recheckFactClaims",
5487
+ "async": true,
5488
+ "params": [
5489
+ "options?: FactAuditClaimRecheckOptions"
5490
+ ],
5491
+ "returns": "any"
5492
+ },
5493
+ {
5494
+ "name": "recheckFactClaimsAction",
5495
+ "async": true,
5496
+ "params": [
5497
+ "options?: FactAuditClaimRecheckOptions"
5498
+ ],
5499
+ "returns": "any"
5500
+ },
5501
+ {
5502
+ "name": "remember",
5503
+ "async": true,
5504
+ "params": [
5505
+ "options: object"
5506
+ ],
5507
+ "returns": "Promise<void>"
5508
+ },
5509
+ {
5510
+ "name": "removeAsset",
5511
+ "async": true,
5512
+ "params": [
5513
+ "assetId: string",
5514
+ "relationship?: string"
5515
+ ],
5516
+ "returns": "Promise<void>"
5517
+ },
5518
+ {
5519
+ "name": "removeFact",
5520
+ "async": true,
5521
+ "params": [
5522
+ "factId: string",
5523
+ "relationship?: FactContentRelationship"
5524
+ ],
5525
+ "returns": "Promise<void>"
5526
+ },
5527
+ {
5528
+ "name": "removeReference",
5529
+ "async": true,
5530
+ "params": [
5531
+ "targetId: string"
5532
+ ],
5533
+ "returns": "any"
5534
+ },
5535
+ {
5536
+ "name": "repairFactAudit",
5537
+ "async": true,
5538
+ "params": [
5539
+ "options?: object"
5540
+ ],
5541
+ "returns": "any"
5542
+ },
5543
+ {
5544
+ "name": "repairFactAuditAction",
5545
+ "async": true,
5546
+ "params": [
5547
+ "options?: object"
5548
+ ],
5549
+ "returns": "any"
5550
+ },
5551
+ {
5552
+ "name": "repairFactEvidence",
5553
+ "async": true,
5554
+ "params": [
5555
+ "options?: FactAuditResourceRepairOptions"
5556
+ ],
5557
+ "returns": "any"
5558
+ },
5559
+ {
5560
+ "name": "repairFactEvidenceAction",
5561
+ "async": true,
5562
+ "params": [
5563
+ "options?: FactAuditResourceRepairOptions"
5564
+ ],
5565
+ "returns": "any"
5566
+ },
5567
+ {
5568
+ "name": "requireInsertOnSave",
5569
+ "returns": "void"
5570
+ },
5571
+ {
5572
+ "name": "resetAiUsage",
5573
+ "returns": "void"
5574
+ },
5575
+ {
5576
+ "name": "resolveGovernance",
5577
+ "async": true,
5578
+ "returns": "Promise<ResolvedContentGovernance>"
5579
+ },
5580
+ {
5581
+ "name": "restoreFromVersion",
5582
+ "async": true,
5583
+ "params": [
5584
+ "versionNumber: number"
5585
+ ],
5586
+ "returns": "any"
5587
+ },
5588
+ {
5589
+ "name": "reviewFacts",
5590
+ "async": true,
5591
+ "params": [
5592
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
5593
+ ],
5594
+ "returns": "any"
5595
+ },
5596
+ {
5597
+ "name": "reviewSafety",
5598
+ "async": true,
5599
+ "params": [
5600
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
5601
+ ],
5602
+ "returns": "any"
5603
+ },
5604
+ {
5605
+ "name": "runReview",
5606
+ "async": true,
5607
+ "params": [
5608
+ "options?: RunContentReviewOptions"
5609
+ ],
5610
+ "returns": "any"
5611
+ },
5612
+ {
5613
+ "name": "runReviewAction",
5614
+ "async": true,
5615
+ "params": [
5616
+ "options?: RunContentReviewOptions"
5617
+ ],
5618
+ "returns": "any"
5619
+ },
5620
+ {
5621
+ "name": "save",
5622
+ "async": true,
5623
+ "returns": "any"
5624
+ },
5625
+ {
5626
+ "name": "setMetadata",
5627
+ "params": [
5628
+ "metadata: Record<string> | null | undefined"
5629
+ ],
5630
+ "returns": "void"
5631
+ },
5632
+ {
5633
+ "name": "setThumbnail",
5634
+ "async": true,
5635
+ "params": [
5636
+ "image: Image"
5637
+ ],
5638
+ "returns": "Promise<void>"
5639
+ },
5640
+ {
5641
+ "name": "summarizeAiUsage",
5642
+ "async": true,
5643
+ "params": [
5644
+ "options?: AiUsageSummaryOptions"
5645
+ ],
5646
+ "returns": "Promise<Record<string, AiUsageStats>>"
5647
+ },
5648
+ {
5649
+ "name": "syncFacts",
5650
+ "async": true,
5651
+ "params": [
5652
+ "factIds: string[]",
5653
+ "relationship?: FactContentRelationship"
5654
+ ],
5655
+ "returns": "Promise<object>"
5656
+ },
5657
+ {
5658
+ "name": "syncFactsState",
5659
+ "async": true,
5660
+ "params": [
5661
+ "options?: object"
5662
+ ],
5663
+ "returns": "any"
5664
+ },
5665
+ {
5666
+ "name": "toJSON",
5667
+ "returns": "any"
5668
+ },
5669
+ {
5670
+ "name": "toPlainObject",
5671
+ "returns": "Record<string>"
5672
+ },
5673
+ {
5674
+ "name": "toPublicJSON",
5675
+ "params": [
5676
+ "options?: PublicJsonOptions"
5677
+ ],
5678
+ "returns": "Record<string>"
5679
+ },
5680
+ {
5681
+ "name": "updateFactEvidenceStatus",
5682
+ "async": true,
5683
+ "params": [
5684
+ "options?: FactEvidenceStatusUpdateOptions"
5685
+ ],
5686
+ "returns": "any"
5687
+ },
5688
+ {
5689
+ "name": "updateFactEvidenceStatusAction",
5690
+ "async": true,
5691
+ "params": [
5692
+ "options?: FactEvidenceStatusUpdateOptions"
5693
+ ],
5694
+ "returns": "any"
5695
+ },
5696
+ {
5697
+ "name": "updateMetadata",
5698
+ "params": [
5699
+ "patch: Partial<Record<string>>"
5700
+ ],
5701
+ "returns": "Record<string>"
5702
+ }
5703
+ ],
5704
+ "tableStrategy": "sti",
3478
5705
  "surfaces": [],
3479
5706
  "relationshipFeatures": [
3480
5707
  "crossPackageRef",
@@ -3537,7 +5764,8 @@
3537
5764
  "name": "name",
3538
5765
  "type": "text",
3539
5766
  "required": true,
3540
- "columnType": "TEXT"
5767
+ "columnType": "TEXT",
5768
+ "default": ""
3541
5769
  },
3542
5770
  {
3543
5771
  "name": "title",
@@ -3597,7 +5825,8 @@
3597
5825
  "name": "tags",
3598
5826
  "type": "json",
3599
5827
  "required": false,
3600
- "columnType": "JSON"
5828
+ "columnType": "JSON",
5829
+ "default": []
3601
5830
  },
3602
5831
  {
3603
5832
  "name": "category",
@@ -3609,19 +5838,22 @@
3609
5838
  "name": "status",
3610
5839
  "type": "text",
3611
5840
  "required": false,
3612
- "columnType": "TEXT"
5841
+ "columnType": "TEXT",
5842
+ "default": "draft"
3613
5843
  },
3614
5844
  {
3615
5845
  "name": "state",
3616
5846
  "type": "text",
3617
5847
  "required": false,
3618
- "columnType": "TEXT"
5848
+ "columnType": "TEXT",
5849
+ "default": "active"
3619
5850
  },
3620
5851
  {
3621
5852
  "name": "metadata",
3622
5853
  "type": "json",
3623
5854
  "required": false,
3624
- "columnType": "JSON"
5855
+ "columnType": "JSON",
5856
+ "default": {}
3625
5857
  },
3626
5858
  {
3627
5859
  "name": "thumbnailAssetId",
@@ -3799,6 +6031,728 @@
3799
6031
  "updateFactEvidenceStatusAction",
3800
6032
  "updateMetadata"
3801
6033
  ],
6034
+ "methodSignatures": [
6035
+ {
6036
+ "name": "_setLoadedRelationship",
6037
+ "params": [
6038
+ "fieldName: string",
6039
+ "value: any"
6040
+ ],
6041
+ "returns": "void"
6042
+ },
6043
+ {
6044
+ "name": "addAsset",
6045
+ "async": true,
6046
+ "params": [
6047
+ "asset: Asset",
6048
+ "relationship?: any",
6049
+ "sortOrder?: any"
6050
+ ],
6051
+ "returns": "Promise<void>"
6052
+ },
6053
+ {
6054
+ "name": "addFact",
6055
+ "async": true,
6056
+ "params": [
6057
+ "fact: Fact | string",
6058
+ "relationship?: FactContentRelationship",
6059
+ "metadata?: Record<string>"
6060
+ ],
6061
+ "returns": "any"
6062
+ },
6063
+ {
6064
+ "name": "addReference",
6065
+ "async": true,
6066
+ "params": [
6067
+ "content: Content | string",
6068
+ "options?: object"
6069
+ ],
6070
+ "returns": "any"
6071
+ },
6072
+ {
6073
+ "name": "browseFacts",
6074
+ "async": true,
6075
+ "params": [
6076
+ "query?: any",
6077
+ "options?: object"
6078
+ ],
6079
+ "returns": "Promise<Fact[]>"
6080
+ },
6081
+ {
6082
+ "name": "classifyConstraintError",
6083
+ "static": true,
6084
+ "params": [
6085
+ "message: string"
6086
+ ],
6087
+ "returns": "'unique' | 'not_null' | null"
6088
+ },
6089
+ {
6090
+ "name": "clearEmbeddings",
6091
+ "async": true,
6092
+ "returns": "Promise<void>"
6093
+ },
6094
+ {
6095
+ "name": "createVersion",
6096
+ "async": true,
6097
+ "params": [
6098
+ "options?: CreateContentVersionOptions"
6099
+ ],
6100
+ "returns": "any"
6101
+ },
6102
+ {
6103
+ "name": "delete",
6104
+ "async": true,
6105
+ "returns": "Promise<void>"
6106
+ },
6107
+ {
6108
+ "name": "describe",
6109
+ "async": true,
6110
+ "params": [
6111
+ "options?: AiOperationOptions"
6112
+ ],
6113
+ "returns": "any"
6114
+ },
6115
+ {
6116
+ "name": "destroy",
6117
+ "returns": "void"
6118
+ },
6119
+ {
6120
+ "name": "do",
6121
+ "async": true,
6122
+ "params": [
6123
+ "instructions: string",
6124
+ "options?: AiOperationOptions"
6125
+ ],
6126
+ "returns": "any"
6127
+ },
6128
+ {
6129
+ "name": "evaluateReviewProfile",
6130
+ "async": true,
6131
+ "params": [
6132
+ "profileKey: string"
6133
+ ],
6134
+ "returns": "Promise<ContentReviewProfileEvaluation>"
6135
+ },
6136
+ {
6137
+ "name": "evaluateReviewProfileAction",
6138
+ "async": true,
6139
+ "params": [
6140
+ "options?: object"
6141
+ ],
6142
+ "returns": "any"
6143
+ },
6144
+ {
6145
+ "name": "executeToolCall",
6146
+ "async": true,
6147
+ "params": [
6148
+ "toolCall: ToolCall"
6149
+ ],
6150
+ "returns": "Promise<ToolCallResult>"
6151
+ },
6152
+ {
6153
+ "name": "forget",
6154
+ "async": true,
6155
+ "params": [
6156
+ "options: object"
6157
+ ],
6158
+ "returns": "Promise<void>"
6159
+ },
6160
+ {
6161
+ "name": "forgetScope",
6162
+ "async": true,
6163
+ "params": [
6164
+ "options: object"
6165
+ ],
6166
+ "returns": "Promise<number>"
6167
+ },
6168
+ {
6169
+ "name": "generateEmbeddings",
6170
+ "async": true,
6171
+ "params": [
6172
+ "options?: GenerateEmbeddingsOptions"
6173
+ ],
6174
+ "returns": "Promise<void>"
6175
+ },
6176
+ {
6177
+ "name": "generateThumbnail",
6178
+ "async": true,
6179
+ "params": [
6180
+ "options: ThumbnailOptions"
6181
+ ],
6182
+ "returns": "Promise<Image>"
6183
+ },
6184
+ {
6185
+ "name": "getAiUsageSnapshot",
6186
+ "returns": "AiUsageSnapshot | undefined"
6187
+ },
6188
+ {
6189
+ "name": "getAncestorPaths",
6190
+ "returns": "string[]"
6191
+ },
6192
+ {
6193
+ "name": "getAssets",
6194
+ "async": true,
6195
+ "params": [
6196
+ "relationship?: string"
6197
+ ],
6198
+ "returns": "Promise<Asset[]>"
6199
+ },
6200
+ {
6201
+ "name": "getAvailableTools",
6202
+ "returns": "AITool[]"
6203
+ },
6204
+ {
6205
+ "name": "getCategorySegments",
6206
+ "returns": "string[]"
6207
+ },
6208
+ {
6209
+ "name": "getCorrections",
6210
+ "async": true,
6211
+ "returns": "any"
6212
+ },
6213
+ {
6214
+ "name": "getEmbedding",
6215
+ "async": true,
6216
+ "params": [
6217
+ "fieldName: string",
6218
+ "model?: string"
6219
+ ],
6220
+ "returns": "Promise<number[] | null>"
6221
+ },
6222
+ {
6223
+ "name": "getFactAuditState",
6224
+ "async": true,
6225
+ "returns": "Promise<FactAuditState>"
6226
+ },
6227
+ {
6228
+ "name": "getFactAuditStateAction",
6229
+ "async": true,
6230
+ "returns": "any"
6231
+ },
6232
+ {
6233
+ "name": "getFactLinks",
6234
+ "async": true,
6235
+ "params": [
6236
+ "options?: object"
6237
+ ],
6238
+ "returns": "any"
6239
+ },
6240
+ {
6241
+ "name": "getFacts",
6242
+ "async": true,
6243
+ "params": [
6244
+ "options?: object"
6245
+ ],
6246
+ "returns": "Promise<Fact[]>"
6247
+ },
6248
+ {
6249
+ "name": "getFactsState",
6250
+ "async": true,
6251
+ "params": [
6252
+ "options?: object"
6253
+ ],
6254
+ "returns": "any"
6255
+ },
6256
+ {
6257
+ "name": "getFields",
6258
+ "async": true,
6259
+ "returns": "Promise<any>"
6260
+ },
6261
+ {
6262
+ "name": "getGovernanceState",
6263
+ "async": true,
6264
+ "returns": "Promise<ContentGovernanceState>"
6265
+ },
6266
+ {
6267
+ "name": "getGovernanceStateAction",
6268
+ "async": true,
6269
+ "returns": "any"
6270
+ },
6271
+ {
6272
+ "name": "getId",
6273
+ "async": true,
6274
+ "returns": "any"
6275
+ },
6276
+ {
6277
+ "name": "getMetadata",
6278
+ "returns": "Record<string>"
6279
+ },
6280
+ {
6281
+ "name": "getParentCategory",
6282
+ "returns": "string | null"
6283
+ },
6284
+ {
6285
+ "name": "getPublishedTransparency",
6286
+ "async": true,
6287
+ "returns": "any"
6288
+ },
6289
+ {
6290
+ "name": "getPublishedTransparencyAction",
6291
+ "async": true,
6292
+ "returns": "any"
6293
+ },
6294
+ {
6295
+ "name": "getReferenceDrift",
6296
+ "async": true,
6297
+ "returns": "Promise<Array<object>>"
6298
+ },
6299
+ {
6300
+ "name": "getReferenceEdges",
6301
+ "async": true,
6302
+ "returns": "Promise<Array<object>>"
6303
+ },
6304
+ {
6305
+ "name": "getReferences",
6306
+ "async": true,
6307
+ "returns": "any"
6308
+ },
6309
+ {
6310
+ "name": "getRelated",
6311
+ "async": true,
6312
+ "params": [
6313
+ "fieldName: string",
6314
+ "opts?: LoadRelatedOptions"
6315
+ ],
6316
+ "returns": "Promise<any>"
6317
+ },
6318
+ {
6319
+ "name": "getReviewRequirements",
6320
+ "async": true,
6321
+ "params": [
6322
+ "profileKey: string",
6323
+ "governance?: ResolvedContentGovernance"
6324
+ ],
6325
+ "returns": "any"
6326
+ },
6327
+ {
6328
+ "name": "getReviews",
6329
+ "async": true,
6330
+ "params": [
6331
+ "kind?: any"
6332
+ ],
6333
+ "returns": "any"
6334
+ },
6335
+ {
6336
+ "name": "getRootCategory",
6337
+ "returns": "string | null"
6338
+ },
6339
+ {
6340
+ "name": "getSavedId",
6341
+ "async": true,
6342
+ "returns": "any"
6343
+ },
6344
+ {
6345
+ "name": "getSlug",
6346
+ "async": true,
6347
+ "returns": "any"
6348
+ },
6349
+ {
6350
+ "name": "getThumbnail",
6351
+ "async": true,
6352
+ "returns": "Promise<Image | null>"
6353
+ },
6354
+ {
6355
+ "name": "getVersions",
6356
+ "async": true,
6357
+ "returns": "any"
6358
+ },
6359
+ {
6360
+ "name": "hasStaleEmbeddings",
6361
+ "async": true,
6362
+ "returns": "Promise<boolean>"
6363
+ },
6364
+ {
6365
+ "name": "initialize",
6366
+ "async": true,
6367
+ "returns": "Promise"
6368
+ },
6369
+ {
6370
+ "name": "is",
6371
+ "async": true,
6372
+ "params": [
6373
+ "criteria: string",
6374
+ "options?: AiOperationOptions"
6375
+ ],
6376
+ "returns": "any"
6377
+ },
6378
+ {
6379
+ "name": "isGoverned",
6380
+ "returns": "boolean"
6381
+ },
6382
+ {
6383
+ "name": "isInCategory",
6384
+ "params": [
6385
+ "categoryPath: string",
6386
+ "includeChildren?: any"
6387
+ ],
6388
+ "returns": "boolean"
6389
+ },
6390
+ {
6391
+ "name": "isReadyForReviewProfile",
6392
+ "async": true,
6393
+ "params": [
6394
+ "profileKey: string"
6395
+ ],
6396
+ "returns": "Promise<boolean>"
6397
+ },
6398
+ {
6399
+ "name": "isRelatedLoaded",
6400
+ "params": [
6401
+ "fieldName: string"
6402
+ ],
6403
+ "returns": "boolean"
6404
+ },
6405
+ {
6406
+ "name": "isSaved",
6407
+ "async": true,
6408
+ "returns": "any"
6409
+ },
6410
+ {
6411
+ "name": "issueCorrection",
6412
+ "async": true,
6413
+ "params": [
6414
+ "options: IssueContentCorrectionOptions"
6415
+ ],
6416
+ "returns": "any"
6417
+ },
6418
+ {
6419
+ "name": "issueCorrectionAction",
6420
+ "async": true,
6421
+ "params": [
6422
+ "options: IssueContentCorrectionOptions"
6423
+ ],
6424
+ "returns": "any"
6425
+ },
6426
+ {
6427
+ "name": "listAiUsage",
6428
+ "async": true,
6429
+ "params": [
6430
+ "options?: AiUsageListOptions"
6431
+ ],
6432
+ "returns": "Promise<SmrtAiUsageRecord[]>"
6433
+ },
6434
+ {
6435
+ "name": "listCorrections",
6436
+ "async": true,
6437
+ "returns": "any"
6438
+ },
6439
+ {
6440
+ "name": "listReviewProfilesAction",
6441
+ "async": true,
6442
+ "returns": "any"
6443
+ },
6444
+ {
6445
+ "name": "listReviews",
6446
+ "async": true,
6447
+ "params": [
6448
+ "options?: object"
6449
+ ],
6450
+ "returns": "any"
6451
+ },
6452
+ {
6453
+ "name": "listVersions",
6454
+ "async": true,
6455
+ "returns": "any"
6456
+ },
6457
+ {
6458
+ "name": "loadDataFromDb",
6459
+ "async": true,
6460
+ "params": [
6461
+ "data: Record<string>"
6462
+ ],
6463
+ "returns": "any"
6464
+ },
6465
+ {
6466
+ "name": "loadFromId",
6467
+ "async": true,
6468
+ "returns": "any"
6469
+ },
6470
+ {
6471
+ "name": "loadFromSlug",
6472
+ "async": true,
6473
+ "returns": "any"
6474
+ },
6475
+ {
6476
+ "name": "loadReferences",
6477
+ "async": true,
6478
+ "returns": "any"
6479
+ },
6480
+ {
6481
+ "name": "loadRelated",
6482
+ "async": true,
6483
+ "params": [
6484
+ "fieldName: string",
6485
+ "opts?: LoadRelatedOptions"
6486
+ ],
6487
+ "returns": "Promise<any>"
6488
+ },
6489
+ {
6490
+ "name": "loadRelatedMany",
6491
+ "async": true,
6492
+ "params": [
6493
+ "fieldName: string",
6494
+ "opts?: LoadRelatedOptions"
6495
+ ],
6496
+ "returns": "Promise<any[]>"
6497
+ },
6498
+ {
6499
+ "name": "markAsPersisted",
6500
+ "returns": "void"
6501
+ },
6502
+ {
6503
+ "name": "mutateVersionAction",
6504
+ "async": true,
6505
+ "params": [
6506
+ "options?: any"
6507
+ ],
6508
+ "returns": "any"
6509
+ },
6510
+ {
6511
+ "name": "previewTransparency",
6512
+ "async": true,
6513
+ "returns": "any"
6514
+ },
6515
+ {
6516
+ "name": "previewTransparencyAction",
6517
+ "async": true,
6518
+ "returns": "any"
6519
+ },
6520
+ {
6521
+ "name": "recall",
6522
+ "async": true,
6523
+ "params": [
6524
+ "options: object"
6525
+ ],
6526
+ "returns": "Promise"
6527
+ },
6528
+ {
6529
+ "name": "recallAll",
6530
+ "async": true,
6531
+ "params": [
6532
+ "options?: object"
6533
+ ],
6534
+ "returns": "Promise<Map<string>>"
6535
+ },
6536
+ {
6537
+ "name": "recheckFactClaims",
6538
+ "async": true,
6539
+ "params": [
6540
+ "options?: FactAuditClaimRecheckOptions"
6541
+ ],
6542
+ "returns": "any"
6543
+ },
6544
+ {
6545
+ "name": "recheckFactClaimsAction",
6546
+ "async": true,
6547
+ "params": [
6548
+ "options?: FactAuditClaimRecheckOptions"
6549
+ ],
6550
+ "returns": "any"
6551
+ },
6552
+ {
6553
+ "name": "remember",
6554
+ "async": true,
6555
+ "params": [
6556
+ "options: object"
6557
+ ],
6558
+ "returns": "Promise<void>"
6559
+ },
6560
+ {
6561
+ "name": "removeAsset",
6562
+ "async": true,
6563
+ "params": [
6564
+ "assetId: string",
6565
+ "relationship?: string"
6566
+ ],
6567
+ "returns": "Promise<void>"
6568
+ },
6569
+ {
6570
+ "name": "removeFact",
6571
+ "async": true,
6572
+ "params": [
6573
+ "factId: string",
6574
+ "relationship?: FactContentRelationship"
6575
+ ],
6576
+ "returns": "Promise<void>"
6577
+ },
6578
+ {
6579
+ "name": "removeReference",
6580
+ "async": true,
6581
+ "params": [
6582
+ "targetId: string"
6583
+ ],
6584
+ "returns": "any"
6585
+ },
6586
+ {
6587
+ "name": "repairFactAudit",
6588
+ "async": true,
6589
+ "params": [
6590
+ "options?: object"
6591
+ ],
6592
+ "returns": "any"
6593
+ },
6594
+ {
6595
+ "name": "repairFactAuditAction",
6596
+ "async": true,
6597
+ "params": [
6598
+ "options?: object"
6599
+ ],
6600
+ "returns": "any"
6601
+ },
6602
+ {
6603
+ "name": "repairFactEvidence",
6604
+ "async": true,
6605
+ "params": [
6606
+ "options?: FactAuditResourceRepairOptions"
6607
+ ],
6608
+ "returns": "any"
6609
+ },
6610
+ {
6611
+ "name": "repairFactEvidenceAction",
6612
+ "async": true,
6613
+ "params": [
6614
+ "options?: FactAuditResourceRepairOptions"
6615
+ ],
6616
+ "returns": "any"
6617
+ },
6618
+ {
6619
+ "name": "requireInsertOnSave",
6620
+ "returns": "void"
6621
+ },
6622
+ {
6623
+ "name": "resetAiUsage",
6624
+ "returns": "void"
6625
+ },
6626
+ {
6627
+ "name": "resolveGovernance",
6628
+ "async": true,
6629
+ "returns": "Promise<ResolvedContentGovernance>"
6630
+ },
6631
+ {
6632
+ "name": "restoreFromVersion",
6633
+ "async": true,
6634
+ "params": [
6635
+ "versionNumber: number"
6636
+ ],
6637
+ "returns": "any"
6638
+ },
6639
+ {
6640
+ "name": "reviewFacts",
6641
+ "async": true,
6642
+ "params": [
6643
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
6644
+ ],
6645
+ "returns": "any"
6646
+ },
6647
+ {
6648
+ "name": "reviewSafety",
6649
+ "async": true,
6650
+ "params": [
6651
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
6652
+ ],
6653
+ "returns": "any"
6654
+ },
6655
+ {
6656
+ "name": "runReview",
6657
+ "async": true,
6658
+ "params": [
6659
+ "options?: RunContentReviewOptions"
6660
+ ],
6661
+ "returns": "any"
6662
+ },
6663
+ {
6664
+ "name": "runReviewAction",
6665
+ "async": true,
6666
+ "params": [
6667
+ "options?: RunContentReviewOptions"
6668
+ ],
6669
+ "returns": "any"
6670
+ },
6671
+ {
6672
+ "name": "save",
6673
+ "async": true,
6674
+ "returns": "any"
6675
+ },
6676
+ {
6677
+ "name": "setMetadata",
6678
+ "params": [
6679
+ "metadata: Record<string> | null | undefined"
6680
+ ],
6681
+ "returns": "void"
6682
+ },
6683
+ {
6684
+ "name": "setThumbnail",
6685
+ "async": true,
6686
+ "params": [
6687
+ "image: Image"
6688
+ ],
6689
+ "returns": "Promise<void>"
6690
+ },
6691
+ {
6692
+ "name": "summarizeAiUsage",
6693
+ "async": true,
6694
+ "params": [
6695
+ "options?: AiUsageSummaryOptions"
6696
+ ],
6697
+ "returns": "Promise<Record<string, AiUsageStats>>"
6698
+ },
6699
+ {
6700
+ "name": "syncFacts",
6701
+ "async": true,
6702
+ "params": [
6703
+ "factIds: string[]",
6704
+ "relationship?: FactContentRelationship"
6705
+ ],
6706
+ "returns": "Promise<object>"
6707
+ },
6708
+ {
6709
+ "name": "syncFactsState",
6710
+ "async": true,
6711
+ "params": [
6712
+ "options?: object"
6713
+ ],
6714
+ "returns": "any"
6715
+ },
6716
+ {
6717
+ "name": "toJSON",
6718
+ "returns": "any"
6719
+ },
6720
+ {
6721
+ "name": "toPlainObject",
6722
+ "returns": "Record<string>"
6723
+ },
6724
+ {
6725
+ "name": "toPublicJSON",
6726
+ "params": [
6727
+ "options?: PublicJsonOptions"
6728
+ ],
6729
+ "returns": "Record<string>"
6730
+ },
6731
+ {
6732
+ "name": "updateFactEvidenceStatus",
6733
+ "async": true,
6734
+ "params": [
6735
+ "options?: FactEvidenceStatusUpdateOptions"
6736
+ ],
6737
+ "returns": "any"
6738
+ },
6739
+ {
6740
+ "name": "updateFactEvidenceStatusAction",
6741
+ "async": true,
6742
+ "params": [
6743
+ "options?: FactEvidenceStatusUpdateOptions"
6744
+ ],
6745
+ "returns": "any"
6746
+ },
6747
+ {
6748
+ "name": "updateMetadata",
6749
+ "params": [
6750
+ "patch: Partial<Record<string>>"
6751
+ ],
6752
+ "returns": "Record<string>"
6753
+ }
6754
+ ],
6755
+ "tableStrategy": "sti",
3802
6756
  "surfaces": [],
3803
6757
  "relationshipFeatures": [
3804
6758
  "crossPackageRef",
@@ -3827,13 +6781,15 @@
3827
6781
  "name": "version",
3828
6782
  "type": "integer",
3829
6783
  "required": true,
3830
- "columnType": "INTEGER"
6784
+ "columnType": "INTEGER",
6785
+ "default": 1
3831
6786
  },
3832
6787
  {
3833
6788
  "name": "kind",
3834
6789
  "type": "text",
3835
6790
  "required": false,
3836
- "columnType": "TEXT"
6791
+ "columnType": "TEXT",
6792
+ "default": "manual"
3837
6793
  },
3838
6794
  {
3839
6795
  "name": "title",
@@ -3905,11 +6861,39 @@
3905
6861
  "columnType": "UUID"
3906
6862
  }
3907
6863
  ],
3908
- "methods": [
3909
- "getMetadata",
3910
- "getSnapshot",
3911
- "getTransparency",
3912
- "getTransparencyAction"
6864
+ "methods": [
6865
+ "getMetadata",
6866
+ "getSnapshot",
6867
+ "getTransparency",
6868
+ "getTransparencyAction"
6869
+ ],
6870
+ "methodSignatures": [
6871
+ {
6872
+ "name": "getMetadata",
6873
+ "returns": "ContentVersionMetadata"
6874
+ },
6875
+ {
6876
+ "name": "getSnapshot",
6877
+ "returns": "Record<string>"
6878
+ },
6879
+ {
6880
+ "name": "getTransparency",
6881
+ "returns": "any"
6882
+ },
6883
+ {
6884
+ "name": "getTransparencyAction",
6885
+ "async": true,
6886
+ "returns": "any"
6887
+ }
6888
+ ],
6889
+ "tenant": {
6890
+ "scoped": true,
6891
+ "mode": "optional",
6892
+ "field": "tenantId"
6893
+ },
6894
+ "conflictColumns": [
6895
+ "content_id",
6896
+ "version"
3913
6897
  ],
3914
6898
  "surfaces": [
3915
6899
  {
@@ -4018,6 +7002,67 @@
4018
7002
  "listForContent",
4019
7003
  "restoreIntoContent"
4020
7004
  ],
7005
+ "methodSignatures": [
7006
+ {
7007
+ "name": "createSnapshot",
7008
+ "async": true,
7009
+ "params": [
7010
+ "content: Content",
7011
+ "options?: CreateContentVersionOptions"
7012
+ ],
7013
+ "returns": "Promise<ContentVersion>"
7014
+ },
7015
+ {
7016
+ "name": "getLatestForContent",
7017
+ "async": true,
7018
+ "params": [
7019
+ "contentId: string"
7020
+ ],
7021
+ "returns": "Promise<ContentVersion | null>"
7022
+ },
7023
+ {
7024
+ "name": "getLatestPublishedForContent",
7025
+ "async": true,
7026
+ "params": [
7027
+ "contentId: string"
7028
+ ],
7029
+ "returns": "Promise<ContentVersion | null>"
7030
+ },
7031
+ {
7032
+ "name": "getNextVersionNumber",
7033
+ "async": true,
7034
+ "params": [
7035
+ "contentId: string"
7036
+ ],
7037
+ "returns": "Promise<number>"
7038
+ },
7039
+ {
7040
+ "name": "getVersion",
7041
+ "async": true,
7042
+ "params": [
7043
+ "contentId: string",
7044
+ "versionNumber: number"
7045
+ ],
7046
+ "returns": "Promise<ContentVersion | null>"
7047
+ },
7048
+ {
7049
+ "name": "listForContent",
7050
+ "async": true,
7051
+ "params": [
7052
+ "contentId: string"
7053
+ ],
7054
+ "returns": "Promise<ContentVersion[]>"
7055
+ },
7056
+ {
7057
+ "name": "restoreIntoContent",
7058
+ "async": true,
7059
+ "params": [
7060
+ "content: Content",
7061
+ "versionNumber: number"
7062
+ ],
7063
+ "returns": "Promise<Content>"
7064
+ }
7065
+ ],
4021
7066
  "surfaces": [],
4022
7067
  "relationshipFeatures": [
4023
7068
  "uuidColumns"
@@ -4079,7 +7124,8 @@
4079
7124
  "name": "name",
4080
7125
  "type": "text",
4081
7126
  "required": true,
4082
- "columnType": "TEXT"
7127
+ "columnType": "TEXT",
7128
+ "default": ""
4083
7129
  },
4084
7130
  {
4085
7131
  "name": "title",
@@ -4139,7 +7185,8 @@
4139
7185
  "name": "tags",
4140
7186
  "type": "json",
4141
7187
  "required": false,
4142
- "columnType": "JSON"
7188
+ "columnType": "JSON",
7189
+ "default": []
4143
7190
  },
4144
7191
  {
4145
7192
  "name": "category",
@@ -4151,19 +7198,22 @@
4151
7198
  "name": "status",
4152
7199
  "type": "text",
4153
7200
  "required": false,
4154
- "columnType": "TEXT"
7201
+ "columnType": "TEXT",
7202
+ "default": "draft"
4155
7203
  },
4156
7204
  {
4157
7205
  "name": "state",
4158
7206
  "type": "text",
4159
7207
  "required": false,
4160
- "columnType": "TEXT"
7208
+ "columnType": "TEXT",
7209
+ "default": "active"
4161
7210
  },
4162
7211
  {
4163
7212
  "name": "metadata",
4164
7213
  "type": "json",
4165
7214
  "required": false,
4166
- "columnType": "JSON"
7215
+ "columnType": "JSON",
7216
+ "default": {}
4167
7217
  },
4168
7218
  {
4169
7219
  "name": "thumbnailAssetId",
@@ -4291,6 +7341,733 @@
4291
7341
  "updateFactEvidenceStatusAction",
4292
7342
  "updateMetadata"
4293
7343
  ],
7344
+ "methodSignatures": [
7345
+ {
7346
+ "name": "_setLoadedRelationship",
7347
+ "params": [
7348
+ "fieldName: string",
7349
+ "value: any"
7350
+ ],
7351
+ "returns": "void"
7352
+ },
7353
+ {
7354
+ "name": "addAsset",
7355
+ "async": true,
7356
+ "params": [
7357
+ "asset: Asset",
7358
+ "relationship?: any",
7359
+ "sortOrder?: any"
7360
+ ],
7361
+ "returns": "Promise<void>"
7362
+ },
7363
+ {
7364
+ "name": "addFact",
7365
+ "async": true,
7366
+ "params": [
7367
+ "fact: Fact | string",
7368
+ "relationship?: FactContentRelationship",
7369
+ "metadata?: Record<string>"
7370
+ ],
7371
+ "returns": "any"
7372
+ },
7373
+ {
7374
+ "name": "addReference",
7375
+ "async": true,
7376
+ "params": [
7377
+ "content: Content | string",
7378
+ "options?: object"
7379
+ ],
7380
+ "returns": "any"
7381
+ },
7382
+ {
7383
+ "name": "browseFacts",
7384
+ "async": true,
7385
+ "params": [
7386
+ "query?: any",
7387
+ "options?: object"
7388
+ ],
7389
+ "returns": "Promise<Fact[]>"
7390
+ },
7391
+ {
7392
+ "name": "classifyConstraintError",
7393
+ "static": true,
7394
+ "params": [
7395
+ "message: string"
7396
+ ],
7397
+ "returns": "'unique' | 'not_null' | null"
7398
+ },
7399
+ {
7400
+ "name": "clearEmbeddings",
7401
+ "async": true,
7402
+ "returns": "Promise<void>"
7403
+ },
7404
+ {
7405
+ "name": "createVersion",
7406
+ "async": true,
7407
+ "params": [
7408
+ "options?: CreateContentVersionOptions"
7409
+ ],
7410
+ "returns": "any"
7411
+ },
7412
+ {
7413
+ "name": "delete",
7414
+ "async": true,
7415
+ "returns": "Promise<void>"
7416
+ },
7417
+ {
7418
+ "name": "describe",
7419
+ "async": true,
7420
+ "params": [
7421
+ "options?: AiOperationOptions"
7422
+ ],
7423
+ "returns": "any"
7424
+ },
7425
+ {
7426
+ "name": "destroy",
7427
+ "returns": "void"
7428
+ },
7429
+ {
7430
+ "name": "do",
7431
+ "async": true,
7432
+ "params": [
7433
+ "instructions: string",
7434
+ "options?: AiOperationOptions"
7435
+ ],
7436
+ "returns": "any"
7437
+ },
7438
+ {
7439
+ "name": "evaluateReviewProfile",
7440
+ "async": true,
7441
+ "params": [
7442
+ "profileKey: string"
7443
+ ],
7444
+ "returns": "Promise<ContentReviewProfileEvaluation>"
7445
+ },
7446
+ {
7447
+ "name": "evaluateReviewProfileAction",
7448
+ "async": true,
7449
+ "params": [
7450
+ "options?: object"
7451
+ ],
7452
+ "returns": "any"
7453
+ },
7454
+ {
7455
+ "name": "executeToolCall",
7456
+ "async": true,
7457
+ "params": [
7458
+ "toolCall: ToolCall"
7459
+ ],
7460
+ "returns": "Promise<ToolCallResult>"
7461
+ },
7462
+ {
7463
+ "name": "forget",
7464
+ "async": true,
7465
+ "params": [
7466
+ "options: object"
7467
+ ],
7468
+ "returns": "Promise<void>"
7469
+ },
7470
+ {
7471
+ "name": "forgetScope",
7472
+ "async": true,
7473
+ "params": [
7474
+ "options: object"
7475
+ ],
7476
+ "returns": "Promise<number>"
7477
+ },
7478
+ {
7479
+ "name": "generateEmbeddings",
7480
+ "async": true,
7481
+ "params": [
7482
+ "options?: GenerateEmbeddingsOptions"
7483
+ ],
7484
+ "returns": "Promise<void>"
7485
+ },
7486
+ {
7487
+ "name": "generateThumbnail",
7488
+ "async": true,
7489
+ "params": [
7490
+ "options: ThumbnailOptions"
7491
+ ],
7492
+ "returns": "Promise<Image>"
7493
+ },
7494
+ {
7495
+ "name": "getAiUsageSnapshot",
7496
+ "returns": "AiUsageSnapshot | undefined"
7497
+ },
7498
+ {
7499
+ "name": "getAncestorPaths",
7500
+ "returns": "string[]"
7501
+ },
7502
+ {
7503
+ "name": "getAssets",
7504
+ "async": true,
7505
+ "params": [
7506
+ "relationship?: string"
7507
+ ],
7508
+ "returns": "Promise<Asset[]>"
7509
+ },
7510
+ {
7511
+ "name": "getAvailableTools",
7512
+ "returns": "AITool[]"
7513
+ },
7514
+ {
7515
+ "name": "getCategorySegments",
7516
+ "returns": "string[]"
7517
+ },
7518
+ {
7519
+ "name": "getCorrections",
7520
+ "async": true,
7521
+ "returns": "any"
7522
+ },
7523
+ {
7524
+ "name": "getEmbedding",
7525
+ "async": true,
7526
+ "params": [
7527
+ "fieldName: string",
7528
+ "model?: string"
7529
+ ],
7530
+ "returns": "Promise<number[] | null>"
7531
+ },
7532
+ {
7533
+ "name": "getFactAuditState",
7534
+ "async": true,
7535
+ "returns": "Promise<FactAuditState>"
7536
+ },
7537
+ {
7538
+ "name": "getFactAuditStateAction",
7539
+ "async": true,
7540
+ "returns": "any"
7541
+ },
7542
+ {
7543
+ "name": "getFactLinks",
7544
+ "async": true,
7545
+ "params": [
7546
+ "options?: object"
7547
+ ],
7548
+ "returns": "any"
7549
+ },
7550
+ {
7551
+ "name": "getFacts",
7552
+ "async": true,
7553
+ "params": [
7554
+ "options?: object"
7555
+ ],
7556
+ "returns": "Promise<Fact[]>"
7557
+ },
7558
+ {
7559
+ "name": "getFactsState",
7560
+ "async": true,
7561
+ "params": [
7562
+ "options?: object"
7563
+ ],
7564
+ "returns": "any"
7565
+ },
7566
+ {
7567
+ "name": "getFields",
7568
+ "async": true,
7569
+ "returns": "Promise<any>"
7570
+ },
7571
+ {
7572
+ "name": "getGovernanceState",
7573
+ "async": true,
7574
+ "returns": "Promise<ContentGovernanceState>"
7575
+ },
7576
+ {
7577
+ "name": "getGovernanceStateAction",
7578
+ "async": true,
7579
+ "returns": "any"
7580
+ },
7581
+ {
7582
+ "name": "getId",
7583
+ "async": true,
7584
+ "returns": "any"
7585
+ },
7586
+ {
7587
+ "name": "getMetadata",
7588
+ "returns": "Record<string>"
7589
+ },
7590
+ {
7591
+ "name": "getParentCategory",
7592
+ "returns": "string | null"
7593
+ },
7594
+ {
7595
+ "name": "getPublishedTransparency",
7596
+ "async": true,
7597
+ "returns": "any"
7598
+ },
7599
+ {
7600
+ "name": "getPublishedTransparencyAction",
7601
+ "async": true,
7602
+ "returns": "any"
7603
+ },
7604
+ {
7605
+ "name": "getReferenceDrift",
7606
+ "async": true,
7607
+ "returns": "Promise<Array<object>>"
7608
+ },
7609
+ {
7610
+ "name": "getReferenceEdges",
7611
+ "async": true,
7612
+ "returns": "Promise<Array<object>>"
7613
+ },
7614
+ {
7615
+ "name": "getReferences",
7616
+ "async": true,
7617
+ "returns": "any"
7618
+ },
7619
+ {
7620
+ "name": "getRelated",
7621
+ "async": true,
7622
+ "params": [
7623
+ "fieldName: string",
7624
+ "opts?: LoadRelatedOptions"
7625
+ ],
7626
+ "returns": "Promise<any>"
7627
+ },
7628
+ {
7629
+ "name": "getReviewRequirements",
7630
+ "async": true,
7631
+ "params": [
7632
+ "profileKey: string",
7633
+ "governance?: ResolvedContentGovernance"
7634
+ ],
7635
+ "returns": "any"
7636
+ },
7637
+ {
7638
+ "name": "getReviews",
7639
+ "async": true,
7640
+ "params": [
7641
+ "kind?: any"
7642
+ ],
7643
+ "returns": "any"
7644
+ },
7645
+ {
7646
+ "name": "getRootCategory",
7647
+ "returns": "string | null"
7648
+ },
7649
+ {
7650
+ "name": "getSavedId",
7651
+ "async": true,
7652
+ "returns": "any"
7653
+ },
7654
+ {
7655
+ "name": "getSlug",
7656
+ "async": true,
7657
+ "returns": "any"
7658
+ },
7659
+ {
7660
+ "name": "getThumbnail",
7661
+ "async": true,
7662
+ "returns": "Promise<Image | null>"
7663
+ },
7664
+ {
7665
+ "name": "getVersions",
7666
+ "async": true,
7667
+ "returns": "any"
7668
+ },
7669
+ {
7670
+ "name": "hasStaleEmbeddings",
7671
+ "async": true,
7672
+ "returns": "Promise<boolean>"
7673
+ },
7674
+ {
7675
+ "name": "initialize",
7676
+ "async": true,
7677
+ "returns": "Promise"
7678
+ },
7679
+ {
7680
+ "name": "is",
7681
+ "async": true,
7682
+ "params": [
7683
+ "criteria: string",
7684
+ "options?: AiOperationOptions"
7685
+ ],
7686
+ "returns": "any"
7687
+ },
7688
+ {
7689
+ "name": "isGoverned",
7690
+ "returns": "boolean"
7691
+ },
7692
+ {
7693
+ "name": "isInCategory",
7694
+ "params": [
7695
+ "categoryPath: string",
7696
+ "includeChildren?: any"
7697
+ ],
7698
+ "returns": "boolean"
7699
+ },
7700
+ {
7701
+ "name": "isReadyForReviewProfile",
7702
+ "async": true,
7703
+ "params": [
7704
+ "profileKey: string"
7705
+ ],
7706
+ "returns": "Promise<boolean>"
7707
+ },
7708
+ {
7709
+ "name": "isRelatedLoaded",
7710
+ "params": [
7711
+ "fieldName: string"
7712
+ ],
7713
+ "returns": "boolean"
7714
+ },
7715
+ {
7716
+ "name": "isSaved",
7717
+ "async": true,
7718
+ "returns": "any"
7719
+ },
7720
+ {
7721
+ "name": "issueCorrection",
7722
+ "async": true,
7723
+ "params": [
7724
+ "options: IssueContentCorrectionOptions"
7725
+ ],
7726
+ "returns": "any"
7727
+ },
7728
+ {
7729
+ "name": "issueCorrectionAction",
7730
+ "async": true,
7731
+ "params": [
7732
+ "options: IssueContentCorrectionOptions"
7733
+ ],
7734
+ "returns": "any"
7735
+ },
7736
+ {
7737
+ "name": "listAiUsage",
7738
+ "async": true,
7739
+ "params": [
7740
+ "options?: AiUsageListOptions"
7741
+ ],
7742
+ "returns": "Promise<SmrtAiUsageRecord[]>"
7743
+ },
7744
+ {
7745
+ "name": "listCorrections",
7746
+ "async": true,
7747
+ "returns": "any"
7748
+ },
7749
+ {
7750
+ "name": "listReviewProfilesAction",
7751
+ "async": true,
7752
+ "returns": "any"
7753
+ },
7754
+ {
7755
+ "name": "listReviews",
7756
+ "async": true,
7757
+ "params": [
7758
+ "options?: object"
7759
+ ],
7760
+ "returns": "any"
7761
+ },
7762
+ {
7763
+ "name": "listVersions",
7764
+ "async": true,
7765
+ "returns": "any"
7766
+ },
7767
+ {
7768
+ "name": "loadDataFromDb",
7769
+ "async": true,
7770
+ "params": [
7771
+ "data: Record<string>"
7772
+ ],
7773
+ "returns": "any"
7774
+ },
7775
+ {
7776
+ "name": "loadFromId",
7777
+ "async": true,
7778
+ "returns": "any"
7779
+ },
7780
+ {
7781
+ "name": "loadFromSlug",
7782
+ "async": true,
7783
+ "returns": "any"
7784
+ },
7785
+ {
7786
+ "name": "loadReferences",
7787
+ "async": true,
7788
+ "returns": "any"
7789
+ },
7790
+ {
7791
+ "name": "loadRelated",
7792
+ "async": true,
7793
+ "params": [
7794
+ "fieldName: string",
7795
+ "opts?: LoadRelatedOptions"
7796
+ ],
7797
+ "returns": "Promise<any>"
7798
+ },
7799
+ {
7800
+ "name": "loadRelatedMany",
7801
+ "async": true,
7802
+ "params": [
7803
+ "fieldName: string",
7804
+ "opts?: LoadRelatedOptions"
7805
+ ],
7806
+ "returns": "Promise<any[]>"
7807
+ },
7808
+ {
7809
+ "name": "markAsPersisted",
7810
+ "returns": "void"
7811
+ },
7812
+ {
7813
+ "name": "mutateVersionAction",
7814
+ "async": true,
7815
+ "params": [
7816
+ "options?: any"
7817
+ ],
7818
+ "returns": "any"
7819
+ },
7820
+ {
7821
+ "name": "previewTransparency",
7822
+ "async": true,
7823
+ "returns": "any"
7824
+ },
7825
+ {
7826
+ "name": "previewTransparencyAction",
7827
+ "async": true,
7828
+ "returns": "any"
7829
+ },
7830
+ {
7831
+ "name": "recall",
7832
+ "async": true,
7833
+ "params": [
7834
+ "options: object"
7835
+ ],
7836
+ "returns": "Promise"
7837
+ },
7838
+ {
7839
+ "name": "recallAll",
7840
+ "async": true,
7841
+ "params": [
7842
+ "options?: object"
7843
+ ],
7844
+ "returns": "Promise<Map<string>>"
7845
+ },
7846
+ {
7847
+ "name": "recheckFactClaims",
7848
+ "async": true,
7849
+ "params": [
7850
+ "options?: FactAuditClaimRecheckOptions"
7851
+ ],
7852
+ "returns": "any"
7853
+ },
7854
+ {
7855
+ "name": "recheckFactClaimsAction",
7856
+ "async": true,
7857
+ "params": [
7858
+ "options?: FactAuditClaimRecheckOptions"
7859
+ ],
7860
+ "returns": "any"
7861
+ },
7862
+ {
7863
+ "name": "remember",
7864
+ "async": true,
7865
+ "params": [
7866
+ "options: object"
7867
+ ],
7868
+ "returns": "Promise<void>"
7869
+ },
7870
+ {
7871
+ "name": "removeAsset",
7872
+ "async": true,
7873
+ "params": [
7874
+ "assetId: string",
7875
+ "relationship?: string"
7876
+ ],
7877
+ "returns": "Promise<void>"
7878
+ },
7879
+ {
7880
+ "name": "removeFact",
7881
+ "async": true,
7882
+ "params": [
7883
+ "factId: string",
7884
+ "relationship?: FactContentRelationship"
7885
+ ],
7886
+ "returns": "Promise<void>"
7887
+ },
7888
+ {
7889
+ "name": "removeReference",
7890
+ "async": true,
7891
+ "params": [
7892
+ "targetId: string"
7893
+ ],
7894
+ "returns": "any"
7895
+ },
7896
+ {
7897
+ "name": "repairFactAudit",
7898
+ "async": true,
7899
+ "params": [
7900
+ "options?: object"
7901
+ ],
7902
+ "returns": "any"
7903
+ },
7904
+ {
7905
+ "name": "repairFactAuditAction",
7906
+ "async": true,
7907
+ "params": [
7908
+ "options?: object"
7909
+ ],
7910
+ "returns": "any"
7911
+ },
7912
+ {
7913
+ "name": "repairFactEvidence",
7914
+ "async": true,
7915
+ "params": [
7916
+ "options?: FactAuditResourceRepairOptions"
7917
+ ],
7918
+ "returns": "any"
7919
+ },
7920
+ {
7921
+ "name": "repairFactEvidenceAction",
7922
+ "async": true,
7923
+ "params": [
7924
+ "options?: FactAuditResourceRepairOptions"
7925
+ ],
7926
+ "returns": "any"
7927
+ },
7928
+ {
7929
+ "name": "requireInsertOnSave",
7930
+ "returns": "void"
7931
+ },
7932
+ {
7933
+ "name": "resetAiUsage",
7934
+ "returns": "void"
7935
+ },
7936
+ {
7937
+ "name": "resolveGovernance",
7938
+ "async": true,
7939
+ "returns": "Promise<ResolvedContentGovernance>"
7940
+ },
7941
+ {
7942
+ "name": "restoreFromVersion",
7943
+ "async": true,
7944
+ "params": [
7945
+ "versionNumber: number"
7946
+ ],
7947
+ "returns": "any"
7948
+ },
7949
+ {
7950
+ "name": "reviewFacts",
7951
+ "async": true,
7952
+ "params": [
7953
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
7954
+ ],
7955
+ "returns": "any"
7956
+ },
7957
+ {
7958
+ "name": "reviewSafety",
7959
+ "async": true,
7960
+ "params": [
7961
+ "options?: Omit<RunContentReviewOptions, 'kind'>"
7962
+ ],
7963
+ "returns": "any"
7964
+ },
7965
+ {
7966
+ "name": "runReview",
7967
+ "async": true,
7968
+ "params": [
7969
+ "options?: RunContentReviewOptions"
7970
+ ],
7971
+ "returns": "any"
7972
+ },
7973
+ {
7974
+ "name": "runReviewAction",
7975
+ "async": true,
7976
+ "params": [
7977
+ "options?: RunContentReviewOptions"
7978
+ ],
7979
+ "returns": "any"
7980
+ },
7981
+ {
7982
+ "name": "save",
7983
+ "async": true,
7984
+ "returns": "any"
7985
+ },
7986
+ {
7987
+ "name": "setMetadata",
7988
+ "params": [
7989
+ "metadata: Record<string> | null | undefined"
7990
+ ],
7991
+ "returns": "void"
7992
+ },
7993
+ {
7994
+ "name": "setThumbnail",
7995
+ "async": true,
7996
+ "params": [
7997
+ "image: Image"
7998
+ ],
7999
+ "returns": "Promise<void>"
8000
+ },
8001
+ {
8002
+ "name": "summarizeAiUsage",
8003
+ "async": true,
8004
+ "params": [
8005
+ "options?: AiUsageSummaryOptions"
8006
+ ],
8007
+ "returns": "Promise<Record<string, AiUsageStats>>"
8008
+ },
8009
+ {
8010
+ "name": "syncFacts",
8011
+ "async": true,
8012
+ "params": [
8013
+ "factIds: string[]",
8014
+ "relationship?: FactContentRelationship"
8015
+ ],
8016
+ "returns": "Promise<object>"
8017
+ },
8018
+ {
8019
+ "name": "syncFactsState",
8020
+ "async": true,
8021
+ "params": [
8022
+ "options?: object"
8023
+ ],
8024
+ "returns": "any"
8025
+ },
8026
+ {
8027
+ "name": "toJSON",
8028
+ "returns": "any"
8029
+ },
8030
+ {
8031
+ "name": "toPlainObject",
8032
+ "returns": "Record<string>"
8033
+ },
8034
+ {
8035
+ "name": "toPublicJSON",
8036
+ "params": [
8037
+ "options?: PublicJsonOptions"
8038
+ ],
8039
+ "returns": "Record<string>"
8040
+ },
8041
+ {
8042
+ "name": "updateFactEvidenceStatus",
8043
+ "async": true,
8044
+ "params": [
8045
+ "options?: FactEvidenceStatusUpdateOptions"
8046
+ ],
8047
+ "returns": "any"
8048
+ },
8049
+ {
8050
+ "name": "updateFactEvidenceStatusAction",
8051
+ "async": true,
8052
+ "params": [
8053
+ "options?: FactEvidenceStatusUpdateOptions"
8054
+ ],
8055
+ "returns": "any"
8056
+ },
8057
+ {
8058
+ "name": "updateMetadata",
8059
+ "params": [
8060
+ "patch: Partial<Record<string>>"
8061
+ ],
8062
+ "returns": "Record<string>"
8063
+ }
8064
+ ],
8065
+ "tenant": {
8066
+ "scoped": true,
8067
+ "mode": "optional",
8068
+ "field": "tenantId"
8069
+ },
8070
+ "tableStrategy": "sti",
4294
8071
  "surfaces": [
4295
8072
  {
4296
8073
  "kind": "api",
@@ -4575,6 +8352,102 @@
4575
8352
  "syncContentDir",
4576
8353
  "writeContentFile"
4577
8354
  ],
8355
+ "methodSignatures": [
8356
+ {
8357
+ "name": "browseFacts",
8358
+ "async": true,
8359
+ "params": [
8360
+ "options?: object"
8361
+ ],
8362
+ "returns": "any"
8363
+ },
8364
+ {
8365
+ "name": "findByTenant",
8366
+ "async": true,
8367
+ "params": [
8368
+ "tenantId: string"
8369
+ ],
8370
+ "returns": "Promise<Content[]>"
8371
+ },
8372
+ {
8373
+ "name": "findGlobal",
8374
+ "async": true,
8375
+ "returns": "Promise<Content[]>"
8376
+ },
8377
+ {
8378
+ "name": "findWithGlobals",
8379
+ "async": true,
8380
+ "params": [
8381
+ "tenantId: string"
8382
+ ],
8383
+ "returns": "Promise<Content[]>"
8384
+ },
8385
+ {
8386
+ "name": "generateMissingThumbnails",
8387
+ "async": true,
8388
+ "params": [
8389
+ "options: GenerateMissingThumbnailsOptions"
8390
+ ],
8391
+ "returns": "Promise<object>"
8392
+ },
8393
+ {
8394
+ "name": "getBySlug",
8395
+ "async": true,
8396
+ "params": [
8397
+ "options?: object"
8398
+ ],
8399
+ "returns": "any"
8400
+ },
8401
+ {
8402
+ "name": "getDb",
8403
+ "returns": "any"
8404
+ },
8405
+ {
8406
+ "name": "getGovernanceDefinitionsAction",
8407
+ "async": true,
8408
+ "params": [
8409
+ "options?: object"
8410
+ ],
8411
+ "returns": "any"
8412
+ },
8413
+ {
8414
+ "name": "initialize",
8415
+ "async": true,
8416
+ "returns": "Promise"
8417
+ },
8418
+ {
8419
+ "name": "mirror",
8420
+ "async": true,
8421
+ "params": [
8422
+ "options: object"
8423
+ ],
8424
+ "returns": "any"
8425
+ },
8426
+ {
8427
+ "name": "resolveGovernanceAction",
8428
+ "async": true,
8429
+ "params": [
8430
+ "options?: object"
8431
+ ],
8432
+ "returns": "any"
8433
+ },
8434
+ {
8435
+ "name": "syncContentDir",
8436
+ "async": true,
8437
+ "params": [
8438
+ "options: object"
8439
+ ],
8440
+ "returns": "any"
8441
+ },
8442
+ {
8443
+ "name": "writeContentFile",
8444
+ "async": true,
8445
+ "params": [
8446
+ "options: object"
8447
+ ],
8448
+ "returns": "any"
8449
+ }
8450
+ ],
4578
8451
  "surfaces": [
4579
8452
  {
4580
8453
  "kind": "api",