@happyvertical/smrt-content 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +194 -0
- package/CLAUDE.md +1 -0
- package/LICENSE +7 -0
- package/README.md +634 -0
- package/dist/__smrt-register__.d.ts +2 -0
- package/dist/__smrt-register__.d.ts.map +1 -0
- package/dist/asset-associable.d.ts +115 -0
- package/dist/asset-associable.d.ts.map +1 -0
- package/dist/body-format.d.ts +29 -0
- package/dist/body-format.d.ts.map +1 -0
- package/dist/body-format.js +604 -0
- package/dist/body-format.js.map +1 -0
- package/dist/content-asset.d.ts +17 -0
- package/dist/content-asset.d.ts.map +1 -0
- package/dist/content-assets.d.ts +10 -0
- package/dist/content-assets.d.ts.map +1 -0
- package/dist/content-chat-handlers.d.ts +115 -0
- package/dist/content-chat-handlers.d.ts.map +1 -0
- package/dist/content-chat-prompts.d.ts +3 -0
- package/dist/content-chat-prompts.d.ts.map +1 -0
- package/dist/content-chat-session.d.ts +26 -0
- package/dist/content-chat-session.d.ts.map +1 -0
- package/dist/content-contribution-attachment.d.ts +42 -0
- package/dist/content-contribution-attachment.d.ts.map +1 -0
- package/dist/content-contribution-attachments.d.ts +8 -0
- package/dist/content-contribution-attachments.d.ts.map +1 -0
- package/dist/content-contribution-config.d.ts +84 -0
- package/dist/content-contribution-config.d.ts.map +1 -0
- package/dist/content-contribution-revision.d.ts +38 -0
- package/dist/content-contribution-revision.d.ts.map +1 -0
- package/dist/content-contribution-revisions.d.ts +8 -0
- package/dist/content-contribution-revisions.d.ts.map +1 -0
- package/dist/content-contribution-type.d.ts +51 -0
- package/dist/content-contribution-type.d.ts.map +1 -0
- package/dist/content-contribution-types.d.ts +7 -0
- package/dist/content-contribution-types.d.ts.map +1 -0
- package/dist/content-contribution.d.ts +161 -0
- package/dist/content-contribution.d.ts.map +1 -0
- package/dist/content-contributions.d.ts +53 -0
- package/dist/content-contributions.d.ts.map +1 -0
- package/dist/content-contributor.d.ts +30 -0
- package/dist/content-contributor.d.ts.map +1 -0
- package/dist/content-contributors.d.ts +13 -0
- package/dist/content-contributors.d.ts.map +1 -0
- package/dist/content-correction.d.ts +39 -0
- package/dist/content-correction.d.ts.map +1 -0
- package/dist/content-corrections.d.ts +9 -0
- package/dist/content-corrections.d.ts.map +1 -0
- package/dist/content-editor-assistant.d.ts +68 -0
- package/dist/content-editor-assistant.d.ts.map +1 -0
- package/dist/content-editor-assistant.js +97 -0
- package/dist/content-editor-assistant.js.map +1 -0
- package/dist/content-feed-parser.d.ts +19 -0
- package/dist/content-feed-parser.d.ts.map +1 -0
- package/dist/content-feed-source.d.ts +52 -0
- package/dist/content-feed-source.d.ts.map +1 -0
- package/dist/content-feed-sources.d.ts +11 -0
- package/dist/content-feed-sources.d.ts.map +1 -0
- package/dist/content-feed-sync.d.ts +23 -0
- package/dist/content-feed-sync.d.ts.map +1 -0
- package/dist/content-governance-assignment.d.ts +42 -0
- package/dist/content-governance-assignment.d.ts.map +1 -0
- package/dist/content-governance-assignments.d.ts +11 -0
- package/dist/content-governance-assignments.d.ts.map +1 -0
- package/dist/content-governance-policies.d.ts +7 -0
- package/dist/content-governance-policies.d.ts.map +1 -0
- package/dist/content-governance-policy.d.ts +29 -0
- package/dist/content-governance-policy.d.ts.map +1 -0
- package/dist/content-governance-profile.d.ts +31 -0
- package/dist/content-governance-profile.d.ts.map +1 -0
- package/dist/content-governance-profiles.d.ts +7 -0
- package/dist/content-governance-profiles.d.ts.map +1 -0
- package/dist/content-governance.d.ts +188 -0
- package/dist/content-governance.d.ts.map +1 -0
- package/dist/content-prompts.d.ts +10 -0
- package/dist/content-prompts.d.ts.map +1 -0
- package/dist/content-reference.d.ts +17 -0
- package/dist/content-reference.d.ts.map +1 -0
- package/dist/content-references.d.ts +55 -0
- package/dist/content-references.d.ts.map +1 -0
- package/dist/content-review.d.ts +34 -0
- package/dist/content-review.d.ts.map +1 -0
- package/dist/content-reviews.d.ts +21 -0
- package/dist/content-reviews.d.ts.map +1 -0
- package/dist/content-transparency.d.ts +72 -0
- package/dist/content-transparency.d.ts.map +1 -0
- package/dist/content-types.d.ts +51 -0
- package/dist/content-types.d.ts.map +1 -0
- package/dist/content-version.d.ts +38 -0
- package/dist/content-version.d.ts.map +1 -0
- package/dist/content-versions.d.ts +16 -0
- package/dist/content-versions.d.ts.map +1 -0
- package/dist/content.d.ts +736 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/contents.d.ts +292 -0
- package/dist/contents.d.ts.map +1 -0
- package/dist/database-utils.d.ts +3 -0
- package/dist/database-utils.d.ts.map +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11602 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.json +12308 -0
- package/dist/mock-smrt-client.d.ts +493 -0
- package/dist/mock-smrt-client.d.ts.map +1 -0
- package/dist/mock-smrt-client.js +390 -0
- package/dist/mock-smrt-client.js.map +1 -0
- package/dist/playground.d.ts +2 -0
- package/dist/playground.d.ts.map +1 -0
- package/dist/playground.js +454 -0
- package/dist/playground.js.map +1 -0
- package/dist/publish-readiness.d.ts +30 -0
- package/dist/publish-readiness.d.ts.map +1 -0
- package/dist/publish-readiness.js +74 -0
- package/dist/publish-readiness.js.map +1 -0
- package/dist/safe-remote-url.d.ts +52 -0
- package/dist/safe-remote-url.d.ts.map +1 -0
- package/dist/serialization.d.ts +78 -0
- package/dist/serialization.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +6130 -0
- package/dist/svelte/api.d.ts +3 -0
- package/dist/svelte/api.d.ts.map +1 -0
- package/dist/svelte/api.js +10 -0
- package/dist/svelte/components/ArticleCard.svelte +159 -0
- package/dist/svelte/components/ArticleCard.svelte.d.ts +17 -0
- package/dist/svelte/components/ArticleCard.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ArticleList.svelte +75 -0
- package/dist/svelte/components/ArticleList.svelte.d.ts +21 -0
- package/dist/svelte/components/ArticleList.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentAgentChat.svelte +652 -0
- package/dist/svelte/components/ContentAgentChat.svelte.d.ts +17 -0
- package/dist/svelte/components/ContentAgentChat.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentBodyEditor.svelte +1446 -0
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts +25 -0
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte +152 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte +441 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts +12 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentContributionForm.svelte +226 -0
- package/dist/svelte/components/ContentContributionForm.svelte.d.ts +23 -0
- package/dist/svelte/components/ContentContributionForm.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentContributionInbox.svelte +322 -0
- package/dist/svelte/components/ContentContributionInbox.svelte.d.ts +22 -0
- package/dist/svelte/components/ContentContributionInbox.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentContributionPortal.svelte +182 -0
- package/dist/svelte/components/ContentContributionPortal.svelte.d.ts +12 -0
- package/dist/svelte/components/ContentContributionPortal.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentContributionTypeManager.svelte +281 -0
- package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentContributorManager.svelte +140 -0
- package/dist/svelte/components/ContentContributorManager.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentContributorManager.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentCorrectionsTool.svelte +361 -0
- package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentEditor.svelte +2166 -0
- package/dist/svelte/components/ContentEditor.svelte.d.ts +26 -0
- package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +199 -0
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernanceManager.svelte +340 -0
- package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernancePanel.svelte +2244 -0
- package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts +26 -0
- package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +110 -0
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +185 -0
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentGovernanceTool.svelte +56 -0
- package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts +13 -0
- package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentImageBrowser.svelte +243 -0
- package/dist/svelte/components/ContentImageBrowser.svelte.d.ts +18 -0
- package/dist/svelte/components/ContentImageBrowser.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentImageChooser.svelte +134 -0
- package/dist/svelte/components/ContentImageChooser.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentImageChooser.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentList.svelte +906 -0
- package/dist/svelte/components/ContentList.svelte.d.ts +16 -0
- package/dist/svelte/components/ContentList.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentMetadataFields.svelte +107 -0
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts +8 -0
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentReferencesPanel.svelte +221 -0
- package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts +20 -0
- package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte +151 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts +20 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentStatusFields.svelte +85 -0
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts +8 -0
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentTitleField.svelte +54 -0
- package/dist/svelte/components/ContentTitleField.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentTransparencyReport.svelte +322 -0
- package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentTransparencyTool.svelte +314 -0
- package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentVersionsTool.svelte +291 -0
- package/dist/svelte/components/ContentVersionsTool.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentVersionsTool.svelte.d.ts.map +1 -0
- package/dist/svelte/components/GovernedContentEditor.svelte +409 -0
- package/dist/svelte/components/GovernedContentEditor.svelte.d.ts +35 -0
- package/dist/svelte/components/GovernedContentEditor.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ImageThumbnail.cache.d.ts +14 -0
- package/dist/svelte/components/ImageThumbnail.cache.d.ts.map +1 -0
- package/dist/svelte/components/ImageThumbnail.cache.js +36 -0
- package/dist/svelte/components/ImageThumbnail.svelte +159 -0
- package/dist/svelte/components/ImageThumbnail.svelte.d.ts +8 -0
- package/dist/svelte/components/ImageThumbnail.svelte.d.ts.map +1 -0
- package/dist/svelte/components/Markdown.svelte +125 -0
- package/dist/svelte/components/Markdown.svelte.d.ts +11 -0
- package/dist/svelte/components/Markdown.svelte.d.ts.map +1 -0
- package/dist/svelte/content-editor-form.d.ts +63 -0
- package/dist/svelte/content-editor-form.d.ts.map +1 -0
- package/dist/svelte/content-editor-form.js +94 -0
- package/dist/svelte/content-editor-media.d.ts +12 -0
- package/dist/svelte/content-editor-media.d.ts.map +1 -0
- package/dist/svelte/content-editor-media.js +84 -0
- package/dist/svelte/content-editor-state.svelte.d.ts +35 -0
- package/dist/svelte/content-editor-state.svelte.d.ts.map +1 -0
- package/dist/svelte/content-editor-state.svelte.js +141 -0
- package/dist/svelte/governance-manager-client.d.ts +22 -0
- package/dist/svelte/governance-manager-client.d.ts.map +1 -0
- package/dist/svelte/governance-manager-client.js +1 -0
- package/dist/svelte/i18n.contribution.d.ts +57 -0
- package/dist/svelte/i18n.contribution.d.ts.map +1 -0
- package/dist/svelte/i18n.contribution.js +64 -0
- package/dist/svelte/i18n.editor.d.ts +71 -0
- package/dist/svelte/i18n.editor.d.ts.map +1 -0
- package/dist/svelte/i18n.editor.js +87 -0
- package/dist/svelte/i18n.governance.d.ts +66 -0
- package/dist/svelte/i18n.governance.d.ts.map +1 -0
- package/dist/svelte/i18n.governance.js +66 -0
- package/dist/svelte/i18n.routes.d.ts +66 -0
- package/dist/svelte/i18n.routes.d.ts.map +1 -0
- package/dist/svelte/i18n.routes.js +75 -0
- package/dist/svelte/i18n.tools.d.ts +81 -0
- package/dist/svelte/i18n.tools.d.ts.map +1 -0
- package/dist/svelte/i18n.tools.js +90 -0
- package/dist/svelte/index.d.ts +101 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +63 -0
- package/dist/svelte/playground.d.ts +281 -0
- package/dist/svelte/playground.d.ts.map +1 -0
- package/dist/svelte/playground.js +438 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte +809 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts +10 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte +612 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts +11 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte +218 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts +10 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts.map +1 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte +431 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts +12 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts.map +1 -0
- package/dist/svelte/routes/PublishedArticleRoute.svelte +194 -0
- package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts +10 -0
- package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts.map +1 -0
- package/dist/svelte/routes/index.d.ts +8 -0
- package/dist/svelte/routes/index.d.ts.map +1 -0
- package/dist/svelte/routes/index.js +6 -0
- package/dist/svelte/routes/shared.d.ts +90 -0
- package/dist/svelte/routes/shared.d.ts.map +1 -0
- package/dist/svelte/routes/shared.js +104 -0
- package/dist/svelte/types.d.ts +69 -0
- package/dist/svelte/types.d.ts.map +1 -0
- package/dist/svelte/types.js +6 -0
- package/dist/thumbnail-generator.d.ts +174 -0
- package/dist/thumbnail-generator.d.ts.map +1 -0
- package/dist/ui.d.ts +10 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +42 -0
- package/dist/ui.js.map +1 -0
- package/dist/utils.d.ts +18 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +119 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAmB,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,UAAU,EAGX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,IAAI,EAEJ,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAIxD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EAGL,KAAK,sBAAsB,EAE3B,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAMhC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAWtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAoB9D,KAAK,uBAAuB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,K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,CAAC,IAAI,CAAC;IAuBxE;;;;;;;;;;;;OAYG;IACH,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIlC;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAInE;;;;;OAKG;IACH,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAUxE;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAY3C;;;OAGG;IACG,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAS/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,KAAK,CAAC;CAMnE"}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { SmrtCollectionOptions, SmrtCollection } from '@happyvertical/smrt-core';
|
|
2
|
+
import { Image } from '@happyvertical/smrt-images';
|
|
3
|
+
import { Content } from './content';
|
|
4
|
+
import { ResolveHostname } from './safe-remote-url';
|
|
5
|
+
import { ThumbnailStrategy } from './thumbnail-generator';
|
|
6
|
+
/**
|
|
7
|
+
* Configuration options for Contents collection
|
|
8
|
+
*/
|
|
9
|
+
export interface ContentsOptions extends SmrtCollectionOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Directory to store content files
|
|
12
|
+
*/
|
|
13
|
+
contentDir?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Collection for managing Content objects
|
|
17
|
+
*
|
|
18
|
+
* The Contents collection provides functionality for managing and manipulating
|
|
19
|
+
* collections of Content objects, including saving to the filesystem and
|
|
20
|
+
* mirroring content from remote URLs.
|
|
21
|
+
*/
|
|
22
|
+
export declare class Contents extends SmrtCollection<Content> {
|
|
23
|
+
/**
|
|
24
|
+
* Class constructor for collection items
|
|
25
|
+
*/
|
|
26
|
+
static _itemClass: typeof Content;
|
|
27
|
+
/**
|
|
28
|
+
* Configuration options
|
|
29
|
+
*/
|
|
30
|
+
options: ContentsOptions;
|
|
31
|
+
/**
|
|
32
|
+
* Directory to store content files
|
|
33
|
+
*/
|
|
34
|
+
contentDir?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Cache for loaded content
|
|
37
|
+
*/
|
|
38
|
+
loaded: Map<string, Content>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new Contents collection
|
|
41
|
+
*
|
|
42
|
+
* Use the static `create()` method inherited from SmrtCollection for proper initialization.
|
|
43
|
+
*
|
|
44
|
+
* @param options - Configuration options
|
|
45
|
+
*/
|
|
46
|
+
constructor(options?: ContentsOptions);
|
|
47
|
+
/**
|
|
48
|
+
* Gets the database interface
|
|
49
|
+
*
|
|
50
|
+
* @returns Database interface
|
|
51
|
+
*/
|
|
52
|
+
getDb(): import('@happyvertical/sql').DatabaseInterface;
|
|
53
|
+
/**
|
|
54
|
+
* Initializes the collection
|
|
55
|
+
*
|
|
56
|
+
* @returns Promise that resolves to this instance
|
|
57
|
+
*/
|
|
58
|
+
initialize(): Promise<this>;
|
|
59
|
+
private getFactCollection;
|
|
60
|
+
browseFacts(options?: {
|
|
61
|
+
q?: string;
|
|
62
|
+
query?: string;
|
|
63
|
+
limit?: number | string;
|
|
64
|
+
offset?: number | string;
|
|
65
|
+
minSimilarity?: number | string;
|
|
66
|
+
includeSuperseded?: boolean | string;
|
|
67
|
+
latestOnly?: boolean | string;
|
|
68
|
+
tenantId?: string | null;
|
|
69
|
+
}): Promise<{
|
|
70
|
+
metadata: any;
|
|
71
|
+
}[]>;
|
|
72
|
+
getBySlug(options?: {
|
|
73
|
+
slug?: string;
|
|
74
|
+
context?: string;
|
|
75
|
+
status?: string;
|
|
76
|
+
}): Promise<{
|
|
77
|
+
referenceIds: any;
|
|
78
|
+
references: any;
|
|
79
|
+
assetIds: any;
|
|
80
|
+
assets: any;
|
|
81
|
+
} | null>;
|
|
82
|
+
getGovernanceDefinitionsAction(): Promise<{
|
|
83
|
+
effective: {
|
|
84
|
+
policies: {
|
|
85
|
+
id?: string;
|
|
86
|
+
tenantId?: string | null;
|
|
87
|
+
createdAt?: string | null;
|
|
88
|
+
updatedAt?: string | null;
|
|
89
|
+
key: string;
|
|
90
|
+
label: string;
|
|
91
|
+
kind: import('./content-governance').ContentReviewKind;
|
|
92
|
+
instructions: string;
|
|
93
|
+
enabled?: boolean;
|
|
94
|
+
metadata?: Record<string, any>;
|
|
95
|
+
}[];
|
|
96
|
+
profiles: {
|
|
97
|
+
id?: string;
|
|
98
|
+
tenantId?: string | null;
|
|
99
|
+
createdAt?: string | null;
|
|
100
|
+
updatedAt?: string | null;
|
|
101
|
+
key: string;
|
|
102
|
+
label: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
requirements: import('./content-governance').ContentReviewRequirement[];
|
|
106
|
+
metadata?: Record<string, any>;
|
|
107
|
+
}[];
|
|
108
|
+
assignments: {
|
|
109
|
+
id?: string;
|
|
110
|
+
tenantId?: string | null;
|
|
111
|
+
createdAt?: string | null;
|
|
112
|
+
updatedAt?: string | null;
|
|
113
|
+
key?: string;
|
|
114
|
+
label?: string;
|
|
115
|
+
contentType: string;
|
|
116
|
+
contentVariant?: string | null;
|
|
117
|
+
enabled?: boolean;
|
|
118
|
+
factLinkingEnabled?: boolean;
|
|
119
|
+
transparencyEnabled?: boolean;
|
|
120
|
+
publicationProfileKey?: string | null;
|
|
121
|
+
correctionProfileKey?: string | null;
|
|
122
|
+
enforcePublishReadiness?: boolean;
|
|
123
|
+
defaultFactRelationship?: import('@happyvertical/smrt-facts').FactContentRelationship;
|
|
124
|
+
metadata?: Record<string, any>;
|
|
125
|
+
}[];
|
|
126
|
+
};
|
|
127
|
+
persisted: {
|
|
128
|
+
policies: import('./content-governance').PersistedContentGovernancePolicyRecord[];
|
|
129
|
+
profiles: import('./content-governance').PersistedContentGovernanceProfileRecord[];
|
|
130
|
+
assignments: import('./content-governance').PersistedContentGovernanceAssignmentRecord[];
|
|
131
|
+
};
|
|
132
|
+
}>;
|
|
133
|
+
resolveGovernanceAction(options?: {
|
|
134
|
+
type?: string;
|
|
135
|
+
variant?: string | null;
|
|
136
|
+
}): Promise<import('./content-governance').ResolvedContentGovernance>;
|
|
137
|
+
/**
|
|
138
|
+
* Mirrors content from a remote URL
|
|
139
|
+
*
|
|
140
|
+
* Downloads and stores content from a remote URL, extracting text
|
|
141
|
+
* and saving it as a Content object.
|
|
142
|
+
*
|
|
143
|
+
* @param options - Mirror options
|
|
144
|
+
* @param options.url - URL to mirror
|
|
145
|
+
* @param options.mirrorDir - Directory for caching mirrored files
|
|
146
|
+
* @param options.context - Context for the mirrored content
|
|
147
|
+
* @returns Promise resolving to the mirrored Content object
|
|
148
|
+
* @throws Error if URL is invalid or missing
|
|
149
|
+
*/
|
|
150
|
+
mirror(options: {
|
|
151
|
+
url: string;
|
|
152
|
+
mirrorDir?: string;
|
|
153
|
+
context?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Skip the SSRF host-blocking checks. Only set this for fully trusted,
|
|
156
|
+
* operator-supplied URLs (e.g. local development), never for URLs that
|
|
157
|
+
* originate from end users or external content.
|
|
158
|
+
*/
|
|
159
|
+
allowPrivateNetworkHosts?: boolean;
|
|
160
|
+
/** Injectable DNS resolver (primarily for tests). */
|
|
161
|
+
resolveHostname?: ResolveHostname;
|
|
162
|
+
/** Injectable fetch for redirect resolution (primarily for tests). */
|
|
163
|
+
fetchImpl?: typeof fetch;
|
|
164
|
+
}): Promise<Content | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Writes a Content object to the filesystem as a markdown file
|
|
167
|
+
*
|
|
168
|
+
* @param options - Options for writing the content file
|
|
169
|
+
* @param options.content - Content object to write
|
|
170
|
+
* @param options.contentDir - Directory to write the file to
|
|
171
|
+
* @returns Promise that resolves when the file is written
|
|
172
|
+
* @throws Error if contentDir is not provided
|
|
173
|
+
*/
|
|
174
|
+
writeContentFile(options: {
|
|
175
|
+
content: Content;
|
|
176
|
+
contentDir: string;
|
|
177
|
+
}): Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Checks if text appears to be in markdown format
|
|
180
|
+
*
|
|
181
|
+
* @param text - Text to check
|
|
182
|
+
* @returns Boolean indicating if the text contains markdown syntax
|
|
183
|
+
*/
|
|
184
|
+
private isMarkdown;
|
|
185
|
+
/**
|
|
186
|
+
* Formats plain text as simple markdown
|
|
187
|
+
*
|
|
188
|
+
* @param text - Plain text to format
|
|
189
|
+
* @returns Text formatted as basic markdown
|
|
190
|
+
*/
|
|
191
|
+
private formatAsMarkdown;
|
|
192
|
+
/**
|
|
193
|
+
* Synchronizes content to the filesystem
|
|
194
|
+
*
|
|
195
|
+
* Writes all article-type Content objects to the filesystem
|
|
196
|
+
* as markdown files.
|
|
197
|
+
*
|
|
198
|
+
* @param options - Sync options
|
|
199
|
+
* @param options.contentDir - Directory to write content files to
|
|
200
|
+
* @returns Promise that resolves when synchronization is complete
|
|
201
|
+
*/
|
|
202
|
+
syncContentDir(options: {
|
|
203
|
+
contentDir?: string;
|
|
204
|
+
}): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Generate thumbnails for content that doesn't have one
|
|
207
|
+
*
|
|
208
|
+
* @param options - Options for bulk thumbnail generation
|
|
209
|
+
* @returns Promise resolving to result object with generated images and failed content IDs
|
|
210
|
+
*
|
|
211
|
+
* @example Generate headline cards for all published articles
|
|
212
|
+
* ```typescript
|
|
213
|
+
* const result = await contents.generateMissingThumbnails({
|
|
214
|
+
* strategy: 'headline-card',
|
|
215
|
+
* where: { type: 'article', status: 'published' },
|
|
216
|
+
* brandColor: '#1a56db'
|
|
217
|
+
* });
|
|
218
|
+
* console.log(`Generated ${result.images.length} thumbnails`);
|
|
219
|
+
* if (result.failed.length > 0) {
|
|
220
|
+
* console.warn(`Failed to generate ${result.failed.length} thumbnails`);
|
|
221
|
+
* }
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
generateMissingThumbnails(options: {
|
|
225
|
+
/**
|
|
226
|
+
* Thumbnail generation strategy
|
|
227
|
+
*/
|
|
228
|
+
strategy: ThumbnailStrategy;
|
|
229
|
+
/**
|
|
230
|
+
* Optional filter for content to process
|
|
231
|
+
*/
|
|
232
|
+
where?: Record<string, any>;
|
|
233
|
+
/**
|
|
234
|
+
* Maximum number of thumbnails to generate
|
|
235
|
+
*/
|
|
236
|
+
limit?: number;
|
|
237
|
+
brandColor?: string;
|
|
238
|
+
backgroundColor?: string;
|
|
239
|
+
logoUrl?: string;
|
|
240
|
+
template?: 'default' | 'news' | 'minimal';
|
|
241
|
+
mapProvider?: 'mapbox' | 'google';
|
|
242
|
+
zoom?: number;
|
|
243
|
+
style?: 'photorealistic' | 'illustration' | 'abstract' | 'minimal';
|
|
244
|
+
width?: number;
|
|
245
|
+
height?: number;
|
|
246
|
+
}): Promise<{
|
|
247
|
+
images: Image[];
|
|
248
|
+
failed: Array<{
|
|
249
|
+
contentId: string;
|
|
250
|
+
error: string;
|
|
251
|
+
}>;
|
|
252
|
+
}>;
|
|
253
|
+
/**
|
|
254
|
+
* Find all content belonging to a specific tenant
|
|
255
|
+
*
|
|
256
|
+
* @param tenantId - The tenant ID to filter by
|
|
257
|
+
* @returns Promise resolving to array of Content objects for the tenant
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* ```typescript
|
|
261
|
+
* const tenantContent = await contents.findByTenant('tenant-123');
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
findByTenant(tenantId: string): Promise<Content[]>;
|
|
265
|
+
/**
|
|
266
|
+
* Find all global content (not associated with any tenant)
|
|
267
|
+
*
|
|
268
|
+
* @returns Promise resolving to array of global Content objects
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* ```typescript
|
|
272
|
+
* const globalContent = await contents.findGlobal();
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
findGlobal(): Promise<Content[]>;
|
|
276
|
+
/**
|
|
277
|
+
* Find content for a tenant including global content
|
|
278
|
+
*
|
|
279
|
+
* This returns both tenant-specific content and global content (tenantId is null),
|
|
280
|
+
* useful for showing a tenant their content plus any shared/global resources.
|
|
281
|
+
*
|
|
282
|
+
* @param tenantId - The tenant ID to include
|
|
283
|
+
* @returns Promise resolving to array of Content objects (tenant + global)
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* ```typescript
|
|
287
|
+
* const allAccessibleContent = await contents.findWithGlobals('tenant-123');
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
findWithGlobals(tenantId: string): Promise<Content[]>;
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=contents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contents.d.ts","sourceRoot":"","sources":["../src/contents.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAQ,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAIxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAI/B;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;;;GAMG;AACH,qBAkCa,QAAS,SAAQ,cAAc,CAAC,OAAO,CAAC;IACnD;;OAEG;IACH,MAAM,CAAC,UAAU,iBAAW;IAE5B;;OAEG;I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AA;SAAE,CAAC,CAAC;KACrD,CAAC;IA0FF;;;;;;;;;;OAUG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIxD;;;;;;;;;OASG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAItC;;;;;;;;;;;;;OAaG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAM5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-utils.d.ts","sourceRoot":"","sources":["../src/database-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAWT;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAMvE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export type { AssetAssociable, MetadataAccessor, } from './asset-associable';
|
|
2
|
+
export { isAssetAssociable, isMetadataAccessor } from './asset-associable';
|
|
3
|
+
export type { ContentBodyFormat, ContentBodyImage } from './body-format';
|
|
4
|
+
export { bodyToEditorHtml, DEFAULT_CONTENT_BODY_FORMAT, editorHtmlToBody, extractBodyImages, htmlToMarkdown, renderMarkdownToHtml, resolveBodyFormat, sanitizeHtml, stripHtml, } from './body-format';
|
|
5
|
+
export type { ContentOptions } from './content';
|
|
6
|
+
export { Content } from './content';
|
|
7
|
+
export type { ContentAssetOptions } from './content-asset';
|
|
8
|
+
export { ContentAsset } from './content-asset';
|
|
9
|
+
export { ContentAssetCollection } from './content-assets';
|
|
10
|
+
export type { ContentChatAIConfig, ContentChatCollectionLike, ContentChatSessionInput, CreateContentChatThreadInput, ListContentChatThreadMessagesInput, ResolveContentChatAIInput, ResolvedContentChatAI, SendContentChatThreadMessageInput, } from './content-chat-handlers';
|
|
11
|
+
export { contentChatMessageToJSON, contentChatSessionIsAuthorized, contentChatSessionKey, contentChatSessionMatchesContent, createContentEditorChatThread, getOrCreateContentEditorChatSession, listContentEditorChatThreadMessages, resolveDefaultContentChatAI, sendContentEditorChatThreadMessage, serializeContentChatMessageForUI, } from './content-chat-handlers';
|
|
12
|
+
export { contentEditorInteractionPrompt, contentEditorSessionPrompt, } from './content-chat-prompts';
|
|
13
|
+
export type { ContentChatAISelection, ContentEditorInteractionInput, } from './content-chat-session';
|
|
14
|
+
export { buildContentChatModelUpdates, buildContentEditorInteractionVariables, buildContentEditorSessionContext, getContentChatAISelection, inferProviderFromModel, resolveContentChatModelSelection, } from './content-chat-session';
|
|
15
|
+
export type { AppendContentContributionRevisionOptions, ApproveContentContributionOptions, ContentContributionAttachmentInput, ContentContributionOptions, PromoteContentContributionOptions, RejectContentContributionOptions, RequestChangesContentContributionOptions, WithdrawContentContributionOptions, } from './content-contribution';
|
|
16
|
+
export { ContentContribution } from './content-contribution';
|
|
17
|
+
export type { ContentContributionAttachmentOptions } from './content-contribution-attachment';
|
|
18
|
+
export { ContentContributionAttachment } from './content-contribution-attachment';
|
|
19
|
+
export { ContentContributionAttachmentCollection } from './content-contribution-attachments';
|
|
20
|
+
export type { ContentContributionChannel, ContentContributionConfig, ContentContributionIntakeDecision, ContentContributionIntakeRules, ContentContributionPromotionMapping, ContentContributionStatus, ContentContributionTypeDefinition, ContentContributorTrustLevel, EvaluateContributionIntakeOptions, EvaluateContributionIntakeResult, PersistedContentContributionTypeRecord, ResolvedContentContributionType, } from './content-contribution-config';
|
|
21
|
+
export { configureContentContributions, evaluateContributionIntake, getContentContributionConfig, getContentContributionTypeConfigState, getEffectiveContentContributionConfig, hasStaticContentContributionType, loadPersistedContentContributionTypes, resetContentContributionConfig, resolveEffectiveContentContributionType, } from './content-contribution-config';
|
|
22
|
+
export type { ContentContributionRevisionOptions } from './content-contribution-revision';
|
|
23
|
+
export { ContentContributionRevision } from './content-contribution-revision';
|
|
24
|
+
export { ContentContributionRevisionCollection } from './content-contribution-revisions';
|
|
25
|
+
export type { ContentContributionTypeOptions } from './content-contribution-type';
|
|
26
|
+
export { ContentContributionType } from './content-contribution-type';
|
|
27
|
+
export { ContentContributionTypeCollection } from './content-contribution-types';
|
|
28
|
+
export type { IngestEmailContentContributionOptions, SubmitWebContentContributionOptions, } from './content-contributions';
|
|
29
|
+
export { ContentContributions } from './content-contributions';
|
|
30
|
+
export type { ContentContributorOptions } from './content-contributor';
|
|
31
|
+
export { ContentContributor } from './content-contributor';
|
|
32
|
+
export { ContentContributorCollection } from './content-contributors';
|
|
33
|
+
export type { ContentCorrectionOptions } from './content-correction';
|
|
34
|
+
export { ContentCorrection } from './content-correction';
|
|
35
|
+
export { ContentCorrectionCollection } from './content-corrections';
|
|
36
|
+
export type { ContentEditorAssistantActions, ContentEditorAssistantChatProps, ContentEditorAssistantContext, ContentEditorAssistantContextChange, ContentEditorAssistantContextData, ContentEditorAssistantEditorKind, ContentEditorAssistantFactSummary, ContentEditorAssistantFields, ContentEditorAssistantFieldUpdateAllowList, ContentEditorAssistantGovernanceSummary, ContentEditorAssistantRegistration, CreateContentEditorAssistantContextInput, } from './content-editor-assistant';
|
|
37
|
+
export { contentEditorAssistantContextToChatProps, createContentEditorAssistantContext, sanitizeContentEditorAssistantFieldUpdates, } from './content-editor-assistant';
|
|
38
|
+
export type { ContentFeedFormat, ParsedContentFeed, ParsedContentFeedItem, } from './content-feed-parser';
|
|
39
|
+
export { parseContentFeed } from './content-feed-parser';
|
|
40
|
+
export type { ContentFeedSourceOptions, ContentFeedSourceStatus, } from './content-feed-source';
|
|
41
|
+
export { ContentFeedSource } from './content-feed-source';
|
|
42
|
+
export type { ContentFeedSourceCollectionOptions } from './content-feed-sources';
|
|
43
|
+
export { ContentFeedSourceCollection } from './content-feed-sources';
|
|
44
|
+
export type { ContentFeedSyncOptions, ContentFeedSyncResult, } from './content-feed-sync';
|
|
45
|
+
export { syncContentFeedSource } from './content-feed-sync';
|
|
46
|
+
export type { ContentCorrectionStatus, ContentCorrectionType, ContentGovernanceAssignmentDefinition, ContentGovernanceConfig, ContentGovernanceProfileDefinition, ContentGovernanceState, ContentReviewFinding, ContentReviewKind, ContentReviewPolicyDefinition, ContentReviewProfileEvaluation, ContentReviewProfileEvaluationItem, ContentReviewRequirement, ContentReviewResult, ContentReviewSeverity, ContentReviewStatus, ContentVersionKind, CreateContentVersionOptions, IssueContentCorrectionOptions, ResolvedContentGovernance, RunContentReviewOptions, } from './content-governance';
|
|
47
|
+
export { buildContentGovernanceAssignmentKey, buildContentReviewPrompt, configureContentGovernance, getAcceptedContentReviewStatuses, getContentGovernanceConfig, getContentReviewKind, getContentReviewPolicies, getContentReviewPolicy, getContentReviewProfile, getContentReviewProfileKeys, getContentReviewRequirements, getEffectiveContentGovernanceConfig, hasStaticContentGovernancePolicy, hasStaticContentGovernanceProfile, parseContentReviewResponse, resetContentGovernanceConfig, resolveConfiguredContentGovernance, resolveEffectiveContentGovernance, } from './content-governance';
|
|
48
|
+
export type { ContentGovernanceAssignmentOptions } from './content-governance-assignment';
|
|
49
|
+
export { ContentGovernanceAssignment } from './content-governance-assignment';
|
|
50
|
+
export { ContentGovernanceAssignmentCollection } from './content-governance-assignments';
|
|
51
|
+
export { ContentGovernancePolicyCollection } from './content-governance-policies';
|
|
52
|
+
export type { ContentGovernancePolicyOptions } from './content-governance-policy';
|
|
53
|
+
export { ContentGovernancePolicy } from './content-governance-policy';
|
|
54
|
+
export type { ContentGovernanceProfileOptions } from './content-governance-profile';
|
|
55
|
+
export { ContentGovernanceProfile } from './content-governance-profile';
|
|
56
|
+
export { ContentGovernanceProfileCollection } from './content-governance-profiles';
|
|
57
|
+
export { promptMessageOptions, smrtContentApplyCorrectionPrompt, smrtContentReviewPrompt, smrtContentThumbnailAIGeneratePrompt, } from './content-prompts';
|
|
58
|
+
export type { ContentReferenceOptions } from './content-reference';
|
|
59
|
+
export { ContentReference } from './content-reference';
|
|
60
|
+
export type { ContentReferencesOptions } from './content-references';
|
|
61
|
+
export { ContentReferences } from './content-references';
|
|
62
|
+
export type { ContentReviewOptions } from './content-review';
|
|
63
|
+
export { ContentReview } from './content-review';
|
|
64
|
+
export { ContentReviewCollection } from './content-reviews';
|
|
65
|
+
export type { ContentTransparencyData, ContentTransparencyFact, ContentTransparencyGeneration, ContentTransparencyPublicationVersion, ContentTransparencyReference, ContentTransparencySource, ContentTransparencyVersionHistoryItem, } from './content-transparency';
|
|
66
|
+
export { normalizeContentTransparency } from './content-transparency';
|
|
67
|
+
export type { MirrorOptions } from './content-types';
|
|
68
|
+
export { Article, ContentDocument, Mirror, } from './content-types';
|
|
69
|
+
export type { ContentVersionOptions } from './content-version';
|
|
70
|
+
export { ContentVersion } from './content-version';
|
|
71
|
+
export { ContentVersionCollection } from './content-versions';
|
|
72
|
+
export type { ContentsOptions } from './contents';
|
|
73
|
+
export { Contents } from './contents';
|
|
74
|
+
export type { ContentPublishReadinessState, EvaluateContentPublishReadinessOptions, PublishReadinessProfile, PublishReadinessRequirement, } from './publish-readiness';
|
|
75
|
+
export { evaluateContentPublishReadiness } from './publish-readiness';
|
|
76
|
+
export { type AIGenerateThumbnailOptions, type HeadlineCardThumbnailOptions, type StaticMapThumbnailOptions, ThumbnailGenerator, type ThumbnailOptions, type ThumbnailStrategy, } from './thumbnail-generator';
|
|
77
|
+
export { contentToString, stringToContent } from './utils';
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,wBAAwB,CAAC;AAEhC,YAAY,EACV,eAAe,EACf,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,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