@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const HelpForAiSchema: z.ZodString;
|
|
2
3
|
export declare const FieldValidationSchema: z.ZodObject<{
|
|
3
4
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4
5
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -27,13 +28,20 @@ export declare const FieldDefinitionSchema: z.ZodObject<{
|
|
|
27
28
|
}, z.core.$strict>>;
|
|
28
29
|
tabId: z.ZodOptional<z.ZodString>;
|
|
29
30
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
help: z.ZodOptional<z.ZodString>;
|
|
32
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
30
33
|
}, z.core.$strict>;
|
|
31
34
|
export type FieldDefinition = z.infer<typeof FieldDefinitionSchema>;
|
|
35
|
+
export declare function privateFieldIds(fields: readonly FieldDefinition[]): Set<string>;
|
|
36
|
+
export declare function publicFieldData<T>(fields: readonly FieldDefinition[], data: Record<string, T>): Record<string, T>;
|
|
37
|
+
export declare const TreeTypeRuleSchema: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
38
|
+
export type TreeTypeRule = z.infer<typeof TreeTypeRuleSchema>;
|
|
32
39
|
export declare const TreeRulesSchema: z.ZodObject<{
|
|
33
40
|
allowedAtRoot: z.ZodBoolean;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, z.core.$
|
|
41
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
42
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export declare function treeTypeRuleAllows(rule: TreeTypeRule, documentTypeId: string): boolean;
|
|
37
45
|
export type TreeRules = z.infer<typeof TreeRulesSchema>;
|
|
38
46
|
export declare const DocumentTypeDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
47
|
id: z.ZodString;
|
|
@@ -54,19 +62,23 @@ export declare const DocumentTypeDefinitionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
54
62
|
}, z.core.$strict>>;
|
|
55
63
|
tabId: z.ZodOptional<z.ZodString>;
|
|
56
64
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
help: z.ZodOptional<z.ZodString>;
|
|
66
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
57
67
|
}, z.core.$strict>>;
|
|
58
68
|
treeRules: z.ZodObject<{
|
|
59
69
|
allowedAtRoot: z.ZodBoolean;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, z.core.$
|
|
70
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
71
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
72
|
+
}, z.core.$strict>;
|
|
63
73
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
74
|
id: z.ZodString;
|
|
65
75
|
name: z.ZodString;
|
|
66
76
|
}, z.core.$strict>>>;
|
|
77
|
+
help: z.ZodOptional<z.ZodString>;
|
|
67
78
|
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
68
79
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
69
80
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
82
|
}, z.core.$strict>, z.ZodObject<{
|
|
71
83
|
id: z.ZodString;
|
|
72
84
|
name: z.ZodString;
|
|
@@ -86,11 +98,14 @@ export declare const DocumentTypeDefinitionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
86
98
|
}, z.core.$strict>>;
|
|
87
99
|
tabId: z.ZodOptional<z.ZodString>;
|
|
88
100
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
help: z.ZodOptional<z.ZodString>;
|
|
102
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
89
103
|
}, z.core.$strict>>;
|
|
90
104
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
105
|
id: z.ZodString;
|
|
92
106
|
name: z.ZodString;
|
|
93
107
|
}, z.core.$strict>>>;
|
|
108
|
+
help: z.ZodOptional<z.ZodString>;
|
|
94
109
|
}, z.core.$strict>, z.ZodObject<{
|
|
95
110
|
id: z.ZodString;
|
|
96
111
|
name: z.ZodString;
|
|
@@ -110,11 +125,14 @@ export declare const DocumentTypeDefinitionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
110
125
|
}, z.core.$strict>>;
|
|
111
126
|
tabId: z.ZodOptional<z.ZodString>;
|
|
112
127
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
help: z.ZodOptional<z.ZodString>;
|
|
129
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
113
130
|
}, z.core.$strict>>;
|
|
114
131
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
132
|
id: z.ZodString;
|
|
116
133
|
name: z.ZodString;
|
|
117
134
|
}, z.core.$strict>>>;
|
|
135
|
+
help: z.ZodOptional<z.ZodString>;
|
|
118
136
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
119
137
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
120
138
|
}, z.core.$strict>], "kind">;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { CONTENT_LIST_FIELD_ID_MAX } from "./content-list.schema.js";
|
|
3
|
+
import { CONTENT_NAME_KEY } from "./content-path.js";
|
|
4
|
+
import { MCP_HELP_MAX_CHARS } from "./mcp-tool-inputs.schema.js";
|
|
5
|
+
// M31.5 B (D9): the owner's short note to an AI assistant on a type or a field, read by
|
|
6
|
+
// list_page_types and kardalum://types. The management API and the admin carry it; the
|
|
7
|
+
// delivery API and GraphQL never do (it is an instruction to the AI, not site content).
|
|
8
|
+
export const HelpForAiSchema = z.string().max(MCP_HELP_MAX_CHARS);
|
|
2
9
|
// Basic, generic validation rules (Session 34): required applies to any
|
|
3
10
|
// datatype; minLength/maxLength are meaningful for text-like datatypes,
|
|
4
11
|
// min/max for numeric ones. Not cross-checked against datatypeId here
|
|
@@ -42,7 +49,10 @@ export const TabDefinitionSchema = z
|
|
|
42
49
|
// renaming a field's display name later never orphans existing content.
|
|
43
50
|
export const FieldDefinitionSchema = z
|
|
44
51
|
.object({
|
|
45
|
-
|
|
52
|
+
// M32 L3: at most CONTENT_LIST_FIELD_ID_MAX, so every field can be named in a content list's `fields`
|
|
53
|
+
// (before version 1: no stored id is longer, no backfill). The length is checked first and aborts, so the
|
|
54
|
+
// pattern never runs over a long value.
|
|
55
|
+
id: z.string().max(CONTENT_LIST_FIELD_ID_MAX, { abort: true }).regex(/^[a-zA-Z][a-zA-Z0-9_]*$/),
|
|
46
56
|
name: z.string().min(1),
|
|
47
57
|
// References a DataTypeConfig.id (a named, configured Data Type,
|
|
48
58
|
// see data-type-config.schema.ts), NOT a registry editor id, as of
|
|
@@ -66,14 +76,76 @@ export const FieldDefinitionSchema = z
|
|
|
66
76
|
// invariant, so every existing value stays in content_versions.data
|
|
67
77
|
// and culture_data stays null until someone ticks this box.
|
|
68
78
|
varies: z.boolean().optional(),
|
|
79
|
+
// M31.5 B (D9): stored inside the fields JSON column, so no migration.
|
|
80
|
+
help: HelpForAiSchema.optional(),
|
|
81
|
+
// M32 J (J7): never served outside the management API: the delivery API, GraphQL, templates,
|
|
82
|
+
// the search feed and a plugin's published reads leave it out. Stored inside the fields JSON
|
|
83
|
+
// column, so no migration.
|
|
84
|
+
private: z.boolean().optional(),
|
|
69
85
|
})
|
|
70
86
|
.strict();
|
|
71
|
-
|
|
87
|
+
// M32 J (J7): the ids of the fields an administrator marked private.
|
|
88
|
+
export function privateFieldIds(fields) {
|
|
89
|
+
const ids = new Set();
|
|
90
|
+
for (const field of fields)
|
|
91
|
+
if (field.private === true)
|
|
92
|
+
ids.add(field.id);
|
|
93
|
+
return ids;
|
|
94
|
+
}
|
|
95
|
+
// M32 J (J7, fix wave): the values a public read may serve: the reserved name key and the keys of
|
|
96
|
+
// the fields the type declares now, less its private ones. A key the type no longer declares (a field
|
|
97
|
+
// removed, or a field whose key was renamed) is never served: content is never rewritten, so every
|
|
98
|
+
// stored version still holds the old key's value, and a private field removed or renamed would
|
|
99
|
+
// otherwise be published by its removal. The same object when nothing is left out, so a public read
|
|
100
|
+
// of a type with nothing to leave out costs nothing.
|
|
101
|
+
export function publicFieldData(fields, data) {
|
|
102
|
+
const served = new Set([CONTENT_NAME_KEY]);
|
|
103
|
+
for (const field of fields)
|
|
104
|
+
if (field.private !== true)
|
|
105
|
+
served.add(field.id);
|
|
106
|
+
let dropped = false;
|
|
107
|
+
for (const key of Object.keys(data)) {
|
|
108
|
+
if (!served.has(key)) {
|
|
109
|
+
dropped = true;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (!dropped)
|
|
114
|
+
return data;
|
|
115
|
+
const kept = {};
|
|
116
|
+
for (const [key, value] of Object.entries(data))
|
|
117
|
+
if (served.has(key))
|
|
118
|
+
kept[key] = value;
|
|
119
|
+
return kept;
|
|
120
|
+
}
|
|
121
|
+
// What a page type may sit under, or hold, spelled one way per choice:
|
|
122
|
+
// "any" any page type
|
|
123
|
+
// [] none (no page type at all)
|
|
124
|
+
// ["<id>", ...] only these page types
|
|
125
|
+
// "any" is spelled out because an empty list means none: an empty list that
|
|
126
|
+
// meant "any" would make "none" impossible to say. In a plugin manifest the
|
|
127
|
+
// list holds type names, which become ids once the types are installed.
|
|
128
|
+
export const TreeTypeRuleSchema = z.union([z.literal("any"), z.array(z.string().min(1))]);
|
|
129
|
+
export const TreeRulesSchema = z
|
|
130
|
+
.object({
|
|
72
131
|
allowedAtRoot: z.boolean(),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
132
|
+
allowedParents: TreeTypeRuleSchema,
|
|
133
|
+
allowedChildren: TreeTypeRuleSchema,
|
|
134
|
+
})
|
|
135
|
+
.strict()
|
|
136
|
+
.superRefine((rules, ctx) => {
|
|
137
|
+
// Allowed at no top level and under no parent: could never hold content.
|
|
138
|
+
if (!rules.allowedAtRoot && Array.isArray(rules.allowedParents) && rules.allowedParents.length === 0) {
|
|
139
|
+
ctx.addIssue({
|
|
140
|
+
code: z.ZodIssueCode.custom,
|
|
141
|
+
message: "A page type must be allowed at the top level or under at least one parent type",
|
|
142
|
+
path: ["allowedParents"],
|
|
143
|
+
});
|
|
144
|
+
}
|
|
76
145
|
});
|
|
146
|
+
export function treeTypeRuleAllows(rule, documentTypeId) {
|
|
147
|
+
return rule === "any" || rule.includes(documentTypeId);
|
|
148
|
+
}
|
|
77
149
|
// .strict() on every branch: an 'element' payload carrying treeRules is
|
|
78
150
|
// a clear validation error, not silently stripped: treeRules genuinely
|
|
79
151
|
// doesn't apply to element kind, not just hidden in the UI. `tabs` is
|
|
@@ -93,6 +165,8 @@ export const DocumentTypeDefinitionSchema = z.discriminatedUnion("kind", [
|
|
|
93
165
|
fields: z.array(FieldDefinitionSchema),
|
|
94
166
|
treeRules: TreeRulesSchema,
|
|
95
167
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
168
|
+
// M31.5 B (D9): document_types.help (migration 0034).
|
|
169
|
+
help: HelpForAiSchema.optional(),
|
|
96
170
|
// Set via a dedicated pointer-update endpoint, never at create time,
|
|
97
171
|
// a template can't exist before its document type does. Presence/
|
|
98
172
|
// absence only gates future rendering, never tree placement.
|
|
@@ -105,6 +179,13 @@ export const DocumentTypeDefinitionSchema = z.discriminatedUnion("kind", [
|
|
|
105
179
|
// Children tab in the editor instead. 'element' kind has no tree
|
|
106
180
|
// presence at all, so this is page-only, same reasoning as treeRules.
|
|
107
181
|
collection: z.boolean().optional(),
|
|
182
|
+
// M32 J (fix wave 2): the keys of fields this type once marked private
|
|
183
|
+
// (document_types.retired_private_field_ids, migration 0038). Written by
|
|
184
|
+
// the server only: no create or update request carries it. A save that
|
|
185
|
+
// serves one of these keys again is refused until the request confirms
|
|
186
|
+
// it (UpdateDocumentTypeRequest.confirmPublicFieldIds), because every
|
|
187
|
+
// stored version still holds what the private field held.
|
|
188
|
+
retiredPrivateFieldIds: z.array(z.string().min(1)).optional(),
|
|
108
189
|
})
|
|
109
190
|
.strict(),
|
|
110
191
|
z
|
|
@@ -117,6 +198,8 @@ export const DocumentTypeDefinitionSchema = z.discriminatedUnion("kind", [
|
|
|
117
198
|
kind: z.literal("element"),
|
|
118
199
|
fields: z.array(FieldDefinitionSchema),
|
|
119
200
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
201
|
+
// M31.5 B (D9): document_types.help (migration 0034).
|
|
202
|
+
help: HelpForAiSchema.optional(),
|
|
120
203
|
})
|
|
121
204
|
.strict(),
|
|
122
205
|
// S234a: a media document type. Media items reuse fields, data types,
|
|
@@ -134,6 +217,8 @@ export const DocumentTypeDefinitionSchema = z.discriminatedUnion("kind", [
|
|
|
134
217
|
kind: z.literal("media"),
|
|
135
218
|
fields: z.array(FieldDefinitionSchema),
|
|
136
219
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
220
|
+
// M31.5 B (D9): document_types.help (migration 0034).
|
|
221
|
+
help: HelpForAiSchema.optional(),
|
|
137
222
|
// S234a: which type claims an uploaded file when more than one
|
|
138
223
|
// accepts its extension. Lower sorts first; the catch-all is forced
|
|
139
224
|
// last whatever its number says.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** One experimental point, and the month 35 session that added it. Its id is one of seven forms: a manifest
|
|
2
|
+
* path (`contributions.<key>` or `contributions.<key>.<field>`), an SDK export
|
|
3
|
+
* (`@kardalum/plugin-sdk/<subpath>#<name>`), a template tag's arguments (`liquid:<tag>#<arguments>`), an
|
|
4
|
+
* HTTP route (`<METHOD> <path>`), a template variable (`liquid:kardalum.<name>`, M35 U2a), a page fact a
|
|
5
|
+
* template reads (`liquid:page.<name>`, M35 P4), or an account template alias (`liquid:<alias>`, M35 U2b). */
|
|
6
|
+
export interface ExperimentalPoint {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly session: string;
|
|
9
|
+
}
|
|
10
|
+
/** M35 B1a (design 4.14): the experimental point of a hook on another plugin's event, `<plugin id>:<name>`. */
|
|
11
|
+
export declare const PLUGIN_EVENT_HOOK_POINT = "contributions.hooks.<plugin id>:<name>";
|
|
12
|
+
/** M35 P3 (W18): the experimental point of a site route that answers after the pages (a parameter, a "*" or a dotless GET). */
|
|
13
|
+
export declare const SITE_ROUTE_PATTERN_POINT = "contributions.siteRoutes.<pattern>";
|
|
14
|
+
export declare const EXPERIMENTAL_POINTS: readonly ExperimentalPoint[];
|
|
15
|
+
/** The experimental manifest points a manifest (live or manifest.json) declares, in list order, each as
|
|
16
|
+
* `<key>` or `<key>.<field>`. The ids are this file's own constants, so splitting them is safe. */
|
|
17
|
+
export declare function experimentalPointsDeclared(manifest: {
|
|
18
|
+
contributions?: unknown;
|
|
19
|
+
}): string[];
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// M35 P1 (core stability D4): the extension points a plugin may use before they come under the
|
|
2
|
+
// version 1 promise that the plugin interface only grows. A point leaves this list once a real plugin
|
|
3
|
+
// has used it and the operator says so; the close of month 35 writes the list into the plugin
|
|
4
|
+
// reference. Every month 35 session that adds a point appends its lines here, in session order.
|
|
5
|
+
import { parsePluginEventKey } from "./plugin-services.js";
|
|
6
|
+
import { readSiteRoutePath } from "./plugin-site-extensions.js";
|
|
7
|
+
/** M35 B1a (design 4.14): the experimental point of a hook on another plugin's event, `<plugin id>:<name>`. */
|
|
8
|
+
export const PLUGIN_EVENT_HOOK_POINT = "contributions.hooks.<plugin id>:<name>";
|
|
9
|
+
/** M35 P3 (W18): the experimental point of a site route that answers after the pages (a parameter, a "*" or a dotless GET). */
|
|
10
|
+
export const SITE_ROUTE_PATTERN_POINT = "contributions.siteRoutes.<pattern>";
|
|
11
|
+
export const EXPERIMENTAL_POINTS = Object.freeze([
|
|
12
|
+
Object.freeze({ id: "contributions.pageOutput", session: "35-P1" }),
|
|
13
|
+
Object.freeze({ id: "contributions.pageHead.inlineSnippets", session: "35-P1" }),
|
|
14
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/text#rewriteStartTags", session: "35-P1" }),
|
|
15
|
+
Object.freeze({ id: "contributions.contentAccess.allContent", session: "35-C1" }),
|
|
16
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServerContextBase.listPublished", session: "35-C1" }),
|
|
17
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServerContextBase.searchPublished", session: "35-C1" }),
|
|
18
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginContentLibrary.walk", session: "35-C1" }),
|
|
19
|
+
Object.freeze({ id: "liquid:list#under-where-_tree", session: "35-C1" }),
|
|
20
|
+
Object.freeze({ id: "GET /api/manage/v1/content/walk", session: "35-C1" }),
|
|
21
|
+
Object.freeze({ id: "contributions.guards", session: "35-B2" }),
|
|
22
|
+
Object.freeze({ id: "contributions.hooks.content:afterSort", session: "35-B2" }),
|
|
23
|
+
Object.freeze({ id: "contributions.hooks.content:afterAccessChange", session: "35-B2" }),
|
|
24
|
+
Object.freeze({ id: "contributions.hooks.documentType:afterChange", session: "35-B2" }),
|
|
25
|
+
Object.freeze({ id: "contributions.hooks.dataType:afterChange", session: "35-B2" }),
|
|
26
|
+
Object.freeze({ id: "contributions.hooks.role:afterChange", session: "35-B2" }),
|
|
27
|
+
Object.freeze({ id: "contributions.hooks.user:afterChange", session: "35-B2" }),
|
|
28
|
+
Object.freeze({ id: "contributions.hooks.site:afterAddressChange", session: "35-B2" }),
|
|
29
|
+
Object.freeze({ id: "contributions.hooks.site:afterPageViews", session: "35-B2" }),
|
|
30
|
+
Object.freeze({ id: "contributions.hooks.system:afterStart", session: "35-B2" }),
|
|
31
|
+
Object.freeze({ id: "contributions.hooks.system:beforeShutdown", session: "35-B2" }),
|
|
32
|
+
Object.freeze({ id: "contributions.hooks.system:afterError", session: "35-B2" }),
|
|
33
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ContentMoveHookPayload.previousAddresses", session: "35-B2" }),
|
|
34
|
+
Object.freeze({ id: "contributions.userAccess", session: "35-U1" }),
|
|
35
|
+
Object.freeze({ id: "contributions.userFields", session: "35-U1" }),
|
|
36
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.can", session: "35-U1" }),
|
|
37
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.canAccessPage", session: "35-U1" }),
|
|
38
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginCan", session: "35-U1" }),
|
|
39
|
+
Object.freeze({ id: "liquid:form_protection#caller", session: "35-U1" }),
|
|
40
|
+
Object.freeze({ id: "contributions.requestGuard", session: "35-P2" }),
|
|
41
|
+
Object.freeze({ id: "contributions.responseHeaders", session: "35-P2" }),
|
|
42
|
+
Object.freeze({ id: "contributions.siteRoutes.rawBody", session: "35-P2" }),
|
|
43
|
+
Object.freeze({ id: "contributions.contentColumns", session: "35-C2" }),
|
|
44
|
+
Object.freeze({ id: "contributions.treeBadges", session: "35-C2" }),
|
|
45
|
+
Object.freeze({ id: "contributions.listFilters", session: "35-C2" }),
|
|
46
|
+
Object.freeze({ id: "contributions.bulkActions", session: "35-C2" }),
|
|
47
|
+
Object.freeze({ id: "GET /api/manage/v1/content/slot-values", session: "35-C2" }),
|
|
48
|
+
// The list's filter, filterValue and scanCapped: new fields on a route that is not experimental,
|
|
49
|
+
// so they get a point of their own and may still change shape before they bind.
|
|
50
|
+
Object.freeze({ id: "GET /api/manage/v1/content/:id/list#filter", session: "35-C2" }),
|
|
51
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginBulkAction", session: "35-C2" }),
|
|
52
|
+
Object.freeze({ id: "contributions.adminSlots", session: "35-C2" }),
|
|
53
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginAdminSlot", session: "35-C2" }),
|
|
54
|
+
Object.freeze({ id: "contributions.serviceContracts", session: "35-B1a" }),
|
|
55
|
+
Object.freeze({ id: "contributions.exposedServices", session: "35-B1a" }),
|
|
56
|
+
Object.freeze({ id: "contributions.usedServices", session: "35-B1a" }),
|
|
57
|
+
Object.freeze({ id: "contributions.events", session: "35-B1a" }),
|
|
58
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServices", session: "35-B1a" }),
|
|
59
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEvents", session: "35-B1a" }),
|
|
60
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventHookPayload", session: "35-B1a" }),
|
|
61
|
+
// Design 4.14: the plugin event hook names. A pattern, not one name: `experimentalPointsDeclared` reports
|
|
62
|
+
// it for any hooks key that reads as a plugin event key (below).
|
|
63
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventKey", session: "35-B1a" }),
|
|
64
|
+
Object.freeze({ id: PLUGIN_EVENT_HOOK_POINT, session: "35-B1a" }),
|
|
65
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#contractMethod", session: "35-B1a" }),
|
|
66
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#pageIdSchema", session: "35-B1a" }),
|
|
67
|
+
Object.freeze({ id: "POST /api/manage/v1/plugins/connections/preview", session: "35-B1a" }),
|
|
68
|
+
Object.freeze({ id: "GET /api/manage/v1/plugins/:pluginId/connections", session: "35-B1a" }),
|
|
69
|
+
Object.freeze({ id: "PUT /api/manage/v1/plugins/:pluginId/connections", session: "35-B1a" }),
|
|
70
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#personal", session: "35-B1a" }),
|
|
71
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#toContractSchema", session: "35-B1a" }),
|
|
72
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServiceContext", session: "35-B1a" }),
|
|
73
|
+
// The rest of the session's public SDK exports: services.ts's types (ExposedServiceContribution took its
|
|
74
|
+
// working shape here) and the limits the SDK re-exports from this package.
|
|
75
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceProviderInfo", session: "35-B1a" }),
|
|
76
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceResult", session: "35-B1a" }),
|
|
77
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceTarget", session: "35-B1a" }),
|
|
78
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventRaised", session: "35-B1a" }),
|
|
79
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServiceCaller", session: "35-B1a" }),
|
|
80
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceImplementation", session: "35-B1a" }),
|
|
81
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceMethodContribution", session: "35-B1a" }),
|
|
82
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceContractContribution", session: "35-B1a" }),
|
|
83
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ExposedServiceContribution", session: "35-B1a" }),
|
|
84
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#UsedServiceContribution", session: "35-B1a" }),
|
|
85
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventContribution", session: "35-B1a" }),
|
|
86
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_CALL_TIME_MS_DEFAULT", session: "35-B1a" }),
|
|
87
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_CALL_TIME_MS_MAX", session: "35-B1a" }),
|
|
88
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_PAYLOAD_BYTES_MAX", session: "35-B1a" }),
|
|
89
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PLUGIN_EVENT_PAYLOAD_BYTES_MAX", session: "35-B1a" }),
|
|
90
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_FAILURE_REASONS", session: "35-B1a" }),
|
|
91
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PLUGIN_EVENT_REFUSALS", session: "35-B1a" }),
|
|
92
|
+
Object.freeze({ id: "contributions.serviceContracts.providersUse", session: "35-B1c" }),
|
|
93
|
+
// manifest.json's exposedServices[].fingerprint, written by kardalum plugin build and read by the door.
|
|
94
|
+
Object.freeze({ id: "contributions.exposedServices.fingerprint", session: "35-B1c" }),
|
|
95
|
+
Object.freeze({ id: "POST /api/manage/v1/sandbox/companions", session: "35-B1c" }),
|
|
96
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#serviceHarness", session: "35-B1c" }),
|
|
97
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#fakeProvider", session: "35-B1c" }),
|
|
98
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#sampleInput", session: "35-B1c" }),
|
|
99
|
+
Object.freeze({ id: "GET /api/v1/contracts/:ownerId", session: "35-B1c" }),
|
|
100
|
+
Object.freeze({ id: "GET /api/v1/contracts/:ownerId/:name", session: "35-B1c" }),
|
|
101
|
+
Object.freeze({ id: "GET /api/v1/visitor/me", session: "35-U2a" }),
|
|
102
|
+
Object.freeze({ id: "GET /api/v1/visitor/form", session: "35-U2a" }),
|
|
103
|
+
Object.freeze({ id: "POST /api/v1/visitor/sign-in", session: "35-U2a" }),
|
|
104
|
+
Object.freeze({ id: "POST /api/v1/visitor/sign-out", session: "35-U2a" }),
|
|
105
|
+
Object.freeze({ id: "POST /api/v1/visitor/register", session: "35-U2a" }),
|
|
106
|
+
Object.freeze({ id: "POST /api/v1/visitor/confirm", session: "35-U2a" }),
|
|
107
|
+
Object.freeze({ id: "POST /api/v1/visitor/password-reset", session: "35-U2a" }),
|
|
108
|
+
Object.freeze({ id: "POST /api/v1/visitor/password-reset/confirm", session: "35-U2a" }),
|
|
109
|
+
Object.freeze({ id: "liquid:kardalum.visitor", session: "35-U2a" }),
|
|
110
|
+
Object.freeze({ id: "liquid:kardalum.account", session: "35-U2a" }),
|
|
111
|
+
Object.freeze({ id: SITE_ROUTE_PATTERN_POINT, session: "35-P3" }),
|
|
112
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.address", session: "35-P3" }),
|
|
113
|
+
Object.freeze({ id: "contributions.templateTags.block", session: "35-P3" }),
|
|
114
|
+
Object.freeze({ id: "contributions.templateTags.onFailure", session: "35-P3" }),
|
|
115
|
+
Object.freeze({ id: "contributions.templateFilters.onFailure", session: "35-P3" }),
|
|
116
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.getPublishedContent", session: "35-P3" }),
|
|
117
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.listPublished", session: "35-P3" }),
|
|
118
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.searchPublished", session: "35-P3" }),
|
|
119
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.pageAddresses", session: "35-P3" }),
|
|
120
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.publicMediaUrl", session: "35-P3" }),
|
|
121
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateReadRefusedError", session: "35-P3" }),
|
|
122
|
+
Object.freeze({ id: "liquid:plugin_tag#name", session: "35-P3" }),
|
|
123
|
+
Object.freeze({ id: "liquid:plugin_filter#name", session: "35-P3" }),
|
|
124
|
+
Object.freeze({ id: "contributions.settings.inViews", session: "35-C3" }),
|
|
125
|
+
Object.freeze({ id: "GET /api/manage/v1/plugins/:pluginId/view-settings", session: "35-C3" }),
|
|
126
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginViewSettings", session: "35-C3" }),
|
|
127
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginFieldContext", session: "35-C3" }),
|
|
128
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#EditorPanelContext.readOnlyFields", session: "35-C3" }),
|
|
129
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#EditorPanelContext.inheritedFields", session: "35-C3" }),
|
|
130
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PluginNavigateTarget", session: "35-C3" }),
|
|
131
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PluginScreenContext.hrefFor", session: "35-C3" }),
|
|
132
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PagePicker", session: "35-C3" }),
|
|
133
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#Select", session: "35-C3" }),
|
|
134
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#Textarea", session: "35-C3" }),
|
|
135
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useCopyText", session: "35-C3" }),
|
|
136
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#downloadFile", session: "35-C3" }),
|
|
137
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useAdminFormat", session: "35-C3" }),
|
|
138
|
+
Object.freeze({ id: "contributions.pageCache", session: "35-P4" }),
|
|
139
|
+
Object.freeze({ id: "contributions.pageGate", session: "35-P4" }),
|
|
140
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRenderPage", session: "35-P4" }),
|
|
141
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRenderCache", session: "35-P4" }),
|
|
142
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#RenderPageRefusedError", session: "35-P4" }),
|
|
143
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PublishedContent.rendered", session: "35-P4" }),
|
|
144
|
+
Object.freeze({ id: "liquid:page._name", session: "35-P4" }),
|
|
145
|
+
Object.freeze({ id: "liquid:kardalum.request.query", session: "35-P4" }),
|
|
146
|
+
Object.freeze({ id: "contributions.richTextExtensions", session: "35-C4a" }),
|
|
147
|
+
Object.freeze({ id: "GET /api/manage/v1/render/rich-items", session: "35-C4a" }),
|
|
148
|
+
Object.freeze({ id: "POST /api/manage/v1/render/rich-item", session: "35-C4a" }),
|
|
149
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].view", session: "35-C4b" }),
|
|
150
|
+
Object.freeze({ id: "contributions.richTextExtensions.marks[].view", session: "35-C4b" }),
|
|
151
|
+
Object.freeze({ id: "contributions.richTextExtensions.buttons[].does.view", session: "35-C4b" }),
|
|
152
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].fromUrl", session: "35-C4b" }),
|
|
153
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].editorial", session: "35-C4b" }),
|
|
154
|
+
Object.freeze({ id: "contributions.richTextExtensions.marks[].editorial", session: "35-C4b" }),
|
|
155
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].textFromView", session: "35-C4b" }),
|
|
156
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].attrs[].type json", session: "35-C4b" }),
|
|
157
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useRichTextItem", session: "35-C4b" }),
|
|
158
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useRichTextEditorHandle", session: "35-C4b" }),
|
|
159
|
+
Object.freeze({ id: "contributions.visitorIdentity", session: "35-U2b" }),
|
|
160
|
+
Object.freeze({ id: "contributions.visitorGroups", session: "35-U2b" }),
|
|
161
|
+
Object.freeze({ id: "contributions.visitorAccountSections", session: "35-U2b" }),
|
|
162
|
+
Object.freeze({ id: "contributions.visitorData", session: "35-U2b" }),
|
|
163
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterRegister", session: "35-U2b" }),
|
|
164
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterConfirm", session: "35-U2b" }),
|
|
165
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterSignIn", session: "35-U2b" }),
|
|
166
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterGroupChange", session: "35-U2b" }),
|
|
167
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterDelete", session: "35-U2b" }),
|
|
168
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.visitor", session: "35-U2b" }),
|
|
169
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.visitor", session: "35-U2b" }),
|
|
170
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadContext.visitor", session: "35-U2b" }),
|
|
171
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginHookContext.visitors", session: "35-U2b" }),
|
|
172
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/mail#PluginMailInput.to.visitorId", session: "35-U2b" }),
|
|
173
|
+
Object.freeze({ id: "liquid:kardalum.visitor.groups", session: "35-U2b" }),
|
|
174
|
+
Object.freeze({ id: "liquid:account-refused", session: "35-U2b" }),
|
|
175
|
+
Object.freeze({ id: "contributions.consentTools", session: "35-P5" }),
|
|
176
|
+
Object.freeze({ id: "contributions.heldEmbeds.consent", session: "35-P5" }),
|
|
177
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadEntry.consent", session: "35-P5" }),
|
|
178
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadContext.consent", session: "35-P5" }),
|
|
179
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.consent", session: "35-P5" }),
|
|
180
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/consent#readConsent", session: "35-P5" }),
|
|
181
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/consent#KardalumConsentApi", session: "35-P5" }),
|
|
182
|
+
Object.freeze({ id: "contributions.apiRoutes.uploads", session: "35-B3" }),
|
|
183
|
+
Object.freeze({ id: "contributions.siteRoutes.uploads", session: "35-B3" }),
|
|
184
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRequestView.files", session: "35-B3" }),
|
|
185
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.uploads", session: "35-B3" }),
|
|
186
|
+
Object.freeze({ id: "GET /api/manage/v1/media/:id#visitorUpload", session: "35-B3" }),
|
|
187
|
+
Object.freeze({ id: "GET /account/export#uploads", session: "35-B3" }),
|
|
188
|
+
Object.freeze({ id: "contributions.signInSteps", session: "35-U3a" }),
|
|
189
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#UserLoginHookPayload.steps", session: "35-U3a" }),
|
|
190
|
+
]);
|
|
191
|
+
const PREFIX = "contributions.";
|
|
192
|
+
/** manifest.json writes a keyed contribution as a list (`hooks: ["system:afterStart", { event, durable: true }]`):
|
|
193
|
+
* an entry names the field as that string or as its own `event`. A list whose entries carry the field
|
|
194
|
+
* (`contentAccess: [{ allContent: true, ... }]`) names it in any entry where it is set. */
|
|
195
|
+
function namesEntry(entry, field) {
|
|
196
|
+
if (entry === field)
|
|
197
|
+
return true;
|
|
198
|
+
if (entry === null || typeof entry !== "object")
|
|
199
|
+
return false;
|
|
200
|
+
if (Object.hasOwn(entry, "event") && entry.event === field)
|
|
201
|
+
return true;
|
|
202
|
+
return Object.hasOwn(entry, field) && entry[field] !== undefined;
|
|
203
|
+
}
|
|
204
|
+
/** The experimental manifest points a manifest (live or manifest.json) declares, in list order, each as
|
|
205
|
+
* `<key>` or `<key>.<field>`. The ids are this file's own constants, so splitting them is safe. */
|
|
206
|
+
export function experimentalPointsDeclared(manifest) {
|
|
207
|
+
const contributions = manifest?.contributions;
|
|
208
|
+
if (contributions === null || typeof contributions !== "object" || Array.isArray(contributions))
|
|
209
|
+
return [];
|
|
210
|
+
const out = [];
|
|
211
|
+
for (const point of EXPERIMENTAL_POINTS) {
|
|
212
|
+
if (!point.id.startsWith(PREFIX))
|
|
213
|
+
continue;
|
|
214
|
+
if (point.id === PLUGIN_EVENT_HOOK_POINT) {
|
|
215
|
+
const hooks = contributions.hooks;
|
|
216
|
+
const keys = Array.isArray(hooks)
|
|
217
|
+
? hooks.map((entry) => (typeof entry === "string" ? entry : entry !== null && typeof entry === "object" ? entry.event : undefined))
|
|
218
|
+
: hooks !== null && typeof hooks === "object" ? Object.keys(hooks) : [];
|
|
219
|
+
if (keys.some((name) => typeof name === "string" && parsePluginEventKey(name) !== null))
|
|
220
|
+
out.push(point.id.slice(PREFIX.length));
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
if (point.id === SITE_ROUTE_PATTERN_POINT) {
|
|
224
|
+
const routes = contributions.siteRoutes;
|
|
225
|
+
const patterned = Array.isArray(routes) && routes.some((route) => {
|
|
226
|
+
if (route === null || typeof route !== "object")
|
|
227
|
+
return false;
|
|
228
|
+
const { method, path } = route;
|
|
229
|
+
if (typeof method !== "string" || typeof path !== "string")
|
|
230
|
+
return false;
|
|
231
|
+
const read = readSiteRoutePath(method, path);
|
|
232
|
+
return read.ok && read.pattern.phase === "afterPages";
|
|
233
|
+
});
|
|
234
|
+
if (patterned)
|
|
235
|
+
out.push(point.id.slice(PREFIX.length));
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
const [key, field] = point.id.slice(PREFIX.length).split(".");
|
|
239
|
+
const value = contributions[key];
|
|
240
|
+
if (value === undefined)
|
|
241
|
+
continue;
|
|
242
|
+
if (field === undefined) {
|
|
243
|
+
out.push(key);
|
|
244
|
+
}
|
|
245
|
+
else if (Array.isArray(value) ? value.some((entry) => namesEntry(entry, field)) : value !== null && typeof value === "object" && value[field] !== undefined) {
|
|
246
|
+
out.push(`${key}.${field}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FORM_PROTECTION_CALLERS_KEY = "formProtection.callers";
|
|
3
|
+
export declare const FORM_PROTECTION_CALLERS_MAX = 200;
|
|
4
|
+
export declare const FormProtectionCallerChoicesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
|
+
/** The stored map, or null when the row is missing or damaged (the caller then logs it and the site choice serves). */
|
|
6
|
+
export declare function readFormProtectionCallerChoices(value: unknown): Record<string, string> | null;
|
|
7
|
+
export declare const FormProtectionCallerSchema: z.ZodObject<{
|
|
8
|
+
pluginId: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
11
|
+
active: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type FormProtectionCaller = z.infer<typeof FormProtectionCallerSchema>;
|
|
14
|
+
export declare const FormProtectionCallersResponseSchema: z.ZodObject<{
|
|
15
|
+
callers: z.ZodArray<z.ZodObject<{
|
|
16
|
+
pluginId: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
19
|
+
active: z.ZodString;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type FormProtectionCallersResponse = z.infer<typeof FormProtectionCallersResponseSchema>;
|
|
23
|
+
export declare const FormProtectionCallerParamsSchema: z.ZodObject<{
|
|
24
|
+
pluginId: z.ZodString;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const SetFormProtectionCallerRequestSchema: z.ZodObject<{
|
|
27
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type SetFormProtectionCallerRequest = z.infer<typeof SetFormProtectionCallerRequestSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PLUGIN_ID_MAX, isPluginManifestId } from "./plugin-id-rules.js";
|
|
3
|
+
import { ProviderChoiceSchema } from "./plugin-providers.js";
|
|
4
|
+
// M35 U1 (W51), experimental: the form protection choice for one calling plugin, set by the site
|
|
5
|
+
// owner. One Setting row, FORM_PROTECTION_CALLERS_KEY, holds { [callerPluginId]: "core" | providerKey }.
|
|
6
|
+
// A caller without an entry follows the site choice (`formProtectionProvider`). A plugin never names
|
|
7
|
+
// a provider itself, so a plugin cannot choose a weaker check than the owner did.
|
|
8
|
+
export const FORM_PROTECTION_CALLERS_KEY = "formProtection.callers";
|
|
9
|
+
export const FORM_PROTECTION_CALLERS_MAX = 200;
|
|
10
|
+
const CallerIdSchema = z.string().max(PLUGIN_ID_MAX).refine((value) => isPluginManifestId(value), { message: "is not a plugin id" });
|
|
11
|
+
export const FormProtectionCallerChoicesSchema = z
|
|
12
|
+
.record(CallerIdSchema, ProviderChoiceSchema)
|
|
13
|
+
.refine((value) => Object.keys(value).length <= FORM_PROTECTION_CALLERS_MAX, { message: `at most ${FORM_PROTECTION_CALLERS_MAX} plugins` });
|
|
14
|
+
/** The stored map, or null when the row is missing or damaged (the caller then logs it and the site choice serves). */
|
|
15
|
+
export function readFormProtectionCallerChoices(value) {
|
|
16
|
+
const parsed = FormProtectionCallerChoicesSchema.safeParse(value);
|
|
17
|
+
return parsed.success ? { ...parsed.data } : null;
|
|
18
|
+
}
|
|
19
|
+
export const FormProtectionCallerSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
pluginId: z.string(),
|
|
22
|
+
name: z.string(),
|
|
23
|
+
/** The owner's entry for this plugin, or null when it follows the site choice. */
|
|
24
|
+
choice: ProviderChoiceSchema.nullable(),
|
|
25
|
+
/** The key serving its sends now: `core` while the built-in check serves alone. */
|
|
26
|
+
active: z.string(),
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
export const FormProtectionCallersResponseSchema = z.object({ callers: z.array(FormProtectionCallerSchema) }).strict();
|
|
30
|
+
export const FormProtectionCallerParamsSchema = z.object({ pluginId: CallerIdSchema }).strict();
|
|
31
|
+
export const SetFormProtectionCallerRequestSchema = z.object({ choice: ProviderChoiceSchema.nullable() }).strict();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const FORM_PROTECTION_HIDDEN_FIELD = "kp_website";
|
|
2
|
+
export declare const FORM_PROTECTION_TOKEN_FIELD = "kp_token";
|
|
3
|
+
export declare const FORM_PROTECTION_MIN_SECONDS = 3;
|
|
4
|
+
export declare const FORM_PROTECTION_TOKEN_MAX_AGE_SECONDS = 86400;
|
|
5
|
+
export declare const FORM_PROTECTION_TOKEN_FUTURE_SECONDS = 60;
|
|
6
|
+
export declare const FORM_PROTECTION_TOKEN_MAX = 256;
|
|
7
|
+
export declare const FORM_PROTECTION_WINDOW_SECONDS = 600;
|
|
8
|
+
export declare const FORM_PROTECTION_MAX_PER_WINDOW = 5;
|
|
9
|
+
export declare const FORM_PROTECTION_MAX_KEYS = 10000;
|
|
10
|
+
export declare const FORM_PROTECTION_SWEEP_THRESHOLD = 1000;
|
|
11
|
+
/**
|
|
12
|
+
* What `context.protectionFields()` answers a front end the site builds itself (M32 F, D21): the
|
|
13
|
+
* hidden field's and the time token's names, a fresh token, and `minSeconds`, the built-in check's
|
|
14
|
+
* live minimum time from Server settings (`FORM_PROTECTION_MIN_SECONDS` by default): a send carrying
|
|
15
|
+
* the token sooner than that is refused as too fast, silently, so a front end waits at least so long
|
|
16
|
+
* after reading it (M33 Forms review).
|
|
17
|
+
*/
|
|
18
|
+
export interface ProtectionFields {
|
|
19
|
+
hiddenField: string;
|
|
20
|
+
tokenField: string;
|
|
21
|
+
token: string;
|
|
22
|
+
minSeconds: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// M32 F (D19 to D23): the built-in form protection's fixed values, read by the server's
|
|
2
|
+
// protection point, the {% form_protection %} tag and the docs. Not settings in F.
|
|
3
|
+
export const FORM_PROTECTION_HIDDEN_FIELD = "kp_website";
|
|
4
|
+
export const FORM_PROTECTION_TOKEN_FIELD = "kp_token";
|
|
5
|
+
export const FORM_PROTECTION_MIN_SECONDS = 3;
|
|
6
|
+
export const FORM_PROTECTION_TOKEN_MAX_AGE_SECONDS = 86_400;
|
|
7
|
+
export const FORM_PROTECTION_TOKEN_FUTURE_SECONDS = 60;
|
|
8
|
+
export const FORM_PROTECTION_TOKEN_MAX = 256;
|
|
9
|
+
export const FORM_PROTECTION_WINDOW_SECONDS = 600;
|
|
10
|
+
export const FORM_PROTECTION_MAX_PER_WINDOW = 5;
|
|
11
|
+
export const FORM_PROTECTION_MAX_KEYS = 10_000;
|
|
12
|
+
export const FORM_PROTECTION_SWEEP_THRESHOLD = 1_000;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The deepest an introspection subtree (below a root `__schema` or `__type`) may reach, counted
|
|
3
|
+
* through fragment spreads, when the configured query depth is lower. GraphiQL's standard
|
|
4
|
+
* introspection query reaches 15.
|
|
5
|
+
*/
|
|
6
|
+
export declare const GRAPHQL_INTROSPECTION_DEPTH_MAX = 16;
|
|
7
|
+
/**
|
|
8
|
+
* The most lexical tokens a GraphQL document may hold; the parser stops past it. The standard
|
|
9
|
+
* introspection query is 163 tokens (184 with every option), and the largest query the server's
|
|
10
|
+
* own tests send is 843.
|
|
11
|
+
*/
|
|
12
|
+
export declare const GRAPHQL_DOCUMENT_TOKENS_MAX = 10000;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// M32 I3 (B12 fix): limits of the delivery API's GraphQL endpoint that hold whatever the operator
|
|
2
|
+
// sets for depth and complexity.
|
|
3
|
+
/**
|
|
4
|
+
* The deepest an introspection subtree (below a root `__schema` or `__type`) may reach, counted
|
|
5
|
+
* through fragment spreads, when the configured query depth is lower. GraphiQL's standard
|
|
6
|
+
* introspection query reaches 15.
|
|
7
|
+
*/
|
|
8
|
+
export const GRAPHQL_INTROSPECTION_DEPTH_MAX = 16;
|
|
9
|
+
/**
|
|
10
|
+
* The most lexical tokens a GraphQL document may hold; the parser stops past it. The standard
|
|
11
|
+
* introspection query is 163 tokens (184 with every option), and the largest query the server's
|
|
12
|
+
* own tests send is 843.
|
|
13
|
+
*/
|
|
14
|
+
export const GRAPHQL_DOCUMENT_TOKENS_MAX = 10_000;
|