@happyvertical/smrt-content 0.42.6 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-content",
5
- "packageVersion": "0.42.6",
5
+ "packageVersion": "0.43.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-content:ContentAsset": {
8
8
  "name": "contentasset",
@@ -135,7 +135,13 @@
135
135
  "type": "UUID",
136
136
  "referenceKind": "foreignKey",
137
137
  "notNull": true,
138
- "unique": false
138
+ "unique": false,
139
+ "foreignKey": {
140
+ "table": "contents",
141
+ "column": "id",
142
+ "onDelete": "CASCADE",
143
+ "onUpdate": "CASCADE"
144
+ }
139
145
  },
140
146
  "asset_id": {
141
147
  "type": "UUID",
@@ -186,7 +192,7 @@
186
192
  ]
187
193
  }
188
194
  ],
189
- "version": "a201e9ef"
195
+ "version": "472d718d"
190
196
  }
191
197
  },
192
198
  "@happyvertical/smrt-content:ContentAssetCollection": {
@@ -537,13 +543,25 @@
537
543
  "type": "UUID",
538
544
  "referenceKind": "foreignKey",
539
545
  "notNull": true,
540
- "unique": false
546
+ "unique": false,
547
+ "foreignKey": {
548
+ "table": "content_contributions",
549
+ "column": "id",
550
+ "onDelete": "NO ACTION",
551
+ "onUpdate": "CASCADE"
552
+ }
541
553
  },
542
554
  "revision_id": {
543
555
  "type": "UUID",
544
556
  "referenceKind": "foreignKey",
545
557
  "notNull": false,
546
- "unique": false
558
+ "unique": false,
559
+ "foreignKey": {
560
+ "table": "content_contribution_revisions",
561
+ "column": "id",
562
+ "onDelete": "NO ACTION",
563
+ "onUpdate": "CASCADE"
564
+ }
547
565
  },
548
566
  "filename": {
549
567
  "type": "TEXT",
@@ -629,7 +647,7 @@
629
647
  ]
630
648
  }
631
649
  ],
632
- "version": "0801b8fd"
650
+ "version": "83e64a1b"
633
651
  }
634
652
  },
635
653
  "@happyvertical/smrt-content:ContentContributionAttachmentCollection": {
@@ -891,7 +909,13 @@
891
909
  "type": "UUID",
892
910
  "referenceKind": "foreignKey",
893
911
  "notNull": true,
894
- "unique": false
912
+ "unique": false,
913
+ "foreignKey": {
914
+ "table": "content_contributions",
915
+ "column": "id",
916
+ "onDelete": "CASCADE",
917
+ "onUpdate": "CASCADE"
918
+ }
895
919
  },
896
920
  "revision_number": {
897
921
  "type": "INTEGER",
@@ -973,7 +997,7 @@
973
997
  ]
974
998
  }
975
999
  ],
976
- "version": "66bf02f5"
1000
+ "version": "5051727c"
977
1001
  }
978
1002
  },
979
1003
  "@happyvertical/smrt-content:ContentContributionRevisionCollection": {
@@ -1904,7 +1928,13 @@
1904
1928
  "type": "UUID",
1905
1929
  "referenceKind": "foreignKey",
1906
1930
  "notNull": true,
1907
- "unique": false
1931
+ "unique": false,
1932
+ "foreignKey": {
1933
+ "table": "content_contributors",
1934
+ "column": "id",
1935
+ "onDelete": "NO ACTION",
1936
+ "onUpdate": "CASCADE"
1937
+ }
1908
1938
  },
1909
1939
  "contribution_type_key": {
1910
1940
  "type": "TEXT",
@@ -1974,7 +2004,13 @@
1974
2004
  "type": "UUID",
1975
2005
  "referenceKind": "foreignKey",
1976
2006
  "notNull": false,
1977
- "unique": false
2007
+ "unique": false,
2008
+ "foreignKey": {
2009
+ "table": "contents",
2010
+ "column": "id",
2011
+ "onDelete": "NO ACTION",
2012
+ "onUpdate": "CASCADE"
2013
+ }
1978
2014
  },
1979
2015
  "revision_count": {
1980
2016
  "type": "INTEGER",
@@ -2053,7 +2089,7 @@
2053
2089
  ]
2054
2090
  }
2055
2091
  ],
2056
- "version": "0fdc1992"
2092
+ "version": "ef8fd792"
2057
2093
  }
2058
2094
  },
2059
2095
  "@happyvertical/smrt-content:ContentContributions": {
@@ -2728,13 +2764,25 @@
2728
2764
  "type": "UUID",
2729
2765
  "referenceKind": "foreignKey",
2730
2766
  "notNull": true,
2731
- "unique": false
2767
+ "unique": false,
2768
+ "foreignKey": {
2769
+ "table": "contents",
2770
+ "column": "id",
2771
+ "onDelete": "NO ACTION",
2772
+ "onUpdate": "CASCADE"
2773
+ }
2732
2774
  },
2733
2775
  "content_version_id": {
2734
2776
  "type": "UUID",
2735
2777
  "referenceKind": "foreignKey",
2736
2778
  "notNull": false,
2737
- "unique": false
2779
+ "unique": false,
2780
+ "foreignKey": {
2781
+ "table": "content_versions",
2782
+ "column": "id",
2783
+ "onDelete": "NO ACTION",
2784
+ "onUpdate": "CASCADE"
2785
+ }
2738
2786
  },
2739
2787
  "fact_id": {
2740
2788
  "type": "UUID",
@@ -2839,7 +2887,7 @@
2839
2887
  ]
2840
2888
  }
2841
2889
  ],
2842
- "version": "5bb750e4"
2890
+ "version": "bf2808c7"
2843
2891
  }
2844
2892
  },
2845
2893
  "@happyvertical/smrt-content:ContentCorrectionCollection": {
@@ -4573,13 +4621,25 @@
4573
4621
  "type": "UUID",
4574
4622
  "referenceKind": "foreignKey",
4575
4623
  "notNull": true,
4576
- "unique": false
4624
+ "unique": false,
4625
+ "foreignKey": {
4626
+ "table": "contents",
4627
+ "column": "id",
4628
+ "onDelete": "CASCADE",
4629
+ "onUpdate": "CASCADE"
4630
+ }
4577
4631
  },
4578
4632
  "target_id": {
4579
4633
  "type": "UUID",
4580
4634
  "referenceKind": "foreignKey",
4581
4635
  "notNull": true,
4582
- "unique": false
4636
+ "unique": false,
4637
+ "foreignKey": {
4638
+ "table": "contents",
4639
+ "column": "id",
4640
+ "onDelete": "CASCADE",
4641
+ "onUpdate": "CASCADE"
4642
+ }
4583
4643
  },
4584
4644
  "target_version": {
4585
4645
  "type": "INTEGER",
@@ -4617,7 +4677,7 @@
4617
4677
  ]
4618
4678
  }
4619
4679
  ],
4620
- "version": "93a08999"
4680
+ "version": "3347ea2a"
4621
4681
  }
4622
4682
  },
4623
4683
  "@happyvertical/smrt-content:ContentReferences": {
@@ -5010,13 +5070,25 @@
5010
5070
  "type": "UUID",
5011
5071
  "referenceKind": "foreignKey",
5012
5072
  "notNull": true,
5013
- "unique": false
5073
+ "unique": false,
5074
+ "foreignKey": {
5075
+ "table": "contents",
5076
+ "column": "id",
5077
+ "onDelete": "NO ACTION",
5078
+ "onUpdate": "CASCADE"
5079
+ }
5014
5080
  },
5015
5081
  "content_version_id": {
5016
5082
  "type": "UUID",
5017
5083
  "referenceKind": "foreignKey",
5018
5084
  "notNull": false,
5019
- "unique": false
5085
+ "unique": false,
5086
+ "foreignKey": {
5087
+ "table": "content_versions",
5088
+ "column": "id",
5089
+ "onDelete": "NO ACTION",
5090
+ "onUpdate": "CASCADE"
5091
+ }
5020
5092
  },
5021
5093
  "kind": {
5022
5094
  "type": "TEXT",
@@ -5092,7 +5164,7 @@
5092
5164
  ]
5093
5165
  }
5094
5166
  ],
5095
- "version": "561fbff4"
5167
+ "version": "7b2c0ad7"
5096
5168
  }
5097
5169
  },
5098
5170
  "@happyvertical/smrt-content:ContentReviewCollection": {
@@ -5373,6 +5445,25 @@
5373
5445
  }
5374
5446
  },
5375
5447
  "methods": {
5448
+ "withDatabase": {
5449
+ "name": "withDatabase",
5450
+ "async": true,
5451
+ "parameters": [
5452
+ {
5453
+ "name": "db",
5454
+ "type": "DatabaseInterface",
5455
+ "optional": false
5456
+ },
5457
+ {
5458
+ "name": "operation",
5459
+ "type": "Function",
5460
+ "optional": false
5461
+ }
5462
+ ],
5463
+ "returnType": "Promise<T>",
5464
+ "isStatic": false,
5465
+ "isPublic": true
5466
+ },
5376
5467
  "getAiUsageSnapshot": {
5377
5468
  "name": "getAiUsageSnapshot",
5378
5469
  "async": false,
@@ -6842,7 +6933,13 @@
6842
6933
  "feed_source_id": {
6843
6934
  "type": "UUID",
6844
6935
  "referenceKind": "foreignKey",
6845
- "notNull": false
6936
+ "notNull": false,
6937
+ "foreignKey": {
6938
+ "table": "content_feed_sources",
6939
+ "column": "id",
6940
+ "onDelete": "NO ACTION",
6941
+ "onUpdate": "CASCADE"
6942
+ }
6846
6943
  },
6847
6944
  "source_guid": {
6848
6945
  "type": "TEXT",
@@ -6913,7 +7010,7 @@
6913
7010
  ]
6914
7011
  }
6915
7012
  ],
6916
- "version": "e07be74e"
7013
+ "version": "ad51267b"
6917
7014
  }
6918
7015
  },
6919
7016
  "@happyvertical/smrt-content:ContentDocument": {
@@ -7038,6 +7135,25 @@
7038
7135
  }
7039
7136
  },
7040
7137
  "methods": {
7138
+ "withDatabase": {
7139
+ "name": "withDatabase",
7140
+ "async": true,
7141
+ "parameters": [
7142
+ {
7143
+ "name": "db",
7144
+ "type": "DatabaseInterface",
7145
+ "optional": false
7146
+ },
7147
+ {
7148
+ "name": "operation",
7149
+ "type": "Function",
7150
+ "optional": false
7151
+ }
7152
+ ],
7153
+ "returnType": "Promise<T>",
7154
+ "isStatic": false,
7155
+ "isPublic": true
7156
+ },
7041
7157
  "getAiUsageSnapshot": {
7042
7158
  "name": "getAiUsageSnapshot",
7043
7159
  "async": false,
@@ -8507,7 +8623,13 @@
8507
8623
  "feed_source_id": {
8508
8624
  "type": "UUID",
8509
8625
  "referenceKind": "foreignKey",
8510
- "notNull": false
8626
+ "notNull": false,
8627
+ "foreignKey": {
8628
+ "table": "content_feed_sources",
8629
+ "column": "id",
8630
+ "onDelete": "NO ACTION",
8631
+ "onUpdate": "CASCADE"
8632
+ }
8511
8633
  },
8512
8634
  "source_guid": {
8513
8635
  "type": "TEXT",
@@ -8578,7 +8700,7 @@
8578
8700
  ]
8579
8701
  }
8580
8702
  ],
8581
- "version": "e07be74e"
8703
+ "version": "8107d801"
8582
8704
  }
8583
8705
  },
8584
8706
  "@happyvertical/smrt-content:Mirror": {
@@ -8732,6 +8854,25 @@
8732
8854
  }
8733
8855
  },
8734
8856
  "methods": {
8857
+ "withDatabase": {
8858
+ "name": "withDatabase",
8859
+ "async": true,
8860
+ "parameters": [
8861
+ {
8862
+ "name": "db",
8863
+ "type": "DatabaseInterface",
8864
+ "optional": false
8865
+ },
8866
+ {
8867
+ "name": "operation",
8868
+ "type": "Function",
8869
+ "optional": false
8870
+ }
8871
+ ],
8872
+ "returnType": "Promise<T>",
8873
+ "isStatic": false,
8874
+ "isPublic": true
8875
+ },
8735
8876
  "getAiUsageSnapshot": {
8736
8877
  "name": "getAiUsageSnapshot",
8737
8878
  "async": false,
@@ -10201,7 +10342,13 @@
10201
10342
  "feed_source_id": {
10202
10343
  "type": "UUID",
10203
10344
  "referenceKind": "foreignKey",
10204
- "notNull": false
10345
+ "notNull": false,
10346
+ "foreignKey": {
10347
+ "table": "content_feed_sources",
10348
+ "column": "id",
10349
+ "onDelete": "NO ACTION",
10350
+ "onUpdate": "CASCADE"
10351
+ }
10205
10352
  },
10206
10353
  "source_guid": {
10207
10354
  "type": "TEXT",
@@ -10272,7 +10419,7 @@
10272
10419
  ]
10273
10420
  }
10274
10421
  ],
10275
- "version": "e07be74e"
10422
+ "version": "088da7e4"
10276
10423
  }
10277
10424
  },
10278
10425
  "@happyvertical/smrt-content:ContentVersion": {
@@ -10470,7 +10617,13 @@
10470
10617
  "type": "UUID",
10471
10618
  "referenceKind": "foreignKey",
10472
10619
  "notNull": true,
10473
- "unique": false
10620
+ "unique": false,
10621
+ "foreignKey": {
10622
+ "table": "contents",
10623
+ "column": "id",
10624
+ "onDelete": "CASCADE",
10625
+ "onUpdate": "CASCADE"
10626
+ }
10474
10627
  },
10475
10628
  "version": {
10476
10629
  "type": "INTEGER",
@@ -10550,7 +10703,7 @@
10550
10703
  ]
10551
10704
  }
10552
10705
  ],
10553
- "version": "5715d20d"
10706
+ "version": "66cda211"
10554
10707
  }
10555
10708
  },
10556
10709
  "@happyvertical/smrt-content:ContentVersionCollection": {
@@ -10857,6 +11010,25 @@
10857
11010
  }
10858
11011
  },
10859
11012
  "methods": {
11013
+ "withDatabase": {
11014
+ "name": "withDatabase",
11015
+ "async": true,
11016
+ "parameters": [
11017
+ {
11018
+ "name": "db",
11019
+ "type": "DatabaseInterface",
11020
+ "optional": false
11021
+ },
11022
+ {
11023
+ "name": "operation",
11024
+ "type": "Function",
11025
+ "optional": false
11026
+ }
11027
+ ],
11028
+ "returnType": "Promise<T>",
11029
+ "isStatic": false,
11030
+ "isPublic": true
11031
+ },
10860
11032
  "getAiUsageSnapshot": {
10861
11033
  "name": "getAiUsageSnapshot",
10862
11034
  "async": false,
@@ -12456,7 +12628,13 @@
12456
12628
  "feed_source_id": {
12457
12629
  "type": "UUID",
12458
12630
  "referenceKind": "foreignKey",
12459
- "notNull": false
12631
+ "notNull": false,
12632
+ "foreignKey": {
12633
+ "table": "content_feed_sources",
12634
+ "column": "id",
12635
+ "onDelete": "NO ACTION",
12636
+ "onUpdate": "CASCADE"
12637
+ }
12460
12638
  },
12461
12639
  "source_guid": {
12462
12640
  "type": "TEXT",
@@ -12527,7 +12705,7 @@
12527
12705
  ]
12528
12706
  }
12529
12707
  ],
12530
- "version": "e07be74e"
12708
+ "version": "40e4ddf4"
12531
12709
  }
12532
12710
  },
12533
12711
  "@happyvertical/smrt-content:Contents": {
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-content",
6
- "packageVersion": "0.42.6",
6
+ "packageVersion": "0.43.0",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "beeae066d257040d3bc0a60930ab7c6262022c83aaba151f1512fd33266fb306",
11
- "packageJson": "8cfd5acb6067a9c0713494923ede17648719afce96fcd85803c482f79b0d8b04",
10
+ "manifest": "33d06b8c0cd32fd14c4aea72b721403a51078d2788a1c649e4b684e107fdcb40",
11
+ "packageJson": "19f29098866204f1e7a82bddc3d74466b9a0df1ba3f68eef24e42d810f91985f",
12
12
  "agents": "a75d356eadcd57611bbe3ba544254fd9a374aecb64a5ce13de2205ea2f7f48bb"
13
13
  },
14
14
  "exports": [
@@ -3987,7 +3987,8 @@
3987
3987
  "toPublicJSON",
3988
3988
  "updateFactEvidenceStatus",
3989
3989
  "updateFactEvidenceStatusAction",
3990
- "updateMetadata"
3990
+ "updateMetadata",
3991
+ "withDatabase"
3991
3992
  ],
3992
3993
  "methodSignatures": [
3993
3994
  {
@@ -4708,6 +4709,15 @@
4708
4709
  "patch: Partial<Record<string>>"
4709
4710
  ],
4710
4711
  "returns": "Record<string>"
4712
+ },
4713
+ {
4714
+ "name": "withDatabase",
4715
+ "async": true,
4716
+ "params": [
4717
+ "db: DatabaseInterface",
4718
+ "operation: Function"
4719
+ ],
4720
+ "returns": "Promise<T>"
4711
4721
  }
4712
4722
  ],
4713
4723
  "tableStrategy": "sti",
@@ -4988,7 +4998,8 @@
4988
4998
  "toPublicJSON",
4989
4999
  "updateFactEvidenceStatus",
4990
5000
  "updateFactEvidenceStatusAction",
4991
- "updateMetadata"
5001
+ "updateMetadata",
5002
+ "withDatabase"
4992
5003
  ],
4993
5004
  "methodSignatures": [
4994
5005
  {
@@ -5709,6 +5720,15 @@
5709
5720
  "patch: Partial<Record<string>>"
5710
5721
  ],
5711
5722
  "returns": "Record<string>"
5723
+ },
5724
+ {
5725
+ "name": "withDatabase",
5726
+ "async": true,
5727
+ "params": [
5728
+ "db: DatabaseInterface",
5729
+ "operation: Function"
5730
+ ],
5731
+ "returns": "Promise<T>"
5712
5732
  }
5713
5733
  ],
5714
5734
  "tableStrategy": "sti",
@@ -6039,7 +6059,8 @@
6039
6059
  "toPublicJSON",
6040
6060
  "updateFactEvidenceStatus",
6041
6061
  "updateFactEvidenceStatusAction",
6042
- "updateMetadata"
6062
+ "updateMetadata",
6063
+ "withDatabase"
6043
6064
  ],
6044
6065
  "methodSignatures": [
6045
6066
  {
@@ -6760,6 +6781,15 @@
6760
6781
  "patch: Partial<Record<string>>"
6761
6782
  ],
6762
6783
  "returns": "Record<string>"
6784
+ },
6785
+ {
6786
+ "name": "withDatabase",
6787
+ "async": true,
6788
+ "params": [
6789
+ "db: DatabaseInterface",
6790
+ "operation: Function"
6791
+ ],
6792
+ "returns": "Promise<T>"
6763
6793
  }
6764
6794
  ],
6765
6795
  "tableStrategy": "sti",
@@ -7349,7 +7379,8 @@
7349
7379
  "toPublicJSON",
7350
7380
  "updateFactEvidenceStatus",
7351
7381
  "updateFactEvidenceStatusAction",
7352
- "updateMetadata"
7382
+ "updateMetadata",
7383
+ "withDatabase"
7353
7384
  ],
7354
7385
  "methodSignatures": [
7355
7386
  {
@@ -8070,6 +8101,15 @@
8070
8101
  "patch: Partial<Record<string>>"
8071
8102
  ],
8072
8103
  "returns": "Record<string>"
8104
+ },
8105
+ {
8106
+ "name": "withDatabase",
8107
+ "async": true,
8108
+ "params": [
8109
+ "db: DatabaseInterface",
8110
+ "operation: Function"
8111
+ ],
8112
+ "returns": "Promise<T>"
8073
8113
  }
8074
8114
  ],
8075
8115
  "tenant": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-content",
3
- "version": "0.42.6",
3
+ "version": "0.43.0",
4
4
  "description": "Content processing module for SMRT framework - handles documents, web content, and media",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -54,17 +54,17 @@
54
54
  "@happyvertical/utils": "^0.88.0",
55
55
  "fast-xml-parser": "^5.10.1",
56
56
  "yaml": "^2.9.0",
57
- "@happyvertical/smrt-core": "0.42.6",
58
- "@happyvertical/smrt-chat": "0.42.6",
59
- "@happyvertical/smrt-facts": "0.42.6",
60
- "@happyvertical/smrt-messages": "0.42.6",
61
- "@happyvertical/smrt-images": "0.42.6",
62
- "@happyvertical/smrt-assets": "0.42.6",
63
- "@happyvertical/smrt-tenancy": "0.42.6",
64
- "@happyvertical/smrt-ui": "0.42.6",
65
- "@happyvertical/smrt-prompts": "0.42.6",
66
- "@happyvertical/smrt-profiles": "0.42.6",
67
- "@happyvertical/smrt-types": "0.42.6"
57
+ "@happyvertical/smrt-assets": "0.43.0",
58
+ "@happyvertical/smrt-chat": "0.43.0",
59
+ "@happyvertical/smrt-core": "0.43.0",
60
+ "@happyvertical/smrt-facts": "0.43.0",
61
+ "@happyvertical/smrt-messages": "0.43.0",
62
+ "@happyvertical/smrt-images": "0.43.0",
63
+ "@happyvertical/smrt-prompts": "0.43.0",
64
+ "@happyvertical/smrt-profiles": "0.43.0",
65
+ "@happyvertical/smrt-tenancy": "0.43.0",
66
+ "@happyvertical/smrt-types": "0.43.0",
67
+ "@happyvertical/smrt-ui": "0.43.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "svelte": "^5.56.4"
@@ -85,8 +85,8 @@
85
85
  "typescript": "5.9.3",
86
86
  "vite": "8.1.4",
87
87
  "vitest": "4.1.10",
88
- "@happyvertical/smrt-playground": "0.42.6",
89
- "@happyvertical/smrt-vitest": "0.42.6"
88
+ "@happyvertical/smrt-playground": "0.43.0",
89
+ "@happyvertical/smrt-vitest": "0.43.0"
90
90
  },
91
91
  "keywords": [
92
92
  "ai",