@happyvertical/smrt-content 0.57.46 → 0.57.48
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.
- package/AGENTS.md +3 -1
- package/README.md +2 -2
- package/dist/chunks/content-query-Czbqgdy-.js +4252 -0
- package/dist/chunks/content-query-Czbqgdy-.js.map +1 -0
- package/dist/chunks/{content-versions-CbSEo4t3.js → content-versions-BKw9s3sG.js} +2 -2
- package/dist/chunks/{content-versions-CbSEo4t3.js.map → content-versions-BKw9s3sG.js.map} +1 -1
- package/dist/chunks/{contents-OJ7rkSyW.js → contents-CX8Wvflz.js} +6 -5
- package/dist/chunks/{contents-OJ7rkSyW.js.map → contents-CX8Wvflz.js.map} +1 -1
- package/dist/chunks/tenant-keyed-lookup-8z_TQG3s.js +30 -0
- package/dist/chunks/tenant-keyed-lookup-8z_TQG3s.js.map +1 -0
- package/dist/content-contributions.d.ts.map +1 -1
- package/dist/content-contributor.d.ts +6 -0
- package/dist/content-contributor.d.ts.map +1 -1
- package/dist/content-contributors.d.ts +10 -1
- package/dist/content-contributors.d.ts.map +1 -1
- package/dist/content-governance-assignment.d.ts.map +1 -1
- package/dist/content-governance-assignments.d.ts +10 -1
- package/dist/content-governance-assignments.d.ts.map +1 -1
- package/dist/content-governance-policies.d.ts +9 -1
- package/dist/content-governance-policies.d.ts.map +1 -1
- package/dist/content-governance-policy.d.ts.map +1 -1
- package/dist/content-governance-profile.d.ts.map +1 -1
- package/dist/content-governance-profiles.d.ts +9 -1
- package/dist/content-governance-profiles.d.ts.map +1 -1
- package/dist/content-governance.d.ts +16 -0
- package/dist/content-governance.d.ts.map +1 -1
- package/dist/content.d.ts.map +1 -1
- package/dist/contents.d.ts +0 -12
- package/dist/contents.d.ts.map +1 -1
- package/dist/index.js +109 -28
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +171 -44
- package/dist/server.js +1 -1
- package/dist/smrt-knowledge.json +18 -9
- package/dist/tenant-keyed-lookup.d.ts +30 -0
- package/dist/tenant-keyed-lookup.d.ts.map +1 -0
- package/package.json +24 -24
- package/dist/chunks/content-query-DPHBcml5.js +0 -4233
- package/dist/chunks/content-query-DPHBcml5.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-content",
|
|
5
|
-
"packageVersion": "0.57.
|
|
5
|
+
"packageVersion": "0.57.48",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-content:ContentAsset": {
|
|
8
8
|
"name": "contentasset",
|
|
@@ -260,7 +260,8 @@
|
|
|
260
260
|
{
|
|
261
261
|
"name": "opts",
|
|
262
262
|
"type": "JunctionAttachOptions",
|
|
263
|
-
"optional": true
|
|
263
|
+
"optional": true,
|
|
264
|
+
"resolvedType": "Record<string, unknown>"
|
|
264
265
|
}
|
|
265
266
|
],
|
|
266
267
|
"returnType": "Promise<TItem>",
|
|
@@ -308,7 +309,8 @@
|
|
|
308
309
|
{
|
|
309
310
|
"name": "opts",
|
|
310
311
|
"type": "JunctionAttachOptions",
|
|
311
|
-
"optional": true
|
|
312
|
+
"optional": true,
|
|
313
|
+
"resolvedType": "Record<string, unknown>"
|
|
312
314
|
}
|
|
313
315
|
],
|
|
314
316
|
"returnType": "Promise<void>",
|
|
@@ -326,6 +328,7 @@
|
|
|
326
328
|
"extendsTypeArg": "ContentAsset",
|
|
327
329
|
"exportName": "ContentAssetCollection",
|
|
328
330
|
"collectionExportName": "ContentAssetCollectionCollection",
|
|
331
|
+
"collectionOf": "@happyvertical/smrt-content:ContentAsset",
|
|
329
332
|
"schema": {
|
|
330
333
|
"tableName": "content_assets",
|
|
331
334
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"content_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0\n);",
|
|
@@ -779,6 +782,7 @@
|
|
|
779
782
|
"extendsTypeArg": "ContentContributionAttachment",
|
|
780
783
|
"exportName": "ContentContributionAttachmentCollection",
|
|
781
784
|
"collectionExportName": "ContentContributionAttachmentCollectionCollection",
|
|
785
|
+
"collectionOf": "@happyvertical/smrt-content:ContentContributionAttachment",
|
|
782
786
|
"schema": {
|
|
783
787
|
"tableName": "content_contribution_attachments",
|
|
784
788
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_contribution_attachments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"contribution_id\" UUID NOT NULL,\n \"revision_id\" UUID,\n \"filename\" TEXT,\n \"mime_type\" TEXT,\n \"size\" INTEGER NOT NULL DEFAULT 0,\n \"file_key\" TEXT,\n \"source_uri\" TEXT,\n \"channel\" TEXT DEFAULT 'web',\n \"promoted_asset_id\" UUID,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -1247,6 +1251,11 @@
|
|
|
1247
1251
|
"extendsTypeArg": "ContentContributionRevision",
|
|
1248
1252
|
"exportName": "ContentContributionRevisionCollection",
|
|
1249
1253
|
"collectionExportName": "ContentContributionRevisionCollectionCollection",
|
|
1254
|
+
"collectionOf": "@happyvertical/smrt-content:ContentContributionRevision",
|
|
1255
|
+
"inheritedExposure": [
|
|
1256
|
+
"api",
|
|
1257
|
+
"mcp"
|
|
1258
|
+
],
|
|
1250
1259
|
"schema": {
|
|
1251
1260
|
"tableName": "content_contribution_revisions",
|
|
1252
1261
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_contribution_revisions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"contribution_id\" UUID NOT NULL,\n \"revision_number\" INTEGER NOT NULL DEFAULT 1,\n \"channel\" TEXT DEFAULT 'web',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"source_message_id\" UUID,\n \"source_thread_key\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -1790,6 +1799,11 @@
|
|
|
1790
1799
|
"extendsTypeArg": "ContentContributionType",
|
|
1791
1800
|
"exportName": "ContentContributionTypeCollection",
|
|
1792
1801
|
"collectionExportName": "ContentContributionTypeCollectionCollection",
|
|
1802
|
+
"collectionOf": "@happyvertical/smrt-content:ContentContributionType",
|
|
1803
|
+
"inheritedExposure": [
|
|
1804
|
+
"api",
|
|
1805
|
+
"mcp"
|
|
1806
|
+
],
|
|
1793
1807
|
"schema": {
|
|
1794
1808
|
"tableName": "content_contribution_types",
|
|
1795
1809
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_contribution_types\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"key\" TEXT NOT NULL,\n \"label\" TEXT,\n \"enabled\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"allowed_channels\" TEXT,\n \"allow_text\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"allow_files\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"allow_empty_text\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"intake_rules\" TEXT,\n \"promotion\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -2659,6 +2673,7 @@
|
|
|
2659
2673
|
"extendsTypeArg": "ContentContribution",
|
|
2660
2674
|
"exportName": "ContentContributions",
|
|
2661
2675
|
"collectionExportName": "ContentContributionsCollection",
|
|
2676
|
+
"collectionOf": "@happyvertical/smrt-content:ContentContribution",
|
|
2662
2677
|
"schema": {
|
|
2663
2678
|
"tableName": "content_contributions",
|
|
2664
2679
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_contributions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"contributor_id\" UUID NOT NULL,\n \"contribution_type_key\" TEXT NOT NULL,\n \"status\" TEXT DEFAULT 'submitted',\n \"intake_decision\" TEXT DEFAULT 'accepted',\n \"channel\" TEXT DEFAULT 'web',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"contributor_email\" TEXT,\n \"contributor_name\" TEXT,\n \"thread_key\" TEXT,\n \"source_message_id\" UUID,\n \"editor_notes\" TEXT,\n \"promoted_content_id\" UUID,\n \"revision_count\" INTEGER NOT NULL DEFAULT 0,\n \"approved_at\" TIMESTAMP,\n \"promoted_at\" TIMESTAMP,\n \"rejected_at\" TIMESTAMP,\n \"withdrawn_at\" TIMESTAMP,\n \"requested_changes_at\" TIMESTAMP,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -2959,6 +2974,7 @@
|
|
|
2959
2974
|
"decoratorConfig": {
|
|
2960
2975
|
"tableName": "content_contributors",
|
|
2961
2976
|
"conflictColumns": [
|
|
2977
|
+
"tenant_id",
|
|
2962
2978
|
"email"
|
|
2963
2979
|
],
|
|
2964
2980
|
"api": {
|
|
@@ -3062,11 +3078,13 @@
|
|
|
3062
3078
|
},
|
|
3063
3079
|
"indexes": [
|
|
3064
3080
|
{
|
|
3065
|
-
"name": "
|
|
3081
|
+
"name": "content_contributors_tenant_id_email_idx",
|
|
3066
3082
|
"columns": [
|
|
3083
|
+
"tenant_id",
|
|
3067
3084
|
"email"
|
|
3068
3085
|
],
|
|
3069
|
-
"unique": true
|
|
3086
|
+
"unique": true,
|
|
3087
|
+
"nullsNotDistinct": true
|
|
3070
3088
|
},
|
|
3071
3089
|
{
|
|
3072
3090
|
"name": "content_contributors_slug_context_idx",
|
|
@@ -3110,6 +3128,14 @@
|
|
|
3110
3128
|
"name": "email",
|
|
3111
3129
|
"type": "string",
|
|
3112
3130
|
"optional": false
|
|
3131
|
+
},
|
|
3132
|
+
{
|
|
3133
|
+
"name": "options",
|
|
3134
|
+
"type": "object",
|
|
3135
|
+
"optional": true,
|
|
3136
|
+
"memberTypes": [
|
|
3137
|
+
"string | null"
|
|
3138
|
+
]
|
|
3113
3139
|
}
|
|
3114
3140
|
],
|
|
3115
3141
|
"returnType": "Promise<ContentContributor | null>",
|
|
@@ -3152,6 +3178,7 @@
|
|
|
3152
3178
|
"decoratorConfig": {
|
|
3153
3179
|
"tableName": "content_contributors",
|
|
3154
3180
|
"conflictColumns": [
|
|
3181
|
+
"tenant_id",
|
|
3155
3182
|
"email"
|
|
3156
3183
|
],
|
|
3157
3184
|
"api": {
|
|
@@ -3181,6 +3208,7 @@
|
|
|
3181
3208
|
"extendsTypeArg": "ContentContributor",
|
|
3182
3209
|
"exportName": "ContentContributorCollection",
|
|
3183
3210
|
"collectionExportName": "ContentContributorCollectionCollection",
|
|
3211
|
+
"collectionOf": "@happyvertical/smrt-content:ContentContributor",
|
|
3184
3212
|
"schema": {
|
|
3185
3213
|
"tableName": "content_contributors",
|
|
3186
3214
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_contributors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"profile_id\" UUID,\n \"email\" TEXT NOT NULL,\n \"name\" TEXT,\n \"trust_level\" TEXT DEFAULT 'standard',\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -3246,11 +3274,13 @@
|
|
|
3246
3274
|
},
|
|
3247
3275
|
"indexes": [
|
|
3248
3276
|
{
|
|
3249
|
-
"name": "
|
|
3277
|
+
"name": "content_contributors_tenant_id_email_idx",
|
|
3250
3278
|
"columns": [
|
|
3279
|
+
"tenant_id",
|
|
3251
3280
|
"email"
|
|
3252
3281
|
],
|
|
3253
|
-
"unique": true
|
|
3282
|
+
"unique": true,
|
|
3283
|
+
"nullsNotDistinct": true
|
|
3254
3284
|
},
|
|
3255
3285
|
{
|
|
3256
3286
|
"name": "content_contributors_slug_context_idx",
|
|
@@ -3705,6 +3735,7 @@
|
|
|
3705
3735
|
"extendsTypeArg": "ContentCorrection",
|
|
3706
3736
|
"exportName": "ContentCorrectionCollection",
|
|
3707
3737
|
"collectionExportName": "ContentCorrectionCollectionCollection",
|
|
3738
|
+
"collectionOf": "@happyvertical/smrt-content:ContentCorrection",
|
|
3708
3739
|
"schema": {
|
|
3709
3740
|
"tableName": "content_corrections",
|
|
3710
3741
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_corrections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"content_id\" UUID NOT NULL,\n \"content_version_id\" UUID,\n \"fact_id\" UUID,\n \"replacement_fact_id\" UUID,\n \"correction_type\" TEXT DEFAULT 'fact',\n \"status\" TEXT DEFAULT 'draft',\n \"summary\" TEXT,\n \"incorrect_text\" TEXT,\n \"corrected_text\" TEXT,\n \"public_note\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID,\n \"published_at\" TIMESTAMP\n);",
|
|
@@ -4365,6 +4396,11 @@
|
|
|
4365
4396
|
"extendsTypeArg": "ContentFeedSource",
|
|
4366
4397
|
"exportName": "ContentFeedSourceCollection",
|
|
4367
4398
|
"collectionExportName": "ContentFeedSourceCollectionCollection",
|
|
4399
|
+
"collectionOf": "@happyvertical/smrt-content:ContentFeedSource",
|
|
4400
|
+
"inheritedExposure": [
|
|
4401
|
+
"api",
|
|
4402
|
+
"mcp"
|
|
4403
|
+
],
|
|
4368
4404
|
"schema": {
|
|
4369
4405
|
"tableName": "content_feed_sources",
|
|
4370
4406
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_feed_sources\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT NOT NULL,\n \"feed_url\" TEXT NOT NULL,\n \"homepage_url\" TEXT,\n \"format\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"default_category\" TEXT,\n \"source_group\" TEXT,\n \"poll_interval_minutes\" INTEGER NOT NULL DEFAULT 15,\n \"etag\" TEXT,\n \"last_modified\" TEXT,\n \"last_fetched_at\" TIMESTAMP,\n \"last_success_at\" TIMESTAMP,\n \"last_error\" TEXT,\n \"metadata\" JSON DEFAULT '{}'\n);",
|
|
@@ -4618,6 +4654,7 @@
|
|
|
4618
4654
|
"decoratorConfig": {
|
|
4619
4655
|
"tableName": "content_governance_assignments",
|
|
4620
4656
|
"conflictColumns": [
|
|
4657
|
+
"tenant_id",
|
|
4621
4658
|
"key"
|
|
4622
4659
|
],
|
|
4623
4660
|
"api": {
|
|
@@ -4784,11 +4821,13 @@
|
|
|
4784
4821
|
},
|
|
4785
4822
|
"indexes": [
|
|
4786
4823
|
{
|
|
4787
|
-
"name": "
|
|
4824
|
+
"name": "content_governance_assignments_tenant_id_key_idx",
|
|
4788
4825
|
"columns": [
|
|
4826
|
+
"tenant_id",
|
|
4789
4827
|
"key"
|
|
4790
4828
|
],
|
|
4791
|
-
"unique": true
|
|
4829
|
+
"unique": true,
|
|
4830
|
+
"nullsNotDistinct": true
|
|
4792
4831
|
},
|
|
4793
4832
|
{
|
|
4794
4833
|
"name": "content_governance_assignments_slug_context_idx",
|
|
@@ -4826,6 +4865,14 @@
|
|
|
4826
4865
|
"name": "key",
|
|
4827
4866
|
"type": "string",
|
|
4828
4867
|
"optional": false
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
"name": "options",
|
|
4871
|
+
"type": "object",
|
|
4872
|
+
"optional": true,
|
|
4873
|
+
"memberTypes": [
|
|
4874
|
+
"string | null"
|
|
4875
|
+
]
|
|
4829
4876
|
}
|
|
4830
4877
|
],
|
|
4831
4878
|
"returnType": "Promise<ContentGovernanceAssignment | null>",
|
|
@@ -4876,6 +4923,11 @@
|
|
|
4876
4923
|
"extendsTypeArg": "ContentGovernanceAssignment",
|
|
4877
4924
|
"exportName": "ContentGovernanceAssignmentCollection",
|
|
4878
4925
|
"collectionExportName": "ContentGovernanceAssignmentCollectionCollection",
|
|
4926
|
+
"collectionOf": "@happyvertical/smrt-content:ContentGovernanceAssignment",
|
|
4927
|
+
"inheritedExposure": [
|
|
4928
|
+
"api",
|
|
4929
|
+
"mcp"
|
|
4930
|
+
],
|
|
4879
4931
|
"schema": {
|
|
4880
4932
|
"tableName": "content_governance_assignments",
|
|
4881
4933
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_governance_assignments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"key\" TEXT NOT NULL,\n \"label\" TEXT,\n \"content_type\" TEXT NOT NULL,\n \"content_variant\" TEXT,\n \"enabled\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"fact_linking_enabled\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"transparency_enabled\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"publication_profile_key\" TEXT,\n \"correction_profile_key\" TEXT,\n \"enforce_publish_readiness\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"default_fact_relationship\" TEXT DEFAULT 'supports',\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -4979,11 +5031,13 @@
|
|
|
4979
5031
|
},
|
|
4980
5032
|
"indexes": [
|
|
4981
5033
|
{
|
|
4982
|
-
"name": "
|
|
5034
|
+
"name": "content_governance_assignments_tenant_id_key_idx",
|
|
4983
5035
|
"columns": [
|
|
5036
|
+
"tenant_id",
|
|
4984
5037
|
"key"
|
|
4985
5038
|
],
|
|
4986
|
-
"unique": true
|
|
5039
|
+
"unique": true,
|
|
5040
|
+
"nullsNotDistinct": true
|
|
4987
5041
|
},
|
|
4988
5042
|
{
|
|
4989
5043
|
"name": "content_governance_assignments_slug_context_idx",
|
|
@@ -5021,6 +5075,14 @@
|
|
|
5021
5075
|
"name": "key",
|
|
5022
5076
|
"type": "string",
|
|
5023
5077
|
"optional": false
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
"name": "options",
|
|
5081
|
+
"type": "object",
|
|
5082
|
+
"optional": true,
|
|
5083
|
+
"memberTypes": [
|
|
5084
|
+
"string | null"
|
|
5085
|
+
]
|
|
5024
5086
|
}
|
|
5025
5087
|
],
|
|
5026
5088
|
"returnType": "Promise<ContentGovernancePolicy | null>",
|
|
@@ -5053,6 +5115,11 @@
|
|
|
5053
5115
|
"extendsTypeArg": "ContentGovernancePolicy",
|
|
5054
5116
|
"exportName": "ContentGovernancePolicyCollection",
|
|
5055
5117
|
"collectionExportName": "ContentGovernancePolicyCollectionCollection",
|
|
5118
|
+
"collectionOf": "@happyvertical/smrt-content:ContentGovernancePolicy",
|
|
5119
|
+
"inheritedExposure": [
|
|
5120
|
+
"api",
|
|
5121
|
+
"mcp"
|
|
5122
|
+
],
|
|
5056
5123
|
"schema": {
|
|
5057
5124
|
"tableName": "content_governance_policies",
|
|
5058
5125
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_governance_policies\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"key\" TEXT NOT NULL,\n \"label\" TEXT,\n \"kind\" TEXT DEFAULT 'custom',\n \"instructions\" TEXT,\n \"enabled\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -5123,11 +5190,13 @@
|
|
|
5123
5190
|
},
|
|
5124
5191
|
"indexes": [
|
|
5125
5192
|
{
|
|
5126
|
-
"name": "
|
|
5193
|
+
"name": "content_governance_policies_tenant_id_key_idx",
|
|
5127
5194
|
"columns": [
|
|
5195
|
+
"tenant_id",
|
|
5128
5196
|
"key"
|
|
5129
5197
|
],
|
|
5130
|
-
"unique": true
|
|
5198
|
+
"unique": true,
|
|
5199
|
+
"nullsNotDistinct": true
|
|
5131
5200
|
},
|
|
5132
5201
|
{
|
|
5133
5202
|
"name": "content_governance_policies_slug_context_idx",
|
|
@@ -5246,6 +5315,7 @@
|
|
|
5246
5315
|
"decoratorConfig": {
|
|
5247
5316
|
"tableName": "content_governance_policies",
|
|
5248
5317
|
"conflictColumns": [
|
|
5318
|
+
"tenant_id",
|
|
5249
5319
|
"key"
|
|
5250
5320
|
],
|
|
5251
5321
|
"api": {
|
|
@@ -5359,11 +5429,13 @@
|
|
|
5359
5429
|
},
|
|
5360
5430
|
"indexes": [
|
|
5361
5431
|
{
|
|
5362
|
-
"name": "
|
|
5432
|
+
"name": "content_governance_policies_tenant_id_key_idx",
|
|
5363
5433
|
"columns": [
|
|
5434
|
+
"tenant_id",
|
|
5364
5435
|
"key"
|
|
5365
5436
|
],
|
|
5366
|
-
"unique": true
|
|
5437
|
+
"unique": true,
|
|
5438
|
+
"nullsNotDistinct": true
|
|
5367
5439
|
},
|
|
5368
5440
|
{
|
|
5369
5441
|
"name": "content_governance_policies_slug_context_idx",
|
|
@@ -5484,6 +5556,7 @@
|
|
|
5484
5556
|
"decoratorConfig": {
|
|
5485
5557
|
"tableName": "content_governance_profiles",
|
|
5486
5558
|
"conflictColumns": [
|
|
5559
|
+
"tenant_id",
|
|
5487
5560
|
"key"
|
|
5488
5561
|
],
|
|
5489
5562
|
"api": {
|
|
@@ -5596,11 +5669,13 @@
|
|
|
5596
5669
|
},
|
|
5597
5670
|
"indexes": [
|
|
5598
5671
|
{
|
|
5599
|
-
"name": "
|
|
5672
|
+
"name": "content_governance_profiles_tenant_id_key_idx",
|
|
5600
5673
|
"columns": [
|
|
5674
|
+
"tenant_id",
|
|
5601
5675
|
"key"
|
|
5602
5676
|
],
|
|
5603
|
-
"unique": true
|
|
5677
|
+
"unique": true,
|
|
5678
|
+
"nullsNotDistinct": true
|
|
5604
5679
|
},
|
|
5605
5680
|
{
|
|
5606
5681
|
"name": "content_governance_profiles_slug_context_idx",
|
|
@@ -5638,6 +5713,14 @@
|
|
|
5638
5713
|
"name": "key",
|
|
5639
5714
|
"type": "string",
|
|
5640
5715
|
"optional": false
|
|
5716
|
+
},
|
|
5717
|
+
{
|
|
5718
|
+
"name": "options",
|
|
5719
|
+
"type": "object",
|
|
5720
|
+
"optional": true,
|
|
5721
|
+
"memberTypes": [
|
|
5722
|
+
"string | null"
|
|
5723
|
+
]
|
|
5641
5724
|
}
|
|
5642
5725
|
],
|
|
5643
5726
|
"returnType": "Promise<ContentGovernanceProfile | null>",
|
|
@@ -5670,6 +5753,11 @@
|
|
|
5670
5753
|
"extendsTypeArg": "ContentGovernanceProfile",
|
|
5671
5754
|
"exportName": "ContentGovernanceProfileCollection",
|
|
5672
5755
|
"collectionExportName": "ContentGovernanceProfileCollectionCollection",
|
|
5756
|
+
"collectionOf": "@happyvertical/smrt-content:ContentGovernanceProfile",
|
|
5757
|
+
"inheritedExposure": [
|
|
5758
|
+
"api",
|
|
5759
|
+
"mcp"
|
|
5760
|
+
],
|
|
5673
5761
|
"schema": {
|
|
5674
5762
|
"tableName": "content_governance_profiles",
|
|
5675
5763
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_governance_profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"key\" TEXT NOT NULL,\n \"label\" TEXT,\n \"description\" TEXT,\n \"enabled\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"requirements\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -5739,11 +5827,13 @@
|
|
|
5739
5827
|
},
|
|
5740
5828
|
"indexes": [
|
|
5741
5829
|
{
|
|
5742
|
-
"name": "
|
|
5830
|
+
"name": "content_governance_profiles_tenant_id_key_idx",
|
|
5743
5831
|
"columns": [
|
|
5832
|
+
"tenant_id",
|
|
5744
5833
|
"key"
|
|
5745
5834
|
],
|
|
5746
|
-
"unique": true
|
|
5835
|
+
"unique": true,
|
|
5836
|
+
"nullsNotDistinct": true
|
|
5747
5837
|
},
|
|
5748
5838
|
{
|
|
5749
5839
|
"name": "content_governance_profiles_slug_context_idx",
|
|
@@ -6055,7 +6145,8 @@
|
|
|
6055
6145
|
{
|
|
6056
6146
|
"name": "opts",
|
|
6057
6147
|
"type": "JunctionAttachOptions",
|
|
6058
|
-
"optional": true
|
|
6148
|
+
"optional": true,
|
|
6149
|
+
"resolvedType": "Record<string, unknown>"
|
|
6059
6150
|
}
|
|
6060
6151
|
],
|
|
6061
6152
|
"returnType": "Promise<void>",
|
|
@@ -6117,6 +6208,7 @@
|
|
|
6117
6208
|
"extendsTypeArg": "ContentReference",
|
|
6118
6209
|
"exportName": "ContentReferences",
|
|
6119
6210
|
"collectionExportName": "ContentReferencesCollection",
|
|
6211
|
+
"collectionOf": "@happyvertical/smrt-content:ContentReference",
|
|
6120
6212
|
"schema": {
|
|
6121
6213
|
"tableName": "content_references",
|
|
6122
6214
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_references\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"source_id\" UUID NOT NULL,\n \"target_id\" UUID NOT NULL,\n \"target_version\" INTEGER\n);",
|
|
@@ -6656,6 +6748,11 @@
|
|
|
6656
6748
|
"extendsTypeArg": "ContentReview",
|
|
6657
6749
|
"exportName": "ContentReviewCollection",
|
|
6658
6750
|
"collectionExportName": "ContentReviewCollectionCollection",
|
|
6751
|
+
"collectionOf": "@happyvertical/smrt-content:ContentReview",
|
|
6752
|
+
"inheritedExposure": [
|
|
6753
|
+
"api",
|
|
6754
|
+
"mcp"
|
|
6755
|
+
],
|
|
6659
6756
|
"schema": {
|
|
6660
6757
|
"tableName": "content_reviews",
|
|
6661
6758
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_reviews\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"content_id\" UUID NOT NULL,\n \"content_version_id\" UUID,\n \"kind\" TEXT DEFAULT 'custom',\n \"policy_key\" TEXT,\n \"status\" TEXT DEFAULT 'pending',\n \"summary\" TEXT,\n \"findings\" TEXT,\n \"reviewer\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -7251,7 +7348,8 @@
|
|
|
7251
7348
|
{
|
|
7252
7349
|
"name": "options",
|
|
7253
7350
|
"type": "FactAuditResourceRepairOptions",
|
|
7254
|
-
"optional": true
|
|
7351
|
+
"optional": true,
|
|
7352
|
+
"resolvedType": "object"
|
|
7255
7353
|
}
|
|
7256
7354
|
],
|
|
7257
7355
|
"returnType": "any",
|
|
@@ -7265,7 +7363,8 @@
|
|
|
7265
7363
|
{
|
|
7266
7364
|
"name": "options",
|
|
7267
7365
|
"type": "FactAuditResourceRepairOptions",
|
|
7268
|
-
"optional": true
|
|
7366
|
+
"optional": true,
|
|
7367
|
+
"resolvedType": "object"
|
|
7269
7368
|
}
|
|
7270
7369
|
],
|
|
7271
7370
|
"returnType": "any",
|
|
@@ -7279,7 +7378,8 @@
|
|
|
7279
7378
|
{
|
|
7280
7379
|
"name": "options",
|
|
7281
7380
|
"type": "FactAuditClaimRecheckOptions",
|
|
7282
|
-
"optional": true
|
|
7381
|
+
"optional": true,
|
|
7382
|
+
"resolvedType": "object"
|
|
7283
7383
|
}
|
|
7284
7384
|
],
|
|
7285
7385
|
"returnType": "any",
|
|
@@ -7293,7 +7393,8 @@
|
|
|
7293
7393
|
{
|
|
7294
7394
|
"name": "options",
|
|
7295
7395
|
"type": "FactAuditClaimRecheckOptions",
|
|
7296
|
-
"optional": true
|
|
7396
|
+
"optional": true,
|
|
7397
|
+
"resolvedType": "object"
|
|
7297
7398
|
}
|
|
7298
7399
|
],
|
|
7299
7400
|
"returnType": "any",
|
|
@@ -7307,7 +7408,8 @@
|
|
|
7307
7408
|
{
|
|
7308
7409
|
"name": "options",
|
|
7309
7410
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
7310
|
-
"optional": true
|
|
7411
|
+
"optional": true,
|
|
7412
|
+
"resolvedType": "object"
|
|
7311
7413
|
}
|
|
7312
7414
|
],
|
|
7313
7415
|
"returnType": "any",
|
|
@@ -7321,7 +7423,8 @@
|
|
|
7321
7423
|
{
|
|
7322
7424
|
"name": "options",
|
|
7323
7425
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
7324
|
-
"optional": true
|
|
7426
|
+
"optional": true,
|
|
7427
|
+
"resolvedType": "object"
|
|
7325
7428
|
}
|
|
7326
7429
|
],
|
|
7327
7430
|
"returnType": "any",
|
|
@@ -8595,7 +8698,8 @@
|
|
|
8595
8698
|
{
|
|
8596
8699
|
"name": "options",
|
|
8597
8700
|
"type": "FactAuditResourceRepairOptions",
|
|
8598
|
-
"optional": true
|
|
8701
|
+
"optional": true,
|
|
8702
|
+
"resolvedType": "object"
|
|
8599
8703
|
}
|
|
8600
8704
|
],
|
|
8601
8705
|
"returnType": "any",
|
|
@@ -8609,7 +8713,8 @@
|
|
|
8609
8713
|
{
|
|
8610
8714
|
"name": "options",
|
|
8611
8715
|
"type": "FactAuditResourceRepairOptions",
|
|
8612
|
-
"optional": true
|
|
8716
|
+
"optional": true,
|
|
8717
|
+
"resolvedType": "object"
|
|
8613
8718
|
}
|
|
8614
8719
|
],
|
|
8615
8720
|
"returnType": "any",
|
|
@@ -8623,7 +8728,8 @@
|
|
|
8623
8728
|
{
|
|
8624
8729
|
"name": "options",
|
|
8625
8730
|
"type": "FactAuditClaimRecheckOptions",
|
|
8626
|
-
"optional": true
|
|
8731
|
+
"optional": true,
|
|
8732
|
+
"resolvedType": "object"
|
|
8627
8733
|
}
|
|
8628
8734
|
],
|
|
8629
8735
|
"returnType": "any",
|
|
@@ -8637,7 +8743,8 @@
|
|
|
8637
8743
|
{
|
|
8638
8744
|
"name": "options",
|
|
8639
8745
|
"type": "FactAuditClaimRecheckOptions",
|
|
8640
|
-
"optional": true
|
|
8746
|
+
"optional": true,
|
|
8747
|
+
"resolvedType": "object"
|
|
8641
8748
|
}
|
|
8642
8749
|
],
|
|
8643
8750
|
"returnType": "any",
|
|
@@ -8651,7 +8758,8 @@
|
|
|
8651
8758
|
{
|
|
8652
8759
|
"name": "options",
|
|
8653
8760
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
8654
|
-
"optional": true
|
|
8761
|
+
"optional": true,
|
|
8762
|
+
"resolvedType": "object"
|
|
8655
8763
|
}
|
|
8656
8764
|
],
|
|
8657
8765
|
"returnType": "any",
|
|
@@ -8665,7 +8773,8 @@
|
|
|
8665
8773
|
{
|
|
8666
8774
|
"name": "options",
|
|
8667
8775
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
8668
|
-
"optional": true
|
|
8776
|
+
"optional": true,
|
|
8777
|
+
"resolvedType": "object"
|
|
8669
8778
|
}
|
|
8670
8779
|
],
|
|
8671
8780
|
"returnType": "any",
|
|
@@ -9968,7 +10077,8 @@
|
|
|
9968
10077
|
{
|
|
9969
10078
|
"name": "options",
|
|
9970
10079
|
"type": "FactAuditResourceRepairOptions",
|
|
9971
|
-
"optional": true
|
|
10080
|
+
"optional": true,
|
|
10081
|
+
"resolvedType": "object"
|
|
9972
10082
|
}
|
|
9973
10083
|
],
|
|
9974
10084
|
"returnType": "any",
|
|
@@ -9982,7 +10092,8 @@
|
|
|
9982
10092
|
{
|
|
9983
10093
|
"name": "options",
|
|
9984
10094
|
"type": "FactAuditResourceRepairOptions",
|
|
9985
|
-
"optional": true
|
|
10095
|
+
"optional": true,
|
|
10096
|
+
"resolvedType": "object"
|
|
9986
10097
|
}
|
|
9987
10098
|
],
|
|
9988
10099
|
"returnType": "any",
|
|
@@ -9996,7 +10107,8 @@
|
|
|
9996
10107
|
{
|
|
9997
10108
|
"name": "options",
|
|
9998
10109
|
"type": "FactAuditClaimRecheckOptions",
|
|
9999
|
-
"optional": true
|
|
10110
|
+
"optional": true,
|
|
10111
|
+
"resolvedType": "object"
|
|
10000
10112
|
}
|
|
10001
10113
|
],
|
|
10002
10114
|
"returnType": "any",
|
|
@@ -10010,7 +10122,8 @@
|
|
|
10010
10122
|
{
|
|
10011
10123
|
"name": "options",
|
|
10012
10124
|
"type": "FactAuditClaimRecheckOptions",
|
|
10013
|
-
"optional": true
|
|
10125
|
+
"optional": true,
|
|
10126
|
+
"resolvedType": "object"
|
|
10014
10127
|
}
|
|
10015
10128
|
],
|
|
10016
10129
|
"returnType": "any",
|
|
@@ -10024,7 +10137,8 @@
|
|
|
10024
10137
|
{
|
|
10025
10138
|
"name": "options",
|
|
10026
10139
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
10027
|
-
"optional": true
|
|
10140
|
+
"optional": true,
|
|
10141
|
+
"resolvedType": "object"
|
|
10028
10142
|
}
|
|
10029
10143
|
],
|
|
10030
10144
|
"returnType": "any",
|
|
@@ -10038,7 +10152,8 @@
|
|
|
10038
10152
|
{
|
|
10039
10153
|
"name": "options",
|
|
10040
10154
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
10041
|
-
"optional": true
|
|
10155
|
+
"optional": true,
|
|
10156
|
+
"resolvedType": "object"
|
|
10042
10157
|
}
|
|
10043
10158
|
],
|
|
10044
10159
|
"returnType": "any",
|
|
@@ -11314,6 +11429,11 @@
|
|
|
11314
11429
|
"extendsTypeArg": "ContentVersion",
|
|
11315
11430
|
"exportName": "ContentVersionCollection",
|
|
11316
11431
|
"collectionExportName": "ContentVersionCollectionCollection",
|
|
11432
|
+
"collectionOf": "@happyvertical/smrt-content:ContentVersion",
|
|
11433
|
+
"inheritedExposure": [
|
|
11434
|
+
"api",
|
|
11435
|
+
"mcp"
|
|
11436
|
+
],
|
|
11317
11437
|
"schema": {
|
|
11318
11438
|
"tableName": "content_versions",
|
|
11319
11439
|
"ddl": "CREATE TABLE IF NOT EXISTS \"content_versions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"content_id\" UUID NOT NULL,\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"kind\" TEXT DEFAULT 'manual',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"status\" TEXT,\n \"summary\" TEXT,\n \"snapshot\" TEXT,\n \"metadata\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
@@ -11903,7 +12023,8 @@
|
|
|
11903
12023
|
{
|
|
11904
12024
|
"name": "options",
|
|
11905
12025
|
"type": "FactAuditResourceRepairOptions",
|
|
11906
|
-
"optional": true
|
|
12026
|
+
"optional": true,
|
|
12027
|
+
"resolvedType": "object"
|
|
11907
12028
|
}
|
|
11908
12029
|
],
|
|
11909
12030
|
"returnType": "any",
|
|
@@ -11917,7 +12038,8 @@
|
|
|
11917
12038
|
{
|
|
11918
12039
|
"name": "options",
|
|
11919
12040
|
"type": "FactAuditResourceRepairOptions",
|
|
11920
|
-
"optional": true
|
|
12041
|
+
"optional": true,
|
|
12042
|
+
"resolvedType": "object"
|
|
11921
12043
|
}
|
|
11922
12044
|
],
|
|
11923
12045
|
"returnType": "any",
|
|
@@ -11931,7 +12053,8 @@
|
|
|
11931
12053
|
{
|
|
11932
12054
|
"name": "options",
|
|
11933
12055
|
"type": "FactAuditClaimRecheckOptions",
|
|
11934
|
-
"optional": true
|
|
12056
|
+
"optional": true,
|
|
12057
|
+
"resolvedType": "object"
|
|
11935
12058
|
}
|
|
11936
12059
|
],
|
|
11937
12060
|
"returnType": "any",
|
|
@@ -11945,7 +12068,8 @@
|
|
|
11945
12068
|
{
|
|
11946
12069
|
"name": "options",
|
|
11947
12070
|
"type": "FactAuditClaimRecheckOptions",
|
|
11948
|
-
"optional": true
|
|
12071
|
+
"optional": true,
|
|
12072
|
+
"resolvedType": "object"
|
|
11949
12073
|
}
|
|
11950
12074
|
],
|
|
11951
12075
|
"returnType": "any",
|
|
@@ -11959,7 +12083,8 @@
|
|
|
11959
12083
|
{
|
|
11960
12084
|
"name": "options",
|
|
11961
12085
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
11962
|
-
"optional": true
|
|
12086
|
+
"optional": true,
|
|
12087
|
+
"resolvedType": "object"
|
|
11963
12088
|
}
|
|
11964
12089
|
],
|
|
11965
12090
|
"returnType": "any",
|
|
@@ -11973,7 +12098,8 @@
|
|
|
11973
12098
|
{
|
|
11974
12099
|
"name": "options",
|
|
11975
12100
|
"type": "FactEvidenceStatusUpdateOptions",
|
|
11976
|
-
"optional": true
|
|
12101
|
+
"optional": true,
|
|
12102
|
+
"resolvedType": "object"
|
|
11977
12103
|
}
|
|
11978
12104
|
],
|
|
11979
12105
|
"returnType": "any",
|
|
@@ -13186,6 +13312,7 @@
|
|
|
13186
13312
|
"extendsTypeArg": "Content",
|
|
13187
13313
|
"exportName": "Contents",
|
|
13188
13314
|
"collectionExportName": "ContentsCollection",
|
|
13315
|
+
"collectionOf": "@happyvertical/smrt-content:Content",
|
|
13189
13316
|
"validationRules": [
|
|
13190
13317
|
{
|
|
13191
13318
|
"field": "loaded",
|
package/dist/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as assertContentQuerySchema, t as CONTENT_QUERY_CLASS_NAME, v as buildContentQuerySchema, w as Content, x as executeContentQuery } from "./chunks/content-query-
|
|
1
|
+
import { _ as assertContentQuerySchema, t as CONTENT_QUERY_CLASS_NAME, v as buildContentQuerySchema, w as Content, x as executeContentQuery } from "./chunks/content-query-Czbqgdy-.js";
|
|
2
2
|
import { MAX_DATA_QUERY_PAGE_LIMIT, createDataQueryFingerprint, normalizeDataQueryRequest, startRestServer } from "@happyvertical/smrt-core";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|