@kardalum/plugin-sdk 0.19.0 → 0.21.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/CHANGELOG.md +281 -0
- package/README.md +19 -0
- package/dist/admin-section-registry.d.ts +48 -1
- package/dist/admin-section-registry.js +90 -0
- package/dist/built-in-editor-ids.d.ts +1 -1
- package/dist/built-in-editor-ids.js +2 -20
- package/dist/built-in-settings-schemas.d.ts +10 -0
- package/dist/built-in-settings-schemas.js +86 -0
- package/dist/built-in-value-schemas.js +35 -0
- package/dist/built-ins.js +38 -7
- package/dist/capabilities.d.ts +11 -1
- package/dist/capabilities.js +101 -4
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/consent-entry.d.ts +11 -0
- package/dist/consent-entry.js +18 -0
- package/dist/content-library.d.ts +102 -0
- package/dist/content-library.js +15 -0
- package/dist/content-list-extensions.d.ts +50 -0
- package/dist/content-list-extensions.js +11 -0
- package/dist/content-picker/page-picker-sheet.d.ts +15 -0
- package/dist/content-picker/page-picker-sheet.js +105 -0
- package/dist/content-picker/page-picker.d.ts +18 -0
- package/dist/content-picker/page-picker.js +20 -0
- package/dist/content-picker/page-tree.d.ts +25 -0
- package/dist/content-picker/page-tree.js +132 -0
- package/dist/data-type-plugin.d.ts +7 -1
- package/dist/datatype-validation.d.ts +4 -9
- package/dist/datatype-validation.js +147 -1
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +2 -0
- package/dist/entitlement-entry.d.ts +1 -1
- package/dist/entitlement-entry.js +1 -1
- package/dist/entitlement-gate.d.ts +14 -0
- package/dist/entitlement-gate.js +64 -7
- package/dist/entitlement-plan.d.ts +6 -0
- package/dist/entitlement-plan.js +10 -0
- package/dist/entitlement-types.d.ts +53 -12
- package/dist/entitlement.d.ts +31 -4
- package/dist/entitlement.js +58 -17
- package/dist/hook-entry.d.ts +5 -0
- package/dist/hook-entry.js +30 -0
- package/dist/host-entry.d.ts +7 -1
- package/dist/host-entry.js +14 -1
- package/dist/index.d.ts +67 -7
- package/dist/index.js +94 -6
- package/dist/mail.d.ts +34 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +47 -4
- package/dist/manifest-entry.js +63 -2
- package/dist/manifest-schema.d.ts +993 -40
- package/dist/manifest-schema.js +516 -26
- package/dist/manifest.d.ts +1186 -62
- package/dist/manifest.js +8 -4
- package/dist/media/media-picker.js +31 -18
- package/dist/media/upload-error.d.ts +5 -1
- package/dist/media/upload-error.js +14 -2
- package/dist/media-library.d.ts +32 -0
- package/dist/media-library.js +15 -0
- package/dist/nested-field-host.d.ts +76 -0
- package/dist/nested-field-host.js +90 -0
- package/dist/notify.d.ts +12 -4
- package/dist/notify.js +1 -1
- package/dist/outbound.d.ts +47 -0
- package/dist/outbound.js +1 -0
- package/dist/plugin-context.d.ts +52 -0
- package/dist/plugin-context.js +27 -0
- package/dist/plugin-permissions.d.ts +18 -0
- package/dist/plugin-permissions.js +25 -0
- package/dist/plugin-screen-context.d.ts +262 -9
- package/dist/plugin-screen-context.js +56 -0
- package/dist/providers.d.ts +313 -0
- package/dist/providers.js +74 -0
- package/dist/read-all-pages.d.ts +5 -0
- package/dist/read-all-pages.js +3 -2
- package/dist/render-page.d.ts +15 -0
- package/dist/render-page.js +20 -0
- package/dist/richtext/block-panel.d.ts +12 -1
- package/dist/richtext/block-panel.js +36 -25
- package/dist/richtext/button-view.d.ts +11 -0
- package/dist/richtext/button-view.js +45 -0
- package/dist/richtext/content-guard.d.ts +4 -0
- package/dist/richtext/content-guard.js +27 -0
- package/dist/richtext/editor-handle.d.ts +34 -0
- package/dist/richtext/editor-handle.js +225 -0
- package/dist/richtext/extensions.d.ts +6 -0
- package/dist/richtext/extensions.js +16 -0
- package/dist/richtext/insert-menu.d.ts +6 -1
- package/dist/richtext/insert-menu.js +45 -22
- package/dist/richtext/item-attributes.d.ts +6 -0
- package/dist/richtext/item-attributes.js +19 -0
- package/dist/richtext/item-panel.d.ts +25 -0
- package/dist/richtext/item-panel.js +118 -0
- package/dist/richtext/item-view.d.ts +58 -0
- package/dist/richtext/item-view.js +172 -0
- package/dist/richtext/mark-form.d.ts +10 -0
- package/dist/richtext/mark-form.js +38 -0
- package/dist/richtext/paste-choice.d.ts +9 -0
- package/dist/richtext/paste-choice.js +13 -0
- package/dist/richtext/plugin-items.d.ts +72 -0
- package/dist/richtext/plugin-items.js +562 -0
- package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
- package/dist/richtext/plugin-mark-tooltips.js +44 -0
- package/dist/richtext/plugin-toolbar.d.ts +57 -0
- package/dist/richtext/plugin-toolbar.js +186 -0
- package/dist/richtext/rich-item-icons.d.ts +5 -0
- package/dist/richtext/rich-item-icons.js +42 -0
- package/dist/richtext/rich-items.d.ts +42 -0
- package/dist/richtext/rich-items.js +68 -0
- package/dist/richtext/rich-text-view-host.d.ts +24 -0
- package/dist/richtext/rich-text-view-host.js +11 -0
- package/dist/richtext/style-listbox.js +6 -4
- package/dist/richtext/toolbar-button.d.ts +16 -0
- package/dist/richtext/toolbar-button.js +9 -0
- package/dist/richtext/url-paste.d.ts +20 -0
- package/dist/richtext/url-paste.js +82 -0
- package/dist/richtext-html-entry.d.ts +5 -0
- package/dist/richtext-html-entry.js +11 -0
- package/dist/sdk-strings.d.ts +344 -0
- package/dist/sdk-strings.js +411 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -0
- package/dist/service-contract.d.ts +17 -0
- package/dist/service-contract.js +39 -0
- package/dist/services.d.ts +114 -0
- package/dist/services.js +1 -0
- package/dist/simple-storage-value-provider.js +24 -24
- package/dist/structured-storage-types.d.ts +429 -9
- package/dist/tailwind.js +10 -5
- package/dist/template-reads.d.ts +16 -0
- package/dist/template-reads.js +21 -0
- package/dist/testing-entry.d.ts +38 -0
- package/dist/testing-entry.js +173 -0
- package/dist/text-entry.d.ts +1 -0
- package/dist/text-entry.js +7 -0
- package/dist/tokens/system-dark.css +1 -0
- package/dist/tokens/tailwind-theme.css +7 -0
- package/dist/tokens/tokens.css +19 -3
- package/dist/tokens/tokens.json +13 -4
- package/dist/uploads.d.ts +43 -0
- package/dist/uploads.js +1 -0
- package/dist/user-library.d.ts +51 -0
- package/dist/user-library.js +15 -0
- package/dist/view-helpers.d.ts +18 -0
- package/dist/view-helpers.js +64 -0
- package/dist/views/asset-view.js +4 -1
- package/dist/views/content-list-preview.js +3 -1
- package/dist/views/content-list-settings-view.js +11 -7
- package/dist/views/content-list-view.d.ts +5 -3
- package/dist/views/content-list-view.js +243 -40
- package/dist/views/content-picker-view.d.ts +3 -0
- package/dist/views/content-picker-view.js +143 -0
- package/dist/views/crop-view.d.ts +4 -6
- package/dist/views/crop-view.js +22 -13
- package/dist/views/date-range-view.js +4 -1
- package/dist/views/file-upload-view.d.ts +5 -7
- package/dist/views/file-upload-view.js +16 -7
- package/dist/views/group-view.d.ts +8 -0
- package/dist/views/group-view.js +123 -0
- package/dist/views/html-view.js +7 -6
- package/dist/views/image-view.js +37 -19
- package/dist/views/link-view.d.ts +3 -0
- package/dist/views/link-view.js +150 -0
- package/dist/views/options-list-view.d.ts +3 -0
- package/dist/views/options-list-view.js +104 -0
- package/dist/views/repeatable-list-view.d.ts +3 -0
- package/dist/views/repeatable-list-view.js +113 -0
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +208 -35
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- package/dist/views/unreadable-rich-text.d.ts +17 -0
- package/dist/views/unreadable-rich-text.js +40 -0
- package/dist/visitors.d.ts +81 -0
- package/dist/visitors.js +1 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +334 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +254 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +11 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +144 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +115 -3
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +58 -11
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +137 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +178 -2
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +55 -13
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +22 -10
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +257 -15
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +78 -5
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +90 -5
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +162 -48
- package/node_modules/@kardalum/api-schemas/dist/index.js +137 -30
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +226 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +409 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +490 -10
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +53 -3
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +38 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +13 -1
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +60 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +333 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
- package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +84 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +44 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +44 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +16 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +126 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +119 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +216 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +46 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +41 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +304 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +220 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +408 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +307 -23
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +61 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +346 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +461 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +352 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +409 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +347 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +976 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +47 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +307 -4
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +71 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +540 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +394 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +201 -1
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +97 -8
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +64 -1
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +136 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +53 -2
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +386 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +618 -0
- package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +188 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +72 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +36 -3
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
- package/node_modules/@kardalum/api-schemas/package.json +2 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +15 -1
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +7 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +2 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +19 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +18 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +13 -4
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +5 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +38 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +17 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +625 -35
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +47 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +40 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +76 -6
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +99 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +9 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +316 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +40 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +91 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +150 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +69 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +8 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +7 -1
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -0
- package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/tooltip.js +1 -2
- package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +6 -1
- package/node_modules/@kardalum/ui/dist/components/truncated-text.js +5 -4
- package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/index.js +2 -0
- package/package.json +25 -3
package/dist/manifest-schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { API_ROUTE_ACCESS_TIERS, API_ROUTE_METHODS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS, API_ROUTE_RESPONSE_STATUSES_MAX, isApiRouteResponseStatus, ActionStringSchema, DocsLanguageSchema, PLUGIN_ID_MESSAGE, PLUGIN_ID_REGEX, PluginManifestIdSchema, SLOT_ID_MAX, pluginManifestFields, SLOT_ID_REGEX, PluginDocsPageSchema, PluginInstallDeclarationSchema, PluginVendorServiceSchema, apiRoutePathParams, checkApiRouteActions, checkApiRouteDeclarations, checkTemplateAndAssetDeclarations, PluginAssetPathSchema, PluginTemplateEntrySchema, checkDocsDeclaration, checkInstallDeclaration,
|
|
2
|
+
import { BUILT_IN_RAIL_SECTIONS, PLUGIN_HOOK_EVENTS, NON_DURABLE_HOOK_EVENTS, GUARD_POINTS, PluginGuardDeclarationSchema, apiRouteRawBodyProblem, API_ROUTE_UPLOAD_METHODS, routeUploadsProblem, API_ROUTE_ACCESS_TIERS, PluginNotificationKindsSchema, checkNotificationKinds, API_ROUTE_METHODS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS, API_ROUTE_RESPONSE_STATUSES_MAX, isApiRouteResponseStatus, ActionStringSchema, DocsLanguageSchema, PLUGIN_ID_MESSAGE, PLUGIN_ID_REGEX, PluginManifestIdSchema, SLOT_ID_MAX, pluginManifestFields, PluginCmsVersionSchema, SLOT_ID_REGEX, PluginDocsPageSchema, PluginInstallDeclarationSchema, PluginVendorServiceSchema, apiRoutePathParams, checkApiRouteActions, checkApiRouteDeclarations, checkPluginAiDeclarations, checkPluginGraphqlFields, checkTemplateAndAssetDeclarations, PluginContentAccessSchema, PluginMediaAccessSchema, PluginUserAccessSchema, PluginUserFieldsSchema, SITE_ROUTE_METHODS, readSiteRoutePath, checkSiteExtensionDeclarations, checkEditorExtensionDeclarations, checkContentSlotDeclarations, checkAdminSlotDeclarations, PluginAssetPathSchema, PluginTemplateEntrySchema, checkDocsDeclaration, checkInstallDeclaration, PluginDocumentTypeSchema, PluginActionDeclarationSchema, PluginRoleOfferSchema, PluginLabelSchema, pluginDescriptionSchema, FormRepliesDeclarationSchema, PluginMailKindsSchema, PluginOutboundRequestsSchema, PluginSealedValuesSchema, SIGN_IN_CLIENT_AUTH, SIGN_IN_ICONS, SIGN_IN_PROTOCOLS, SlotLabelSchema, checkActionDeclarations as checkActionDeclarationsRule, isPluginActionFor, PluginSettingsDeclarationSchema, checkPluginSettingsDeclaration, PluginDataTypeConfigsSchema, checkDataTypeConfigDeclarations, CRON_EXPRESSION_MAX, PLUGIN_SCHEDULED_TASKS_MAX, parseCronExpression, isProtectionWidgetScript, isConsentToolFile, isSignInHostedDomainClaim, isSignInMark, signInDescriptionSchema, providerDescriptionSchema, providerLabelSchema, SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX, SIGN_IN_MARK_NAME_MAX, SIGN_IN_STEP_KINDS, signInStepFunctionsProblem, signInStepManifestProblems, ExposedServiceFieldsShape, PluginEventDeclarationsSchema, ServiceContractDeclarationsSchema, UsedServiceDeclarationsSchema, checkServiceDeclarations, isServiceMemberName, parsePluginEventKey, SERVICE_METHODS_MAX, RichTextExtensionsSchema, RichTextNodeDeclarationSchema, RichTextMarkDeclarationSchema, RichTextButtonSchema, RICH_TEXT_NODES_PER_PLUGIN_MAX, RICH_TEXT_MARKS_PER_PLUGIN_MAX, RICH_TEXT_BUTTONS_PER_PLUGIN_MAX, checkRichTextExtensionDeclarations, PluginVisitorIdentitySchema, PluginVisitorGroupsSchema, PluginVisitorAccountSectionsSchema, PluginVisitorDataSchema, PLUGIN_VISITOR_ACCOUNT_SECTIONS_MAX, checkVisitorPointDeclarations } from "@kardalum/api-schemas";
|
|
3
3
|
import { isActionGated } from "./capabilities.js";
|
|
4
4
|
// Runtime mirror of manifest.ts: the same contract, enforced for
|
|
5
5
|
// manifests that arrive as VALUES (Module Federation remotes, sideloaded
|
|
@@ -63,8 +63,9 @@ const manifestIdSchema = PluginManifestIdSchema;
|
|
|
63
63
|
// plugin declares it (contributionsSchema references this, not the bare
|
|
64
64
|
// array).
|
|
65
65
|
// A plugin contributing a media type without the flag stays legal.
|
|
66
|
+
// M33 K12: the manifest's own schema, where a field's name and help and a tab's name may be label maps.
|
|
66
67
|
const manifestDocumentTypesSchema = z
|
|
67
|
-
.array(
|
|
68
|
+
.array(PluginDocumentTypeSchema)
|
|
68
69
|
.optional()
|
|
69
70
|
.superRefine((documentTypes, ctx) => {
|
|
70
71
|
(documentTypes ?? []).forEach((documentType, index) => {
|
|
@@ -151,18 +152,8 @@ const migrationHooksSchema = z
|
|
|
151
152
|
validateMigration: callable("validateMigration").optional(),
|
|
152
153
|
})
|
|
153
154
|
.strict();
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"content:afterSave",
|
|
157
|
-
"content:beforePublish",
|
|
158
|
-
"content:afterPublish",
|
|
159
|
-
"content:afterTrash",
|
|
160
|
-
"content:afterRestore",
|
|
161
|
-
"content:beforeDelete",
|
|
162
|
-
"media:afterUpload",
|
|
163
|
-
"user:afterLogin",
|
|
164
|
-
"api:beforeResponse",
|
|
165
|
-
];
|
|
155
|
+
// The list lives in @kardalum/api-schemas (the delivery check reads it too).
|
|
156
|
+
export const HOOK_EVENTS = PLUGIN_HOOK_EVENTS;
|
|
166
157
|
// Each constant above that mirrors a contract type equals it, both ways.
|
|
167
158
|
const hookEventsMatch = true;
|
|
168
159
|
const pluginTypesMatch = true;
|
|
@@ -180,16 +171,44 @@ void routeMethodsMatch;
|
|
|
180
171
|
void routeAccessMatch;
|
|
181
172
|
void templateKindsMatch;
|
|
182
173
|
void viewBearingKeysExist;
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
|
-
|
|
174
|
+
// M33 K18: a hook value is a handler, or `{ handler, durable: true }` (the durable marker sits on the
|
|
175
|
+
// entry itself, so durability is never declared a second time beside `hooks`). `durable: false`
|
|
176
|
+
// and a handler without the marker are refused: there is one way to write each form.
|
|
177
|
+
const durableHookSchema = z
|
|
178
|
+
.object({
|
|
179
|
+
handler: callable("hook handler"),
|
|
180
|
+
durable: z.literal(true, { error: "durable must be true (write the handler alone for a hook that is not durable)" }),
|
|
181
|
+
})
|
|
182
|
+
.strict();
|
|
183
|
+
const hookEntrySchema = z.union([callable("hook handler"), durableHookSchema]);
|
|
184
|
+
// M35 B1a: a key is a core event of the catalog, or another plugin's event as <plugin id>:<name>.
|
|
185
|
+
const hookKeySchema = z.string().refine((key) => HOOK_EVENTS.includes(key) || parsePluginEventKey(key) !== null, {
|
|
186
|
+
message: "a hooks key names an event a plugin can hook, or another plugin's event as <plugin id>:<event name>",
|
|
187
|
+
});
|
|
188
|
+
const hooksSchema = z.record(hookKeySchema, hookEntrySchema).superRefine((hooks, ctx) => {
|
|
189
|
+
// M35 B2: a shutdown is gone after a restart, so its hook is never kept in the outbox.
|
|
190
|
+
for (const event of NON_DURABLE_HOOK_EVENTS) {
|
|
191
|
+
const entry = hooks[event];
|
|
192
|
+
if (entry !== null && typeof entry === "object" && entry.durable === true) {
|
|
193
|
+
ctx.addIssue({ code: "custom", path: [event], message: `${event} is never durable: its moment is gone after a restart (write the handler alone)` });
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
// M35 B2: a guard is the declaration of api-schemas plus its handler; each point once.
|
|
198
|
+
const guardSchema = z.object({ ...PluginGuardDeclarationSchema.shape, handler: callable("guard handler") }).strict();
|
|
199
|
+
const guardsSchema = z
|
|
200
|
+
.array(guardSchema)
|
|
201
|
+
.min(1)
|
|
202
|
+
.max(GUARD_POINTS.length)
|
|
203
|
+
.refine((entries) => new Set(entries.map((entry) => entry.point)).size === entries.length, { message: "declares each point once" });
|
|
186
204
|
// The DataTypePlugin contract's structural shape: shared by manifests
|
|
187
205
|
// (dataTypes contributions arriving as data) and definePlugin (which
|
|
188
206
|
// fronts it with friendlier required-view messages).
|
|
189
207
|
export const DataTypePluginSchema = z
|
|
190
208
|
.object({
|
|
191
209
|
id: pluginIdSchema,
|
|
192
|
-
|
|
210
|
+
// M33 K45: a display label (a plain string or a language map, English required); `id` is the identifier.
|
|
211
|
+
name: PluginLabelSchema,
|
|
193
212
|
icon: z.string().min(1),
|
|
194
213
|
version: z.string().min(1),
|
|
195
214
|
type: z.literal(DATATYPE_ENTRY_TYPES[0]),
|
|
@@ -213,8 +232,16 @@ export const DataTypePluginSchema = z
|
|
|
213
232
|
// this same schema via definePlugin.
|
|
214
233
|
validate: callable("validate").optional(),
|
|
215
234
|
isEmpty: callable("isEmpty").optional(),
|
|
235
|
+
// M32 F4d (D14): may sit inside a Group or a Repeatable list. A nested value is checked on the
|
|
236
|
+
// server, so a nestable type must declare `validate`.
|
|
237
|
+
nestable: z.boolean().optional(),
|
|
216
238
|
})
|
|
217
|
-
.strict()
|
|
239
|
+
.strict()
|
|
240
|
+
.superRefine((entry, ctx) => {
|
|
241
|
+
if (entry.nestable === true && entry.validate === undefined) {
|
|
242
|
+
ctx.addIssue({ code: "custom", path: ["nestable"], message: "a nestable data type must declare validate" });
|
|
243
|
+
}
|
|
244
|
+
});
|
|
218
245
|
// --- the slots (S280, Theme B) ----------------------------------------------
|
|
219
246
|
// Three closed kinds, never a general registry (spec D1): a top-level
|
|
220
247
|
// section whose view is its landing page, a rail entry in that section's own
|
|
@@ -272,7 +299,8 @@ const adminSectionSchema = z
|
|
|
272
299
|
* not a host for them. A plugin cannot take over any built-in section's
|
|
273
300
|
* landing page (spec D2), only add to its rail.
|
|
274
301
|
*/
|
|
275
|
-
|
|
302
|
+
// M33 K6: one list, in the shared schemas, which a notification's screen link also reads.
|
|
303
|
+
export { BUILT_IN_RAIL_SECTIONS };
|
|
276
304
|
const railEntrySchema = z
|
|
277
305
|
.object({
|
|
278
306
|
id: slotIdSchema,
|
|
@@ -291,6 +319,50 @@ const dashboardWidgetSchema = z
|
|
|
291
319
|
action: ActionStringSchema,
|
|
292
320
|
})
|
|
293
321
|
.strict();
|
|
322
|
+
// M32 F3 (D1, D7): an editor panel and a tree action share one shape. Only the shape is checked here;
|
|
323
|
+
// the id rule, the counts, the repeated ids and the documentTypes list are checkEditorExtensionDeclarations,
|
|
324
|
+
// run once on the whole manifest, so the schema and the delivery check report the same issues.
|
|
325
|
+
const editorSlotSchema = z
|
|
326
|
+
.object({
|
|
327
|
+
id: z.string(),
|
|
328
|
+
label: SlotLabelSchema,
|
|
329
|
+
action: ActionStringSchema,
|
|
330
|
+
documentTypes: z.array(z.string()).optional(),
|
|
331
|
+
view: componentSchema,
|
|
332
|
+
})
|
|
333
|
+
.strict();
|
|
334
|
+
// M35 C2: the four content slot shapes and the admin slot shape. The id rules, counts, options and places are
|
|
335
|
+
// checkContentSlotDeclarations and checkAdminSlotDeclarations, run once on the whole manifest, so the schema
|
|
336
|
+
// and the delivery check report the same issues. `slot` and `icon` are typed as the contract's union here and
|
|
337
|
+
// checked as strings: the place and the icon rules are the whole-manifest checks' (which name every place).
|
|
338
|
+
// A missing `values` or `match` does not abort the parse (z.custom aborts by default), so those
|
|
339
|
+
// whole-manifest rules still report in the same pass; none of them calls a contribution's function.
|
|
340
|
+
const slotCallable = (label) => z.custom((value) => typeof value === "function", { message: `${label} must be a function`, abort: false });
|
|
341
|
+
const contentValuesSlotSchema = () => z
|
|
342
|
+
.object({ id: z.string(), label: SlotLabelSchema, action: ActionStringSchema, documentTypes: z.array(z.string()).optional(), values: slotCallable("values") })
|
|
343
|
+
.strict();
|
|
344
|
+
const listFilterSchema = z
|
|
345
|
+
.object({
|
|
346
|
+
id: z.string(),
|
|
347
|
+
label: SlotLabelSchema,
|
|
348
|
+
action: ActionStringSchema,
|
|
349
|
+
documentTypes: z.array(z.string()).optional(),
|
|
350
|
+
options: z.array(z.object({ value: z.string(), label: SlotLabelSchema }).strict()),
|
|
351
|
+
match: slotCallable("match"),
|
|
352
|
+
})
|
|
353
|
+
.strict();
|
|
354
|
+
const adminSlotSchema = z
|
|
355
|
+
.object({
|
|
356
|
+
id: z.string(),
|
|
357
|
+
slot: z.custom((value) => typeof value === "string", { message: "slot must be a string" }),
|
|
358
|
+
label: SlotLabelSchema,
|
|
359
|
+
action: ActionStringSchema,
|
|
360
|
+
// The schema checks only for a name; the delivery checks read it against Lucide's names. Not aborting,
|
|
361
|
+
// so the other slot rules of the same manifest are reported in the same pass.
|
|
362
|
+
icon: z.custom((value) => typeof value === "string" && value.length > 0, { message: "icon must be a non-empty string", abort: false }).optional(),
|
|
363
|
+
view: componentSchema,
|
|
364
|
+
})
|
|
365
|
+
.strict();
|
|
294
366
|
// S297: a route's declared success responses. The keys are decided by the rule
|
|
295
367
|
// the host's route table compiles with (isApiRouteResponseStatus), so the two
|
|
296
368
|
// cannot disagree; the values are real Zod schemas like the request parts.
|
|
@@ -308,6 +380,12 @@ const apiRouteResponseSchema = z.record(z.string(), zodSchemaField).superRefine(
|
|
|
308
380
|
}
|
|
309
381
|
}
|
|
310
382
|
});
|
|
383
|
+
// M35 B3 (W17): the shape only; the rule (methods, limits, types, not beside rawBody, no other key) is api-schemas'
|
|
384
|
+
// routeUploadsProblem: per route for an API route, as rawBody's, and in checkSiteExtensionDeclarations for a site
|
|
385
|
+
// route. Passthrough, so an unknown key is reported once, in the rule's words, rather than twice.
|
|
386
|
+
const routeUploadsShape = z
|
|
387
|
+
.object({ maxFiles: z.number(), maxFileBytes: z.number(), maxTotalBytes: z.number().optional(), types: z.array(z.string()) })
|
|
388
|
+
.passthrough();
|
|
311
389
|
const apiRouteSchema = z
|
|
312
390
|
.object({
|
|
313
391
|
method: z.enum(API_ROUTE_METHODS),
|
|
@@ -327,8 +405,192 @@ const apiRouteSchema = z
|
|
|
327
405
|
.strict()
|
|
328
406
|
.optional(),
|
|
329
407
|
handler: callable("handler"),
|
|
408
|
+
// M31.5 D (D1): the shape only; the rule (an apiKey route, the name, the description, a
|
|
409
|
+
// name once) is api-schemas' checkPluginAiDeclarations, run once on the whole manifest below.
|
|
410
|
+
mcpTool: z.object({ name: z.string(), description: z.string() }).strict().optional(),
|
|
411
|
+
// M32 F3b (D12): strict, so no other key rides along. The rest (an apiKey GET route with an
|
|
412
|
+
// action, the name's shape and use once, the description) is api-schemas' checkPluginGraphqlFields.
|
|
413
|
+
graphqlField: z.object({ name: z.string(), description: z.string() }).strict().optional(),
|
|
414
|
+
// M33 K4: `true` or absent; the method rule is api-schemas' apiRouteRawBodyProblem, which the
|
|
415
|
+
// delivery routes check runs on manifest.json too.
|
|
416
|
+
rawBody: z.literal(true).optional(),
|
|
417
|
+
uploads: routeUploadsShape.optional(),
|
|
418
|
+
})
|
|
419
|
+
.strict()
|
|
420
|
+
.superRefine((route, ctx) => {
|
|
421
|
+
const problem = apiRouteRawBodyProblem(route);
|
|
422
|
+
if (problem !== null)
|
|
423
|
+
ctx.addIssue({ code: "custom", message: problem, path: ["rawBody"] });
|
|
424
|
+
const uploads = routeUploadsProblem(route, API_ROUTE_UPLOAD_METHODS, "route");
|
|
425
|
+
if (uploads !== null)
|
|
426
|
+
ctx.addIssue({ code: "custom", message: uploads, path: ["uploads"] });
|
|
427
|
+
});
|
|
428
|
+
// M32 F2: the shapes of the five site extension keys. The path, count, name and prefix rules are
|
|
429
|
+
// api-schemas' (siteRoutePathProblem, checkSiteExtensionDeclarations), the ones the door runs on manifest.json,
|
|
430
|
+
// run once on the whole manifest below; a per-route copy reported each problem twice.
|
|
431
|
+
const siteRouteSchema = z
|
|
432
|
+
.object({
|
|
433
|
+
method: z.enum(SITE_ROUTE_METHODS),
|
|
434
|
+
path: z.string(),
|
|
435
|
+
schema: z.object({ querystring: zodSchemaField.optional(), body: zodSchemaField.optional(), params: zodSchemaField.optional() }).strict().optional(),
|
|
436
|
+
handler: callable("handler"),
|
|
437
|
+
// M35 P2 (W21): `true` or absent; the method rule is api-schemas' siteRouteRawBodyProblem.
|
|
438
|
+
rawBody: z.literal(true).optional(),
|
|
439
|
+
// M35 B3 (W17): the rule is checkSiteExtensionDeclarations', run once on the whole manifest.
|
|
440
|
+
uploads: routeUploadsShape.optional(),
|
|
441
|
+
})
|
|
442
|
+
.strict()
|
|
443
|
+
.superRefine((route, ctx) => {
|
|
444
|
+
// M35 P3 (W18): params only where the path has some; the path rule itself is api-schemas'.
|
|
445
|
+
if (route.schema?.params === undefined)
|
|
446
|
+
return;
|
|
447
|
+
const read = readSiteRoutePath(route.method, route.path);
|
|
448
|
+
if (read.ok && read.pattern.params.length === 0)
|
|
449
|
+
ctx.addIssue({ code: "custom", path: ["schema", "params"], message: 'schema.params is for a path with a parameter or "*"' });
|
|
450
|
+
});
|
|
451
|
+
const siteFallbackSchema = z.object({ resolve: callable("resolve") }).strict();
|
|
452
|
+
// M35 P2 (W2): shapes only; the core bounds every call (routes/request-guard.ts, routes/response-headers.ts).
|
|
453
|
+
const requestGuardSchema = z.object({ check: callable("check") }).strict();
|
|
454
|
+
const responseHeadersSchema = z.object({ headers: callable("headers") }).strict();
|
|
455
|
+
const pageCacheSchema = z.object({ headers: callable("headers") }).strict();
|
|
456
|
+
const pageGateSchema = z.object({ check: callable("check") }).strict();
|
|
457
|
+
// M35 P3 (W19, evidence 116): `block` and `onFailure` are shapes only, on one object each, as the comment above
|
|
458
|
+
// says of the other site extension keys: the rule (which values, and onFailure on a block tag only) is api-schemas'
|
|
459
|
+
// checkSiteExtensionDeclarations, run once on the whole manifest, so each mistake is reported once, in its words,
|
|
460
|
+
// rather than twice or as a union's vague "Invalid input" at the entry's path. Typed as the contract types (an
|
|
461
|
+
// unchecked z.custom, as `slot` and `heldEmbeds` are) so the parsed manifest is still a PluginManifest.
|
|
462
|
+
const templateFilterSchema = z
|
|
463
|
+
.object({ name: z.string(), onFailure: z.custom().optional(), filter: callable("filter") })
|
|
464
|
+
.strict();
|
|
465
|
+
const templateTagSchema = z
|
|
466
|
+
.object({
|
|
467
|
+
name: z.string(),
|
|
468
|
+
block: z.unknown().optional(),
|
|
469
|
+
onFailure: z.unknown().optional(),
|
|
470
|
+
render: callable("render"),
|
|
471
|
+
})
|
|
472
|
+
.strict()
|
|
473
|
+
.pipe(z.custom());
|
|
474
|
+
const pageHeadSchema = z
|
|
475
|
+
.object({
|
|
476
|
+
// Shape only: the origin and count rules are checkSiteExtensionDeclarations, run once on the whole manifest.
|
|
477
|
+
scriptOrigins: z.array(z.string()).optional(),
|
|
478
|
+
// M33 K27: the one declaration that lets a title entry set the page title.
|
|
479
|
+
setsTitle: z.literal(true).optional(),
|
|
480
|
+
// M35 P1 (W40): the one declaration that lets a head write inline code.
|
|
481
|
+
inlineSnippets: z.literal(true).optional(),
|
|
482
|
+
entries: callable("entries"),
|
|
483
|
+
})
|
|
484
|
+
.strict();
|
|
485
|
+
// M35 P1 (W3): shape only; the core bounds every call (render/page-output.ts).
|
|
486
|
+
const pageOutputSchema = z.object({ transform: callable("transform") }).strict();
|
|
487
|
+
// M32 F4: the shapes of the provider keys and the secrets list. The id, label, prefix and count rules are
|
|
488
|
+
// the `Providers and secrets` delivery check's, run on the live manifest by validate and on manifest.json at the door.
|
|
489
|
+
// The label and description limits are the door's (PROVIDER_LABEL_MAX, PROVIDER_DESCRIPTION_MAX), one definition each.
|
|
490
|
+
const providerBase = { id: z.string(), label: providerLabelSchema(), description: providerDescriptionSchema().optional() };
|
|
491
|
+
const protectionProviderSchema = z
|
|
492
|
+
.object({
|
|
493
|
+
...providerBase,
|
|
494
|
+
fieldPrefix: z.string(),
|
|
495
|
+
verify: callable("verify"),
|
|
496
|
+
widget: callable("widget").optional(),
|
|
497
|
+
// M33 K51: the one public/ file rule, ending ".js"; the delivery check also finds the file.
|
|
498
|
+
widgetScript: z
|
|
499
|
+
.string()
|
|
500
|
+
.refine((path) => isProtectionWidgetScript(path), { message: "widgetScript names a .js file in the plugin's public/ folder, such as \"captcha.js\"" })
|
|
501
|
+
.optional(),
|
|
502
|
+
})
|
|
503
|
+
.strict();
|
|
504
|
+
const searchProviderSchema = z
|
|
505
|
+
.object({
|
|
506
|
+
...providerBase,
|
|
507
|
+
index: callable("index"),
|
|
508
|
+
remove: callable("remove"),
|
|
509
|
+
query: callable("query"),
|
|
510
|
+
clear: callable("clear").optional(),
|
|
511
|
+
})
|
|
512
|
+
.strict();
|
|
513
|
+
const mailSenderSchema = z
|
|
514
|
+
.object({
|
|
515
|
+
...providerBase,
|
|
516
|
+
send: callable("send"),
|
|
517
|
+
ready: callable("ready").optional(),
|
|
518
|
+
})
|
|
519
|
+
.strict();
|
|
520
|
+
// M35 P5 (W37): a consent tool's shape; the file rules are isConsentToolFile's, and the delivery check finds the files.
|
|
521
|
+
const consentToolSchema = z
|
|
522
|
+
.object({
|
|
523
|
+
...providerBase,
|
|
524
|
+
script: z.string().refine((path) => isConsentToolFile(path, ".js"), { message: 'script names a .js file in the plugin\'s public/ folder, such as "consent.js"' }),
|
|
525
|
+
stylesheet: z
|
|
526
|
+
.string()
|
|
527
|
+
.refine((path) => isConsentToolFile(path, ".css"), { message: "stylesheet names a .css file in the plugin's public/ folder" })
|
|
528
|
+
.optional(),
|
|
529
|
+
})
|
|
530
|
+
.strict();
|
|
531
|
+
const mediaStoreSchema = z
|
|
532
|
+
.object({
|
|
533
|
+
...providerBase,
|
|
534
|
+
put: callable("put"),
|
|
535
|
+
open: callable("open"),
|
|
536
|
+
delete: callable("delete"),
|
|
537
|
+
exists: callable("exists"),
|
|
538
|
+
ready: callable("ready").optional(),
|
|
539
|
+
publicBaseUrl: callable("publicBaseUrl").optional(),
|
|
540
|
+
})
|
|
541
|
+
.strict();
|
|
542
|
+
// M32 F4b (D33): a sign-in provider's shape. The protocol, address, scope and secret name rules are
|
|
543
|
+
// api-schemas' signInDeclarationProblems, run by the same delivery check.
|
|
544
|
+
const signInProviderSchema = z
|
|
545
|
+
.object({
|
|
546
|
+
...providerBase,
|
|
547
|
+
// M33 K56: shown on the login page, so at most 160 characters per language (SIGN_IN_DESCRIPTION_MAX).
|
|
548
|
+
description: signInDescriptionSchema().optional(),
|
|
549
|
+
icon: z.enum(SIGN_IN_ICONS).optional(),
|
|
550
|
+
// M33 K57: a PNG of the plugin's public/ folder by name; the delivery check also opens the file.
|
|
551
|
+
mark: z
|
|
552
|
+
.string()
|
|
553
|
+
.refine((name) => isSignInMark(name), { message: `mark names a PNG in the plugin's public/ folder: 5 to ${SIGN_IN_MARK_NAME_MAX} lower-case letters, digits and "-", ending in ".png"` })
|
|
554
|
+
.optional(),
|
|
555
|
+
// M33 K58: the claim's name; that it is on an "oidc" entry only is signInDeclarationProblems' rule.
|
|
556
|
+
hostedDomainClaim: z
|
|
557
|
+
.string()
|
|
558
|
+
.refine((name) => isSignInHostedDomainClaim(name), { message: `hostedDomainClaim is 1 to ${SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX} characters: a lower-case letter, then lower-case letters, digits and "_"` })
|
|
559
|
+
.optional(),
|
|
560
|
+
protocol: z.enum(SIGN_IN_PROTOCOLS),
|
|
561
|
+
issuer: z.string().optional(),
|
|
562
|
+
issuerSecret: z.string().optional(),
|
|
563
|
+
authorizationUrl: z.string().optional(),
|
|
564
|
+
tokenUrl: z.string().optional(),
|
|
565
|
+
userInfoUrls: z.array(z.string()).optional(),
|
|
566
|
+
clientAuth: z.enum(SIGN_IN_CLIENT_AUTH).optional(),
|
|
567
|
+
scopes: z.array(z.string()),
|
|
568
|
+
clientIdSecret: z.string(),
|
|
569
|
+
clientSecretSecret: z.string(),
|
|
570
|
+
profile: callable("profile").optional(),
|
|
330
571
|
})
|
|
331
572
|
.strict();
|
|
573
|
+
// M35 U3a (D5): a sign-in step's shape. The kind rule and the parts are api-schemas' (sign-in-steps.ts).
|
|
574
|
+
const signInStepSchema = z
|
|
575
|
+
.object({
|
|
576
|
+
...providerBase,
|
|
577
|
+
description: signInDescriptionSchema().optional(),
|
|
578
|
+
kind: z.enum(SIGN_IN_STEP_KINDS),
|
|
579
|
+
status: callable("status"),
|
|
580
|
+
challenge: callable("challenge").optional(),
|
|
581
|
+
verify: callable("verify").optional(),
|
|
582
|
+
setupBegin: callable("setupBegin").optional(),
|
|
583
|
+
setupFinish: callable("setupFinish").optional(),
|
|
584
|
+
setupRemove: callable("setupRemove").optional(),
|
|
585
|
+
})
|
|
586
|
+
.strict()
|
|
587
|
+
.superRefine((entry, ctx) => {
|
|
588
|
+
const present = new Set(Object.keys(entry).filter((name) => typeof entry[name] === "function"));
|
|
589
|
+
const problem = signInStepFunctionsProblem(entry.kind, present);
|
|
590
|
+
if (problem !== null)
|
|
591
|
+
ctx.addIssue({ code: "custom", message: problem });
|
|
592
|
+
});
|
|
593
|
+
const secretDeclarationSchema = z.object({ name: z.string(), label: PluginLabelSchema, description: pluginDescriptionSchema().optional() }).strict();
|
|
332
594
|
const customFormatContributionSchema = z.object({
|
|
333
595
|
name: z.string().regex(/^[a-z0-9-]+$/),
|
|
334
596
|
build: callable("build"),
|
|
@@ -349,7 +611,11 @@ const scheduledTaskSchema = z
|
|
|
349
611
|
.object({
|
|
350
612
|
id: z.string().min(1),
|
|
351
613
|
name: PluginLabelSchema,
|
|
352
|
-
cron: z.string().min(1),
|
|
614
|
+
cron: z.string().min(1).max(CRON_EXPRESSION_MAX).superRefine((text, ctx) => {
|
|
615
|
+
const parsed = parseCronExpression(text);
|
|
616
|
+
if (!parsed.ok)
|
|
617
|
+
ctx.addIssue({ code: "custom", message: `cron expression is not valid at position ${parsed.position}: ${parsed.message}` });
|
|
618
|
+
}),
|
|
353
619
|
run: callable("run"),
|
|
354
620
|
})
|
|
355
621
|
.strict();
|
|
@@ -360,8 +626,14 @@ const mediaProcessorSchema = z
|
|
|
360
626
|
process: callable("process"),
|
|
361
627
|
})
|
|
362
628
|
.strict();
|
|
629
|
+
// M35 B1a: an offer, its fields by api-schemas' rule and its implementation as functions by method name.
|
|
363
630
|
const exposedServiceSchema = z
|
|
364
|
-
.object({
|
|
631
|
+
.object({
|
|
632
|
+
...ExposedServiceFieldsShape,
|
|
633
|
+
implementation: z
|
|
634
|
+
.record(z.string().refine((name) => isServiceMemberName(name), { message: "a method name" }), callable("service implementation"))
|
|
635
|
+
.refine((methods) => Object.keys(methods).length >= 1 && Object.keys(methods).length <= SERVICE_METHODS_MAX, { message: `1 to ${SERVICE_METHODS_MAX} methods` }),
|
|
636
|
+
})
|
|
365
637
|
.strict();
|
|
366
638
|
const bundledTemplateSchema = z
|
|
367
639
|
.object({
|
|
@@ -488,22 +760,83 @@ function checkActionDeclarations(value, ctx) {
|
|
|
488
760
|
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
489
761
|
}
|
|
490
762
|
}
|
|
763
|
+
// M32 G (G1): the kinds a plugin sends are checked against its own declared actions and offered
|
|
764
|
+
// roles by api-schemas' checkNotificationKinds, the rule the marketplace door runs too.
|
|
765
|
+
function checkNotificationKindDeclarations(value, ctx) {
|
|
766
|
+
const kinds = value.contributions.notifications;
|
|
767
|
+
if (!Array.isArray(kinds))
|
|
768
|
+
return;
|
|
769
|
+
const parsed = PluginNotificationKindsSchema.safeParse(kinds);
|
|
770
|
+
if (!parsed.success)
|
|
771
|
+
return;
|
|
772
|
+
const problems = checkNotificationKinds(parsed.data, {
|
|
773
|
+
pluginId: value.id,
|
|
774
|
+
declaredActions: value.actions?.map((a) => a.id) ?? [],
|
|
775
|
+
offeredRoleIds: value.roles?.map((r) => r.id) ?? [],
|
|
776
|
+
});
|
|
777
|
+
for (const problem of problems) {
|
|
778
|
+
ctx.addIssue({ code: "custom", message: problem.message, path: ["contributions", "notifications", ...problem.path] });
|
|
779
|
+
}
|
|
780
|
+
}
|
|
491
781
|
// --- contributions: one ungated surface (S268) ------------------------------
|
|
492
782
|
// Every key optional, and the plugin's `type` gates none of them. .strict()
|
|
493
783
|
// stays: a key this contract does not define is still an error, so a typo
|
|
494
784
|
// and a field removed by a later version both fail loudly instead of being
|
|
495
785
|
// silently dropped. The two cross-checks it runs are what still binds, and
|
|
496
786
|
// they now run for every manifest rather than for some of the old variants.
|
|
787
|
+
// M35 C4a and C4b (W9): the live form. A node takes its server-only validate and its view, a mark its view, and a
|
|
788
|
+
// button's does may open a view with its action; manifest.json writes each view as hasView (richTextExtensionsSummary).
|
|
789
|
+
const richTextExtensionsSchema = RichTextExtensionsSchema.extend({
|
|
790
|
+
nodes: z
|
|
791
|
+
.array(RichTextNodeDeclarationSchema.omit({ hasView: true }).extend({ validate: callable("validate").optional(), view: componentSchema.optional() }))
|
|
792
|
+
.max(RICH_TEXT_NODES_PER_PLUGIN_MAX)
|
|
793
|
+
.optional(),
|
|
794
|
+
marks: z.array(RichTextMarkDeclarationSchema.omit({ hasView: true }).extend({ view: componentSchema.optional() })).max(RICH_TEXT_MARKS_PER_PLUGIN_MAX).optional(),
|
|
795
|
+
buttons: z
|
|
796
|
+
.array(RichTextButtonSchema.extend({
|
|
797
|
+
does: z.union([
|
|
798
|
+
z.object({ insert: z.string() }).strict(),
|
|
799
|
+
z.object({ toggle: z.string() }).strict(),
|
|
800
|
+
z.object({ view: componentSchema, action: ActionStringSchema }).strict(),
|
|
801
|
+
], { error: "a button's does names one of insert or toggle, or a view with its action" }),
|
|
802
|
+
}))
|
|
803
|
+
.max(RICH_TEXT_BUTTONS_PER_PLUGIN_MAX)
|
|
804
|
+
.optional(),
|
|
805
|
+
});
|
|
497
806
|
const contributionsShape = {
|
|
498
807
|
dataTypes: z.array(DataTypePluginSchema).optional(),
|
|
808
|
+
dataTypeConfigs: PluginDataTypeConfigsSchema.optional(),
|
|
499
809
|
adminSections: z.array(adminSectionSchema).optional(),
|
|
500
810
|
railEntries: z.array(railEntrySchema).optional(),
|
|
501
811
|
dashboardWidgets: z.array(dashboardWidgetSchema).optional(),
|
|
812
|
+
editorPanels: z.array(editorSlotSchema).optional(),
|
|
813
|
+
treeActions: z.array(editorSlotSchema).optional(),
|
|
814
|
+
richTextExtensions: richTextExtensionsSchema.optional(),
|
|
815
|
+
contentColumns: z.array(contentValuesSlotSchema()).optional(),
|
|
816
|
+
treeBadges: z.array(contentValuesSlotSchema()).optional(),
|
|
817
|
+
listFilters: z.array(listFilterSchema).optional(),
|
|
818
|
+
bulkActions: z.array(editorSlotSchema).optional(),
|
|
819
|
+
adminSlots: z.array(adminSlotSchema).optional(),
|
|
502
820
|
apiRoutes: z.array(apiRouteSchema).optional(),
|
|
503
821
|
hooks: hooksSchema.optional(),
|
|
504
|
-
|
|
822
|
+
guards: guardsSchema.optional(),
|
|
823
|
+
scheduledTasks: z
|
|
824
|
+
.array(scheduledTaskSchema)
|
|
825
|
+
.max(PLUGIN_SCHEDULED_TASKS_MAX)
|
|
826
|
+
.superRefine((tasks, ctx) => {
|
|
827
|
+
const ids = new Set();
|
|
828
|
+
for (const task of tasks) {
|
|
829
|
+
if (ids.has(task.id))
|
|
830
|
+
ctx.addIssue({ code: "custom", message: `scheduledTasks id "${task.id}" is declared twice` });
|
|
831
|
+
ids.add(task.id);
|
|
832
|
+
}
|
|
833
|
+
})
|
|
834
|
+
.optional(),
|
|
505
835
|
mediaProcessors: z.array(mediaProcessorSchema).optional(),
|
|
836
|
+
serviceContracts: ServiceContractDeclarationsSchema.optional(),
|
|
506
837
|
exposedServices: z.array(exposedServiceSchema).optional(),
|
|
838
|
+
usedServices: UsedServiceDeclarationsSchema.optional(),
|
|
839
|
+
events: PluginEventDeclarationsSchema.optional(),
|
|
507
840
|
serializers: serializerContributionSchema.optional(),
|
|
508
841
|
documentTypes: manifestDocumentTypesSchema,
|
|
509
842
|
themeTokens: themeTokensSchema.optional(),
|
|
@@ -521,14 +854,85 @@ const contributionsShape = {
|
|
|
521
854
|
.min(1, { error: "must name at least one member plugin id (leave bundledPlugins out when the plugin bundles none)" })
|
|
522
855
|
.optional(),
|
|
523
856
|
bundledTemplate: bundledTemplateSchema.optional(),
|
|
524
|
-
//
|
|
525
|
-
notifications:
|
|
857
|
+
// M32 G (G1): the kinds the plugin sends; the capability is derived from them.
|
|
858
|
+
notifications: PluginNotificationKindsSchema.optional(),
|
|
859
|
+
// M31.5 D (D5): text for an MCP host; its length is checkPluginAiDeclarations' rule.
|
|
860
|
+
aiContext: z.string().optional(),
|
|
861
|
+
// M32 F (D1): the rule is api-schemas' own, as the door reads it.
|
|
862
|
+
contentAccess: PluginContentAccessSchema.optional(),
|
|
863
|
+
// M32 F4c (D10): likewise the media rule.
|
|
864
|
+
mediaAccess: PluginMediaAccessSchema.optional(),
|
|
865
|
+
// M35 U1 (W6): account access and account fields, api-schemas' own rules.
|
|
866
|
+
userAccess: PluginUserAccessSchema.optional(),
|
|
867
|
+
userFields: PluginUserFieldsSchema.optional(),
|
|
868
|
+
// M35 U2b (W8): the visitor points, api-schemas' shapes. The functions are checked (and kept) here: manifest.json
|
|
869
|
+
// carries none, so the door reads the rest only.
|
|
870
|
+
visitorIdentity: PluginVisitorIdentitySchema.optional(),
|
|
871
|
+
visitorGroups: PluginVisitorGroupsSchema.optional(),
|
|
872
|
+
visitorAccountSections: z
|
|
873
|
+
.array(PluginVisitorAccountSectionsSchema.element.extend({ data: callable("data") }))
|
|
874
|
+
.min(1)
|
|
875
|
+
.max(PLUGIN_VISITOR_ACCOUNT_SECTIONS_MAX)
|
|
876
|
+
.optional(),
|
|
877
|
+
visitorData: PluginVisitorDataSchema.extend({
|
|
878
|
+
export: callable("export"),
|
|
879
|
+
erase: callable("erase"),
|
|
880
|
+
}).optional(),
|
|
881
|
+
// M32 F2: site addresses, template extensions and the page head.
|
|
882
|
+
siteRoutes: z.array(siteRouteSchema).optional(),
|
|
883
|
+
siteFallback: siteFallbackSchema.optional(),
|
|
884
|
+
// M35 P2 (W2): the request guard and the response headers.
|
|
885
|
+
requestGuard: requestGuardSchema.optional(),
|
|
886
|
+
responseHeaders: responseHeadersSchema.optional(),
|
|
887
|
+
pageGate: pageGateSchema.optional(),
|
|
888
|
+
templateFilters: z.array(templateFilterSchema).optional(),
|
|
889
|
+
templateTags: z.array(templateTagSchema).optional(),
|
|
890
|
+
pageHead: pageHeadSchema.optional(),
|
|
891
|
+
// M33 K42: shape only; the rules are checkSiteExtensionDeclarations', run once on the whole
|
|
892
|
+
// manifest (the door's rules), so a bad entry is refused once, at its field.
|
|
893
|
+
heldEmbeds: z.array(z.custom()).optional(),
|
|
894
|
+
// M35 P1 (W3): the page output transform.
|
|
895
|
+
pageOutput: pageOutputSchema.optional(),
|
|
896
|
+
pageCache: pageCacheSchema.optional(),
|
|
897
|
+
// M32 F4: providers and the secrets they keep.
|
|
898
|
+
protectionProviders: z.array(protectionProviderSchema).optional(),
|
|
899
|
+
searchProviders: z.array(searchProviderSchema).optional(),
|
|
900
|
+
mediaStores: z.array(mediaStoreSchema).optional(),
|
|
901
|
+
signInProviders: z.array(signInProviderSchema).optional(),
|
|
902
|
+
// M35 U3a (D5): sign-in steps; the sealedValues and storage rule is the refinement below.
|
|
903
|
+
signInSteps: z.array(signInStepSchema).optional(),
|
|
904
|
+
// M32 H (H1, H19): mail senders, and the form replies declaration (api-schemas' own rule).
|
|
905
|
+
mailSenders: z.array(mailSenderSchema).optional(),
|
|
906
|
+
consentTools: z.array(consentToolSchema).optional(),
|
|
907
|
+
formReplies: FormRepliesDeclarationSchema.optional(),
|
|
908
|
+
// M33 K11: the kinds of email the plugin sends to one person (api-schemas' own rule).
|
|
909
|
+
mailKinds: PluginMailKindsSchema.optional(),
|
|
910
|
+
// M33 K16, K17: outbound requests and sealed values (api-schemas' own rules).
|
|
911
|
+
outboundRequests: PluginOutboundRequestsSchema.optional(),
|
|
912
|
+
sealedValues: PluginSealedValuesSchema.optional(),
|
|
913
|
+
secrets: z.array(secretDeclarationSchema).optional(),
|
|
914
|
+
// M32 F4d (D1): the plugin settings fields; the rules are api-schemas', the secret cross-check runs below.
|
|
915
|
+
settings: PluginSettingsDeclarationSchema.optional(),
|
|
526
916
|
};
|
|
917
|
+
/** A settings problem's path ("2.id") as Zod path segments (2, "id"). */
|
|
918
|
+
function problemPath(path) {
|
|
919
|
+
if (path === "")
|
|
920
|
+
return [];
|
|
921
|
+
return path.split(".").map((part) => (part.length > 0 && part.length < 6 && part === String(Number(part)) ? Number(part) : part));
|
|
922
|
+
}
|
|
527
923
|
const contributionsSchema = z
|
|
528
924
|
.object(contributionsShape)
|
|
529
925
|
.strict()
|
|
530
926
|
.superRefine(checkTemplateAndAssetContributions)
|
|
531
|
-
.superRefine(checkSlotContributions)
|
|
927
|
+
.superRefine(checkSlotContributions)
|
|
928
|
+
.superRefine((value, ctx) => {
|
|
929
|
+
if (value.settings === undefined)
|
|
930
|
+
return;
|
|
931
|
+
const secretNames = (value.secrets ?? []).map((secret) => secret.name);
|
|
932
|
+
for (const problem of checkPluginSettingsDeclaration(value.settings, secretNames)) {
|
|
933
|
+
ctx.addIssue({ code: "custom", message: problem.message, path: ["settings", ...problemPath(problem.path)] });
|
|
934
|
+
}
|
|
935
|
+
});
|
|
532
936
|
/**
|
|
533
937
|
* Every contribution key this contract defines, at runtime, derived from
|
|
534
938
|
* the schema above so it cannot drift from it.
|
|
@@ -551,6 +955,10 @@ const baseFields = {
|
|
|
551
955
|
// the name, the description or the author. Before this they were only
|
|
552
956
|
// non-empty here, so `validate` passed a manifest the door then refused.
|
|
553
957
|
...pluginManifestFields,
|
|
958
|
+
// M32 B (D5): optional in a plugin's source, because the build writes it.
|
|
959
|
+
// The marketplace door reads a package's manifest.json by
|
|
960
|
+
// pluginManifestFields, where it stays required.
|
|
961
|
+
cmsVersion: PluginCmsVersionSchema.optional(),
|
|
554
962
|
price: z.number().nonnegative().optional(),
|
|
555
963
|
// Optional by design: sideloaded/dev plugins are unsigned (Tier 2).
|
|
556
964
|
signature: z.string().optional(),
|
|
@@ -597,6 +1005,18 @@ export const CMSPluginSchema = z
|
|
|
597
1005
|
.strict()
|
|
598
1006
|
.superRefine(checkActionContributions)
|
|
599
1007
|
.superRefine(checkActionDeclarations)
|
|
1008
|
+
.superRefine(checkNotificationKindDeclarations)
|
|
1009
|
+
// M32 J (J3): the declared data types, by the rule the door runs in its own check (M32 K).
|
|
1010
|
+
.superRefine((value, ctx) => {
|
|
1011
|
+
// A refinement still runs when the list failed a check of its own schema (an empty list, an
|
|
1012
|
+
// empty name), and the rule would then report that same issue a second time.
|
|
1013
|
+
const declared = value.contributions.dataTypeConfigs;
|
|
1014
|
+
if (declared !== undefined && !PluginDataTypeConfigsSchema.safeParse(declared).success)
|
|
1015
|
+
return;
|
|
1016
|
+
for (const issue of checkDataTypeConfigDeclarations(value)) {
|
|
1017
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1018
|
+
}
|
|
1019
|
+
})
|
|
600
1020
|
// S295 (2026-10-14-s295-routes-fastify-knows-about-design.md 3.1): the rule
|
|
601
1021
|
// `kardalum plugin validate` and the marketplace door run too, rooted at the
|
|
602
1022
|
// manifest.
|
|
@@ -612,6 +1032,53 @@ export const CMSPluginSchema = z
|
|
|
612
1032
|
for (const issue of checkApiRouteActions(value)) {
|
|
613
1033
|
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
614
1034
|
}
|
|
1035
|
+
})
|
|
1036
|
+
// M35 B1a (W16): the services and events rule `kardalum plugin validate` and the door run too. Like the
|
|
1037
|
+
// data types refinement, it stays quiet when a key failed its own schema above, which reported it once.
|
|
1038
|
+
.superRefine((value, ctx) => {
|
|
1039
|
+
const own = value.contributions;
|
|
1040
|
+
const shapes = [
|
|
1041
|
+
["serviceContracts", ServiceContractDeclarationsSchema],
|
|
1042
|
+
["usedServices", UsedServiceDeclarationsSchema],
|
|
1043
|
+
["events", PluginEventDeclarationsSchema],
|
|
1044
|
+
];
|
|
1045
|
+
if (shapes.some(([key, schema]) => own[key] !== undefined && !schema.safeParse(own[key]).success))
|
|
1046
|
+
return;
|
|
1047
|
+
for (const issue of checkServiceDeclarations(value))
|
|
1048
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: ["contributions", ...issue.path] });
|
|
1049
|
+
})
|
|
1050
|
+
// M35 U2b (W8): the visitor points' rules (a point needs visitorIdentity, an id once, a section's partial one of the
|
|
1051
|
+
// plugin's own), the ones the door runs. Quiet when a key failed its own schema above, which reported it once.
|
|
1052
|
+
.superRefine((value, ctx) => {
|
|
1053
|
+
const own = value.contributions;
|
|
1054
|
+
const shapes = [
|
|
1055
|
+
["visitorIdentity", PluginVisitorIdentitySchema],
|
|
1056
|
+
["visitorGroups", PluginVisitorGroupsSchema],
|
|
1057
|
+
["visitorAccountSections", PluginVisitorAccountSectionsSchema],
|
|
1058
|
+
["visitorData", PluginVisitorDataSchema],
|
|
1059
|
+
];
|
|
1060
|
+
if (shapes.some(([key, schema]) => own[key] !== undefined && !schema.safeParse(own[key]).success))
|
|
1061
|
+
return;
|
|
1062
|
+
for (const issue of checkVisitorPointDeclarations(value))
|
|
1063
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1064
|
+
})
|
|
1065
|
+
// M35 U3a (D5): a factor step seals its secret in structured storage, by the rule the door runs too.
|
|
1066
|
+
.superRefine((value, ctx) => {
|
|
1067
|
+
for (const message of signInStepManifestProblems(value))
|
|
1068
|
+
ctx.addIssue({ code: "custom", message, path: ["contributions", "signInSteps"] });
|
|
1069
|
+
})
|
|
1070
|
+
// M31.5 D (D1, D5, D9): the tools and the AI context, by the rule the marketplace door runs on
|
|
1071
|
+
// manifest.json too. The document type schema above already caps the help notes.
|
|
1072
|
+
.superRefine((value, ctx) => {
|
|
1073
|
+
for (const issue of checkPluginAiDeclarations(value, { documentTypesChecked: true })) {
|
|
1074
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1075
|
+
}
|
|
1076
|
+
})
|
|
1077
|
+
// M32 F3b (D12): the GraphQL fields, by the rule the marketplace door runs on manifest.json too.
|
|
1078
|
+
.superRefine((value, ctx) => {
|
|
1079
|
+
for (const issue of checkPluginGraphqlFields(value)) {
|
|
1080
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1081
|
+
}
|
|
615
1082
|
})
|
|
616
1083
|
.superRefine((value, ctx) => {
|
|
617
1084
|
// S311 (S295): schema.params must name exactly the path's :name parameters,
|
|
@@ -640,6 +1107,29 @@ export const CMSPluginSchema = z
|
|
|
640
1107
|
});
|
|
641
1108
|
}
|
|
642
1109
|
});
|
|
1110
|
+
})
|
|
1111
|
+
// M32 F2: the repeated-entry, count and prefix rules for the site extensions, as the door runs them.
|
|
1112
|
+
.superRefine((value, ctx) => {
|
|
1113
|
+
for (const issue of checkSiteExtensionDeclarations(value)) {
|
|
1114
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1115
|
+
}
|
|
1116
|
+
})
|
|
1117
|
+
// M32 F3: the id, count, repeated-id and documentTypes rules for editor panels and tree actions, as the door runs them.
|
|
1118
|
+
.superRefine((value, ctx) => {
|
|
1119
|
+
for (const issue of checkEditorExtensionDeclarations(value)) {
|
|
1120
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1121
|
+
}
|
|
1122
|
+
})
|
|
1123
|
+
// M35 C2: the id, count, options, documentTypes and place rules for the content slots and the admin slots.
|
|
1124
|
+
.superRefine((value, ctx) => {
|
|
1125
|
+
for (const issue of [...checkContentSlotDeclarations(value), ...checkAdminSlotDeclarations(value)]) {
|
|
1126
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
1127
|
+
}
|
|
1128
|
+
})
|
|
1129
|
+
// M35 C4a: partials, textFrom, titleFrom, buttons and the attribute rules, as the door runs them.
|
|
1130
|
+
.superRefine((value, ctx) => {
|
|
1131
|
+
for (const issue of checkRichTextExtensionDeclarations(value))
|
|
1132
|
+
ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
|
|
643
1133
|
})
|
|
644
1134
|
.superRefine((value, ctx) => {
|
|
645
1135
|
for (const issue of checkDocsDeclaration(value.docs ?? [])) {
|