@happyvertical/smrt-content 0.40.20 → 0.40.21
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/dist/index.js +401 -1363
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +5 -5
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/__smrt-register__.ts
|
|
40
|
-
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":1784620063422,\"packageName\":\"@happyvertical/smrt-content\",\"packageVersion\":\"0.40.20\",\"objects\":{\"@happyvertical/smrt-content:ContentAsset\":{\"name\":\"contentasset\",\"className\":\"ContentAsset\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentAsset\",\"collection\":\"contentassets\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-asset.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"assetId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"relationship\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"sortOrder\":{\"type\":\"integer\",\"required\":true,\"default\":0}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"content_assets\",\"conflictColumns\":[\"content_id\",\"asset_id\",\"relationship\"],\"api\":false,\"mcp\":false,\"cli\":false,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentAsset\",\"collectionExportName\":\"ContentAssetCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"assetId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"relationship\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"sortOrder\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_assets\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"relationship\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"sort_order\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0}},\"indexes\":[{\"name\":\"content_assets_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_assets_content_id_asset_id_idx\",\"columns\":[\"content_id\",\"asset_id\",\"relationship\"],\"unique\":true}],\"version\":\"a201e9ef\"}},\"@happyvertical/smrt-content:ContentAssetCollection\":{\"name\":\"contentassetcollection\",\"className\":\"ContentAssetCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentAssetCollection\",\"collection\":\"contentassets\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-assets.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"content_assets\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"ContentAsset\",\"exportName\":\"ContentAssetCollection\",\"collectionExportName\":\"ContentAssetCollectionCollection\",\"schema\":{\"tableName\":\"content_assets\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_assets_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"35bf42e8\"}},\"@happyvertical/smrt-content:ContentContributionAttachment\":{\"name\":\"contentcontributionattachment\",\"className\":\"ContentContributionAttachment\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionAttachment\",\"collection\":\"contentcontributionattachments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-attachment.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributionId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContribution\",\"_meta\":{\"required\":true}},\"revisionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentContributionRevision\"},\"filename\":{\"type\":\"text\",\"required\":false},\"mimeType\":{\"type\":\"text\",\"required\":false},\"size\":{\"type\":\"integer\",\"required\":true,\"default\":0},\"fileKey\":{\"type\":\"text\",\"required\":false},\"sourceUri\":{\"type\":\"text\",\"required\":false},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"promotedAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_attachments\",\"conflictColumns\":[\"id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionAttachment\",\"collectionExportName\":\"ContentContributionAttachmentCollection\",\"validationRules\":[{\"field\":\"contributionId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"size\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contribution_attachments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contribution_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"revision_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"filename\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"mime_type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"size\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_uri\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"promoted_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"],\"unique\":true}],\"version\":\"0801b8fd\"}},\"@happyvertical/smrt-content:ContentContributionAttachmentCollection\":{\"name\":\"contentcontributionattachmentcollection\",\"className\":\"ContentContributionAttachmentCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionAttachmentCollection\",\"collection\":\"contentcontributionattachments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-attachments.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContribution\":{\"name\":\"listForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true},\"listForRevision\":{\"name\":\"listForRevision\",\"async\":true,\"parameters\":[{\"name\":\"revisionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_attachments\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionAttachment\",\"exportName\":\"ContentContributionAttachmentCollection\",\"collectionExportName\":\"ContentContributionAttachmentCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_attachments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_attachments_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"d0c8b33f\"}},\"@happyvertical/smrt-content:ContentContributionRevision\":{\"name\":\"contentcontributionrevision\",\"className\":\"ContentContributionRevision\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionRevision\",\"collection\":\"contentcontributionrevisions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-revision.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributionId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContribution\",\"_meta\":{\"required\":true}},\"revisionNumber\":{\"type\":\"integer\",\"required\":true,\"default\":1},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"sourceMessageId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-messages:Message\"},\"sourceThreadKey\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_revisions\",\"conflictColumns\":[\"contribution_id\",\"revision_number\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionRevision\",\"collectionExportName\":\"ContentContributionRevisionCollection\",\"validationRules\":[{\"field\":\"contributionId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"revisionNumber\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contribution_revisions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contribution_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"revision_number\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_message_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"source_thread_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_revisions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_revisions_contribution_id_revision_number_idx\",\"columns\":[\"contribution_id\",\"revision_number\"],\"unique\":true}],\"version\":\"66bf02f5\"}},\"@happyvertical/smrt-content:ContentContributionRevisionCollection\":{\"name\":\"contentcontributionrevisioncollection\",\"className\":\"ContentContributionRevisionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionRevisionCollection\",\"collection\":\"contentcontributionrevisions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-revisions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContribution\":{\"name\":\"listForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionRevision[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContribution\":{\"name\":\"getLatestForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionRevision | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_revisions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionRevision\",\"exportName\":\"ContentContributionRevisionCollection\",\"collectionExportName\":\"ContentContributionRevisionCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_revisions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_revisions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_revisions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"cc3e0dfa\"}},\"@happyvertical/smrt-content:ContentContributionType\":{\"name\":\"contentcontributiontype\",\"className\":\"ContentContributionType\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionType\",\"collection\":\"contentcontributiontypes\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-type.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"allowedChannels\":{\"type\":\"text\",\"required\":false},\"allowText\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"allowFiles\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"allowEmptyText\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"intakeRules\":{\"type\":\"text\",\"required\":false},\"promotion\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getAllowedChannels\":{\"name\":\"getAllowedChannels\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionChannel[]\",\"isStatic\":false,\"isPublic\":true},\"setAllowedChannels\":{\"name\":\"setAllowedChannels\",\"async\":false,\"parameters\":[{\"name\":\"channels\",\"type\":\"ContentContributionChannel[]\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getIntakeRules\":{\"name\":\"getIntakeRules\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionIntakeRules\",\"isStatic\":false,\"isPublic\":true},\"setIntakeRules\":{\"name\":\"setIntakeRules\",\"async\":false,\"parameters\":[{\"name\":\"rules\",\"type\":\"ContentContributionIntakeRules\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getPromotion\":{\"name\":\"getPromotion\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionPromotionMapping\",\"isStatic\":false,\"isPublic\":true},\"setPromotion\":{\"name\":\"setPromotion\",\"async\":false,\"parameters\":[{\"name\":\"promotion\",\"type\":\"ContentContributionPromotionMapping\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionTypeDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_types\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionType\",\"collectionExportName\":\"ContentContributionTypeCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowText\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowFiles\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowEmptyText\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_contribution_types\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"allowed_channels\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"allow_text\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"allow_files\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"allow_empty_text\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"intake_rules\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"promotion\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_types_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_types_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"35552300\"}},\"@happyvertical/smrt-content:ContentContributionTypeCollection\":{\"name\":\"contentcontributiontypecollection\",\"className\":\"ContentContributionTypeCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionTypeCollection\",\"collection\":\"contentcontributiontypes\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionType | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_types\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionType\",\"exportName\":\"ContentContributionTypeCollection\",\"collectionExportName\":\"ContentContributionTypeCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_types\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_types_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_types_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"9c9a0367\"}},\"@happyvertical/smrt-content:ContentContribution\":{\"name\":\"contentcontribution\",\"className\":\"ContentContribution\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContribution\",\"collection\":\"contentcontributions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributorId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContributor\",\"_meta\":{\"required\":true}},\"contributionTypeKey\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"submitted\"},\"intakeDecision\":{\"type\":\"text\",\"required\":false,\"default\":\"accepted\"},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"contributorEmail\":{\"type\":\"text\",\"required\":false},\"contributorName\":{\"type\":\"text\",\"required\":false},\"threadKey\":{\"type\":\"text\",\"required\":false},\"sourceMessageId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-messages:Message\"},\"editorNotes\":{\"type\":\"text\",\"required\":false},\"promotedContentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Content\"},\"revisionCount\":{\"type\":\"integer\",\"required\":true,\"default\":0},\"approvedAt\":{\"type\":\"datetime\",\"required\":false},\"promotedAt\":{\"type\":\"datetime\",\"required\":false},\"rejectedAt\":{\"type\":\"datetime\",\"required\":false},\"withdrawnAt\":{\"type\":\"datetime\",\"required\":false},\"requestedChangesAt\":{\"type\":\"datetime\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getContributor\":{\"name\":\"getContributor\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"getRevisions\":{\"name\":\"getRevisions\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionRevision[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestRevision\":{\"name\":\"getLatestRevision\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionRevision | null>\",\"isStatic\":false,\"isPublic\":true},\"getAttachments\":{\"name\":\"getAttachments\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true},\"resolveContributionType\":{\"name\":\"resolveContributionType\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionTypeDefinition | null>\",\"isStatic\":false,\"isPublic\":true},\"appendRevisionAction\":{\"name\":\"appendRevisionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AppendContentContributionRevisionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"requestChangesAction\":{\"name\":\"requestChangesAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RequestChangesContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"rejectAction\":{\"name\":\"rejectAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RejectContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"withdrawAction\":{\"name\":\"withdrawAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"WithdrawContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"approveAction\":{\"name\":\"approveAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ApproveContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"promoteAction\":{\"name\":\"promoteAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"PromoteContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributions\",\"conflictColumns\":[\"id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\",\"appendRevisionAction\",\"requestChangesAction\",\"approveAction\",\"rejectAction\",\"withdrawAction\",\"promoteAction\"],\"routes\":{\"appendRevisionAction\":{\"method\":\"POST\",\"path\":\"revisions\"},\"requestChangesAction\":{\"method\":\"POST\",\"path\":\"request-changes\"},\"approveAction\":{\"method\":\"POST\",\"path\":\"approve\"},\"rejectAction\":{\"method\":\"POST\",\"path\":\"reject\"},\"withdrawAction\":{\"method\":\"POST\",\"path\":\"withdraw\"},\"promoteAction\":{\"method\":\"POST\",\"path\":\"promote\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContribution\",\"collectionExportName\":\"ContentContributionCollection\",\"validationRules\":[{\"field\":\"contributorId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"contributionTypeKey\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"revisionCount\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contributions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contributor_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"contribution_type_key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"submitted\"},\"intake_decision\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"accepted\"},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"contributor_email\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"contributor_name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"thread_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_message_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"editor_notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"promoted_content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"revision_count\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0},\"approved_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"promoted_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"rejected_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"withdrawn_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"requested_changes_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"],\"unique\":true}],\"version\":\"0fdc1992\"}},\"@happyvertical/smrt-content:ContentContributions\":{\"name\":\"contentcontributions\",\"className\":\"ContentContributions\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributions\",\"collection\":\"contentcontributions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getContributionTypesAction\":{\"name\":\"getContributionTypesAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listForContributor\":{\"name\":\"listForContributor\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listInboxAction\":{\"name\":\"listInboxAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<ContentContribution[]>\",\"isStatic\":false,\"isPublic\":true},\"submitWebContribution\":{\"name\":\"submitWebContribution\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"SubmitWebContentContributionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"ingestEmailContribution\":{\"name\":\"ingestEmailContribution\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IngestEmailContentContributionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"submitWebContribution\",\"ingestEmailContribution\",\"listForContributor\",\"listInboxAction\",\"getContributionTypesAction\"],\"routes\":{\"submitWebContribution\":{\"scope\":\"collection\",\"method\":\"POST\",\"path\":\"submit\"},\"ingestEmailContribution\":{\"scope\":\"collection\",\"method\":\"POST\",\"path\":\"ingest-email\"},\"listForContributor\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"by-contributor\"},\"listInboxAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"inbox\"},\"getContributionTypesAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"types\"}}},\"mcp\":false,\"cli\":false,\"tableName\":\"content_contributions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContribution\",\"exportName\":\"ContentContributions\",\"collectionExportName\":\"ContentContributionsCollection\",\"schema\":{\"tableName\":\"content_contributions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"641c0cc8\"}},\"@happyvertical/smrt-content:ContentContributor\":{\"name\":\"contentcontributor\",\"className\":\"ContentContributor\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributor\",\"collection\":\"contentcontributors\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributor.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"profileId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"email\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"name\":{\"type\":\"text\",\"required\":false},\"trustLevel\":{\"type\":\"text\",\"required\":false,\"default\":\"standard\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributors\",\"conflictColumns\":[\"email\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributor\",\"collectionExportName\":\"ContentContributorCollection\",\"validationRules\":[{\"field\":\"email\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"content_contributors\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"profile_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"email\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"trust_level\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"standard\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contributors_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributors_email_idx\",\"columns\":[\"email\"],\"unique\":true}],\"version\":\"7eb9c661\"}},\"@happyvertical/smrt-content:ContentContributorCollection\":{\"name\":\"contentcontributorcollection\",\"className\":\"ContentContributorCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributorCollection\",\"collection\":\"contentcontributors\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributors.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByEmail\":{\"name\":\"getByEmail\",\"async\":true,\"parameters\":[{\"name\":\"email\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"getByProfileId\":{\"name\":\"getByProfileId\",\"async\":true,\"parameters\":[{\"name\":\"profileId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"findOrCreateByEmail\":{\"name\":\"findOrCreateByEmail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributors\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributor\",\"exportName\":\"ContentContributorCollection\",\"collectionExportName\":\"ContentContributorCollectionCollection\",\"schema\":{\"tableName\":\"content_contributors\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contributors_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributors_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"b457e60b\"}},\"@happyvertical/smrt-content:ContentCorrection\":{\"name\":\"contentcorrection\",\"className\":\"ContentCorrection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentCorrection\",\"collection\":\"contentcorrections\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-correction.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"contentVersionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentVersion\"},\"factId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-facts:Fact\"},\"replacementFactId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-facts:Fact\"},\"correctionType\":{\"type\":\"text\",\"required\":false,\"default\":\"fact\"},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"summary\":{\"type\":\"text\",\"required\":false},\"incorrectText\":{\"type\":\"text\",\"required\":false},\"correctedText\":{\"type\":\"text\",\"required\":false},\"publicNote\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"publishedAt\":{\"type\":\"datetime\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_corrections\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentCorrection\",\"collectionExportName\":\"ContentCorrectionCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_corrections\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"content_version_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"fact_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"replacement_fact_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"correction_type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"fact\"},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"draft\"},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"incorrect_text\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"corrected_text\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"public_note\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_corrections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_corrections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"5bb750e4\"}},\"@happyvertical/smrt-content:ContentCorrectionCollection\":{\"name\":\"contentcorrectioncollection\",\"className\":\"ContentCorrectionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentCorrectionCollection\",\"collection\":\"contentcorrections\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-corrections.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection[]>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedForContent\":{\"name\":\"getPublishedForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection[]>\",\"isStatic\":false,\"isPublic\":true},\"issue\":{\"name\":\"issue\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_corrections\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentCorrection\",\"exportName\":\"ContentCorrectionCollection\",\"collectionExportName\":\"ContentCorrectionCollectionCollection\",\"schema\":{\"tableName\":\"content_corrections\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_corrections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_corrections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"6ebe142d\"}},\"@happyvertical/smrt-content:ContentFeedSource\":{\"name\":\"contentfeedsource\",\"className\":\"ContentFeedSource\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentFeedSource\",\"collection\":\"contentfeedsources\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-feed-source.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"feedUrl\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"homepageUrl\":{\"type\":\"text\",\"required\":false},\"format\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":true,\"default\":\"active\",\"_meta\":{\"required\":true,\"default\":\"active\"}},\"defaultCategory\":{\"type\":\"text\",\"required\":false},\"sourceGroup\":{\"type\":\"text\",\"required\":false},\"pollIntervalMinutes\":{\"type\":\"integer\",\"required\":true,\"default\":15},\"etag\":{\"type\":\"text\",\"required\":false},\"lastModified\":{\"type\":\"text\",\"required\":false},\"lastFetchedAt\":{\"type\":\"datetime\",\"required\":false},\"lastSuccessAt\":{\"type\":\"datetime\",\"required\":false},\"lastError\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchStarted\":{\"name\":\"markFetchStarted\",\"async\":false,\"parameters\":[{\"name\":\"at\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchSucceeded\":{\"name\":\"markFetchSucceeded\",\"async\":false,\"parameters\":[{\"name\":\"at\",\"type\":\"any\",\"optional\":true},{\"name\":\"headers\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchFailed\":{\"name\":\"markFetchFailed\",\"async\":false,\"parameters\":[{\"name\":\"error\",\"type\":\"any\",\"optional\":false},{\"name\":\"at\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_feed_sources\",\"conflictColumns\":[\"tenant_id\",\"feed_url\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentFeedSource\",\"collectionExportName\":\"ContentFeedSourceCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"feedUrl\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"status\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"pollIntervalMinutes\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_feed_sources\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"feed_url\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"homepage_url\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"format\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"active\"},\"default_category\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_group\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"poll_interval_minutes\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":15},\"etag\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"last_modified\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"last_fetched_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"last_success_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"last_error\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":{}}},\"indexes\":[{\"name\":\"content_feed_sources_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_feed_sources_tenant_id_feed_url_idx\",\"columns\":[\"tenant_id\",\"feed_url\"],\"unique\":true}],\"version\":\"bbcb36e5\"}},\"@happyvertical/smrt-content:ContentFeedSourceCollection\":{\"name\":\"contentfeedsourcecollection\",\"className\":\"ContentFeedSourceCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentFeedSourceCollection\",\"collection\":\"contentfeedsources\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-feed-sources.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"findActive\":{\"name\":\"findActive\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource[]>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"ContentFeedSourceStatus\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource[]>\",\"isStatic\":false,\"isPublic\":true},\"findByFeedUrl\":{\"name\":\"findByFeedUrl\",\"async\":true,\"parameters\":[{\"name\":\"feedUrl\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_feed_sources\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentFeedSource\",\"exportName\":\"ContentFeedSourceCollection\",\"collectionExportName\":\"ContentFeedSourceCollectionCollection\",\"schema\":{\"tableName\":\"content_feed_sources\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_feed_sources_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_feed_sources_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"bb0cca9e\"}},\"@happyvertical/smrt-content:ContentGovernanceAssignment\":{\"name\":\"contentgovernanceassignment\",\"className\":\"ContentGovernanceAssignment\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceAssignment\",\"collection\":\"contentgovernanceassignments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-assignment.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"contentType\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"contentVariant\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"factLinkingEnabled\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"transparencyEnabled\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"publicationProfileKey\":{\"type\":\"text\",\"required\":false},\"correctionProfileKey\":{\"type\":\"text\",\"required\":false},\"enforcePublishReadiness\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"defaultFactRelationship\":{\"type\":\"text\",\"required\":false,\"default\":\"supports\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentGovernanceAssignmentDefinition\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_assignments\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernanceAssignment\",\"collectionExportName\":\"ContentGovernanceAssignmentCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"contentType\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"factLinkingEnabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"transparencyEnabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"enforcePublishReadiness\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_assignments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"content_type\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"content_variant\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"fact_linking_enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"transparency_enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"publication_profile_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"correction_profile_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enforce_publish_readiness\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"default_fact_relationship\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"supports\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_assignments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_assignments_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"00a2c610\"}},\"@happyvertical/smrt-content:ContentGovernanceAssignmentCollection\":{\"name\":\"contentgovernanceassignmentcollection\",\"className\":\"ContentGovernanceAssignmentCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceAssignmentCollection\",\"collection\":\"contentgovernanceassignments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-assignments.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceAssignment | null>\",\"isStatic\":false,\"isPublic\":true},\"resolveForContent\":{\"name\":\"resolveForContent\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceAssignment | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_assignments\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernanceAssignment\",\"exportName\":\"ContentGovernanceAssignmentCollection\",\"collectionExportName\":\"ContentGovernanceAssignmentCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_assignments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_assignments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_assignments_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"21471529\"}},\"@happyvertical/smrt-content:ContentGovernancePolicyCollection\":{\"name\":\"contentgovernancepolicycollection\",\"className\":\"ContentGovernancePolicyCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernancePolicyCollection\",\"collection\":\"contentgovernancepolicies\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-policies.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernancePolicy | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_policies\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernancePolicy\",\"exportName\":\"ContentGovernancePolicyCollection\",\"collectionExportName\":\"ContentGovernancePolicyCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_policies\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_policies_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_policies_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"e2da0e5b\"}},\"@happyvertical/smrt-content:ContentGovernancePolicy\":{\"name\":\"contentgovernancepolicy\",\"className\":\"ContentGovernancePolicy\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernancePolicy\",\"collection\":\"contentgovernancepolicies\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-policy.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"custom\"},\"instructions\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewPolicyDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_policies\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernancePolicy\",\"collectionExportName\":\"ContentGovernancePolicyCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_policies\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"custom\"},\"instructions\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_policies_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_policies_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"3cc24f80\"}},\"@happyvertical/smrt-content:ContentGovernanceProfile\":{\"name\":\"contentgovernanceprofile\",\"className\":\"ContentGovernanceProfile\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceProfile\",\"collection\":\"contentgovernanceprofiles\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-profile.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"requirements\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getRequirements\":{\"name\":\"getRequirements\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewRequirement[]\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentGovernanceProfileDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_profiles\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernanceProfile\",\"collectionExportName\":\"ContentGovernanceProfileCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_profiles\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"requirements\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_profiles_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_profiles_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"4bfc2afc\"}},\"@happyvertical/smrt-content:ContentGovernanceProfileCollection\":{\"name\":\"contentgovernanceprofilecollection\",\"className\":\"ContentGovernanceProfileCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceProfileCollection\",\"collection\":\"contentgovernanceprofiles\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-profiles.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceProfile | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_profiles\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernanceProfile\",\"exportName\":\"ContentGovernanceProfileCollection\",\"collectionExportName\":\"ContentGovernanceProfileCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_profiles\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_profiles_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_profiles_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"496f0f56\"}},\"@happyvertical/smrt-content:ContentReference\":{\"name\":\"contentreference\",\"className\":\"ContentReference\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReference\",\"collection\":\"contentreferences\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-reference.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"sourceId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"targetId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"targetVersion\":{\"type\":\"integer\",\"required\":false,\"_meta\":{\"nullable\":true}},\"createdAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"content_references\",\"conflictColumns\":[\"source_id\",\"target_id\"],\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentReference\",\"collectionExportName\":\"ContentReferenceCollection\",\"validationRules\":[{\"field\":\"sourceId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"targetId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_references\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"target_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"target_version\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_references_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_references_source_id_target_id_idx\",\"columns\":[\"source_id\",\"target_id\"],\"unique\":true}],\"version\":\"93a08999\"}},\"@happyvertical/smrt-content:ContentReferences\":{\"name\":\"contentreferences\",\"className\":\"ContentReferences\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReferences\",\"collection\":\"contentreferences\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-references.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false},{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<ContentReference>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getForSource\":{\"name\":\"getForSource\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReference[]>\",\"isStatic\":false,\"isPublic\":true},\"getForTarget\":{\"name\":\"getForTarget\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReference[]>\",\"isStatic\":false,\"isPublic\":true},\"unlink\":{\"name\":\"unlink\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false},{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_references\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"ContentReference\",\"exportName\":\"ContentReferences\",\"collectionExportName\":\"ContentReferencesCollection\",\"schema\":{\"tableName\":\"content_references\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_references_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_references_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"e9ad3cf0\"}},\"@happyvertical/smrt-content:ContentReview\":{\"name\":\"contentreview\",\"className\":\"ContentReview\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReview\",\"collection\":\"contentreviews\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-review.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"contentVersionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentVersion\"},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"custom\"},\"policyKey\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"pending\"},\"summary\":{\"type\":\"text\",\"required\":false},\"findings\":{\"type\":\"text\",\"required\":false},\"reviewer\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getFindings\":{\"name\":\"getFindings\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewFinding[]\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_reviews\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentReview\",\"collectionExportName\":\"ContentReviewCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_reviews\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"content_version_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"custom\"},\"policy_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"pending\"},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"findings\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"reviewer\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_reviews_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_reviews_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"561fbff4\"}},\"@happyvertical/smrt-content:ContentReviewCollection\":{\"name\":\"contentreviewcollection\",\"className\":\"ContentReviewCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReviewCollection\",\"collection\":\"contentreviews\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-reviews.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"kind\",\"type\":\"ContentReviewKind\",\"optional\":true}],\"returnType\":\"Promise<ContentReview[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContent\":{\"name\":\"getLatestForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"kind\",\"type\":\"ContentReviewKind\",\"optional\":true}],\"returnType\":\"Promise<ContentReview | null>\",\"isStatic\":false,\"isPublic\":true},\"listForContentByPolicyKey\":{\"name\":\"listForContentByPolicyKey\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"policyKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReview[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForPolicyKey\":{\"name\":\"getLatestForPolicyKey\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"policyKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReview | null>\",\"isStatic\":false,\"isPublic\":true},\"createFromResult\":{\"name\":\"createFromResult\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentReview>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_reviews\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentReview\",\"exportName\":\"ContentReviewCollection\",\"collectionExportName\":\"ContentReviewCollectionCollection\",\"schema\":{\"tableName\":\"content_reviews\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_reviews_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_reviews_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"03b7d1d3\"}},\"@happyvertical/smrt-content:Article\":{\"name\":\"article\",\"className\":\"Article\",\"qualifiedName\":\"@happyvertical/smrt-content:Article\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"Article\",\"collectionExportName\":\"ArticleCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"bb95d001\"}},\"@happyvertical/smrt-content:ContentDocument\":{\"name\":\"contentdocument\",\"className\":\"ContentDocument\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentDocument\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"ContentDocument\",\"collectionExportName\":\"ContentDocumentCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"e246b9b1\"}},\"@happyvertical/smrt-content:Mirror\":{\"name\":\"mirror\",\"className\":\"Mirror\",\"qualifiedName\":\"@happyvertical/smrt-content:Mirror\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"feedSourceId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentFeedSource\"},\"sourceGuid\":{\"type\":\"text\",\"required\":false},\"sourceName\":{\"type\":\"text\",\"required\":false},\"sourceHomepageUrl\":{\"type\":\"text\",\"required\":false},\"externalUrl\":{\"type\":\"text\",\"required\":false},\"originalPublishedAt\":{\"type\":\"datetime\",\"required\":false},\"dedupeKey\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"Mirror\",\"collectionExportName\":\"MirrorCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID,\\n \\\"feed_source_id\\\" UUID,\\n \\\"source_guid\\\" TEXT,\\n \\\"source_name\\\" TEXT,\\n \\\"source_homepage_url\\\" TEXT,\\n \\\"external_url\\\" TEXT,\\n \\\"original_published_at\\\" TIMESTAMP,\\n \\\"dedupe_key\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"feed_source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"source_guid\":{\"type\":\"TEXT\",\"notNull\":false},\"source_name\":{\"type\":\"TEXT\",\"notNull\":false},\"source_homepage_url\":{\"type\":\"TEXT\",\"notNull\":false},\"external_url\":{\"type\":\"TEXT\",\"notNull\":false},\"original_published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"dedupe_key\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"f91f958a\"}},\"@happyvertical/smrt-content:ContentVersion\":{\"name\":\"contentversion\",\"className\":\"ContentVersion\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentVersion\",\"collection\":\"contentversions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-version.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"version\":{\"type\":\"integer\",\"required\":true,\"default\":1},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"manual\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false},\"summary\":{\"type\":\"text\",\"required\":false},\"snapshot\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getSnapshot\":{\"name\":\"getSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentVersionMetadata\",\"isStatic\":false,\"isPublic\":true},\"getTransparency\":{\"name\":\"getTransparency\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getTransparencyAction\":{\"name\":\"getTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_versions\",\"conflictColumns\":[\"content_id\",\"version\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"getTransparencyAction\"],\"routes\":{\"getTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentVersion\",\"collectionExportName\":\"ContentVersionCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"version\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_versions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"version\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"manual\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"snapshot\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_versions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_versions_content_id_version_idx\",\"columns\":[\"content_id\",\"version\"],\"unique\":true}],\"version\":\"5715d20d\"}},\"@happyvertical/smrt-content:ContentVersionCollection\":{\"name\":\"contentversioncollection\",\"className\":\"ContentVersionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentVersionCollection\",\"collection\":\"contentversions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-versions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContent\":{\"name\":\"getLatestForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getLatestPublishedForContent\":{\"name\":\"getLatestPublishedForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getVersion\":{\"name\":\"getVersion\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getNextVersionNumber\":{\"name\":\"getNextVersionNumber\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"createSnapshot\":{\"name\":\"createSnapshot\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content\",\"optional\":false},{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"Promise<ContentVersion>\",\"isStatic\":false,\"isPublic\":true},\"restoreIntoContent\":{\"name\":\"restoreIntoContent\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content\",\"optional\":false},{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<Content>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_versions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentVersion\",\"exportName\":\"ContentVersionCollection\",\"collectionExportName\":\"ContentVersionCollectionCollection\",\"schema\":{\"tableName\":\"content_versions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_versions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_versions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"56acd806\"}},\"@happyvertical/smrt-content:Content\":{\"name\":\"content\",\"className\":\"Content\",\"qualifiedName\":\"@happyvertical/smrt-content:Content\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\",\"getFactsState\",\"syncFactsState\",\"getFactAuditStateAction\",\"repairFactAuditAction\",\"repairFactEvidenceAction\",\"recheckFactClaimsAction\",\"updateFactEvidenceStatusAction\",\"getGovernanceStateAction\",\"listReviews\",\"runReviewAction\",\"listReviewProfilesAction\",\"evaluateReviewProfileAction\",\"getPublishedTransparencyAction\",\"previewTransparencyAction\",\"listCorrections\",\"issueCorrectionAction\",\"listVersions\",\"mutateVersionAction\"],\"routes\":{\"getFactsState\":{\"method\":\"GET\",\"path\":\"facts\"},\"syncFactsState\":{\"method\":\"PUT\",\"path\":\"facts\"},\"getFactAuditStateAction\":{\"method\":\"GET\",\"path\":\"fact-audit\"},\"repairFactAuditAction\":{\"method\":\"POST\",\"path\":\"fact-audit/repair\"},\"repairFactEvidenceAction\":{\"method\":\"POST\",\"path\":\"fact-audit/evidence/repair\"},\"recheckFactClaimsAction\":{\"method\":\"POST\",\"path\":\"fact-audit/claims/recheck\"},\"updateFactEvidenceStatusAction\":{\"method\":\"PUT\",\"path\":\"fact-audit/evidence/status\"},\"getGovernanceStateAction\":{\"method\":\"GET\",\"path\":\"governance\"},\"listReviews\":{\"method\":\"GET\",\"path\":\"reviews\"},\"runReviewAction\":{\"method\":\"POST\",\"path\":\"reviews\"},\"listReviewProfilesAction\":{\"method\":\"GET\",\"path\":\"review-profiles\"},\"evaluateReviewProfileAction\":{\"method\":\"GET\",\"path\":\"review-profiles/[profileKey]\"},\"getPublishedTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency\"},\"previewTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency/preview\"},\"listCorrections\":{\"method\":\"GET\",\"path\":\"corrections\"},\"issueCorrectionAction\":{\"method\":\"POST\",\"path\":\"corrections\"},\"listVersions\":{\"method\":\"GET\",\"path\":\"versions\"},\"mutateVersionAction\":{\"method\":\"POST\",\"path\":\"versions\"}},\"serializers\":{\"item\":{\"importPath\":\"$lib/server/content-api-serializers\",\"exportName\":\"serializeContent\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"Content\",\"collectionExportName\":\"ContentCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID,\\n \\\"feed_source_id\\\" UUID,\\n \\\"source_guid\\\" TEXT,\\n \\\"source_name\\\" TEXT,\\n \\\"source_homepage_url\\\" TEXT,\\n \\\"external_url\\\" TEXT,\\n \\\"original_published_at\\\" TIMESTAMP,\\n \\\"dedupe_key\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"feed_source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"source_guid\":{\"type\":\"TEXT\",\"notNull\":false},\"source_name\":{\"type\":\"TEXT\",\"notNull\":false},\"source_homepage_url\":{\"type\":\"TEXT\",\"notNull\":false},\"external_url\":{\"type\":\"TEXT\",\"notNull\":false},\"original_published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"dedupe_key\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"e07be74e\"}},\"@happyvertical/smrt-content:Contents\":{\"name\":\"contents\",\"className\":\"Contents\",\"qualifiedName\":\"@happyvertical/smrt-content:Contents\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/contents.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentDir\":{\"type\":\"text\",\"required\":false},\"loaded\":{\"type\":\"json\",\"required\":true}},\"methods\":{\"getDb\":{\"name\":\"getDb\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceDefinitionsAction\":{\"name\":\"getGovernanceDefinitionsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernanceAction\":{\"name\":\"resolveGovernanceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mirror\":{\"name\":\"mirror\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"writeContentFile\":{\"name\":\"writeContentFile\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncContentDir\":{\"name\":\"syncContentDir\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"generateMissingThumbnails\":{\"name\":\"generateMissingThumbnails\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateMissingThumbnailsOptions\",\"optional\":false}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"browseFacts\",\"getBySlug\",\"getGovernanceDefinitionsAction\",\"resolveGovernanceAction\"],\"routes\":{\"browseFacts\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"facts\"},\"getBySlug\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"by-slug\"},\"getGovernanceDefinitionsAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"governance\"},\"resolveGovernanceAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"governance/resolve\"}}},\"mcp\":false,\"cli\":false},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Content\",\"exportName\":\"Contents\",\"collectionExportName\":\"ContentsCollection\",\"validationRules\":[{\"field\":\"loaded\",\"rule\":\"required\",\"fieldType\":\"json\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"content_dir\\\" TEXT,\\n \\\"loaded\\\" JSON NOT NULL\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_dir\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"loaded\":{\"type\":\"JSON\",\"notNull\":true,\"unique\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"c11f9ec0\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-assets\",\"@happyvertical/smrt-chat\",\"@happyvertical/smrt-core\",\"@happyvertical/smrt-facts\",\"@happyvertical/smrt-images\",\"@happyvertical/smrt-messages\",\"@happyvertical/smrt-profiles\",\"@happyvertical/smrt-prompts\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
40
|
+
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":1785008745979,\"packageName\":\"@happyvertical/smrt-content\",\"packageVersion\":\"0.40.21\",\"objects\":{\"@happyvertical/smrt-content:ContentAsset\":{\"name\":\"contentasset\",\"className\":\"ContentAsset\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentAsset\",\"collection\":\"contentassets\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-asset.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"assetId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"relationship\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"sortOrder\":{\"type\":\"integer\",\"required\":true,\"default\":0}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"content_assets\",\"conflictColumns\":[\"content_id\",\"asset_id\",\"relationship\"],\"api\":false,\"mcp\":false,\"cli\":false,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentAsset\",\"collectionExportName\":\"ContentAssetCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"assetId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"relationship\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"sortOrder\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_assets\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"relationship\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"sort_order\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0}},\"indexes\":[{\"name\":\"content_assets_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_assets_content_id_asset_id_idx\",\"columns\":[\"content_id\",\"asset_id\",\"relationship\"],\"unique\":true}],\"version\":\"a201e9ef\"}},\"@happyvertical/smrt-content:ContentAssetCollection\":{\"name\":\"contentassetcollection\",\"className\":\"ContentAssetCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentAssetCollection\",\"collection\":\"contentassets\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-assets.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"content_assets\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"ContentAsset\",\"exportName\":\"ContentAssetCollection\",\"collectionExportName\":\"ContentAssetCollectionCollection\",\"schema\":{\"tableName\":\"content_assets\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_assets_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"35bf42e8\"}},\"@happyvertical/smrt-content:ContentContributionAttachment\":{\"name\":\"contentcontributionattachment\",\"className\":\"ContentContributionAttachment\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionAttachment\",\"collection\":\"contentcontributionattachments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-attachment.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributionId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContribution\",\"_meta\":{\"required\":true}},\"revisionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentContributionRevision\"},\"filename\":{\"type\":\"text\",\"required\":false},\"mimeType\":{\"type\":\"text\",\"required\":false},\"size\":{\"type\":\"integer\",\"required\":true,\"default\":0},\"fileKey\":{\"type\":\"text\",\"required\":false},\"sourceUri\":{\"type\":\"text\",\"required\":false},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"promotedAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_attachments\",\"conflictColumns\":[\"id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionAttachment\",\"collectionExportName\":\"ContentContributionAttachmentCollection\",\"validationRules\":[{\"field\":\"contributionId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"size\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contribution_attachments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contribution_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"revision_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"filename\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"mime_type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"size\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_uri\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"promoted_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"],\"unique\":true}],\"version\":\"0801b8fd\"}},\"@happyvertical/smrt-content:ContentContributionAttachmentCollection\":{\"name\":\"contentcontributionattachmentcollection\",\"className\":\"ContentContributionAttachmentCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionAttachmentCollection\",\"collection\":\"contentcontributionattachments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-attachments.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContribution\":{\"name\":\"listForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true},\"listForRevision\":{\"name\":\"listForRevision\",\"async\":true,\"parameters\":[{\"name\":\"revisionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_attachments\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionAttachment\",\"exportName\":\"ContentContributionAttachmentCollection\",\"collectionExportName\":\"ContentContributionAttachmentCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_attachments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_attachments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_attachments_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"d0c8b33f\"}},\"@happyvertical/smrt-content:ContentContributionRevision\":{\"name\":\"contentcontributionrevision\",\"className\":\"ContentContributionRevision\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionRevision\",\"collection\":\"contentcontributionrevisions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-revision.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributionId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContribution\",\"_meta\":{\"required\":true}},\"revisionNumber\":{\"type\":\"integer\",\"required\":true,\"default\":1},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"sourceMessageId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-messages:Message\"},\"sourceThreadKey\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_revisions\",\"conflictColumns\":[\"contribution_id\",\"revision_number\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionRevision\",\"collectionExportName\":\"ContentContributionRevisionCollection\",\"validationRules\":[{\"field\":\"contributionId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"revisionNumber\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contribution_revisions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contribution_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"revision_number\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_message_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"source_thread_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_revisions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_revisions_contribution_id_revision_number_idx\",\"columns\":[\"contribution_id\",\"revision_number\"],\"unique\":true}],\"version\":\"66bf02f5\"}},\"@happyvertical/smrt-content:ContentContributionRevisionCollection\":{\"name\":\"contentcontributionrevisioncollection\",\"className\":\"ContentContributionRevisionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionRevisionCollection\",\"collection\":\"contentcontributionrevisions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-revisions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContribution\":{\"name\":\"listForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionRevision[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContribution\":{\"name\":\"getLatestForContribution\",\"async\":true,\"parameters\":[{\"name\":\"contributionId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionRevision | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_revisions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionRevision\",\"exportName\":\"ContentContributionRevisionCollection\",\"collectionExportName\":\"ContentContributionRevisionCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_revisions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_revisions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_revisions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"cc3e0dfa\"}},\"@happyvertical/smrt-content:ContentContributionType\":{\"name\":\"contentcontributiontype\",\"className\":\"ContentContributionType\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionType\",\"collection\":\"contentcontributiontypes\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-type.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"allowedChannels\":{\"type\":\"text\",\"required\":false},\"allowText\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"allowFiles\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"allowEmptyText\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"intakeRules\":{\"type\":\"text\",\"required\":false},\"promotion\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getAllowedChannels\":{\"name\":\"getAllowedChannels\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionChannel[]\",\"isStatic\":false,\"isPublic\":true},\"setAllowedChannels\":{\"name\":\"setAllowedChannels\",\"async\":false,\"parameters\":[{\"name\":\"channels\",\"type\":\"ContentContributionChannel[]\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getIntakeRules\":{\"name\":\"getIntakeRules\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionIntakeRules\",\"isStatic\":false,\"isPublic\":true},\"setIntakeRules\":{\"name\":\"setIntakeRules\",\"async\":false,\"parameters\":[{\"name\":\"rules\",\"type\":\"ContentContributionIntakeRules\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getPromotion\":{\"name\":\"getPromotion\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionPromotionMapping\",\"isStatic\":false,\"isPublic\":true},\"setPromotion\":{\"name\":\"setPromotion\",\"async\":false,\"parameters\":[{\"name\":\"promotion\",\"type\":\"ContentContributionPromotionMapping\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentContributionTypeDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_types\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributionType\",\"collectionExportName\":\"ContentContributionTypeCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowText\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowFiles\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"allowEmptyText\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_contribution_types\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"allowed_channels\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"allow_text\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"allow_files\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"allow_empty_text\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"intake_rules\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"promotion\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contribution_types_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_types_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"35552300\"}},\"@happyvertical/smrt-content:ContentContributionTypeCollection\":{\"name\":\"contentcontributiontypecollection\",\"className\":\"ContentContributionTypeCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributionTypeCollection\",\"collection\":\"contentcontributiontypes\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributionType | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contribution_types\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributionType\",\"exportName\":\"ContentContributionTypeCollection\",\"collectionExportName\":\"ContentContributionTypeCollectionCollection\",\"schema\":{\"tableName\":\"content_contribution_types\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contribution_types_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contribution_types_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"9c9a0367\"}},\"@happyvertical/smrt-content:ContentContribution\":{\"name\":\"contentcontribution\",\"className\":\"ContentContribution\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContribution\",\"collection\":\"contentcontributions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contribution.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contributorId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"ContentContributor\",\"_meta\":{\"required\":true}},\"contributionTypeKey\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"submitted\"},\"intakeDecision\":{\"type\":\"text\",\"required\":false,\"default\":\"accepted\"},\"channel\":{\"type\":\"text\",\"required\":false,\"default\":\"web\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"contributorEmail\":{\"type\":\"text\",\"required\":false},\"contributorName\":{\"type\":\"text\",\"required\":false},\"threadKey\":{\"type\":\"text\",\"required\":false},\"sourceMessageId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-messages:Message\"},\"editorNotes\":{\"type\":\"text\",\"required\":false},\"promotedContentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Content\"},\"revisionCount\":{\"type\":\"integer\",\"required\":true,\"default\":0},\"approvedAt\":{\"type\":\"datetime\",\"required\":false},\"promotedAt\":{\"type\":\"datetime\",\"required\":false},\"rejectedAt\":{\"type\":\"datetime\",\"required\":false},\"withdrawnAt\":{\"type\":\"datetime\",\"required\":false},\"requestedChangesAt\":{\"type\":\"datetime\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getContributor\":{\"name\":\"getContributor\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"getRevisions\":{\"name\":\"getRevisions\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionRevision[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestRevision\":{\"name\":\"getLatestRevision\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionRevision | null>\",\"isStatic\":false,\"isPublic\":true},\"getAttachments\":{\"name\":\"getAttachments\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionAttachment[]>\",\"isStatic\":false,\"isPublic\":true},\"resolveContributionType\":{\"name\":\"resolveContributionType\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentContributionTypeDefinition | null>\",\"isStatic\":false,\"isPublic\":true},\"appendRevisionAction\":{\"name\":\"appendRevisionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AppendContentContributionRevisionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"requestChangesAction\":{\"name\":\"requestChangesAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RequestChangesContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"rejectAction\":{\"name\":\"rejectAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RejectContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"withdrawAction\":{\"name\":\"withdrawAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"WithdrawContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"approveAction\":{\"name\":\"approveAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ApproveContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"promoteAction\":{\"name\":\"promoteAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"PromoteContentContributionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributions\",\"conflictColumns\":[\"id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\",\"appendRevisionAction\",\"requestChangesAction\",\"approveAction\",\"rejectAction\",\"withdrawAction\",\"promoteAction\"],\"routes\":{\"appendRevisionAction\":{\"method\":\"POST\",\"path\":\"revisions\"},\"requestChangesAction\":{\"method\":\"POST\",\"path\":\"request-changes\"},\"approveAction\":{\"method\":\"POST\",\"path\":\"approve\"},\"rejectAction\":{\"method\":\"POST\",\"path\":\"reject\"},\"withdrawAction\":{\"method\":\"POST\",\"path\":\"withdraw\"},\"promoteAction\":{\"method\":\"POST\",\"path\":\"promote\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContribution\",\"collectionExportName\":\"ContentContributionCollection\",\"validationRules\":[{\"field\":\"contributorId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"contributionTypeKey\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"revisionCount\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_contributions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"contributor_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"contribution_type_key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"submitted\"},\"intake_decision\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"accepted\"},\"channel\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"web\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"contributor_email\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"contributor_name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"thread_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_message_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"editor_notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"promoted_content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"revision_count\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0},\"approved_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"promoted_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"rejected_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"withdrawn_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"requested_changes_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"],\"unique\":true}],\"version\":\"0fdc1992\"}},\"@happyvertical/smrt-content:ContentContributions\":{\"name\":\"contentcontributions\",\"className\":\"ContentContributions\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributions\",\"collection\":\"contentcontributions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getContributionTypesAction\":{\"name\":\"getContributionTypesAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listForContributor\":{\"name\":\"listForContributor\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listInboxAction\":{\"name\":\"listInboxAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<ContentContribution[]>\",\"isStatic\":false,\"isPublic\":true},\"submitWebContribution\":{\"name\":\"submitWebContribution\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"SubmitWebContentContributionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"ingestEmailContribution\":{\"name\":\"ingestEmailContribution\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IngestEmailContentContributionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"submitWebContribution\",\"ingestEmailContribution\",\"listForContributor\",\"listInboxAction\",\"getContributionTypesAction\"],\"routes\":{\"submitWebContribution\":{\"scope\":\"collection\",\"method\":\"POST\",\"path\":\"submit\"},\"ingestEmailContribution\":{\"scope\":\"collection\",\"method\":\"POST\",\"path\":\"ingest-email\"},\"listForContributor\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"by-contributor\"},\"listInboxAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"inbox\"},\"getContributionTypesAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"types\"}}},\"mcp\":false,\"cli\":false,\"tableName\":\"content_contributions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContribution\",\"exportName\":\"ContentContributions\",\"collectionExportName\":\"ContentContributionsCollection\",\"schema\":{\"tableName\":\"content_contributions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contributions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"641c0cc8\"}},\"@happyvertical/smrt-content:ContentContributor\":{\"name\":\"contentcontributor\",\"className\":\"ContentContributor\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributor\",\"collection\":\"contentcontributors\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributor.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"profileId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"email\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"name\":{\"type\":\"text\",\"required\":false},\"trustLevel\":{\"type\":\"text\",\"required\":false,\"default\":\"standard\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributors\",\"conflictColumns\":[\"email\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentContributor\",\"collectionExportName\":\"ContentContributorCollection\",\"validationRules\":[{\"field\":\"email\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"content_contributors\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"profile_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"email\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"trust_level\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"standard\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_contributors_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributors_email_idx\",\"columns\":[\"email\"],\"unique\":true}],\"version\":\"7eb9c661\"}},\"@happyvertical/smrt-content:ContentContributorCollection\":{\"name\":\"contentcontributorcollection\",\"className\":\"ContentContributorCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentContributorCollection\",\"collection\":\"contentcontributors\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-contributors.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByEmail\":{\"name\":\"getByEmail\",\"async\":true,\"parameters\":[{\"name\":\"email\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"getByProfileId\":{\"name\":\"getByProfileId\",\"async\":true,\"parameters\":[{\"name\":\"profileId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor | null>\",\"isStatic\":false,\"isPublic\":true},\"findOrCreateByEmail\":{\"name\":\"findOrCreateByEmail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentContributor>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_contributors\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentContributor\",\"exportName\":\"ContentContributorCollection\",\"collectionExportName\":\"ContentContributorCollectionCollection\",\"schema\":{\"tableName\":\"content_contributors\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_contributors_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_contributors_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"b457e60b\"}},\"@happyvertical/smrt-content:ContentCorrection\":{\"name\":\"contentcorrection\",\"className\":\"ContentCorrection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentCorrection\",\"collection\":\"contentcorrections\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-correction.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"contentVersionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentVersion\"},\"factId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-facts:Fact\"},\"replacementFactId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-facts:Fact\"},\"correctionType\":{\"type\":\"text\",\"required\":false,\"default\":\"fact\"},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"summary\":{\"type\":\"text\",\"required\":false},\"incorrectText\":{\"type\":\"text\",\"required\":false},\"correctedText\":{\"type\":\"text\",\"required\":false},\"publicNote\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"publishedAt\":{\"type\":\"datetime\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_corrections\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentCorrection\",\"collectionExportName\":\"ContentCorrectionCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_corrections\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"content_version_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"fact_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"replacement_fact_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"correction_type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"fact\"},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"draft\"},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"incorrect_text\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"corrected_text\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"public_note\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_corrections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_corrections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"5bb750e4\"}},\"@happyvertical/smrt-content:ContentCorrectionCollection\":{\"name\":\"contentcorrectioncollection\",\"className\":\"ContentCorrectionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentCorrectionCollection\",\"collection\":\"contentcorrections\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-corrections.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection[]>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedForContent\":{\"name\":\"getPublishedForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection[]>\",\"isStatic\":false,\"isPublic\":true},\"issue\":{\"name\":\"issue\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"Promise<ContentCorrection>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_corrections\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentCorrection\",\"exportName\":\"ContentCorrectionCollection\",\"collectionExportName\":\"ContentCorrectionCollectionCollection\",\"schema\":{\"tableName\":\"content_corrections\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_corrections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_corrections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"6ebe142d\"}},\"@happyvertical/smrt-content:ContentFeedSource\":{\"name\":\"contentfeedsource\",\"className\":\"ContentFeedSource\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentFeedSource\",\"collection\":\"contentfeedsources\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-feed-source.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"feedUrl\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"homepageUrl\":{\"type\":\"text\",\"required\":false},\"format\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":true,\"default\":\"active\",\"_meta\":{\"required\":true,\"default\":\"active\"}},\"defaultCategory\":{\"type\":\"text\",\"required\":false},\"sourceGroup\":{\"type\":\"text\",\"required\":false},\"pollIntervalMinutes\":{\"type\":\"integer\",\"required\":true,\"default\":15},\"etag\":{\"type\":\"text\",\"required\":false},\"lastModified\":{\"type\":\"text\",\"required\":false},\"lastFetchedAt\":{\"type\":\"datetime\",\"required\":false},\"lastSuccessAt\":{\"type\":\"datetime\",\"required\":false},\"lastError\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchStarted\":{\"name\":\"markFetchStarted\",\"async\":false,\"parameters\":[{\"name\":\"at\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchSucceeded\":{\"name\":\"markFetchSucceeded\",\"async\":false,\"parameters\":[{\"name\":\"at\",\"type\":\"any\",\"optional\":true},{\"name\":\"headers\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markFetchFailed\":{\"name\":\"markFetchFailed\",\"async\":false,\"parameters\":[{\"name\":\"error\",\"type\":\"any\",\"optional\":false},{\"name\":\"at\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_feed_sources\",\"conflictColumns\":[\"tenant_id\",\"feed_url\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentFeedSource\",\"collectionExportName\":\"ContentFeedSourceCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"feedUrl\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"status\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"pollIntervalMinutes\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_feed_sources\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"feed_url\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"homepage_url\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"format\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"active\"},\"default_category\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source_group\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"poll_interval_minutes\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":15},\"etag\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"last_modified\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"last_fetched_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"last_success_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"last_error\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":{}}},\"indexes\":[{\"name\":\"content_feed_sources_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_feed_sources_tenant_id_feed_url_idx\",\"columns\":[\"tenant_id\",\"feed_url\"],\"unique\":true}],\"version\":\"bbcb36e5\"}},\"@happyvertical/smrt-content:ContentFeedSourceCollection\":{\"name\":\"contentfeedsourcecollection\",\"className\":\"ContentFeedSourceCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentFeedSourceCollection\",\"collection\":\"contentfeedsources\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-feed-sources.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"findActive\":{\"name\":\"findActive\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource[]>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"ContentFeedSourceStatus\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource[]>\",\"isStatic\":false,\"isPublic\":true},\"findByFeedUrl\":{\"name\":\"findByFeedUrl\",\"async\":true,\"parameters\":[{\"name\":\"feedUrl\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<ContentFeedSource | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_feed_sources\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentFeedSource\",\"exportName\":\"ContentFeedSourceCollection\",\"collectionExportName\":\"ContentFeedSourceCollectionCollection\",\"schema\":{\"tableName\":\"content_feed_sources\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_feed_sources_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_feed_sources_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"bb0cca9e\"}},\"@happyvertical/smrt-content:ContentGovernanceAssignment\":{\"name\":\"contentgovernanceassignment\",\"className\":\"ContentGovernanceAssignment\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceAssignment\",\"collection\":\"contentgovernanceassignments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-assignment.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"contentType\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"contentVariant\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"factLinkingEnabled\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"transparencyEnabled\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"publicationProfileKey\":{\"type\":\"text\",\"required\":false},\"correctionProfileKey\":{\"type\":\"text\",\"required\":false},\"enforcePublishReadiness\":{\"type\":\"boolean\",\"required\":true,\"default\":false},\"defaultFactRelationship\":{\"type\":\"text\",\"required\":false,\"default\":\"supports\"},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentGovernanceAssignmentDefinition\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_assignments\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernanceAssignment\",\"collectionExportName\":\"ContentGovernanceAssignmentCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"contentType\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"factLinkingEnabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"transparencyEnabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"},{\"field\":\"enforcePublishReadiness\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_assignments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"content_type\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"content_variant\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"fact_linking_enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"transparency_enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"publication_profile_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"correction_profile_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enforce_publish_readiness\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":false},\"default_fact_relationship\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"supports\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_assignments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_assignments_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"00a2c610\"}},\"@happyvertical/smrt-content:ContentGovernanceAssignmentCollection\":{\"name\":\"contentgovernanceassignmentcollection\",\"className\":\"ContentGovernanceAssignmentCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceAssignmentCollection\",\"collection\":\"contentgovernanceassignments\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-assignments.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceAssignment | null>\",\"isStatic\":false,\"isPublic\":true},\"resolveForContent\":{\"name\":\"resolveForContent\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceAssignment | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_assignments\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernanceAssignment\",\"exportName\":\"ContentGovernanceAssignmentCollection\",\"collectionExportName\":\"ContentGovernanceAssignmentCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_assignments\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_assignments_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_assignments_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"21471529\"}},\"@happyvertical/smrt-content:ContentGovernancePolicyCollection\":{\"name\":\"contentgovernancepolicycollection\",\"className\":\"ContentGovernancePolicyCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernancePolicyCollection\",\"collection\":\"contentgovernancepolicies\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-policies.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernancePolicy | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_policies\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernancePolicy\",\"exportName\":\"ContentGovernancePolicyCollection\",\"collectionExportName\":\"ContentGovernancePolicyCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_policies\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_policies_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_policies_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"e2da0e5b\"}},\"@happyvertical/smrt-content:ContentGovernancePolicy\":{\"name\":\"contentgovernancepolicy\",\"className\":\"ContentGovernancePolicy\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernancePolicy\",\"collection\":\"contentgovernancepolicies\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-policy.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"custom\"},\"instructions\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewPolicyDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_policies\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernancePolicy\",\"collectionExportName\":\"ContentGovernancePolicyCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_policies\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"custom\"},\"instructions\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_policies_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_policies_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"3cc24f80\"}},\"@happyvertical/smrt-content:ContentGovernanceProfile\":{\"name\":\"contentgovernanceprofile\",\"className\":\"ContentGovernanceProfile\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceProfile\",\"collection\":\"contentgovernanceprofiles\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-profile.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"label\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"enabled\":{\"type\":\"boolean\",\"required\":true,\"default\":true},\"requirements\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getRequirements\":{\"name\":\"getRequirements\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewRequirement[]\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toDefinition\":{\"name\":\"toDefinition\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentGovernanceProfileDefinition\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_profiles\",\"conflictColumns\":[\"key\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentGovernanceProfile\",\"collectionExportName\":\"ContentGovernanceProfileCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"enabled\",\"rule\":\"required\",\"fieldType\":\"boolean\"}],\"schema\":{\"tableName\":\"content_governance_profiles\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"label\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"enabled\":{\"type\":\"BOOLEAN\",\"notNull\":true,\"unique\":false,\"default\":true},\"requirements\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_governance_profiles_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_profiles_key_idx\",\"columns\":[\"key\"],\"unique\":true}],\"version\":\"4bfc2afc\"}},\"@happyvertical/smrt-content:ContentGovernanceProfileCollection\":{\"name\":\"contentgovernanceprofilecollection\",\"className\":\"ContentGovernanceProfileCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentGovernanceProfileCollection\",\"collection\":\"contentgovernanceprofiles\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-governance-profiles.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"getByKey\":{\"name\":\"getByKey\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentGovernanceProfile | null>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_governance_profiles\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentGovernanceProfile\",\"exportName\":\"ContentGovernanceProfileCollection\",\"collectionExportName\":\"ContentGovernanceProfileCollectionCollection\",\"schema\":{\"tableName\":\"content_governance_profiles\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_governance_profiles_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_governance_profiles_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"496f0f56\"}},\"@happyvertical/smrt-content:ContentReference\":{\"name\":\"contentreference\",\"className\":\"ContentReference\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReference\",\"collection\":\"contentreferences\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-reference.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"sourceId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"targetId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"targetVersion\":{\"type\":\"integer\",\"required\":false,\"_meta\":{\"nullable\":true}},\"createdAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"content_references\",\"conflictColumns\":[\"source_id\",\"target_id\"],\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentReference\",\"collectionExportName\":\"ContentReferenceCollection\",\"validationRules\":[{\"field\":\"sourceId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"targetId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_references\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"target_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"target_version\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_references_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_references_source_id_target_id_idx\",\"columns\":[\"source_id\",\"target_id\"],\"unique\":true}],\"version\":\"93a08999\"}},\"@happyvertical/smrt-content:ContentReferences\":{\"name\":\"contentreferences\",\"className\":\"ContentReferences\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReferences\",\"collection\":\"contentreferences\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-references.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false},{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<ContentReference>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getForSource\":{\"name\":\"getForSource\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReference[]>\",\"isStatic\":false,\"isPublic\":true},\"getForTarget\":{\"name\":\"getForTarget\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReference[]>\",\"isStatic\":false,\"isPublic\":true},\"unlink\":{\"name\":\"unlink\",\"async\":true,\"parameters\":[{\"name\":\"sourceId\",\"type\":\"string\",\"optional\":false},{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_references\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"ContentReference\",\"exportName\":\"ContentReferences\",\"collectionExportName\":\"ContentReferencesCollection\",\"schema\":{\"tableName\":\"content_references\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_references_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_references_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"e9ad3cf0\"}},\"@happyvertical/smrt-content:ContentReview\":{\"name\":\"contentreview\",\"className\":\"ContentReview\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReview\",\"collection\":\"contentreviews\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-review.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"contentVersionId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentVersion\"},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"custom\"},\"policyKey\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"pending\"},\"summary\":{\"type\":\"text\",\"required\":false},\"findings\":{\"type\":\"text\",\"required\":false},\"reviewer\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getFindings\":{\"name\":\"getFindings\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentReviewFinding[]\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_reviews\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentReview\",\"collectionExportName\":\"ContentReviewCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"}],\"schema\":{\"tableName\":\"content_reviews\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"content_version_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"custom\"},\"policy_key\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"pending\"},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"findings\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"reviewer\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_reviews_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_reviews_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"561fbff4\"}},\"@happyvertical/smrt-content:ContentReviewCollection\":{\"name\":\"contentreviewcollection\",\"className\":\"ContentReviewCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentReviewCollection\",\"collection\":\"contentreviews\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-reviews.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"kind\",\"type\":\"ContentReviewKind\",\"optional\":true}],\"returnType\":\"Promise<ContentReview[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContent\":{\"name\":\"getLatestForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"kind\",\"type\":\"ContentReviewKind\",\"optional\":true}],\"returnType\":\"Promise<ContentReview | null>\",\"isStatic\":false,\"isPublic\":true},\"listForContentByPolicyKey\":{\"name\":\"listForContentByPolicyKey\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"policyKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReview[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForPolicyKey\":{\"name\":\"getLatestForPolicyKey\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"policyKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReview | null>\",\"isStatic\":false,\"isPublic\":true},\"createFromResult\":{\"name\":\"createFromResult\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<ContentReview>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_reviews\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentReview\",\"exportName\":\"ContentReviewCollection\",\"collectionExportName\":\"ContentReviewCollectionCollection\",\"schema\":{\"tableName\":\"content_reviews\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_reviews_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_reviews_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"03b7d1d3\"}},\"@happyvertical/smrt-content:Article\":{\"name\":\"article\",\"className\":\"Article\",\"qualifiedName\":\"@happyvertical/smrt-content:Article\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"Article\",\"collectionExportName\":\"ArticleCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"bb95d001\"}},\"@happyvertical/smrt-content:ContentDocument\":{\"name\":\"contentdocument\",\"className\":\"ContentDocument\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentDocument\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"ContentDocument\",\"collectionExportName\":\"ContentDocumentCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"e246b9b1\"}},\"@happyvertical/smrt-content:Mirror\":{\"name\":\"mirror\",\"className\":\"Mirror\",\"qualifiedName\":\"@happyvertical/smrt-content:Mirror\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-types.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"feedSourceId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"ContentFeedSource\"},\"sourceGuid\":{\"type\":\"text\",\"required\":false},\"sourceName\":{\"type\":\"text\",\"required\":false},\"sourceHomepageUrl\":{\"type\":\"text\",\"required\":false},\"externalUrl\":{\"type\":\"text\",\"required\":false},\"originalPublishedAt\":{\"type\":\"datetime\",\"required\":false},\"dedupeKey\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"contents\"},\"extends\":\"Content\",\"exportName\":\"Mirror\",\"collectionExportName\":\"MirrorCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID,\\n \\\"feed_source_id\\\" UUID,\\n \\\"source_guid\\\" TEXT,\\n \\\"source_name\\\" TEXT,\\n \\\"source_homepage_url\\\" TEXT,\\n \\\"external_url\\\" TEXT,\\n \\\"original_published_at\\\" TIMESTAMP,\\n \\\"dedupe_key\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"feed_source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"source_guid\":{\"type\":\"TEXT\",\"notNull\":false},\"source_name\":{\"type\":\"TEXT\",\"notNull\":false},\"source_homepage_url\":{\"type\":\"TEXT\",\"notNull\":false},\"external_url\":{\"type\":\"TEXT\",\"notNull\":false},\"original_published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"dedupe_key\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"f91f958a\"}},\"@happyvertical/smrt-content:ContentVersion\":{\"name\":\"contentversion\",\"className\":\"ContentVersion\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentVersion\",\"collection\":\"contentversions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-version.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Content\",\"_meta\":{\"required\":true}},\"version\":{\"type\":\"integer\",\"required\":true,\"default\":1},\"kind\":{\"type\":\"text\",\"required\":false,\"default\":\"manual\"},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false},\"summary\":{\"type\":\"text\",\"required\":false},\"snapshot\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getSnapshot\":{\"name\":\"getSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"ContentVersionMetadata\",\"isStatic\":false,\"isPublic\":true},\"getTransparency\":{\"name\":\"getTransparency\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getTransparencyAction\":{\"name\":\"getTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_versions\",\"conflictColumns\":[\"content_id\",\"version\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"getTransparencyAction\"],\"routes\":{\"getTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"ContentVersion\",\"collectionExportName\":\"ContentVersionCollection\",\"validationRules\":[{\"field\":\"contentId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"version\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"content_versions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false},\"version\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"kind\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"manual\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"summary\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"snapshot\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"content_versions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_versions_content_id_version_idx\",\"columns\":[\"content_id\",\"version\"],\"unique\":true}],\"version\":\"5715d20d\"}},\"@happyvertical/smrt-content:ContentVersionCollection\":{\"name\":\"contentversioncollection\",\"className\":\"ContentVersionCollection\",\"qualifiedName\":\"@happyvertical/smrt-content:ContentVersionCollection\",\"collection\":\"contentversions\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content-versions.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{},\"methods\":{\"listForContent\":{\"name\":\"listForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion[]>\",\"isStatic\":false,\"isPublic\":true},\"getLatestForContent\":{\"name\":\"getLatestForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getLatestPublishedForContent\":{\"name\":\"getLatestPublishedForContent\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getVersion\":{\"name\":\"getVersion\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false},{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<ContentVersion | null>\",\"isStatic\":false,\"isPublic\":true},\"getNextVersionNumber\":{\"name\":\"getNextVersionNumber\",\"async\":true,\"parameters\":[{\"name\":\"contentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"createSnapshot\":{\"name\":\"createSnapshot\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content\",\"optional\":false},{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"Promise<ContentVersion>\",\"isStatic\":false,\"isPublic\":true},\"restoreIntoContent\":{\"name\":\"restoreIntoContent\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content\",\"optional\":false},{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<Content>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"content_versions\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"ContentVersion\",\"exportName\":\"ContentVersionCollection\",\"collectionExportName\":\"ContentVersionCollectionCollection\",\"schema\":{\"tableName\":\"content_versions\",\"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);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"content_versions_id_idx\",\"columns\":[\"id\"]},{\"name\":\"content_versions_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"56acd806\"}},\"@happyvertical/smrt-content:Content\":{\"name\":\"content\",\"className\":\"Content\",\"qualifiedName\":\"@happyvertical/smrt-content:Content\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/content.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"type\":{\"type\":\"text\",\"required\":false},\"variant\":{\"type\":\"text\",\"required\":false},\"fileKey\":{\"type\":\"text\",\"required\":false},\"author\":{\"type\":\"text\",\"required\":false},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"title\":{\"type\":\"text\",\"required\":false},\"description\":{\"type\":\"text\",\"required\":false},\"body\":{\"type\":\"text\",\"required\":false},\"bodyFormat\":{\"type\":\"text\",\"required\":false},\"publish_date\":{\"type\":\"datetime\",\"required\":false},\"url\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"original_url\":{\"type\":\"text\",\"required\":false},\"language\":{\"type\":\"text\",\"required\":false},\"tags\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"category\":{\"type\":\"text\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"draft\"},\"state\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}},\"thumbnailAssetId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-assets:Asset\"}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernance\":{\"name\":\"resolveGovernance\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ResolvedContentGovernance>\",\"isStatic\":false,\"isPublic\":true},\"loadReferences\":{\"name\":\"loadReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"addReference\":{\"name\":\"addReference\",\"async\":true,\"parameters\":[{\"name\":\"content\",\"type\":\"Content | string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeReference\":{\"name\":\"removeReference\",\"async\":true,\"parameters\":[{\"name\":\"targetId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferences\":{\"name\":\"getReferences\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReferenceEdges\":{\"name\":\"getReferenceEdges\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"getReferenceDrift\":{\"name\":\"getReferenceDrift\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Array<object>>\",\"isStatic\":false,\"isPublic\":true},\"isGoverned\":{\"name\":\"isGoverned\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getFactLinks\":{\"name\":\"getFactLinks\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFacts\":{\"name\":\"getFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"addFact\":{\"name\":\"addFact\",\"async\":true,\"parameters\":[{\"name\":\"fact\",\"type\":\"Fact | string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true},{\"name\":\"metadata\",\"type\":\"Record<string>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"removeFact\":{\"name\":\"removeFact\",\"async\":true,\"parameters\":[{\"name\":\"factId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"syncFacts\":{\"name\":\"syncFacts\",\"async\":true,\"parameters\":[{\"name\":\"factIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"FactContentRelationship\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"any\",\"optional\":true,\"default\":\"\"},{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Fact[]>\",\"isStatic\":false,\"isPublic\":true},\"repairFactAudit\":{\"name\":\"repairFactAudit\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactAuditAction\":{\"name\":\"repairFactAuditAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidence\":{\"name\":\"repairFactEvidence\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"repairFactEvidenceAction\":{\"name\":\"repairFactEvidenceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditResourceRepairOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaims\":{\"name\":\"recheckFactClaims\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"recheckFactClaimsAction\":{\"name\":\"recheckFactClaimsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactAuditClaimRecheckOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatus\":{\"name\":\"updateFactEvidenceStatus\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"updateFactEvidenceStatusAction\":{\"name\":\"updateFactEvidenceStatusAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"FactEvidenceStatusUpdateOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditState\":{\"name\":\"getFactAuditState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<FactAuditState>\",\"isStatic\":false,\"isPublic\":true},\"getFactAuditStateAction\":{\"name\":\"getFactAuditStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFactsState\":{\"name\":\"getFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncFactsState\":{\"name\":\"syncFactsState\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"createVersion\":{\"name\":\"createVersion\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"CreateContentVersionOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getVersions\":{\"name\":\"getVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"restoreFromVersion\":{\"name\":\"restoreFromVersion\",\"async\":true,\"parameters\":[{\"name\":\"versionNumber\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviews\":{\"name\":\"getReviews\",\"async\":true,\"parameters\":[{\"name\":\"kind\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviews\":{\"name\":\"listReviews\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getReviewRequirements\":{\"name\":\"getReviewRequirements\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false},{\"name\":\"governance\",\"type\":\"ResolvedContentGovernance\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceState\":{\"name\":\"getGovernanceState\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ContentGovernanceState>\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceStateAction\":{\"name\":\"getGovernanceStateAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listReviewProfilesAction\":{\"name\":\"listReviewProfilesAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfile\":{\"name\":\"evaluateReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ContentReviewProfileEvaluation>\",\"isStatic\":false,\"isPublic\":true},\"evaluateReviewProfileAction\":{\"name\":\"evaluateReviewProfileAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isReadyForReviewProfile\":{\"name\":\"isReadyForReviewProfile\",\"async\":true,\"parameters\":[{\"name\":\"profileKey\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparency\":{\"name\":\"getPublishedTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPublishedTransparencyAction\":{\"name\":\"getPublishedTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparency\":{\"name\":\"previewTransparency\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"previewTransparencyAction\":{\"name\":\"previewTransparencyAction\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReview\":{\"name\":\"runReview\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"runReviewAction\":{\"name\":\"runReviewAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"RunContentReviewOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewFacts\":{\"name\":\"reviewFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"reviewSafety\":{\"name\":\"reviewSafety\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<RunContentReviewOptions, 'kind'>\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCorrections\":{\"name\":\"getCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listCorrections\":{\"name\":\"listCorrections\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrection\":{\"name\":\"issueCorrection\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"issueCorrectionAction\":{\"name\":\"issueCorrectionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"IssueContentCorrectionOptions\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"listVersions\":{\"name\":\"listVersions\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mutateVersionAction\":{\"name\":\"mutateVersionAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getCategorySegments\":{\"name\":\"getCategorySegments\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"getParentCategory\":{\"name\":\"getParentCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getRootCategory\":{\"name\":\"getRootCategory\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getAncestorPaths\":{\"name\":\"getAncestorPaths\",\"async\":false,\"parameters\":[],\"returnType\":\"string[]\",\"isStatic\":false,\"isPublic\":true},\"isInCategory\":{\"name\":\"isInCategory\",\"async\":false,\"parameters\":[{\"name\":\"categoryPath\",\"type\":\"string\",\"optional\":false},{\"name\":\"includeChildren\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"metadata\",\"type\":\"Record<string> | null | undefined\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"patch\",\"type\":\"Partial<Record<string>>\",\"optional\":false}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getThumbnail\":{\"name\":\"getThumbnail\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Image | null>\",\"isStatic\":false,\"isPublic\":true},\"setThumbnail\":{\"name\":\"setThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"image\",\"type\":\"Image\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"generateThumbnail\":{\"name\":\"generateThumbnail\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"ThumbnailOptions\",\"optional\":false}],\"returnType\":\"Promise<Image>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\",\"getFactsState\",\"syncFactsState\",\"getFactAuditStateAction\",\"repairFactAuditAction\",\"repairFactEvidenceAction\",\"recheckFactClaimsAction\",\"updateFactEvidenceStatusAction\",\"getGovernanceStateAction\",\"listReviews\",\"runReviewAction\",\"listReviewProfilesAction\",\"evaluateReviewProfileAction\",\"getPublishedTransparencyAction\",\"previewTransparencyAction\",\"listCorrections\",\"issueCorrectionAction\",\"listVersions\",\"mutateVersionAction\"],\"routes\":{\"getFactsState\":{\"method\":\"GET\",\"path\":\"facts\"},\"syncFactsState\":{\"method\":\"PUT\",\"path\":\"facts\"},\"getFactAuditStateAction\":{\"method\":\"GET\",\"path\":\"fact-audit\"},\"repairFactAuditAction\":{\"method\":\"POST\",\"path\":\"fact-audit/repair\"},\"repairFactEvidenceAction\":{\"method\":\"POST\",\"path\":\"fact-audit/evidence/repair\"},\"recheckFactClaimsAction\":{\"method\":\"POST\",\"path\":\"fact-audit/claims/recheck\"},\"updateFactEvidenceStatusAction\":{\"method\":\"PUT\",\"path\":\"fact-audit/evidence/status\"},\"getGovernanceStateAction\":{\"method\":\"GET\",\"path\":\"governance\"},\"listReviews\":{\"method\":\"GET\",\"path\":\"reviews\"},\"runReviewAction\":{\"method\":\"POST\",\"path\":\"reviews\"},\"listReviewProfilesAction\":{\"method\":\"GET\",\"path\":\"review-profiles\"},\"evaluateReviewProfileAction\":{\"method\":\"GET\",\"path\":\"review-profiles/[profileKey]\"},\"getPublishedTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency\"},\"previewTransparencyAction\":{\"method\":\"GET\",\"path\":\"transparency/preview\"},\"listCorrections\":{\"method\":\"GET\",\"path\":\"corrections\"},\"issueCorrectionAction\":{\"method\":\"POST\",\"path\":\"corrections\"},\"listVersions\":{\"method\":\"GET\",\"path\":\"versions\"},\"mutateVersionAction\":{\"method\":\"POST\",\"path\":\"versions\"}},\"serializers\":{\"item\":{\"importPath\":\"$lib/server/content-api-serializers\",\"exportName\":\"serializeContent\"}}},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"Content\",\"collectionExportName\":\"ContentCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"type\\\" TEXT,\\n \\\"variant\\\" TEXT,\\n \\\"file_key\\\" TEXT,\\n \\\"author\\\" TEXT,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"title\\\" TEXT,\\n \\\"description\\\" TEXT,\\n \\\"body\\\" TEXT,\\n \\\"body_format\\\" TEXT,\\n \\\"publish_date\\\" TIMESTAMP,\\n \\\"url\\\" TEXT,\\n \\\"source\\\" TEXT,\\n \\\"original_url\\\" TEXT,\\n \\\"language\\\" TEXT,\\n \\\"tags\\\" JSON DEFAULT '[]',\\n \\\"category\\\" TEXT,\\n \\\"status\\\" TEXT DEFAULT 'draft',\\n \\\"state\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON DEFAULT '{}',\\n \\\"thumbnail_asset_id\\\" UUID,\\n \\\"feed_source_id\\\" UUID,\\n \\\"source_guid\\\" TEXT,\\n \\\"source_name\\\" TEXT,\\n \\\"source_homepage_url\\\" TEXT,\\n \\\"external_url\\\" TEXT,\\n \\\"original_published_at\\\" TIMESTAMP,\\n \\\"dedupe_key\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"type\":{\"type\":\"TEXT\",\"notNull\":false},\"variant\":{\"type\":\"TEXT\",\"notNull\":false},\"file_key\":{\"type\":\"TEXT\",\"notNull\":false},\"author\":{\"type\":\"TEXT\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"title\":{\"type\":\"TEXT\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"body\":{\"type\":\"TEXT\",\"notNull\":false},\"body_format\":{\"type\":\"TEXT\",\"notNull\":false},\"publish_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"url\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false},\"original_url\":{\"type\":\"TEXT\",\"notNull\":false},\"language\":{\"type\":\"TEXT\",\"notNull\":false},\"tags\":{\"type\":\"JSON\",\"notNull\":false,\"default\":[]},\"category\":{\"type\":\"TEXT\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"draft\"},\"state\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}},\"thumbnail_asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"feed_source_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"source_guid\":{\"type\":\"TEXT\",\"notNull\":false},\"source_name\":{\"type\":\"TEXT\",\"notNull\":false},\"source_homepage_url\":{\"type\":\"TEXT\",\"notNull\":false},\"external_url\":{\"type\":\"TEXT\",\"notNull\":false},\"original_published_at\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"dedupe_key\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"contents_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"e07be74e\"}},\"@happyvertical/smrt-content:Contents\":{\"name\":\"contents\",\"className\":\"Contents\",\"qualifiedName\":\"@happyvertical/smrt-content:Contents\",\"collection\":\"contents\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/content/src/contents.ts\",\"packageName\":\"@happyvertical/smrt-content\",\"fields\":{\"contentDir\":{\"type\":\"text\",\"required\":false},\"loaded\":{\"type\":\"json\",\"required\":true}},\"methods\":{\"getDb\":{\"name\":\"getDb\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"browseFacts\":{\"name\":\"browseFacts\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGovernanceDefinitionsAction\":{\"name\":\"getGovernanceDefinitionsAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"resolveGovernanceAction\":{\"name\":\"resolveGovernanceAction\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"mirror\":{\"name\":\"mirror\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"writeContentFile\":{\"name\":\"writeContentFile\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"syncContentDir\":{\"name\":\"syncContentDir\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"generateMissingThumbnails\":{\"name\":\"generateMissingThumbnails\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateMissingThumbnailsOptions\",\"optional\":false}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Content[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"browseFacts\",\"getBySlug\",\"getGovernanceDefinitionsAction\",\"resolveGovernanceAction\"],\"routes\":{\"browseFacts\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"facts\"},\"getBySlug\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"by-slug\"},\"getGovernanceDefinitionsAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"governance\"},\"resolveGovernanceAction\":{\"scope\":\"collection\",\"method\":\"GET\",\"path\":\"governance/resolve\"}}},\"mcp\":false,\"cli\":false},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Content\",\"exportName\":\"Contents\",\"collectionExportName\":\"ContentsCollection\",\"validationRules\":[{\"field\":\"loaded\",\"rule\":\"required\",\"fieldType\":\"json\"}],\"schema\":{\"tableName\":\"contents\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"contents\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"content_dir\\\" TEXT,\\n \\\"loaded\\\" JSON NOT NULL\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"content_dir\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"loaded\":{\"type\":\"JSON\",\"notNull\":true,\"unique\":false}},\"indexes\":[{\"name\":\"contents_id_idx\",\"columns\":[\"id\"]},{\"name\":\"contents_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"c11f9ec0\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-assets\",\"@happyvertical/smrt-chat\",\"@happyvertical/smrt-core\",\"@happyvertical/smrt-facts\",\"@happyvertical/smrt-images\",\"@happyvertical/smrt-messages\",\"@happyvertical/smrt-profiles\",\"@happyvertical/smrt-prompts\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/asset-associable.ts
|
|
43
43
|
function isAssetAssociable(value) {
|
|
@@ -4928,7 +4928,7 @@ var ContentCorrectionCollection = class extends SmrtCollection {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
};
|
|
4930
4930
|
//#endregion
|
|
4931
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
4931
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/util.js
|
|
4932
4932
|
var regexName = /* @__PURE__ */ new RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
|
4933
4933
|
function getAllMatches(string, regex) {
|
|
4934
4934
|
const matches = [];
|
|
@@ -4968,7 +4968,7 @@ var criticalProperties = [
|
|
|
4968
4968
|
"prototype"
|
|
4969
4969
|
];
|
|
4970
4970
|
//#endregion
|
|
4971
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
4971
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/validator.js
|
|
4972
4972
|
var defaultOptions$1 = {
|
|
4973
4973
|
allowBooleanAttributes: false,
|
|
4974
4974
|
unpairedTags: []
|
|
@@ -5206,981 +5206,7 @@ function getPositionFromMatch(match) {
|
|
|
5206
5206
|
return match.startIndex + match[1].length;
|
|
5207
5207
|
}
|
|
5208
5208
|
//#endregion
|
|
5209
|
-
//#region ../../node_modules/.pnpm/@nodable+entities@
|
|
5210
|
-
/**
|
|
5211
|
-
* Basic Latin & Special Characters
|
|
5212
|
-
* @type {Record<string, string>}
|
|
5213
|
-
*/
|
|
5214
|
-
var BASIC_LATIN = {
|
|
5215
|
-
amp: "&",
|
|
5216
|
-
AMP: "&",
|
|
5217
|
-
lt: "<",
|
|
5218
|
-
LT: "<",
|
|
5219
|
-
gt: ">",
|
|
5220
|
-
GT: ">",
|
|
5221
|
-
quot: "\"",
|
|
5222
|
-
QUOT: "\"",
|
|
5223
|
-
apos: "'",
|
|
5224
|
-
lsquo: "‘",
|
|
5225
|
-
rsquo: "’",
|
|
5226
|
-
ldquo: "“",
|
|
5227
|
-
rdquo: "”",
|
|
5228
|
-
lsquor: "‚",
|
|
5229
|
-
rsquor: "’",
|
|
5230
|
-
ldquor: "„",
|
|
5231
|
-
bdquo: "„",
|
|
5232
|
-
comma: ",",
|
|
5233
|
-
period: ".",
|
|
5234
|
-
colon: ":",
|
|
5235
|
-
semi: ";",
|
|
5236
|
-
excl: "!",
|
|
5237
|
-
quest: "?",
|
|
5238
|
-
num: "#",
|
|
5239
|
-
dollar: "$",
|
|
5240
|
-
percent: "%",
|
|
5241
|
-
ast: "*",
|
|
5242
|
-
commat: "@",
|
|
5243
|
-
lowbar: "_",
|
|
5244
|
-
verbar: "|",
|
|
5245
|
-
vert: "|",
|
|
5246
|
-
sol: "/",
|
|
5247
|
-
bsol: "\\",
|
|
5248
|
-
lbrace: "{",
|
|
5249
|
-
rbrace: "}",
|
|
5250
|
-
lbrack: "[",
|
|
5251
|
-
rbrack: "]",
|
|
5252
|
-
lpar: "(",
|
|
5253
|
-
rpar: ")",
|
|
5254
|
-
nbsp: "\xA0",
|
|
5255
|
-
iexcl: "¡",
|
|
5256
|
-
cent: "¢",
|
|
5257
|
-
pound: "£",
|
|
5258
|
-
curren: "¤",
|
|
5259
|
-
yen: "¥",
|
|
5260
|
-
brvbar: "¦",
|
|
5261
|
-
sect: "§",
|
|
5262
|
-
uml: "¨",
|
|
5263
|
-
copy: "©",
|
|
5264
|
-
COPY: "©",
|
|
5265
|
-
ordf: "ª",
|
|
5266
|
-
laquo: "«",
|
|
5267
|
-
not: "¬",
|
|
5268
|
-
shy: "",
|
|
5269
|
-
reg: "®",
|
|
5270
|
-
REG: "®",
|
|
5271
|
-
macr: "¯",
|
|
5272
|
-
deg: "°",
|
|
5273
|
-
plusmn: "±",
|
|
5274
|
-
sup2: "²",
|
|
5275
|
-
sup3: "³",
|
|
5276
|
-
acute: "´",
|
|
5277
|
-
micro: "µ",
|
|
5278
|
-
para: "¶",
|
|
5279
|
-
middot: "·",
|
|
5280
|
-
cedil: "¸",
|
|
5281
|
-
sup1: "¹",
|
|
5282
|
-
ordm: "º",
|
|
5283
|
-
raquo: "»",
|
|
5284
|
-
frac14: "¼",
|
|
5285
|
-
frac12: "½",
|
|
5286
|
-
half: "½",
|
|
5287
|
-
frac34: "¾",
|
|
5288
|
-
iquest: "¿",
|
|
5289
|
-
times: "×",
|
|
5290
|
-
div: "÷",
|
|
5291
|
-
divide: "÷"
|
|
5292
|
-
};
|
|
5293
|
-
/**
|
|
5294
|
-
* Latin Extended & Accented Letters (A-Z)
|
|
5295
|
-
* @type {Record<string, string>}
|
|
5296
|
-
*/
|
|
5297
|
-
var LATIN_ACCENTS = {
|
|
5298
|
-
Agrave: "À",
|
|
5299
|
-
agrave: "à",
|
|
5300
|
-
Aacute: "Á",
|
|
5301
|
-
aacute: "á",
|
|
5302
|
-
Acirc: "Â",
|
|
5303
|
-
acirc: "â",
|
|
5304
|
-
Atilde: "Ã",
|
|
5305
|
-
atilde: "ã",
|
|
5306
|
-
Auml: "Ä",
|
|
5307
|
-
auml: "ä",
|
|
5308
|
-
Aring: "Å",
|
|
5309
|
-
aring: "å",
|
|
5310
|
-
AElig: "Æ",
|
|
5311
|
-
aelig: "æ",
|
|
5312
|
-
Ccedil: "Ç",
|
|
5313
|
-
ccedil: "ç",
|
|
5314
|
-
Egrave: "È",
|
|
5315
|
-
egrave: "è",
|
|
5316
|
-
Eacute: "É",
|
|
5317
|
-
eacute: "é",
|
|
5318
|
-
Ecirc: "Ê",
|
|
5319
|
-
ecirc: "ê",
|
|
5320
|
-
Euml: "Ë",
|
|
5321
|
-
euml: "ë",
|
|
5322
|
-
Igrave: "Ì",
|
|
5323
|
-
igrave: "ì",
|
|
5324
|
-
Iacute: "Í",
|
|
5325
|
-
iacute: "í",
|
|
5326
|
-
Icirc: "Î",
|
|
5327
|
-
icirc: "î",
|
|
5328
|
-
Iuml: "Ï",
|
|
5329
|
-
iuml: "ï",
|
|
5330
|
-
ETH: "Ð",
|
|
5331
|
-
eth: "ð",
|
|
5332
|
-
Ntilde: "Ñ",
|
|
5333
|
-
ntilde: "ñ",
|
|
5334
|
-
Ograve: "Ò",
|
|
5335
|
-
ograve: "ò",
|
|
5336
|
-
Oacute: "Ó",
|
|
5337
|
-
oacute: "ó",
|
|
5338
|
-
Ocirc: "Ô",
|
|
5339
|
-
ocirc: "ô",
|
|
5340
|
-
Otilde: "Õ",
|
|
5341
|
-
otilde: "õ",
|
|
5342
|
-
Ouml: "Ö",
|
|
5343
|
-
ouml: "ö",
|
|
5344
|
-
Oslash: "Ø",
|
|
5345
|
-
oslash: "ø",
|
|
5346
|
-
Ugrave: "Ù",
|
|
5347
|
-
ugrave: "ù",
|
|
5348
|
-
Uacute: "Ú",
|
|
5349
|
-
uacute: "ú",
|
|
5350
|
-
Ucirc: "Û",
|
|
5351
|
-
ucirc: "û",
|
|
5352
|
-
Uuml: "Ü",
|
|
5353
|
-
uuml: "ü",
|
|
5354
|
-
Yacute: "Ý",
|
|
5355
|
-
yacute: "ý",
|
|
5356
|
-
THORN: "Þ",
|
|
5357
|
-
thorn: "þ",
|
|
5358
|
-
szlig: "ß",
|
|
5359
|
-
yuml: "ÿ",
|
|
5360
|
-
Yuml: "Ÿ"
|
|
5361
|
-
};
|
|
5362
|
-
/**
|
|
5363
|
-
* Latin Extended (Letters with diacritics)
|
|
5364
|
-
* @type {Record<string, string>}
|
|
5365
|
-
*/
|
|
5366
|
-
var LATIN_EXTENDED = {
|
|
5367
|
-
Amacr: "Ā",
|
|
5368
|
-
amacr: "ā",
|
|
5369
|
-
Abreve: "Ă",
|
|
5370
|
-
abreve: "ă",
|
|
5371
|
-
Aogon: "Ą",
|
|
5372
|
-
aogon: "ą",
|
|
5373
|
-
Cacute: "Ć",
|
|
5374
|
-
cacute: "ć",
|
|
5375
|
-
Ccirc: "Ĉ",
|
|
5376
|
-
ccirc: "ĉ",
|
|
5377
|
-
Cdot: "Ċ",
|
|
5378
|
-
cdot: "ċ",
|
|
5379
|
-
Ccaron: "Č",
|
|
5380
|
-
ccaron: "č",
|
|
5381
|
-
Dcaron: "Ď",
|
|
5382
|
-
dcaron: "ď",
|
|
5383
|
-
Dstrok: "Đ",
|
|
5384
|
-
dstrok: "đ",
|
|
5385
|
-
Emacr: "Ē",
|
|
5386
|
-
emacr: "ē",
|
|
5387
|
-
Ecaron: "Ě",
|
|
5388
|
-
ecaron: "ě",
|
|
5389
|
-
Edot: "Ė",
|
|
5390
|
-
edot: "ė",
|
|
5391
|
-
Eogon: "Ę",
|
|
5392
|
-
eogon: "ę",
|
|
5393
|
-
Gcirc: "Ĝ",
|
|
5394
|
-
gcirc: "ĝ",
|
|
5395
|
-
Gbreve: "Ğ",
|
|
5396
|
-
gbreve: "ğ",
|
|
5397
|
-
Gdot: "Ġ",
|
|
5398
|
-
gdot: "ġ",
|
|
5399
|
-
Gcedil: "Ģ",
|
|
5400
|
-
Hcirc: "Ĥ",
|
|
5401
|
-
hcirc: "ĥ",
|
|
5402
|
-
Hstrok: "Ħ",
|
|
5403
|
-
hstrok: "ħ",
|
|
5404
|
-
Itilde: "Ĩ",
|
|
5405
|
-
itilde: "ĩ",
|
|
5406
|
-
Imacr: "Ī",
|
|
5407
|
-
imacr: "ī",
|
|
5408
|
-
Iogon: "Į",
|
|
5409
|
-
iogon: "į",
|
|
5410
|
-
Idot: "İ",
|
|
5411
|
-
IJlig: "IJ",
|
|
5412
|
-
ijlig: "ij",
|
|
5413
|
-
Jcirc: "Ĵ",
|
|
5414
|
-
jcirc: "ĵ",
|
|
5415
|
-
Kcedil: "Ķ",
|
|
5416
|
-
kcedil: "ķ",
|
|
5417
|
-
kgreen: "ĸ",
|
|
5418
|
-
Lacute: "Ĺ",
|
|
5419
|
-
lacute: "ĺ",
|
|
5420
|
-
Lcedil: "Ļ",
|
|
5421
|
-
lcedil: "ļ",
|
|
5422
|
-
Lcaron: "Ľ",
|
|
5423
|
-
lcaron: "ľ",
|
|
5424
|
-
Lmidot: "Ŀ",
|
|
5425
|
-
lmidot: "ŀ",
|
|
5426
|
-
Lstrok: "Ł",
|
|
5427
|
-
lstrok: "ł",
|
|
5428
|
-
Nacute: "Ń",
|
|
5429
|
-
nacute: "ń",
|
|
5430
|
-
Ncaron: "Ň",
|
|
5431
|
-
ncaron: "ň",
|
|
5432
|
-
Ncedil: "Ņ",
|
|
5433
|
-
ncedil: "ņ",
|
|
5434
|
-
ENG: "Ŋ",
|
|
5435
|
-
eng: "ŋ",
|
|
5436
|
-
Omacr: "Ō",
|
|
5437
|
-
omacr: "ō",
|
|
5438
|
-
Odblac: "Ő",
|
|
5439
|
-
odblac: "ő",
|
|
5440
|
-
OElig: "Œ",
|
|
5441
|
-
oelig: "œ",
|
|
5442
|
-
Racute: "Ŕ",
|
|
5443
|
-
racute: "ŕ",
|
|
5444
|
-
Rcaron: "Ř",
|
|
5445
|
-
rcaron: "ř",
|
|
5446
|
-
Rcedil: "Ŗ",
|
|
5447
|
-
rcedil: "ŗ",
|
|
5448
|
-
Sacute: "Ś",
|
|
5449
|
-
sacute: "ś",
|
|
5450
|
-
Scirc: "Ŝ",
|
|
5451
|
-
scirc: "ŝ",
|
|
5452
|
-
Scedil: "Ş",
|
|
5453
|
-
scedil: "ş",
|
|
5454
|
-
Scaron: "Š",
|
|
5455
|
-
scaron: "š",
|
|
5456
|
-
Tcedil: "Ţ",
|
|
5457
|
-
tcedil: "ţ",
|
|
5458
|
-
Tcaron: "Ť",
|
|
5459
|
-
tcaron: "ť",
|
|
5460
|
-
Tstrok: "Ŧ",
|
|
5461
|
-
tstrok: "ŧ",
|
|
5462
|
-
Utilde: "Ũ",
|
|
5463
|
-
utilde: "ũ",
|
|
5464
|
-
Umacr: "Ū",
|
|
5465
|
-
umacr: "ū",
|
|
5466
|
-
Ubreve: "Ŭ",
|
|
5467
|
-
ubreve: "ŭ",
|
|
5468
|
-
Uring: "Ů",
|
|
5469
|
-
uring: "ů",
|
|
5470
|
-
Udblac: "Ű",
|
|
5471
|
-
udblac: "ű",
|
|
5472
|
-
Uogon: "Ų",
|
|
5473
|
-
uogon: "ų",
|
|
5474
|
-
Wcirc: "Ŵ",
|
|
5475
|
-
wcirc: "ŵ",
|
|
5476
|
-
Ycirc: "Ŷ",
|
|
5477
|
-
ycirc: "ŷ",
|
|
5478
|
-
Zacute: "Ź",
|
|
5479
|
-
zacute: "ź",
|
|
5480
|
-
Zdot: "Ż",
|
|
5481
|
-
zdot: "ż",
|
|
5482
|
-
Zcaron: "Ž",
|
|
5483
|
-
zcaron: "ž"
|
|
5484
|
-
};
|
|
5485
|
-
/**
|
|
5486
|
-
* Greek Letters
|
|
5487
|
-
* @type {Record<string, string>}
|
|
5488
|
-
*/
|
|
5489
|
-
var GREEK = {
|
|
5490
|
-
Alpha: "Α",
|
|
5491
|
-
alpha: "α",
|
|
5492
|
-
Beta: "Β",
|
|
5493
|
-
beta: "β",
|
|
5494
|
-
Gamma: "Γ",
|
|
5495
|
-
gamma: "γ",
|
|
5496
|
-
Delta: "Δ",
|
|
5497
|
-
delta: "δ",
|
|
5498
|
-
Epsilon: "Ε",
|
|
5499
|
-
epsilon: "ε",
|
|
5500
|
-
epsiv: "ϵ",
|
|
5501
|
-
varepsilon: "ϵ",
|
|
5502
|
-
Zeta: "Ζ",
|
|
5503
|
-
zeta: "ζ",
|
|
5504
|
-
Eta: "Η",
|
|
5505
|
-
eta: "η",
|
|
5506
|
-
Theta: "Θ",
|
|
5507
|
-
theta: "θ",
|
|
5508
|
-
thetasym: "ϑ",
|
|
5509
|
-
vartheta: "ϑ",
|
|
5510
|
-
Iota: "Ι",
|
|
5511
|
-
iota: "ι",
|
|
5512
|
-
Kappa: "Κ",
|
|
5513
|
-
kappa: "κ",
|
|
5514
|
-
kappav: "ϰ",
|
|
5515
|
-
varkappa: "ϰ",
|
|
5516
|
-
Lambda: "Λ",
|
|
5517
|
-
lambda: "λ",
|
|
5518
|
-
Mu: "Μ",
|
|
5519
|
-
mu: "μ",
|
|
5520
|
-
Nu: "Ν",
|
|
5521
|
-
nu: "ν",
|
|
5522
|
-
Xi: "Ξ",
|
|
5523
|
-
xi: "ξ",
|
|
5524
|
-
Omicron: "Ο",
|
|
5525
|
-
omicron: "ο",
|
|
5526
|
-
Pi: "Π",
|
|
5527
|
-
pi: "π",
|
|
5528
|
-
piv: "ϖ",
|
|
5529
|
-
varpi: "ϖ",
|
|
5530
|
-
Rho: "Ρ",
|
|
5531
|
-
rho: "ρ",
|
|
5532
|
-
rhov: "ϱ",
|
|
5533
|
-
varrho: "ϱ",
|
|
5534
|
-
Sigma: "Σ",
|
|
5535
|
-
sigma: "σ",
|
|
5536
|
-
sigmaf: "ς",
|
|
5537
|
-
sigmav: "ς",
|
|
5538
|
-
varsigma: "ς",
|
|
5539
|
-
Tau: "Τ",
|
|
5540
|
-
tau: "τ",
|
|
5541
|
-
Upsilon: "Υ",
|
|
5542
|
-
upsilon: "υ",
|
|
5543
|
-
upsi: "υ",
|
|
5544
|
-
Upsi: "ϒ",
|
|
5545
|
-
upsih: "ϒ",
|
|
5546
|
-
Phi: "Φ",
|
|
5547
|
-
phi: "φ",
|
|
5548
|
-
phiv: "ϕ",
|
|
5549
|
-
varphi: "ϕ",
|
|
5550
|
-
Chi: "Χ",
|
|
5551
|
-
chi: "χ",
|
|
5552
|
-
Psi: "Ψ",
|
|
5553
|
-
psi: "ψ",
|
|
5554
|
-
Omega: "Ω",
|
|
5555
|
-
omega: "ω",
|
|
5556
|
-
ohm: "Ω",
|
|
5557
|
-
Gammad: "Ϝ",
|
|
5558
|
-
gammad: "ϝ",
|
|
5559
|
-
digamma: "ϝ"
|
|
5560
|
-
};
|
|
5561
|
-
/**
|
|
5562
|
-
* Cyrillic Letters
|
|
5563
|
-
* @type {Record<string, string>}
|
|
5564
|
-
*/
|
|
5565
|
-
var CYRILLIC = {
|
|
5566
|
-
Afr: "𝔄",
|
|
5567
|
-
afr: "𝔞",
|
|
5568
|
-
Acy: "А",
|
|
5569
|
-
acy: "а",
|
|
5570
|
-
Bcy: "Б",
|
|
5571
|
-
bcy: "б",
|
|
5572
|
-
Vcy: "В",
|
|
5573
|
-
vcy: "в",
|
|
5574
|
-
Gcy: "Г",
|
|
5575
|
-
gcy: "г",
|
|
5576
|
-
Dcy: "Д",
|
|
5577
|
-
dcy: "д",
|
|
5578
|
-
IEcy: "Е",
|
|
5579
|
-
iecy: "е",
|
|
5580
|
-
IOcy: "Ё",
|
|
5581
|
-
iocy: "ё",
|
|
5582
|
-
ZHcy: "Ж",
|
|
5583
|
-
zhcy: "ж",
|
|
5584
|
-
Zcy: "З",
|
|
5585
|
-
zcy: "з",
|
|
5586
|
-
Icy: "И",
|
|
5587
|
-
icy: "и",
|
|
5588
|
-
Jcy: "Й",
|
|
5589
|
-
jcy: "й",
|
|
5590
|
-
Kcy: "К",
|
|
5591
|
-
kcy: "к",
|
|
5592
|
-
Lcy: "Л",
|
|
5593
|
-
lcy: "л",
|
|
5594
|
-
Mcy: "М",
|
|
5595
|
-
mcy: "м",
|
|
5596
|
-
Ncy: "Н",
|
|
5597
|
-
ncy: "н",
|
|
5598
|
-
Ocy: "О",
|
|
5599
|
-
ocy: "о",
|
|
5600
|
-
Pcy: "П",
|
|
5601
|
-
pcy: "п",
|
|
5602
|
-
Rcy: "Р",
|
|
5603
|
-
rcy: "р",
|
|
5604
|
-
Scy: "С",
|
|
5605
|
-
scy: "с",
|
|
5606
|
-
Tcy: "Т",
|
|
5607
|
-
tcy: "т",
|
|
5608
|
-
Ucy: "У",
|
|
5609
|
-
ucy: "у",
|
|
5610
|
-
Fcy: "Ф",
|
|
5611
|
-
fcy: "ф",
|
|
5612
|
-
KHcy: "Х",
|
|
5613
|
-
khcy: "х",
|
|
5614
|
-
TScy: "Ц",
|
|
5615
|
-
tscy: "ц",
|
|
5616
|
-
CHcy: "Ч",
|
|
5617
|
-
chcy: "ч",
|
|
5618
|
-
SHcy: "Ш",
|
|
5619
|
-
shcy: "ш",
|
|
5620
|
-
SHCHcy: "Щ",
|
|
5621
|
-
shchcy: "щ",
|
|
5622
|
-
HARDcy: "Ъ",
|
|
5623
|
-
hardcy: "ъ",
|
|
5624
|
-
Ycy: "Ы",
|
|
5625
|
-
ycy: "ы",
|
|
5626
|
-
SOFTcy: "Ь",
|
|
5627
|
-
softcy: "ь",
|
|
5628
|
-
Ecy: "Э",
|
|
5629
|
-
ecy: "э",
|
|
5630
|
-
YUcy: "Ю",
|
|
5631
|
-
yucy: "ю",
|
|
5632
|
-
YAcy: "Я",
|
|
5633
|
-
yacy: "я",
|
|
5634
|
-
DJcy: "Ђ",
|
|
5635
|
-
djcy: "ђ",
|
|
5636
|
-
GJcy: "Ѓ",
|
|
5637
|
-
gjcy: "ѓ",
|
|
5638
|
-
Jukcy: "Є",
|
|
5639
|
-
jukcy: "є",
|
|
5640
|
-
DScy: "Ѕ",
|
|
5641
|
-
dscy: "ѕ",
|
|
5642
|
-
Iukcy: "І",
|
|
5643
|
-
iukcy: "і",
|
|
5644
|
-
YIcy: "Ї",
|
|
5645
|
-
yicy: "ї",
|
|
5646
|
-
Jsercy: "Ј",
|
|
5647
|
-
jsercy: "ј",
|
|
5648
|
-
LJcy: "Љ",
|
|
5649
|
-
ljcy: "љ",
|
|
5650
|
-
NJcy: "Њ",
|
|
5651
|
-
njcy: "њ",
|
|
5652
|
-
TSHcy: "Ћ",
|
|
5653
|
-
tshcy: "ћ",
|
|
5654
|
-
KJcy: "Ќ",
|
|
5655
|
-
kjcy: "ќ",
|
|
5656
|
-
Ubrcy: "Ў",
|
|
5657
|
-
ubrcy: "ў",
|
|
5658
|
-
DZcy: "Џ",
|
|
5659
|
-
dzcy: "џ"
|
|
5660
|
-
};
|
|
5661
|
-
/**
|
|
5662
|
-
* Mathematical Operators & Relations
|
|
5663
|
-
* @type {Record<string, string>}
|
|
5664
|
-
*/
|
|
5665
|
-
var MATH = {
|
|
5666
|
-
plus: "+",
|
|
5667
|
-
pm: "±",
|
|
5668
|
-
times: "×",
|
|
5669
|
-
div: "÷",
|
|
5670
|
-
divide: "÷",
|
|
5671
|
-
sdot: "⋅",
|
|
5672
|
-
star: "☆",
|
|
5673
|
-
starf: "★",
|
|
5674
|
-
bigstar: "★",
|
|
5675
|
-
lowast: "∗",
|
|
5676
|
-
ast: "*",
|
|
5677
|
-
midast: "*",
|
|
5678
|
-
compfn: "∘",
|
|
5679
|
-
smallcircle: "∘",
|
|
5680
|
-
bullet: "•",
|
|
5681
|
-
bull: "•",
|
|
5682
|
-
nbsp: "\xA0",
|
|
5683
|
-
hellip: "…",
|
|
5684
|
-
mldr: "…",
|
|
5685
|
-
prime: "′",
|
|
5686
|
-
Prime: "″",
|
|
5687
|
-
tprime: "‴",
|
|
5688
|
-
bprime: "‵",
|
|
5689
|
-
backprime: "‵",
|
|
5690
|
-
minus: "−",
|
|
5691
|
-
minusd: "∸",
|
|
5692
|
-
dotminus: "∸",
|
|
5693
|
-
plusdo: "∔",
|
|
5694
|
-
dotplus: "∔",
|
|
5695
|
-
plusmn: "±",
|
|
5696
|
-
minusplus: "∓",
|
|
5697
|
-
mnplus: "∓",
|
|
5698
|
-
mp: "∓",
|
|
5699
|
-
setminus: "∖",
|
|
5700
|
-
smallsetminus: "∖",
|
|
5701
|
-
Backslash: "∖",
|
|
5702
|
-
setmn: "∖",
|
|
5703
|
-
ssetmn: "∖",
|
|
5704
|
-
lowbar: "_",
|
|
5705
|
-
verbar: "|",
|
|
5706
|
-
vert: "|",
|
|
5707
|
-
VerticalLine: "|",
|
|
5708
|
-
colon: ":",
|
|
5709
|
-
Colon: "∷",
|
|
5710
|
-
Proportion: "∷",
|
|
5711
|
-
ratio: "∶",
|
|
5712
|
-
equals: "=",
|
|
5713
|
-
ne: "≠",
|
|
5714
|
-
nequiv: "≢",
|
|
5715
|
-
equiv: "≡",
|
|
5716
|
-
Congruent: "≡",
|
|
5717
|
-
sim: "∼",
|
|
5718
|
-
thicksim: "∼",
|
|
5719
|
-
thksim: "∼",
|
|
5720
|
-
sime: "≃",
|
|
5721
|
-
simeq: "≃",
|
|
5722
|
-
TildeEqual: "≃",
|
|
5723
|
-
asymp: "≈",
|
|
5724
|
-
approx: "≈",
|
|
5725
|
-
thickapprox: "≈",
|
|
5726
|
-
thkap: "≈",
|
|
5727
|
-
TildeTilde: "≈",
|
|
5728
|
-
ncong: "≇",
|
|
5729
|
-
cong: "≅",
|
|
5730
|
-
TildeFullEqual: "≅",
|
|
5731
|
-
asympeq: "≍",
|
|
5732
|
-
CupCap: "≍",
|
|
5733
|
-
bump: "≎",
|
|
5734
|
-
Bumpeq: "≎",
|
|
5735
|
-
HumpDownHump: "≎",
|
|
5736
|
-
bumpe: "≏",
|
|
5737
|
-
bumpeq: "≏",
|
|
5738
|
-
HumpEqual: "≏",
|
|
5739
|
-
le: "≤",
|
|
5740
|
-
LessEqual: "≤",
|
|
5741
|
-
ge: "≥",
|
|
5742
|
-
GreaterEqual: "≥",
|
|
5743
|
-
lesseqgtr: "⋚",
|
|
5744
|
-
lesseqqgtr: "⪋",
|
|
5745
|
-
greater: ">",
|
|
5746
|
-
less: "<"
|
|
5747
|
-
};
|
|
5748
|
-
/**
|
|
5749
|
-
* Mathematical Operators (Advanced)
|
|
5750
|
-
* @type {Record<string, string>}
|
|
5751
|
-
*/
|
|
5752
|
-
var MATH_ADVANCED = {
|
|
5753
|
-
alefsym: "ℵ",
|
|
5754
|
-
aleph: "ℵ",
|
|
5755
|
-
beth: "ℶ",
|
|
5756
|
-
gimel: "ℷ",
|
|
5757
|
-
daleth: "ℸ",
|
|
5758
|
-
forall: "∀",
|
|
5759
|
-
ForAll: "∀",
|
|
5760
|
-
part: "∂",
|
|
5761
|
-
PartialD: "∂",
|
|
5762
|
-
exist: "∃",
|
|
5763
|
-
Exists: "∃",
|
|
5764
|
-
nexist: "∄",
|
|
5765
|
-
nexists: "∄",
|
|
5766
|
-
empty: "∅",
|
|
5767
|
-
emptyset: "∅",
|
|
5768
|
-
emptyv: "∅",
|
|
5769
|
-
varnothing: "∅",
|
|
5770
|
-
nabla: "∇",
|
|
5771
|
-
Del: "∇",
|
|
5772
|
-
isin: "∈",
|
|
5773
|
-
isinv: "∈",
|
|
5774
|
-
in: "∈",
|
|
5775
|
-
Element: "∈",
|
|
5776
|
-
notin: "∉",
|
|
5777
|
-
notinva: "∉",
|
|
5778
|
-
ni: "∋",
|
|
5779
|
-
niv: "∋",
|
|
5780
|
-
SuchThat: "∋",
|
|
5781
|
-
ReverseElement: "∋",
|
|
5782
|
-
notni: "∌",
|
|
5783
|
-
notniva: "∌",
|
|
5784
|
-
prod: "∏",
|
|
5785
|
-
Product: "∏",
|
|
5786
|
-
coprod: "∐",
|
|
5787
|
-
Coproduct: "∐",
|
|
5788
|
-
sum: "∑",
|
|
5789
|
-
Sum: "∑",
|
|
5790
|
-
minus: "−",
|
|
5791
|
-
mp: "∓",
|
|
5792
|
-
plusdo: "∔",
|
|
5793
|
-
dotplus: "∔",
|
|
5794
|
-
setminus: "∖",
|
|
5795
|
-
lowast: "∗",
|
|
5796
|
-
radic: "√",
|
|
5797
|
-
Sqrt: "√",
|
|
5798
|
-
prop: "∝",
|
|
5799
|
-
propto: "∝",
|
|
5800
|
-
Proportional: "∝",
|
|
5801
|
-
varpropto: "∝",
|
|
5802
|
-
infin: "∞",
|
|
5803
|
-
infintie: "⧝",
|
|
5804
|
-
ang: "∠",
|
|
5805
|
-
angle: "∠",
|
|
5806
|
-
angmsd: "∡",
|
|
5807
|
-
measuredangle: "∡",
|
|
5808
|
-
angsph: "∢",
|
|
5809
|
-
mid: "∣",
|
|
5810
|
-
VerticalBar: "∣",
|
|
5811
|
-
nmid: "∤",
|
|
5812
|
-
nsmid: "∤",
|
|
5813
|
-
npar: "∦",
|
|
5814
|
-
parallel: "∥",
|
|
5815
|
-
spar: "∥",
|
|
5816
|
-
nparallel: "∦",
|
|
5817
|
-
nspar: "∦",
|
|
5818
|
-
and: "∧",
|
|
5819
|
-
wedge: "∧",
|
|
5820
|
-
or: "∨",
|
|
5821
|
-
vee: "∨",
|
|
5822
|
-
cap: "∩",
|
|
5823
|
-
cup: "∪",
|
|
5824
|
-
int: "∫",
|
|
5825
|
-
Integral: "∫",
|
|
5826
|
-
conint: "∮",
|
|
5827
|
-
ContourIntegral: "∮",
|
|
5828
|
-
Conint: "∯",
|
|
5829
|
-
DoubleContourIntegral: "∯",
|
|
5830
|
-
Cconint: "∰",
|
|
5831
|
-
there4: "∴",
|
|
5832
|
-
therefore: "∴",
|
|
5833
|
-
Therefore: "∴",
|
|
5834
|
-
becaus: "∵",
|
|
5835
|
-
because: "∵",
|
|
5836
|
-
Because: "∵",
|
|
5837
|
-
ratio: "∶",
|
|
5838
|
-
Proportion: "∷",
|
|
5839
|
-
minusd: "∸",
|
|
5840
|
-
dotminus: "∸",
|
|
5841
|
-
mDDot: "∺",
|
|
5842
|
-
homtht: "∻",
|
|
5843
|
-
sim: "∼",
|
|
5844
|
-
bsimg: "∽",
|
|
5845
|
-
backsim: "∽",
|
|
5846
|
-
ac: "∾",
|
|
5847
|
-
mstpos: "∾",
|
|
5848
|
-
acd: "∿",
|
|
5849
|
-
VerticalTilde: "≀",
|
|
5850
|
-
wr: "≀",
|
|
5851
|
-
wreath: "≀",
|
|
5852
|
-
nsime: "≄",
|
|
5853
|
-
nsimeq: "≄",
|
|
5854
|
-
ncong: "≇",
|
|
5855
|
-
simne: "≆",
|
|
5856
|
-
ncongdot: "⩭̸",
|
|
5857
|
-
ngsim: "≵",
|
|
5858
|
-
nsim: "≁",
|
|
5859
|
-
napprox: "≉",
|
|
5860
|
-
nap: "≉",
|
|
5861
|
-
ngeq: "≱",
|
|
5862
|
-
nge: "≱",
|
|
5863
|
-
nleq: "≰",
|
|
5864
|
-
nle: "≰",
|
|
5865
|
-
ngtr: "≯",
|
|
5866
|
-
ngt: "≯",
|
|
5867
|
-
nless: "≮",
|
|
5868
|
-
nlt: "≮",
|
|
5869
|
-
nprec: "⊀",
|
|
5870
|
-
npr: "⊀",
|
|
5871
|
-
nsucc: "⊁",
|
|
5872
|
-
nsc: "⊁"
|
|
5873
|
-
};
|
|
5874
|
-
/**
|
|
5875
|
-
* Arrows
|
|
5876
|
-
* @type {Record<string, string>}
|
|
5877
|
-
*/
|
|
5878
|
-
var ARROWS = {
|
|
5879
|
-
larr: "←",
|
|
5880
|
-
leftarrow: "←",
|
|
5881
|
-
LeftArrow: "←",
|
|
5882
|
-
uarr: "↑",
|
|
5883
|
-
uparrow: "↑",
|
|
5884
|
-
UpArrow: "↑",
|
|
5885
|
-
rarr: "→",
|
|
5886
|
-
rightarrow: "→",
|
|
5887
|
-
RightArrow: "→",
|
|
5888
|
-
darr: "↓",
|
|
5889
|
-
downarrow: "↓",
|
|
5890
|
-
DownArrow: "↓",
|
|
5891
|
-
harr: "↔",
|
|
5892
|
-
leftrightarrow: "↔",
|
|
5893
|
-
LeftRightArrow: "↔",
|
|
5894
|
-
varr: "↕",
|
|
5895
|
-
updownarrow: "↕",
|
|
5896
|
-
UpDownArrow: "↕",
|
|
5897
|
-
nwarr: "↖",
|
|
5898
|
-
nwarrow: "↖",
|
|
5899
|
-
UpperLeftArrow: "↖",
|
|
5900
|
-
nearr: "↗",
|
|
5901
|
-
nearrow: "↗",
|
|
5902
|
-
UpperRightArrow: "↗",
|
|
5903
|
-
searr: "↘",
|
|
5904
|
-
searrow: "↘",
|
|
5905
|
-
LowerRightArrow: "↘",
|
|
5906
|
-
swarr: "↙",
|
|
5907
|
-
swarrow: "↙",
|
|
5908
|
-
LowerLeftArrow: "↙",
|
|
5909
|
-
lArr: "⇐",
|
|
5910
|
-
Leftarrow: "⇐",
|
|
5911
|
-
uArr: "⇑",
|
|
5912
|
-
Uparrow: "⇑",
|
|
5913
|
-
rArr: "⇒",
|
|
5914
|
-
Rightarrow: "⇒",
|
|
5915
|
-
dArr: "⇓",
|
|
5916
|
-
Downarrow: "⇓",
|
|
5917
|
-
hArr: "⇔",
|
|
5918
|
-
Leftrightarrow: "⇔",
|
|
5919
|
-
iff: "⇔",
|
|
5920
|
-
vArr: "⇕",
|
|
5921
|
-
Updownarrow: "⇕",
|
|
5922
|
-
lAarr: "⇚",
|
|
5923
|
-
Lleftarrow: "⇚",
|
|
5924
|
-
rAarr: "⇛",
|
|
5925
|
-
Rrightarrow: "⇛",
|
|
5926
|
-
lrarr: "⇆",
|
|
5927
|
-
leftrightarrows: "⇆",
|
|
5928
|
-
rlarr: "⇄",
|
|
5929
|
-
rightleftarrows: "⇄",
|
|
5930
|
-
lrhar: "⇋",
|
|
5931
|
-
leftrightharpoons: "⇋",
|
|
5932
|
-
ReverseEquilibrium: "⇋",
|
|
5933
|
-
rlhar: "⇌",
|
|
5934
|
-
rightleftharpoons: "⇌",
|
|
5935
|
-
Equilibrium: "⇌",
|
|
5936
|
-
udarr: "⇅",
|
|
5937
|
-
UpArrowDownArrow: "⇅",
|
|
5938
|
-
duarr: "⇵",
|
|
5939
|
-
DownArrowUpArrow: "⇵",
|
|
5940
|
-
llarr: "⇇",
|
|
5941
|
-
leftleftarrows: "⇇",
|
|
5942
|
-
rrarr: "⇉",
|
|
5943
|
-
rightrightarrows: "⇉",
|
|
5944
|
-
ddarr: "⇊",
|
|
5945
|
-
downdownarrows: "⇊",
|
|
5946
|
-
har: "↽",
|
|
5947
|
-
lhard: "↽",
|
|
5948
|
-
leftharpoondown: "↽",
|
|
5949
|
-
lharu: "↼",
|
|
5950
|
-
leftharpoonup: "↼",
|
|
5951
|
-
rhard: "⇁",
|
|
5952
|
-
rightharpoondown: "⇁",
|
|
5953
|
-
rharu: "⇀",
|
|
5954
|
-
rightharpoonup: "⇀",
|
|
5955
|
-
lsh: "↰",
|
|
5956
|
-
Lsh: "↰",
|
|
5957
|
-
rsh: "↱",
|
|
5958
|
-
Rsh: "↱",
|
|
5959
|
-
ldsh: "↲",
|
|
5960
|
-
rdsh: "↳",
|
|
5961
|
-
hookleftarrow: "↩",
|
|
5962
|
-
hookrightarrow: "↪",
|
|
5963
|
-
mapstoleft: "↤",
|
|
5964
|
-
mapstoup: "↥",
|
|
5965
|
-
map: "↦",
|
|
5966
|
-
mapsto: "↦",
|
|
5967
|
-
mapstodown: "↧",
|
|
5968
|
-
crarr: "↵",
|
|
5969
|
-
nleftarrow: "↚",
|
|
5970
|
-
nleftrightarrow: "↮",
|
|
5971
|
-
nrightarrow: "↛",
|
|
5972
|
-
nrarr: "↛",
|
|
5973
|
-
larrtl: "↢",
|
|
5974
|
-
rarrtl: "↣",
|
|
5975
|
-
leftarrowtail: "↢",
|
|
5976
|
-
rightarrowtail: "↣",
|
|
5977
|
-
twoheadleftarrow: "↞",
|
|
5978
|
-
twoheadrightarrow: "↠",
|
|
5979
|
-
Larr: "↞",
|
|
5980
|
-
Rarr: "↠",
|
|
5981
|
-
larrhk: "↩",
|
|
5982
|
-
rarrhk: "↪",
|
|
5983
|
-
larrlp: "↫",
|
|
5984
|
-
looparrowleft: "↫",
|
|
5985
|
-
rarrlp: "↬",
|
|
5986
|
-
looparrowright: "↬",
|
|
5987
|
-
harrw: "↭",
|
|
5988
|
-
leftrightsquigarrow: "↭",
|
|
5989
|
-
nrarrw: "↝̸",
|
|
5990
|
-
rarrw: "↝",
|
|
5991
|
-
rightsquigarrow: "↝",
|
|
5992
|
-
larrbfs: "⤟",
|
|
5993
|
-
rarrbfs: "⤠",
|
|
5994
|
-
nvHarr: "⤄",
|
|
5995
|
-
nvlArr: "⤂",
|
|
5996
|
-
nvrArr: "⤃",
|
|
5997
|
-
larrfs: "⤝",
|
|
5998
|
-
rarrfs: "⤞",
|
|
5999
|
-
Map: "⤅",
|
|
6000
|
-
larrsim: "⥳",
|
|
6001
|
-
rarrsim: "⥴",
|
|
6002
|
-
harrcir: "⥈",
|
|
6003
|
-
Uarrocir: "⥉",
|
|
6004
|
-
lurdshar: "⥊",
|
|
6005
|
-
ldrdhar: "⥧",
|
|
6006
|
-
ldrushar: "⥋",
|
|
6007
|
-
rdldhar: "⥩",
|
|
6008
|
-
lrhard: "⥭",
|
|
6009
|
-
uharr: "↾",
|
|
6010
|
-
uharl: "↿",
|
|
6011
|
-
dharr: "⇂",
|
|
6012
|
-
dharl: "⇃",
|
|
6013
|
-
Uarr: "↟",
|
|
6014
|
-
Darr: "↡",
|
|
6015
|
-
zigrarr: "⇝",
|
|
6016
|
-
nwArr: "⇖",
|
|
6017
|
-
neArr: "⇗",
|
|
6018
|
-
seArr: "⇘",
|
|
6019
|
-
swArr: "⇙",
|
|
6020
|
-
nharr: "↮",
|
|
6021
|
-
nhArr: "⇎",
|
|
6022
|
-
nlarr: "↚",
|
|
6023
|
-
nlArr: "⇍",
|
|
6024
|
-
nrArr: "⇏",
|
|
6025
|
-
larrb: "⇤",
|
|
6026
|
-
LeftArrowBar: "⇤",
|
|
6027
|
-
rarrb: "⇥",
|
|
6028
|
-
RightArrowBar: "⇥"
|
|
6029
|
-
};
|
|
6030
|
-
/**
|
|
6031
|
-
* Geometric Shapes
|
|
6032
|
-
* @type {Record<string, string>}
|
|
6033
|
-
*/
|
|
6034
|
-
var SHAPES = {
|
|
6035
|
-
square: "□",
|
|
6036
|
-
Square: "□",
|
|
6037
|
-
squ: "□",
|
|
6038
|
-
squf: "▪",
|
|
6039
|
-
squarf: "▪",
|
|
6040
|
-
blacksquar: "▪",
|
|
6041
|
-
blacksquare: "▪",
|
|
6042
|
-
FilledVerySmallSquare: "▪",
|
|
6043
|
-
blk34: "▓",
|
|
6044
|
-
blk12: "▒",
|
|
6045
|
-
blk14: "░",
|
|
6046
|
-
block: "█",
|
|
6047
|
-
srect: "▭",
|
|
6048
|
-
rect: "▭",
|
|
6049
|
-
sdot: "⋅",
|
|
6050
|
-
sdotb: "⊡",
|
|
6051
|
-
dotsquare: "⊡",
|
|
6052
|
-
triangle: "▵",
|
|
6053
|
-
tri: "▵",
|
|
6054
|
-
trine: "▵",
|
|
6055
|
-
utri: "▵",
|
|
6056
|
-
triangledown: "▿",
|
|
6057
|
-
dtri: "▿",
|
|
6058
|
-
tridown: "▿",
|
|
6059
|
-
triangleleft: "◃",
|
|
6060
|
-
ltri: "◃",
|
|
6061
|
-
triangleright: "▹",
|
|
6062
|
-
rtri: "▹",
|
|
6063
|
-
blacktriangle: "▴",
|
|
6064
|
-
utrif: "▴",
|
|
6065
|
-
blacktriangledown: "▾",
|
|
6066
|
-
dtrif: "▾",
|
|
6067
|
-
blacktriangleleft: "◂",
|
|
6068
|
-
ltrif: "◂",
|
|
6069
|
-
blacktriangleright: "▸",
|
|
6070
|
-
rtrif: "▸",
|
|
6071
|
-
loz: "◊",
|
|
6072
|
-
lozenge: "◊",
|
|
6073
|
-
blacklozenge: "⧫",
|
|
6074
|
-
lozf: "⧫",
|
|
6075
|
-
bigcirc: "◯",
|
|
6076
|
-
xcirc: "◯",
|
|
6077
|
-
circ: "ˆ",
|
|
6078
|
-
Circle: "○",
|
|
6079
|
-
cir: "○",
|
|
6080
|
-
o: "○",
|
|
6081
|
-
bullet: "•",
|
|
6082
|
-
bull: "•",
|
|
6083
|
-
hellip: "…",
|
|
6084
|
-
mldr: "…",
|
|
6085
|
-
nldr: "‥",
|
|
6086
|
-
boxh: "─",
|
|
6087
|
-
HorizontalLine: "─",
|
|
6088
|
-
boxv: "│",
|
|
6089
|
-
boxdr: "┌",
|
|
6090
|
-
boxdl: "┐",
|
|
6091
|
-
boxur: "└",
|
|
6092
|
-
boxul: "┘",
|
|
6093
|
-
boxvr: "├",
|
|
6094
|
-
boxvl: "┤",
|
|
6095
|
-
boxhd: "┬",
|
|
6096
|
-
boxhu: "┴",
|
|
6097
|
-
boxvh: "┼",
|
|
6098
|
-
boxH: "═",
|
|
6099
|
-
boxV: "║",
|
|
6100
|
-
boxdR: "╒",
|
|
6101
|
-
boxDr: "╓",
|
|
6102
|
-
boxDR: "╔",
|
|
6103
|
-
boxDl: "╕",
|
|
6104
|
-
boxdL: "╖",
|
|
6105
|
-
boxDL: "╗",
|
|
6106
|
-
boxuR: "╘",
|
|
6107
|
-
boxUr: "╙",
|
|
6108
|
-
boxUR: "╚",
|
|
6109
|
-
boxUl: "╜",
|
|
6110
|
-
boxuL: "╛",
|
|
6111
|
-
boxUL: "╝",
|
|
6112
|
-
boxvR: "╞",
|
|
6113
|
-
boxVr: "╟",
|
|
6114
|
-
boxVR: "╠",
|
|
6115
|
-
boxVl: "╢",
|
|
6116
|
-
boxvL: "╡",
|
|
6117
|
-
boxVL: "╣",
|
|
6118
|
-
boxHd: "╤",
|
|
6119
|
-
boxhD: "╥",
|
|
6120
|
-
boxHD: "╦",
|
|
6121
|
-
boxHu: "╧",
|
|
6122
|
-
boxhU: "╨",
|
|
6123
|
-
boxHU: "╩",
|
|
6124
|
-
boxvH: "╪",
|
|
6125
|
-
boxVh: "╫",
|
|
6126
|
-
boxVH: "╬"
|
|
6127
|
-
};
|
|
6128
|
-
/**
|
|
6129
|
-
* Punctuation & Diacritics
|
|
6130
|
-
* @type {Record<string, string>}
|
|
6131
|
-
*/
|
|
6132
|
-
var PUNCTUATION = {
|
|
6133
|
-
excl: "!",
|
|
6134
|
-
iexcl: "¡",
|
|
6135
|
-
brvbar: "¦",
|
|
6136
|
-
sect: "§",
|
|
6137
|
-
uml: "¨",
|
|
6138
|
-
copy: "©",
|
|
6139
|
-
ordf: "ª",
|
|
6140
|
-
laquo: "«",
|
|
6141
|
-
not: "¬",
|
|
6142
|
-
shy: "",
|
|
6143
|
-
reg: "®",
|
|
6144
|
-
macr: "¯",
|
|
6145
|
-
deg: "°",
|
|
6146
|
-
plusmn: "±",
|
|
6147
|
-
sup2: "²",
|
|
6148
|
-
sup3: "³",
|
|
6149
|
-
acute: "´",
|
|
6150
|
-
micro: "µ",
|
|
6151
|
-
para: "¶",
|
|
6152
|
-
middot: "·",
|
|
6153
|
-
cedil: "¸",
|
|
6154
|
-
sup1: "¹",
|
|
6155
|
-
ordm: "º",
|
|
6156
|
-
raquo: "»",
|
|
6157
|
-
frac14: "¼",
|
|
6158
|
-
frac12: "½",
|
|
6159
|
-
frac34: "¾",
|
|
6160
|
-
iquest: "¿",
|
|
6161
|
-
nbsp: "\xA0",
|
|
6162
|
-
comma: ",",
|
|
6163
|
-
period: ".",
|
|
6164
|
-
colon: ":",
|
|
6165
|
-
semi: ";",
|
|
6166
|
-
vert: "|",
|
|
6167
|
-
Verbar: "‖",
|
|
6168
|
-
verbar: "|",
|
|
6169
|
-
dblac: "˝",
|
|
6170
|
-
circ: "ˆ",
|
|
6171
|
-
caron: "ˇ",
|
|
6172
|
-
breve: "˘",
|
|
6173
|
-
dot: "˙",
|
|
6174
|
-
ring: "˚",
|
|
6175
|
-
ogon: "˛",
|
|
6176
|
-
tilde: "˜",
|
|
6177
|
-
DiacriticalGrave: "`",
|
|
6178
|
-
DiacriticalAcute: "´",
|
|
6179
|
-
DiacriticalTilde: "˜",
|
|
6180
|
-
DiacriticalDot: "˙",
|
|
6181
|
-
DiacriticalDoubleAcute: "˝",
|
|
6182
|
-
grave: "`"
|
|
6183
|
-
};
|
|
5209
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/entities.js
|
|
6184
5210
|
/**
|
|
6185
5211
|
* Currency Symbols
|
|
6186
5212
|
* @type {Record<string, string>}
|
|
@@ -6202,114 +5228,6 @@ var CURRENCY = {
|
|
|
6202
5228
|
yuan: "¥",
|
|
6203
5229
|
cedil: "¸"
|
|
6204
5230
|
};
|
|
6205
|
-
/**
|
|
6206
|
-
* Fractions
|
|
6207
|
-
* @type {Record<string, string>}
|
|
6208
|
-
*/
|
|
6209
|
-
var FRACTIONS = {
|
|
6210
|
-
frac12: "½",
|
|
6211
|
-
half: "½",
|
|
6212
|
-
frac13: "⅓",
|
|
6213
|
-
frac14: "¼",
|
|
6214
|
-
frac15: "⅕",
|
|
6215
|
-
frac16: "⅙",
|
|
6216
|
-
frac18: "⅛",
|
|
6217
|
-
frac23: "⅔",
|
|
6218
|
-
frac25: "⅖",
|
|
6219
|
-
frac34: "¾",
|
|
6220
|
-
frac35: "⅗",
|
|
6221
|
-
frac38: "⅜",
|
|
6222
|
-
frac45: "⅘",
|
|
6223
|
-
frac56: "⅚",
|
|
6224
|
-
frac58: "⅝",
|
|
6225
|
-
frac78: "⅞",
|
|
6226
|
-
frasl: "⁄"
|
|
6227
|
-
};
|
|
6228
|
-
/**
|
|
6229
|
-
* Miscellaneous Symbols
|
|
6230
|
-
* @type {Record<string, string>}
|
|
6231
|
-
*/
|
|
6232
|
-
var MISC_SYMBOLS = {
|
|
6233
|
-
trade: "™",
|
|
6234
|
-
TRADE: "™",
|
|
6235
|
-
telrec: "⌕",
|
|
6236
|
-
target: "⌖",
|
|
6237
|
-
ulcorn: "⌜",
|
|
6238
|
-
ulcorner: "⌜",
|
|
6239
|
-
urcorn: "⌝",
|
|
6240
|
-
urcorner: "⌝",
|
|
6241
|
-
dlcorn: "⌞",
|
|
6242
|
-
llcorner: "⌞",
|
|
6243
|
-
drcorn: "⌟",
|
|
6244
|
-
lrcorner: "⌟",
|
|
6245
|
-
intercal: "⊺",
|
|
6246
|
-
intcal: "⊺",
|
|
6247
|
-
oplus: "⊕",
|
|
6248
|
-
CirclePlus: "⊕",
|
|
6249
|
-
ominus: "⊖",
|
|
6250
|
-
CircleMinus: "⊖",
|
|
6251
|
-
otimes: "⊗",
|
|
6252
|
-
CircleTimes: "⊗",
|
|
6253
|
-
osol: "⊘",
|
|
6254
|
-
odot: "⊙",
|
|
6255
|
-
CircleDot: "⊙",
|
|
6256
|
-
oast: "⊛",
|
|
6257
|
-
circledast: "⊛",
|
|
6258
|
-
odash: "⊝",
|
|
6259
|
-
circleddash: "⊝",
|
|
6260
|
-
ocirc: "⊚",
|
|
6261
|
-
circledcirc: "⊚",
|
|
6262
|
-
boxplus: "⊞",
|
|
6263
|
-
plusb: "⊞",
|
|
6264
|
-
boxminus: "⊟",
|
|
6265
|
-
minusb: "⊟",
|
|
6266
|
-
boxtimes: "⊠",
|
|
6267
|
-
timesb: "⊠",
|
|
6268
|
-
boxdot: "⊡",
|
|
6269
|
-
sdotb: "⊡",
|
|
6270
|
-
veebar: "⊻",
|
|
6271
|
-
vee: "∨",
|
|
6272
|
-
barvee: "⊽",
|
|
6273
|
-
and: "∧",
|
|
6274
|
-
wedge: "∧",
|
|
6275
|
-
Cap: "⋒",
|
|
6276
|
-
Cup: "⋓",
|
|
6277
|
-
Fork: "⋔",
|
|
6278
|
-
pitchfork: "⋔",
|
|
6279
|
-
epar: "⋕",
|
|
6280
|
-
ltlarr: "⥶",
|
|
6281
|
-
nvap: "≍⃒",
|
|
6282
|
-
nvsim: "∼⃒",
|
|
6283
|
-
nvge: "≥⃒",
|
|
6284
|
-
nvle: "≤⃒",
|
|
6285
|
-
nvlt: "<⃒",
|
|
6286
|
-
nvgt: ">⃒",
|
|
6287
|
-
nvltrie: "⊴⃒",
|
|
6288
|
-
nvrtrie: "⊵⃒",
|
|
6289
|
-
Vdash: "⊩",
|
|
6290
|
-
dashv: "⊣",
|
|
6291
|
-
vDash: "⊨",
|
|
6292
|
-
Vvdash: "⊪",
|
|
6293
|
-
nvdash: "⊬",
|
|
6294
|
-
nvDash: "⊭",
|
|
6295
|
-
nVdash: "⊮",
|
|
6296
|
-
nVDash: "⊯"
|
|
6297
|
-
};
|
|
6298
|
-
({
|
|
6299
|
-
...BASIC_LATIN,
|
|
6300
|
-
...LATIN_ACCENTS,
|
|
6301
|
-
...LATIN_EXTENDED,
|
|
6302
|
-
...GREEK,
|
|
6303
|
-
...CYRILLIC,
|
|
6304
|
-
...MATH,
|
|
6305
|
-
...MATH_ADVANCED,
|
|
6306
|
-
...ARROWS,
|
|
6307
|
-
...SHAPES,
|
|
6308
|
-
...PUNCTUATION,
|
|
6309
|
-
...CURRENCY,
|
|
6310
|
-
...FRACTIONS,
|
|
6311
|
-
...MISC_SYMBOLS
|
|
6312
|
-
});
|
|
6313
5231
|
var XML = {
|
|
6314
5232
|
amp: "&",
|
|
6315
5233
|
apos: "'",
|
|
@@ -6340,7 +5258,7 @@ var COMMON_HTML = {
|
|
|
6340
5258
|
frac34: "¾"
|
|
6341
5259
|
};
|
|
6342
5260
|
//#endregion
|
|
6343
|
-
//#region ../../node_modules/.pnpm/@nodable+entities@
|
|
5261
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/EntityDecoder.js
|
|
6344
5262
|
/**
|
|
6345
5263
|
* Action constants for `onExternalEntity` and `onInputEntity` hooks.
|
|
6346
5264
|
*
|
|
@@ -6805,7 +5723,7 @@ var EntityDecoder = class {
|
|
|
6805
5723
|
}
|
|
6806
5724
|
};
|
|
6807
5725
|
//#endregion
|
|
6808
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
5726
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
6809
5727
|
var defaultOnDangerousProperty = (name) => {
|
|
6810
5728
|
if (DANGEROUS_PROPERTY_NAMES.includes(name)) return "__" + name;
|
|
6811
5729
|
return name;
|
|
@@ -6932,7 +5850,7 @@ var buildOptions = function(options) {
|
|
|
6932
5850
|
return built;
|
|
6933
5851
|
};
|
|
6934
5852
|
//#endregion
|
|
6935
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
5853
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
6936
5854
|
var METADATA_SYMBOL$1;
|
|
6937
5855
|
if (typeof Symbol !== "function") METADATA_SYMBOL$1 = "@@xmlMetadata";
|
|
6938
5856
|
else METADATA_SYMBOL$1 = Symbol("XML Node Metadata");
|
|
@@ -6961,7 +5879,7 @@ var XmlNode = class {
|
|
|
6961
5879
|
}
|
|
6962
5880
|
};
|
|
6963
5881
|
//#endregion
|
|
6964
|
-
//#region ../../node_modules/.pnpm/xml-naming@0.
|
|
5882
|
+
//#region ../../node_modules/.pnpm/xml-naming@0.3.0/node_modules/xml-naming/src/index.js
|
|
6965
5883
|
/**
|
|
6966
5884
|
* xml-naming
|
|
6967
5885
|
* Validates XML Name productions as defined in the XML 1.0 and 1.1 specifications.
|
|
@@ -6987,15 +5905,22 @@ var buildRegexes = (startChar, char, flags = "") => {
|
|
|
6987
5905
|
};
|
|
6988
5906
|
var regexes10 = buildRegexes(nameStartChar10, nameChar10);
|
|
6989
5907
|
var regexes11 = buildRegexes(nameStartChar11, nameChar11, "u");
|
|
6990
|
-
var
|
|
5908
|
+
var regexesAscii = buildRegexes(":A-Za-z_", ":A-Za-z_\\-\\.\\d");
|
|
5909
|
+
var getRegexes = (xmlVersion = "1.0", asciiOnly = false) => {
|
|
5910
|
+
if (asciiOnly) return regexesAscii;
|
|
5911
|
+
return xmlVersion === "1.1" ? regexes11 : regexes10;
|
|
5912
|
+
};
|
|
6991
5913
|
/**
|
|
6992
5914
|
* Returns true if the string is a valid QName (Qualified Name).
|
|
6993
5915
|
* Allows exactly one colon as a prefix separator: prefix:localName.
|
|
6994
5916
|
* Used for: element and attribute names in namespace-aware XML/SVG.
|
|
5917
|
+
*
|
|
5918
|
+
* @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
|
|
5919
|
+
* asciiOnly: skip unicode-aware matching, ASCII names only (default false).
|
|
6995
5920
|
*/
|
|
6996
|
-
var qName = (str, { xmlVersion = "1.0" } = {}) => getRegexes(xmlVersion).qName.test(str);
|
|
5921
|
+
var qName = (str, { xmlVersion = "1.0", asciiOnly = false } = {}) => getRegexes(xmlVersion, asciiOnly).qName.test(str);
|
|
6997
5922
|
//#endregion
|
|
6998
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
5923
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
6999
5924
|
var DocTypeReader = class {
|
|
7000
5925
|
constructor(options, xmlVersion) {
|
|
7001
5926
|
this.suppressValidationErr = !options;
|
|
@@ -7514,7 +6439,7 @@ function handleInfinity(str, num, options) {
|
|
|
7514
6439
|
}
|
|
7515
6440
|
}
|
|
7516
6441
|
//#endregion
|
|
7517
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
6442
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
7518
6443
|
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
7519
6444
|
if (typeof ignoreAttributes === "function") return ignoreAttributes;
|
|
7520
6445
|
if (Array.isArray(ignoreAttributes)) return (attrName) => {
|
|
@@ -7526,7 +6451,7 @@ function getIgnoreAttributesFn(ignoreAttributes) {
|
|
|
7526
6451
|
return () => false;
|
|
7527
6452
|
}
|
|
7528
6453
|
//#endregion
|
|
7529
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
6454
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
7530
6455
|
/**
|
|
7531
6456
|
* Expression - Parses and stores a tag pattern expression
|
|
7532
6457
|
*
|
|
@@ -7678,7 +6603,7 @@ var Expression = class {
|
|
|
7678
6603
|
}
|
|
7679
6604
|
};
|
|
7680
6605
|
//#endregion
|
|
7681
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
6606
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/ExpressionSet.js
|
|
7682
6607
|
/**
|
|
7683
6608
|
* ExpressionSet - An indexed collection of Expressions for efficient bulk matching
|
|
7684
6609
|
*
|
|
@@ -7712,6 +6637,8 @@ var ExpressionSet = class {
|
|
|
7712
6637
|
this._wildcardByDepth = /* @__PURE__ */ new Map();
|
|
7713
6638
|
/** @type {import('./Expression.js').default[]} expressions containing deep wildcard (..) */
|
|
7714
6639
|
this._deepWildcards = [];
|
|
6640
|
+
/** @type {Map<string, import('./Expression.js').default[]>} terminalTag → deep wildcard expressions */
|
|
6641
|
+
this._deepByTerminalTag = /* @__PURE__ */ new Map();
|
|
7715
6642
|
/** @type {Set<string>} pattern strings already added — used for deduplication */
|
|
7716
6643
|
this._patterns = /* @__PURE__ */ new Set();
|
|
7717
6644
|
/** @type {boolean} whether the set is sealed against further additions */
|
|
@@ -7734,7 +6661,12 @@ var ExpressionSet = class {
|
|
|
7734
6661
|
if (this._patterns.has(expression.pattern)) return this;
|
|
7735
6662
|
this._patterns.add(expression.pattern);
|
|
7736
6663
|
if (expression.hasDeepWildcard()) {
|
|
7737
|
-
|
|
6664
|
+
const lastSeg = expression.segments[expression.segments.length - 1];
|
|
6665
|
+
if (lastSeg && lastSeg.type !== "deep-wildcard" && lastSeg.tag !== "*") {
|
|
6666
|
+
const tag = lastSeg.tag;
|
|
6667
|
+
if (!this._deepByTerminalTag.has(tag)) this._deepByTerminalTag.set(tag, []);
|
|
6668
|
+
this._deepByTerminalTag.get(tag).push(expression);
|
|
6669
|
+
} else this._deepWildcards.push(expression);
|
|
7738
6670
|
return this;
|
|
7739
6671
|
}
|
|
7740
6672
|
const depth = expression.length;
|
|
@@ -7837,7 +6769,8 @@ var ExpressionSet = class {
|
|
|
7837
6769
|
*/
|
|
7838
6770
|
findMatch(matcher) {
|
|
7839
6771
|
const depth = matcher.getDepth();
|
|
7840
|
-
const
|
|
6772
|
+
const tag = matcher.getCurrentTag();
|
|
6773
|
+
const exactKey = `${depth}:${tag}`;
|
|
7841
6774
|
const exactBucket = this._byDepthAndTag.get(exactKey);
|
|
7842
6775
|
if (exactBucket) {
|
|
7843
6776
|
for (let i = 0; i < exactBucket.length; i++) if (matcher.matches(exactBucket[i])) return exactBucket[i];
|
|
@@ -7846,12 +6779,16 @@ var ExpressionSet = class {
|
|
|
7846
6779
|
if (wildcardBucket) {
|
|
7847
6780
|
for (let i = 0; i < wildcardBucket.length; i++) if (matcher.matches(wildcardBucket[i])) return wildcardBucket[i];
|
|
7848
6781
|
}
|
|
6782
|
+
const deepBucket = this._deepByTerminalTag.get(tag);
|
|
6783
|
+
if (deepBucket) {
|
|
6784
|
+
for (let i = 0; i < deepBucket.length; i++) if (matcher.matches(deepBucket[i])) return deepBucket[i];
|
|
6785
|
+
}
|
|
7849
6786
|
for (let i = 0; i < this._deepWildcards.length; i++) if (matcher.matches(this._deepWildcards[i])) return this._deepWildcards[i];
|
|
7850
6787
|
return null;
|
|
7851
6788
|
}
|
|
7852
6789
|
};
|
|
7853
6790
|
//#endregion
|
|
7854
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
6791
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Matcher.js
|
|
7855
6792
|
/**
|
|
7856
6793
|
* MatcherView - A lightweight read-only view over a Matcher's internal state.
|
|
7857
6794
|
*
|
|
@@ -7923,6 +6860,24 @@ var MatcherView = class {
|
|
|
7923
6860
|
return current.values !== void 0 && attrName in current.values;
|
|
7924
6861
|
}
|
|
7925
6862
|
/**
|
|
6863
|
+
* Get the value of a "kept" attribute from the nearest ancestor (or
|
|
6864
|
+
* current node) that declared it via `push(tag, attrs, ns, { keep: [...] })`.
|
|
6865
|
+
* @param {string} attrName
|
|
6866
|
+
* @returns {*}
|
|
6867
|
+
*/
|
|
6868
|
+
getAnyParentAttr(attrName) {
|
|
6869
|
+
return this._matcher.getAnyParentAttr(attrName);
|
|
6870
|
+
}
|
|
6871
|
+
/**
|
|
6872
|
+
* Check whether any ancestor (or the current node) kept the given
|
|
6873
|
+
* attribute via `push(tag, attrs, ns, { keep: [...] })`.
|
|
6874
|
+
* @param {string} attrName
|
|
6875
|
+
* @returns {boolean}
|
|
6876
|
+
*/
|
|
6877
|
+
hasAnyParentAttr(attrName) {
|
|
6878
|
+
return this._matcher.hasAnyParentAttr(attrName);
|
|
6879
|
+
}
|
|
6880
|
+
/**
|
|
7926
6881
|
* Get current node's sibling position (child index in parent).
|
|
7927
6882
|
* @returns {number}
|
|
7928
6883
|
*/
|
|
@@ -8019,24 +6974,33 @@ var Matcher = class {
|
|
|
8019
6974
|
this.siblingStacks = [];
|
|
8020
6975
|
this._pathStringCache = null;
|
|
8021
6976
|
this._view = new MatcherView(this);
|
|
6977
|
+
this._keptAttrs = [];
|
|
8022
6978
|
}
|
|
8023
6979
|
/**
|
|
8024
6980
|
* Push a new tag onto the path.
|
|
8025
6981
|
* @param {string} tagName
|
|
8026
6982
|
* @param {Object|null} [attrValues=null]
|
|
8027
6983
|
* @param {string|null} [namespace=null]
|
|
6984
|
+
* @param {Object|null} [options=null]
|
|
6985
|
+
* @param {string[]} [options.keep] - Names of attributes (from attrValues)
|
|
8028
6986
|
*/
|
|
8029
|
-
push(tagName, attrValues = null, namespace = null) {
|
|
6987
|
+
push(tagName, attrValues = null, namespace = null, options = null) {
|
|
8030
6988
|
this._pathStringCache = null;
|
|
8031
6989
|
if (this.path.length > 0) this.path[this.path.length - 1].values = void 0;
|
|
8032
6990
|
const currentLevel = this.path.length;
|
|
8033
|
-
|
|
8034
|
-
|
|
6991
|
+
let level = this.siblingStacks[currentLevel];
|
|
6992
|
+
if (!level) {
|
|
6993
|
+
level = {
|
|
6994
|
+
counts: /* @__PURE__ */ new Map(),
|
|
6995
|
+
total: 0
|
|
6996
|
+
};
|
|
6997
|
+
this.siblingStacks[currentLevel] = level;
|
|
6998
|
+
}
|
|
8035
6999
|
const siblingKey = namespace ? `${namespace}:${tagName}` : tagName;
|
|
8036
|
-
const counter =
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
7000
|
+
const counter = level.counts.get(siblingKey) || 0;
|
|
7001
|
+
const position = level.total;
|
|
7002
|
+
level.counts.set(siblingKey, counter + 1);
|
|
7003
|
+
level.total++;
|
|
8040
7004
|
const node = {
|
|
8041
7005
|
tag: tagName,
|
|
8042
7006
|
position,
|
|
@@ -8045,6 +7009,16 @@ var Matcher = class {
|
|
|
8045
7009
|
if (namespace !== null && namespace !== void 0) node.namespace = namespace;
|
|
8046
7010
|
if (attrValues !== null && attrValues !== void 0) node.values = attrValues;
|
|
8047
7011
|
this.path.push(node);
|
|
7012
|
+
const depth = this.path.length;
|
|
7013
|
+
const keep = options !== null ? options.keep : null;
|
|
7014
|
+
if (keep !== null && keep !== void 0 && keep.length > 0 && attrValues) for (let i = 0; i < keep.length; i++) {
|
|
7015
|
+
const name = keep[i];
|
|
7016
|
+
if (attrValues[name] !== void 0) this._keptAttrs.push({
|
|
7017
|
+
depth,
|
|
7018
|
+
name,
|
|
7019
|
+
value: attrValues[name]
|
|
7020
|
+
});
|
|
7021
|
+
}
|
|
8048
7022
|
}
|
|
8049
7023
|
/**
|
|
8050
7024
|
* Pop the last tag from the path.
|
|
@@ -8055,6 +7029,8 @@ var Matcher = class {
|
|
|
8055
7029
|
this._pathStringCache = null;
|
|
8056
7030
|
const node = this.path.pop();
|
|
8057
7031
|
if (this.siblingStacks.length > this.path.length + 1) this.siblingStacks.length = this.path.length + 1;
|
|
7032
|
+
const poppedDepth = this.path.length + 1;
|
|
7033
|
+
while (this._keptAttrs.length > 0 && this._keptAttrs[this._keptAttrs.length - 1].depth >= poppedDepth) this._keptAttrs.pop();
|
|
8058
7034
|
return node;
|
|
8059
7035
|
}
|
|
8060
7036
|
/**
|
|
@@ -8102,6 +7078,31 @@ var Matcher = class {
|
|
|
8102
7078
|
return current.values !== void 0 && attrName in current.values;
|
|
8103
7079
|
}
|
|
8104
7080
|
/**
|
|
7081
|
+
* Get the value of a "kept" attribute from the nearest ancestor (or
|
|
7082
|
+
* current node) that declared it via `push(tag, attrs, ns, { keep: [...] })`.
|
|
7083
|
+
* Unlike getAttrValue(), this works regardless of how deep the path has
|
|
7084
|
+
* gone since the attribute was pushed — but only for attribute names that
|
|
7085
|
+
* were explicitly marked with `keep` at push time. Cost is proportional to
|
|
7086
|
+
* the number of currently-kept attributes (typically 0-3), not path depth.
|
|
7087
|
+
* @param {string} attrName
|
|
7088
|
+
* @returns {*} the value, or undefined if no ancestor kept this attribute
|
|
7089
|
+
*/
|
|
7090
|
+
getAnyParentAttr(attrName) {
|
|
7091
|
+
const kept = this._keptAttrs;
|
|
7092
|
+
for (let i = kept.length - 1; i >= 0; i--) if (kept[i].name === attrName) return kept[i].value;
|
|
7093
|
+
}
|
|
7094
|
+
/**
|
|
7095
|
+
* Check whether any ancestor (or the current node) kept the given
|
|
7096
|
+
* attribute via `push(tag, attrs, ns, { keep: [...] })`.
|
|
7097
|
+
* @param {string} attrName
|
|
7098
|
+
* @returns {boolean}
|
|
7099
|
+
*/
|
|
7100
|
+
hasAnyParentAttr(attrName) {
|
|
7101
|
+
const kept = this._keptAttrs;
|
|
7102
|
+
for (let i = kept.length - 1; i >= 0; i--) if (kept[i].name === attrName) return true;
|
|
7103
|
+
return false;
|
|
7104
|
+
}
|
|
7105
|
+
/**
|
|
8105
7106
|
* Get current node's sibling position (child index in parent).
|
|
8106
7107
|
* @returns {number}
|
|
8107
7108
|
*/
|
|
@@ -8162,6 +7163,7 @@ var Matcher = class {
|
|
|
8162
7163
|
this._pathStringCache = null;
|
|
8163
7164
|
this.path = [];
|
|
8164
7165
|
this.siblingStacks = [];
|
|
7166
|
+
this._keptAttrs = [];
|
|
8165
7167
|
}
|
|
8166
7168
|
/**
|
|
8167
7169
|
* Match current path against an Expression.
|
|
@@ -8250,7 +7252,11 @@ var Matcher = class {
|
|
|
8250
7252
|
snapshot() {
|
|
8251
7253
|
return {
|
|
8252
7254
|
path: this.path.map((node) => ({ ...node })),
|
|
8253
|
-
siblingStacks: this.siblingStacks.map((
|
|
7255
|
+
siblingStacks: this.siblingStacks.map((level) => level ? {
|
|
7256
|
+
counts: new Map(level.counts),
|
|
7257
|
+
total: level.total
|
|
7258
|
+
} : level),
|
|
7259
|
+
keptAttrs: this._keptAttrs.map((entry) => ({ ...entry }))
|
|
8254
7260
|
};
|
|
8255
7261
|
}
|
|
8256
7262
|
/**
|
|
@@ -8260,7 +7266,11 @@ var Matcher = class {
|
|
|
8260
7266
|
restore(snapshot) {
|
|
8261
7267
|
this._pathStringCache = null;
|
|
8262
7268
|
this.path = snapshot.path.map((node) => ({ ...node }));
|
|
8263
|
-
this.siblingStacks = snapshot.siblingStacks.map((
|
|
7269
|
+
this.siblingStacks = snapshot.siblingStacks.map((level) => level ? {
|
|
7270
|
+
counts: new Map(level.counts),
|
|
7271
|
+
total: level.total
|
|
7272
|
+
} : level);
|
|
7273
|
+
this._keptAttrs = (snapshot.keptAttrs || []).map((entry) => ({ ...entry }));
|
|
8264
7274
|
}
|
|
8265
7275
|
/**
|
|
8266
7276
|
* Return the read-only {@link MatcherView} for this matcher.
|
|
@@ -8283,7 +7293,7 @@ var Matcher = class {
|
|
|
8283
7293
|
}
|
|
8284
7294
|
};
|
|
8285
7295
|
//#endregion
|
|
8286
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7296
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/html.js
|
|
8287
7297
|
/**
|
|
8288
7298
|
* HTML context patterns.
|
|
8289
7299
|
*
|
|
@@ -8381,7 +7391,7 @@ var HTML_PATTERNS = [
|
|
|
8381
7391
|
}
|
|
8382
7392
|
];
|
|
8383
7393
|
//#endregion
|
|
8384
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7394
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/xml.js
|
|
8385
7395
|
/**
|
|
8386
7396
|
* XML context patterns.
|
|
8387
7397
|
*
|
|
@@ -8456,7 +7466,7 @@ var XML_PATTERNS = [
|
|
|
8456
7466
|
}
|
|
8457
7467
|
];
|
|
8458
7468
|
//#endregion
|
|
8459
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7469
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/svg.js
|
|
8460
7470
|
/**
|
|
8461
7471
|
* SVG context patterns.
|
|
8462
7472
|
*
|
|
@@ -8534,7 +7544,7 @@ var SVG_PATTERNS = [
|
|
|
8534
7544
|
}
|
|
8535
7545
|
];
|
|
8536
7546
|
//#endregion
|
|
8537
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7547
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/sql.js
|
|
8538
7548
|
/**
|
|
8539
7549
|
* SQL context patterns — high-precision rules only.
|
|
8540
7550
|
*
|
|
@@ -8626,49 +7636,7 @@ var SQL_PATTERNS = [
|
|
|
8626
7636
|
}
|
|
8627
7637
|
];
|
|
8628
7638
|
//#endregion
|
|
8629
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
8630
|
-
/**
|
|
8631
|
-
* SQL-STRICT context patterns.
|
|
8632
|
-
*
|
|
8633
|
-
* Extends the base 'SQL' context with three additional rules that are
|
|
8634
|
-
* effective at detecting real injections but carry a higher false-positive
|
|
8635
|
-
* risk on general free-text input.
|
|
8636
|
-
*
|
|
8637
|
-
* Use 'SQL-STRICT' when:
|
|
8638
|
-
* - The string is specifically a SQL fragment or database identifier
|
|
8639
|
-
* - You control the input domain (e.g. a dedicated SQL search field)
|
|
8640
|
-
* - You can tolerate occasional false positives in exchange for broader coverage
|
|
8641
|
-
*
|
|
8642
|
-
* Use 'SQL' (not STRICT) when:
|
|
8643
|
-
* - The field is general user text (names, descriptions, comments)
|
|
8644
|
-
* - False positives would block legitimate content (e.g. "see note -- above")
|
|
8645
|
-
*
|
|
8646
|
-
* Rules moved here from 'SQL' due to false-positive risk:
|
|
8647
|
-
*
|
|
8648
|
-
* sql-line-comment — "--" fires on "see note -- above", "value--", CSS var(--primary)
|
|
8649
|
-
* sql-stacked-query — "; SELECT" fires on legitimate prose with semicolons + SQL words
|
|
8650
|
-
* sql-hex-encoding — "0xDEAD" fires on hex values in technical docs and log output
|
|
8651
|
-
*/
|
|
8652
|
-
var SQL_STRICT_EXTRA = [
|
|
8653
|
-
{
|
|
8654
|
-
id: "sql-line-comment",
|
|
8655
|
-
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
8656
|
-
pattern: /--(?:\s|$)/
|
|
8657
|
-
},
|
|
8658
|
-
{
|
|
8659
|
-
id: "sql-stacked-query",
|
|
8660
|
-
description: "Stacked queries: semicolon immediately followed by a SQL keyword",
|
|
8661
|
-
pattern: /;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i
|
|
8662
|
-
},
|
|
8663
|
-
{
|
|
8664
|
-
id: "sql-hex-encoding",
|
|
8665
|
-
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
8666
|
-
pattern: /\b0x[0-9a-f]{4,}/i
|
|
8667
|
-
}
|
|
8668
|
-
];
|
|
8669
|
-
var SQL_STRICT_PATTERNS = [...SQL_PATTERNS, ...SQL_STRICT_EXTRA];
|
|
8670
|
-
//#endregion
|
|
8671
|
-
//#region ../../node_modules/.pnpm/is-unsafe@1.0.1/node_modules/is-unsafe/src/contexts/shell.js
|
|
7639
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/shell.js
|
|
8672
7640
|
/**
|
|
8673
7641
|
* SHELL context patterns.
|
|
8674
7642
|
*
|
|
@@ -8769,7 +7737,7 @@ var SHELL_PATTERNS = [
|
|
|
8769
7737
|
}
|
|
8770
7738
|
];
|
|
8771
7739
|
//#endregion
|
|
8772
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7740
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/redos.js
|
|
8773
7741
|
/**
|
|
8774
7742
|
* REDOS context patterns.
|
|
8775
7743
|
*
|
|
@@ -8824,24 +7792,228 @@ var REDOS_PATTERNS = [
|
|
|
8824
7792
|
}
|
|
8825
7793
|
];
|
|
8826
7794
|
//#endregion
|
|
8827
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7795
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/nosql.js
|
|
8828
7796
|
var sep = "[\"'\\s]*:";
|
|
7797
|
+
var NOSQL_PATTERNS = [
|
|
7798
|
+
{
|
|
7799
|
+
id: "nosql-where-operator",
|
|
7800
|
+
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
7801
|
+
pattern: new RegExp(`\\$where${sep}`, "i")
|
|
7802
|
+
},
|
|
7803
|
+
{
|
|
7804
|
+
id: "nosql-ne-operator",
|
|
7805
|
+
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
7806
|
+
pattern: new RegExp(`\\$ne${sep}`, "i")
|
|
7807
|
+
},
|
|
7808
|
+
{
|
|
7809
|
+
id: "nosql-gt-operator",
|
|
7810
|
+
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
7811
|
+
pattern: new RegExp(`\\$gte?${sep}`, "i")
|
|
7812
|
+
},
|
|
7813
|
+
{
|
|
7814
|
+
id: "nosql-lt-operator",
|
|
7815
|
+
description: "$lt / $lte — \"less than\" bypass variants",
|
|
7816
|
+
pattern: new RegExp(`\\$lte?${sep}`, "i")
|
|
7817
|
+
},
|
|
7818
|
+
{
|
|
7819
|
+
id: "nosql-regex-operator",
|
|
7820
|
+
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
7821
|
+
pattern: new RegExp(`\\$regex${sep}`, "i")
|
|
7822
|
+
},
|
|
7823
|
+
{
|
|
7824
|
+
id: "nosql-or-operator",
|
|
7825
|
+
description: "$or — logical OR; used to create always-true conditions",
|
|
7826
|
+
pattern: new RegExp(`\\$or${sep}\\s*\\[`, "i")
|
|
7827
|
+
},
|
|
7828
|
+
{
|
|
7829
|
+
id: "nosql-and-operator",
|
|
7830
|
+
description: "$and — logical AND operator injection",
|
|
7831
|
+
pattern: new RegExp(`\\$and${sep}\\s*\\[`, "i")
|
|
7832
|
+
},
|
|
7833
|
+
{
|
|
7834
|
+
id: "nosql-nor-operator",
|
|
7835
|
+
description: "$nor — logical NOR operator injection",
|
|
7836
|
+
pattern: new RegExp(`\\$nor${sep}\\s*\\[`, "i")
|
|
7837
|
+
},
|
|
7838
|
+
{
|
|
7839
|
+
id: "nosql-exists-operator",
|
|
7840
|
+
description: "$exists — can enumerate fields to determine schema",
|
|
7841
|
+
pattern: new RegExp(`\\$exists${sep}`, "i")
|
|
7842
|
+
},
|
|
7843
|
+
{
|
|
7844
|
+
id: "nosql-in-operator",
|
|
7845
|
+
description: "$in — matches any value in a list; can enumerate values",
|
|
7846
|
+
pattern: new RegExp(`\\$in${sep}\\s*\\[`, "i")
|
|
7847
|
+
},
|
|
7848
|
+
{
|
|
7849
|
+
id: "nosql-expr-operator",
|
|
7850
|
+
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
7851
|
+
pattern: new RegExp(`\\$expr${sep}`, "i")
|
|
7852
|
+
},
|
|
7853
|
+
{
|
|
7854
|
+
id: "nosql-function-operator",
|
|
7855
|
+
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
7856
|
+
pattern: new RegExp(`\\$function${sep}`, "i")
|
|
7857
|
+
},
|
|
7858
|
+
{
|
|
7859
|
+
id: "nosql-accumulator-operator",
|
|
7860
|
+
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
7861
|
+
pattern: new RegExp(`\\$accumulator${sep}`, "i")
|
|
7862
|
+
},
|
|
7863
|
+
{
|
|
7864
|
+
id: "nosql-proto-pollution",
|
|
7865
|
+
description: "__proto__ — prototype pollution via object key injection",
|
|
7866
|
+
pattern: /__proto__/
|
|
7867
|
+
},
|
|
7868
|
+
{
|
|
7869
|
+
id: "nosql-constructor-prototype",
|
|
7870
|
+
description: "constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)",
|
|
7871
|
+
pattern: /constructor[\s"':.,{\[]*prototype/i
|
|
7872
|
+
},
|
|
7873
|
+
{
|
|
7874
|
+
id: "nosql-proto-bracket",
|
|
7875
|
+
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
7876
|
+
pattern: /\[["']__proto__["']\]/
|
|
7877
|
+
}
|
|
7878
|
+
];
|
|
7879
|
+
//#endregion
|
|
7880
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/log.js
|
|
7881
|
+
/**
|
|
7882
|
+
* LOG context patterns.
|
|
7883
|
+
*
|
|
7884
|
+
* Detects injection vectors that are dangerous when a string is written
|
|
7885
|
+
* to a log file, passed to a logging framework, or interpolated into
|
|
7886
|
+
* a log message that will be parsed or displayed.
|
|
7887
|
+
*
|
|
7888
|
+
* Attack categories:
|
|
7889
|
+
* 1. CRLF injection — injects fake log lines by embedding newlines
|
|
7890
|
+
* 2. Log4Shell (CVE-2021-44228) — ${jndi:...} triggers JNDI lookup in Log4j
|
|
7891
|
+
* 3. SSTI in log templates — {{...}}, #{...} trigger template evaluation
|
|
7892
|
+
* if the log message is passed through a template engine
|
|
7893
|
+
* 4. Null byte injection — truncates log entries in some implementations
|
|
7894
|
+
* 5. ANSI escape injection — manipulates terminal output when logs are
|
|
7895
|
+
* tailed in a terminal (colour codes, cursor movement, etc.)
|
|
7896
|
+
*
|
|
7897
|
+
* Note: Newline characters (\n, \r) will produce false positives for
|
|
7898
|
+
* multi-line legitimate values. Use this context only for single-line
|
|
7899
|
+
* log field values (usernames, IDs, request parameters, etc.).
|
|
7900
|
+
*/
|
|
7901
|
+
var LOG_PATTERNS = [
|
|
7902
|
+
{
|
|
7903
|
+
id: "log-crlf-injection",
|
|
7904
|
+
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
7905
|
+
pattern: /[\r\n]/
|
|
7906
|
+
},
|
|
7907
|
+
{
|
|
7908
|
+
id: "log-url-encoded-crlf",
|
|
7909
|
+
description: "URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers",
|
|
7910
|
+
pattern: /%0[dDaA]/
|
|
7911
|
+
},
|
|
7912
|
+
{
|
|
7913
|
+
id: "log-unicode-newline",
|
|
7914
|
+
description: "Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",
|
|
7915
|
+
pattern: /[\u2028\u2029]/
|
|
7916
|
+
},
|
|
7917
|
+
{
|
|
7918
|
+
id: "log-log4shell-jndi",
|
|
7919
|
+
description: "Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",
|
|
7920
|
+
pattern: /\$\{jndi\s*:/i
|
|
7921
|
+
},
|
|
7922
|
+
{
|
|
7923
|
+
id: "log-log4shell-obfuscated",
|
|
7924
|
+
description: "Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",
|
|
7925
|
+
pattern: /\$\{::-/
|
|
7926
|
+
},
|
|
7927
|
+
{
|
|
7928
|
+
id: "log-log4j-lookup",
|
|
7929
|
+
description: "Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",
|
|
7930
|
+
pattern: /\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
id: "log-ssti-double-brace",
|
|
7934
|
+
description: "SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.",
|
|
7935
|
+
pattern: /\{\{[\s\S]{0,80}\}\}/
|
|
7936
|
+
},
|
|
7937
|
+
{
|
|
7938
|
+
id: "log-ssti-hash-brace",
|
|
7939
|
+
description: "SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB",
|
|
7940
|
+
pattern: /#\{[\s\S]{0,80}\}/
|
|
7941
|
+
},
|
|
7942
|
+
{
|
|
7943
|
+
id: "log-ssti-dollar-brace",
|
|
7944
|
+
description: "SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",
|
|
7945
|
+
pattern: /\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i
|
|
7946
|
+
},
|
|
7947
|
+
{
|
|
7948
|
+
id: "log-ssti-percent-tag",
|
|
7949
|
+
description: "SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP",
|
|
7950
|
+
pattern: /<%=[\s\S]{0,80}%>/
|
|
7951
|
+
},
|
|
7952
|
+
{
|
|
7953
|
+
id: "log-null-byte",
|
|
7954
|
+
description: "Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers",
|
|
7955
|
+
pattern: /\x00|%00/
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
id: "log-ansi-escape",
|
|
7959
|
+
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
7960
|
+
pattern: /\x1b\[/
|
|
7961
|
+
}
|
|
7962
|
+
];
|
|
8829
7963
|
//#endregion
|
|
8830
|
-
//#region ../../node_modules/.pnpm/is-unsafe@
|
|
7964
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/sql-strict.js
|
|
8831
7965
|
/**
|
|
8832
|
-
*
|
|
7966
|
+
* SQL-STRICT context patterns.
|
|
7967
|
+
*
|
|
7968
|
+
* Extends the base 'SQL' context with three additional rules that are
|
|
7969
|
+
* effective at detecting real injections but carry a higher false-positive
|
|
7970
|
+
* risk on general free-text input.
|
|
7971
|
+
*
|
|
7972
|
+
* Use 'SQL-STRICT' when:
|
|
7973
|
+
* - The string is specifically a SQL fragment or database identifier
|
|
7974
|
+
* - You control the input domain (e.g. a dedicated SQL search field)
|
|
7975
|
+
* - You can tolerate occasional false positives in exchange for broader coverage
|
|
7976
|
+
*
|
|
7977
|
+
* Use 'SQL' (not STRICT) when:
|
|
7978
|
+
* - The field is general user text (names, descriptions, comments)
|
|
7979
|
+
* - False positives would block legitimate content (e.g. "see note -- above")
|
|
8833
7980
|
*
|
|
8834
|
-
*
|
|
8835
|
-
* of pattern objects, and register it here.
|
|
7981
|
+
* Rules moved here from 'SQL' due to false-positive risk:
|
|
8836
7982
|
*
|
|
8837
|
-
*
|
|
8838
|
-
*
|
|
8839
|
-
*
|
|
8840
|
-
* use only for SQL-specific inputs
|
|
8841
|
-
* REDOS — detects ReDoS-prone patterns when string will be compiled as RegExp
|
|
7983
|
+
* sql-line-comment — "--" fires on "see note -- above", "value--", CSS var(--primary)
|
|
7984
|
+
* sql-stacked-query — "; SELECT" fires on legitimate prose with semicolons + SQL words
|
|
7985
|
+
* sql-hex-encoding — "0xDEAD" fires on hex values in technical docs and log output
|
|
8842
7986
|
*/
|
|
8843
|
-
|
|
8844
|
-
|
|
7987
|
+
var SQL_STRICT_EXTRA = [
|
|
7988
|
+
{
|
|
7989
|
+
id: "sql-line-comment",
|
|
7990
|
+
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
7991
|
+
pattern: /--(?:\s|$)/
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
id: "sql-stacked-query",
|
|
7995
|
+
description: "Stacked queries: semicolon immediately followed by a SQL keyword",
|
|
7996
|
+
pattern: /;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i
|
|
7997
|
+
},
|
|
7998
|
+
{
|
|
7999
|
+
id: "sql-hex-encoding",
|
|
8000
|
+
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
8001
|
+
pattern: /\b0x[0-9a-f]{4,}/i
|
|
8002
|
+
}
|
|
8003
|
+
];
|
|
8004
|
+
var SQL_STRICT_PATTERNS = [...SQL_PATTERNS, ...SQL_STRICT_EXTRA];
|
|
8005
|
+
//#endregion
|
|
8006
|
+
//#region ../../node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/index.js
|
|
8007
|
+
HTML_PATTERNS.label = "HTML";
|
|
8008
|
+
XML_PATTERNS.label = "XML";
|
|
8009
|
+
SVG_PATTERNS.label = "SVG";
|
|
8010
|
+
SQL_PATTERNS.label = "SQL";
|
|
8011
|
+
SQL_STRICT_PATTERNS.label = "SQL-STRICT";
|
|
8012
|
+
SHELL_PATTERNS.label = "SHELL";
|
|
8013
|
+
REDOS_PATTERNS.label = "REDOS";
|
|
8014
|
+
NOSQL_PATTERNS.label = "NOSQL";
|
|
8015
|
+
LOG_PATTERNS.label = "LOG";
|
|
8016
|
+
Object.freeze({
|
|
8845
8017
|
HTML: HTML_PATTERNS,
|
|
8846
8018
|
XML: XML_PATTERNS,
|
|
8847
8019
|
SVG: SVG_PATTERNS,
|
|
@@ -8849,213 +8021,73 @@ var CONTEXT_REGISTRY = {
|
|
|
8849
8021
|
"SQL-STRICT": SQL_STRICT_PATTERNS,
|
|
8850
8022
|
SHELL: SHELL_PATTERNS,
|
|
8851
8023
|
REDOS: REDOS_PATTERNS,
|
|
8852
|
-
NOSQL:
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
8856
|
-
pattern: new RegExp(`\\$where${sep}`, "i")
|
|
8857
|
-
},
|
|
8858
|
-
{
|
|
8859
|
-
id: "nosql-ne-operator",
|
|
8860
|
-
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
8861
|
-
pattern: new RegExp(`\\$ne${sep}`, "i")
|
|
8862
|
-
},
|
|
8863
|
-
{
|
|
8864
|
-
id: "nosql-gt-operator",
|
|
8865
|
-
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
8866
|
-
pattern: new RegExp(`\\$gte?${sep}`, "i")
|
|
8867
|
-
},
|
|
8868
|
-
{
|
|
8869
|
-
id: "nosql-lt-operator",
|
|
8870
|
-
description: "$lt / $lte — \"less than\" bypass variants",
|
|
8871
|
-
pattern: new RegExp(`\\$lte?${sep}`, "i")
|
|
8872
|
-
},
|
|
8873
|
-
{
|
|
8874
|
-
id: "nosql-regex-operator",
|
|
8875
|
-
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
8876
|
-
pattern: new RegExp(`\\$regex${sep}`, "i")
|
|
8877
|
-
},
|
|
8878
|
-
{
|
|
8879
|
-
id: "nosql-or-operator",
|
|
8880
|
-
description: "$or — logical OR; used to create always-true conditions",
|
|
8881
|
-
pattern: new RegExp(`\\$or${sep}\\s*\\[`, "i")
|
|
8882
|
-
},
|
|
8883
|
-
{
|
|
8884
|
-
id: "nosql-and-operator",
|
|
8885
|
-
description: "$and — logical AND operator injection",
|
|
8886
|
-
pattern: new RegExp(`\\$and${sep}\\s*\\[`, "i")
|
|
8887
|
-
},
|
|
8888
|
-
{
|
|
8889
|
-
id: "nosql-nor-operator",
|
|
8890
|
-
description: "$nor — logical NOR operator injection",
|
|
8891
|
-
pattern: new RegExp(`\\$nor${sep}\\s*\\[`, "i")
|
|
8892
|
-
},
|
|
8893
|
-
{
|
|
8894
|
-
id: "nosql-exists-operator",
|
|
8895
|
-
description: "$exists — can enumerate fields to determine schema",
|
|
8896
|
-
pattern: new RegExp(`\\$exists${sep}`, "i")
|
|
8897
|
-
},
|
|
8898
|
-
{
|
|
8899
|
-
id: "nosql-in-operator",
|
|
8900
|
-
description: "$in — matches any value in a list; can enumerate values",
|
|
8901
|
-
pattern: new RegExp(`\\$in${sep}\\s*\\[`, "i")
|
|
8902
|
-
},
|
|
8903
|
-
{
|
|
8904
|
-
id: "nosql-expr-operator",
|
|
8905
|
-
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
8906
|
-
pattern: new RegExp(`\\$expr${sep}`, "i")
|
|
8907
|
-
},
|
|
8908
|
-
{
|
|
8909
|
-
id: "nosql-function-operator",
|
|
8910
|
-
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
8911
|
-
pattern: new RegExp(`\\$function${sep}`, "i")
|
|
8912
|
-
},
|
|
8913
|
-
{
|
|
8914
|
-
id: "nosql-accumulator-operator",
|
|
8915
|
-
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
8916
|
-
pattern: new RegExp(`\\$accumulator${sep}`, "i")
|
|
8917
|
-
},
|
|
8918
|
-
{
|
|
8919
|
-
id: "nosql-proto-pollution",
|
|
8920
|
-
description: "__proto__ — prototype pollution via object key injection",
|
|
8921
|
-
pattern: /__proto__/
|
|
8922
|
-
},
|
|
8923
|
-
{
|
|
8924
|
-
id: "nosql-constructor-prototype",
|
|
8925
|
-
description: "constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)",
|
|
8926
|
-
pattern: /constructor[\s"':.,{\[]*prototype/i
|
|
8927
|
-
},
|
|
8928
|
-
{
|
|
8929
|
-
id: "nosql-proto-bracket",
|
|
8930
|
-
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
8931
|
-
pattern: /\[["']__proto__["']\]/
|
|
8932
|
-
}
|
|
8933
|
-
],
|
|
8934
|
-
LOG: [
|
|
8935
|
-
{
|
|
8936
|
-
id: "log-crlf-injection",
|
|
8937
|
-
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
8938
|
-
pattern: /[\r\n]/
|
|
8939
|
-
},
|
|
8940
|
-
{
|
|
8941
|
-
id: "log-url-encoded-crlf",
|
|
8942
|
-
description: "URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers",
|
|
8943
|
-
pattern: /%0[dDaA]/
|
|
8944
|
-
},
|
|
8945
|
-
{
|
|
8946
|
-
id: "log-unicode-newline",
|
|
8947
|
-
description: "Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",
|
|
8948
|
-
pattern: /[\u2028\u2029]/
|
|
8949
|
-
},
|
|
8950
|
-
{
|
|
8951
|
-
id: "log-log4shell-jndi",
|
|
8952
|
-
description: "Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",
|
|
8953
|
-
pattern: /\$\{jndi\s*:/i
|
|
8954
|
-
},
|
|
8955
|
-
{
|
|
8956
|
-
id: "log-log4shell-obfuscated",
|
|
8957
|
-
description: "Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",
|
|
8958
|
-
pattern: /\$\{::-/
|
|
8959
|
-
},
|
|
8960
|
-
{
|
|
8961
|
-
id: "log-log4j-lookup",
|
|
8962
|
-
description: "Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",
|
|
8963
|
-
pattern: /\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i
|
|
8964
|
-
},
|
|
8965
|
-
{
|
|
8966
|
-
id: "log-ssti-double-brace",
|
|
8967
|
-
description: "SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.",
|
|
8968
|
-
pattern: /\{\{[\s\S]{0,80}\}\}/
|
|
8969
|
-
},
|
|
8970
|
-
{
|
|
8971
|
-
id: "log-ssti-hash-brace",
|
|
8972
|
-
description: "SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB",
|
|
8973
|
-
pattern: /#\{[\s\S]{0,80}\}/
|
|
8974
|
-
},
|
|
8975
|
-
{
|
|
8976
|
-
id: "log-ssti-dollar-brace",
|
|
8977
|
-
description: "SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",
|
|
8978
|
-
pattern: /\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i
|
|
8979
|
-
},
|
|
8980
|
-
{
|
|
8981
|
-
id: "log-ssti-percent-tag",
|
|
8982
|
-
description: "SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP",
|
|
8983
|
-
pattern: /<%=[\s\S]{0,80}%>/
|
|
8984
|
-
},
|
|
8985
|
-
{
|
|
8986
|
-
id: "log-null-byte",
|
|
8987
|
-
description: "Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers",
|
|
8988
|
-
pattern: /\x00|%00/
|
|
8989
|
-
},
|
|
8990
|
-
{
|
|
8991
|
-
id: "log-ansi-escape",
|
|
8992
|
-
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
8993
|
-
pattern: /\x1b\[/
|
|
8994
|
-
}
|
|
8995
|
-
]
|
|
8996
|
-
};
|
|
8997
|
-
/**
|
|
8998
|
-
* Enum of valid context names — e.g. `VALID_CONTEXTS.HTML === 'HTML'`.
|
|
8999
|
-
* @type {Record<string, string>}
|
|
9000
|
-
*/
|
|
9001
|
-
var VALID_CONTEXTS = Object.freeze(Object.fromEntries(Object.keys(CONTEXT_REGISTRY).map((k) => [k, k])));
|
|
9002
|
-
//#endregion
|
|
9003
|
-
//#region ../../node_modules/.pnpm/is-unsafe@1.0.1/node_modules/is-unsafe/src/index.js
|
|
8024
|
+
NOSQL: NOSQL_PATTERNS,
|
|
8025
|
+
LOG: LOG_PATTERNS
|
|
8026
|
+
});
|
|
9004
8027
|
/**
|
|
9005
|
-
*
|
|
9006
|
-
*
|
|
9007
|
-
* Zero-dependency, DOM-free, pure predicate for detecting unsafe strings
|
|
9008
|
-
* across HTML, XML, SVG, SQL, SQL-STRICT, SHELL, REDOS, NOSQL, and LOG contexts.
|
|
9009
|
-
*
|
|
9010
|
-
* @module is-unsafe
|
|
8028
|
+
* @typedef {{ id: string, description: string, pattern: RegExp }} Rule
|
|
9011
8029
|
*/
|
|
9012
8030
|
/**
|
|
9013
|
-
* @typedef {
|
|
8031
|
+
* @typedef {Rule[]} PatternList
|
|
9014
8032
|
*/
|
|
9015
8033
|
/**
|
|
9016
8034
|
* @typedef {Object} MatchResult
|
|
9017
|
-
* @property {string} context
|
|
9018
|
-
* @property {string} id
|
|
8035
|
+
* @property {string} context - Label identifying which context matched ('HTML', 'CUSTOM', etc.)
|
|
8036
|
+
* @property {string} id - Rule identifier
|
|
9019
8037
|
* @property {string} description - Human-readable description of what was matched
|
|
9020
|
-
* @property {RegExp} pattern
|
|
8038
|
+
* @property {RegExp} pattern - The pattern that matched
|
|
9021
8039
|
*/
|
|
9022
8040
|
/**
|
|
9023
|
-
* Validate that `value` is a string. Throws TypeError if not.
|
|
9024
8041
|
* @param {unknown} value
|
|
9025
8042
|
*/
|
|
9026
8043
|
function assertString(value) {
|
|
9027
8044
|
if (typeof value !== "string") throw new TypeError(`is-unsafe: first argument must be a string, got ${typeof value}`);
|
|
9028
8045
|
}
|
|
9029
8046
|
/**
|
|
9030
|
-
*
|
|
9031
|
-
* or a RegExp instance. Throws TypeError if not.
|
|
9032
|
-
* @param {ContextName|ContextName[]|RegExp} context
|
|
8047
|
+
* @param {unknown} context
|
|
9033
8048
|
*/
|
|
9034
8049
|
function assertContext(context) {
|
|
9035
8050
|
if (context instanceof RegExp) return;
|
|
9036
|
-
if (typeof context === "string") {
|
|
9037
|
-
if (!CONTEXT_REGISTRY[context]) throw new TypeError(`is-unsafe: unknown context "${context}". Valid contexts: ${Object.keys(VALID_CONTEXTS).join(", ")}`);
|
|
9038
|
-
return;
|
|
9039
|
-
}
|
|
9040
8051
|
if (Array.isArray(context)) {
|
|
9041
|
-
if (context.length === 0) throw new TypeError("is-unsafe: context
|
|
9042
|
-
|
|
8052
|
+
if (context.length === 0) throw new TypeError("is-unsafe: context must not be an empty array");
|
|
8053
|
+
if (Array.isArray(context[0])) {
|
|
8054
|
+
for (const list of context) if (!Array.isArray(list) || list.length === 0) throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)");
|
|
8055
|
+
}
|
|
9043
8056
|
return;
|
|
9044
8057
|
}
|
|
9045
|
-
throw new TypeError(`is-unsafe: second argument must be a
|
|
8058
|
+
throw new TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof context}`);
|
|
8059
|
+
}
|
|
8060
|
+
/**
|
|
8061
|
+
* Normalise any valid context arg into an array of PatternLists.
|
|
8062
|
+
*
|
|
8063
|
+
* @param {Rule[]|Rule[][]|RegExp} context
|
|
8064
|
+
* @returns {{ lists: Rule[][]|null, regex: RegExp|null }}
|
|
8065
|
+
*/
|
|
8066
|
+
function normalise(context) {
|
|
8067
|
+
if (context instanceof RegExp) return {
|
|
8068
|
+
lists: null,
|
|
8069
|
+
regex: context
|
|
8070
|
+
};
|
|
8071
|
+
if (Array.isArray(context[0])) return {
|
|
8072
|
+
lists: context,
|
|
8073
|
+
regex: null
|
|
8074
|
+
};
|
|
8075
|
+
return {
|
|
8076
|
+
lists: [context],
|
|
8077
|
+
regex: null
|
|
8078
|
+
};
|
|
9046
8079
|
}
|
|
9047
8080
|
/**
|
|
9048
|
-
* Test a single
|
|
9049
|
-
* Returns the first matching MatchResult, or null if nothing matched.
|
|
8081
|
+
* Test value against a single PatternList. Returns the first MatchResult or null.
|
|
9050
8082
|
*
|
|
9051
8083
|
* @param {string} value
|
|
9052
|
-
* @param {
|
|
8084
|
+
* @param {Rule[]} list
|
|
9053
8085
|
* @returns {MatchResult|null}
|
|
9054
8086
|
*/
|
|
9055
|
-
function
|
|
9056
|
-
const
|
|
9057
|
-
for (const rule of
|
|
9058
|
-
context:
|
|
8087
|
+
function matchList(value, list) {
|
|
8088
|
+
const label = list.label ?? "CUSTOM";
|
|
8089
|
+
for (const rule of list) if (rule.pattern.test(value)) return {
|
|
8090
|
+
context: label,
|
|
9059
8091
|
id: rule.id,
|
|
9060
8092
|
description: rule.description,
|
|
9061
8093
|
pattern: rule.pattern
|
|
@@ -9065,29 +8097,31 @@ function matchContext(value, contextName) {
|
|
|
9065
8097
|
/**
|
|
9066
8098
|
* Returns `true` if `value` is unsafe in the given context(s), `false` otherwise.
|
|
9067
8099
|
*
|
|
9068
|
-
* @param {string} value
|
|
9069
|
-
* @param {
|
|
9070
|
-
* - A
|
|
9071
|
-
* - An array of
|
|
8100
|
+
* @param {string} value - The string to test
|
|
8101
|
+
* @param {PatternList | PatternList[] | RegExp} context
|
|
8102
|
+
* - A PatternList imported from is-unsafe (e.g. `HTML`, `XML`)
|
|
8103
|
+
* - An array of PatternLists — returns true if unsafe in **any** of them
|
|
9072
8104
|
* - A custom RegExp — returns true if the pattern matches
|
|
9073
8105
|
* @returns {boolean}
|
|
9074
8106
|
*
|
|
9075
8107
|
* @example
|
|
9076
|
-
* isUnsafe
|
|
9077
|
-
*
|
|
9078
|
-
* isUnsafe('
|
|
9079
|
-
* isUnsafe('
|
|
8108
|
+
* import { isUnsafe, HTML, SQL } from 'is-unsafe';
|
|
8109
|
+
*
|
|
8110
|
+
* isUnsafe('<script>alert(1)<\/script>', HTML) // true
|
|
8111
|
+
* isUnsafe('hello world', HTML) // false
|
|
8112
|
+
* isUnsafe('value', [HTML, SQL]) // false
|
|
8113
|
+
* isUnsafe('value', /my-pattern/i) // false
|
|
9080
8114
|
*/
|
|
9081
8115
|
function isUnsafe(value, context) {
|
|
9082
8116
|
assertString(value);
|
|
9083
8117
|
assertContext(context);
|
|
9084
|
-
|
|
9085
|
-
if (
|
|
9086
|
-
for (const
|
|
8118
|
+
const { lists, regex } = normalise(context);
|
|
8119
|
+
if (regex) return regex.test(value);
|
|
8120
|
+
for (const list of lists) if (matchList(value, list) !== null) return true;
|
|
9087
8121
|
return false;
|
|
9088
8122
|
}
|
|
9089
8123
|
//#endregion
|
|
9090
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
8124
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
9091
8125
|
/**
|
|
9092
8126
|
* Extract raw attributes (without prefix) from prefixed attribute map
|
|
9093
8127
|
* @param {object} prefixedAttrs - Attributes with prefix from buildAttributesMap
|
|
@@ -9135,6 +8169,7 @@ var OrderedObjParser = class {
|
|
|
9135
8169
|
this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
|
|
9136
8170
|
this.entityExpansionCount = 0;
|
|
9137
8171
|
this.currentExpandedLength = 0;
|
|
8172
|
+
this.doctypefound = false;
|
|
9138
8173
|
let namedEntities = { ...XML };
|
|
9139
8174
|
if (this.options.entityDecoder) this.entityDecoder = this.options.entityDecoder;
|
|
9140
8175
|
else {
|
|
@@ -9154,7 +8189,7 @@ var OrderedObjParser = class {
|
|
|
9154
8189
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
9155
8190
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
9156
8191
|
},
|
|
9157
|
-
onInputEntity: (name, value) => isUnsafe(value, [
|
|
8192
|
+
onInputEntity: (name, value) => isUnsafe(value, [HTML_PATTERNS, XML_PATTERNS]) ? ENTITY_ACTION.BLOCK : ENTITY_ACTION.ALLOW
|
|
9158
8193
|
});
|
|
9159
8194
|
}
|
|
9160
8195
|
this.matcher = new Matcher();
|
|
@@ -9269,6 +8304,7 @@ var parseXml = function(xmlData) {
|
|
|
9269
8304
|
this.entityDecoder.reset();
|
|
9270
8305
|
this.entityExpansionCount = 0;
|
|
9271
8306
|
this.currentExpandedLength = 0;
|
|
8307
|
+
this.doctypefound = false;
|
|
9272
8308
|
const options = this.options;
|
|
9273
8309
|
const docTypeReader = new DocTypeReader(options.processEntities);
|
|
9274
8310
|
const xmlLen = xmlData.length;
|
|
@@ -9320,6 +8356,8 @@ var parseXml = function(xmlData) {
|
|
|
9320
8356
|
}
|
|
9321
8357
|
i = endIndex;
|
|
9322
8358
|
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 68) {
|
|
8359
|
+
if (this.doctypefound) throw new Error("Multiple DOCTYPE declarations found.");
|
|
8360
|
+
this.doctypefound = true;
|
|
9323
8361
|
const result = docTypeReader.readDocType(xmlData, i);
|
|
9324
8362
|
this.entityDecoder.addInputEntities(result.entities);
|
|
9325
8363
|
i = result.i;
|
|
@@ -9601,7 +8639,7 @@ function sanitizeName(name, options) {
|
|
|
9601
8639
|
return name;
|
|
9602
8640
|
}
|
|
9603
8641
|
//#endregion
|
|
9604
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
8642
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
9605
8643
|
var METADATA_SYMBOL = XmlNode.getMetaDataSymbol();
|
|
9606
8644
|
/**
|
|
9607
8645
|
* Helper function to strip attribute prefix from attribute map
|
|
@@ -9701,7 +8739,7 @@ function isLeafTag(obj, options) {
|
|
|
9701
8739
|
return false;
|
|
9702
8740
|
}
|
|
9703
8741
|
//#endregion
|
|
9704
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.
|
|
8742
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
9705
8743
|
var XMLParser = class {
|
|
9706
8744
|
constructor(options) {
|
|
9707
8745
|
this.externalEntities = {};
|