@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
|
@@ -101,6 +101,12 @@ export declare const PluginDocsReferenceResponseSchema: z.ZodObject<{
|
|
|
101
101
|
reference: z.ZodObject<{
|
|
102
102
|
actions: z.ZodArray<z.ZodObject<{
|
|
103
103
|
id: z.ZodString;
|
|
104
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
"content.read": "content.read";
|
|
106
|
+
"content.update": "content.update";
|
|
107
|
+
"content.publish": "content.publish";
|
|
108
|
+
"media.read": "media.read";
|
|
109
|
+
}>>;
|
|
104
110
|
label: z.ZodString;
|
|
105
111
|
}, z.core.$strip>>;
|
|
106
112
|
roles: z.ZodArray<z.ZodObject<{
|
|
@@ -122,7 +128,7 @@ export declare const PluginDocsReferenceResponseSchema: z.ZodObject<{
|
|
|
122
128
|
}>;
|
|
123
129
|
payload: z.ZodObject<{
|
|
124
130
|
count: z.ZodNumber;
|
|
125
|
-
details: z.ZodArray<z.
|
|
131
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetail, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetail, unknown>>>;
|
|
126
132
|
}, z.core.$strict>;
|
|
127
133
|
}, z.core.$strict>>;
|
|
128
134
|
documentTypes: z.ZodArray<z.ZodObject<{
|
|
@@ -132,7 +138,7 @@ export declare const PluginDocsReferenceResponseSchema: z.ZodObject<{
|
|
|
132
138
|
}, z.core.$loose>>;
|
|
133
139
|
dataTypes: z.ZodArray<z.ZodObject<{
|
|
134
140
|
id: z.ZodString;
|
|
135
|
-
name: z.ZodString
|
|
141
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
136
142
|
}, z.core.$loose>>;
|
|
137
143
|
templates: z.ZodArray<z.ZodObject<{
|
|
138
144
|
name: z.ZodString;
|
|
@@ -161,12 +167,48 @@ export declare const PluginDocsReferenceResponseSchema: z.ZodObject<{
|
|
|
161
167
|
id: z.ZodString;
|
|
162
168
|
action: z.ZodString;
|
|
163
169
|
}, z.core.$strict>>;
|
|
170
|
+
editorPanels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
171
|
+
label: z.ZodString;
|
|
172
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
action: z.ZodString;
|
|
175
|
+
}, z.core.$strict>>>;
|
|
176
|
+
treeActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
+
label: z.ZodString;
|
|
178
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
action: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>>;
|
|
182
|
+
contentSlots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
183
|
+
kind: z.ZodEnum<{
|
|
184
|
+
filter: "filter";
|
|
185
|
+
column: "column";
|
|
186
|
+
badge: "badge";
|
|
187
|
+
bulkAction: "bulkAction";
|
|
188
|
+
}>;
|
|
189
|
+
label: z.ZodString;
|
|
190
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
action: z.ZodString;
|
|
193
|
+
}, z.core.$strict>>>;
|
|
194
|
+
adminSlots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
195
|
+
slot: z.ZodString;
|
|
196
|
+
label: z.ZodString;
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
action: z.ZodString;
|
|
199
|
+
}, z.core.$strict>>>;
|
|
164
200
|
hooks: z.ZodArray<z.ZodString>;
|
|
165
201
|
scheduledTasks: z.ZodArray<z.ZodObject<{
|
|
166
202
|
id: z.ZodString;
|
|
167
203
|
name: z.ZodString;
|
|
168
204
|
cron: z.ZodString;
|
|
169
205
|
}, z.core.$strict>>;
|
|
206
|
+
settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
type: z.ZodString;
|
|
209
|
+
label: z.ZodString;
|
|
210
|
+
askAtInstall: z.ZodBoolean;
|
|
211
|
+
}, z.core.$strict>>>;
|
|
170
212
|
migrations: z.ZodArray<z.ZodObject<{
|
|
171
213
|
id: z.ZodString;
|
|
172
214
|
name: z.ZodString;
|
|
@@ -52,6 +52,12 @@ export declare const ReferenceLabelMapSchema: z.ZodRecord<z.ZodString, z.ZodStri
|
|
|
52
52
|
export declare const PluginReferenceSchema: z.ZodObject<{
|
|
53
53
|
actions: z.ZodArray<z.ZodObject<{
|
|
54
54
|
id: z.ZodString;
|
|
55
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
"content.read": "content.read";
|
|
57
|
+
"content.update": "content.update";
|
|
58
|
+
"content.publish": "content.publish";
|
|
59
|
+
"media.read": "media.read";
|
|
60
|
+
}>>;
|
|
55
61
|
label: z.ZodString;
|
|
56
62
|
}, z.core.$strip>>;
|
|
57
63
|
roles: z.ZodArray<z.ZodObject<{
|
|
@@ -73,7 +79,7 @@ export declare const PluginReferenceSchema: z.ZodObject<{
|
|
|
73
79
|
}>;
|
|
74
80
|
payload: z.ZodObject<{
|
|
75
81
|
count: z.ZodNumber;
|
|
76
|
-
details: z.ZodArray<z.
|
|
82
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetail, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetail, unknown>>>;
|
|
77
83
|
}, z.core.$strict>;
|
|
78
84
|
}, z.core.$strict>>;
|
|
79
85
|
documentTypes: z.ZodArray<z.ZodObject<{
|
|
@@ -83,7 +89,7 @@ export declare const PluginReferenceSchema: z.ZodObject<{
|
|
|
83
89
|
}, z.core.$loose>>;
|
|
84
90
|
dataTypes: z.ZodArray<z.ZodObject<{
|
|
85
91
|
id: z.ZodString;
|
|
86
|
-
name: z.ZodString
|
|
92
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
87
93
|
}, z.core.$loose>>;
|
|
88
94
|
templates: z.ZodArray<z.ZodObject<{
|
|
89
95
|
name: z.ZodString;
|
|
@@ -112,12 +118,48 @@ export declare const PluginReferenceSchema: z.ZodObject<{
|
|
|
112
118
|
id: z.ZodString;
|
|
113
119
|
action: z.ZodString;
|
|
114
120
|
}, z.core.$strict>>;
|
|
121
|
+
editorPanels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
122
|
+
label: z.ZodString;
|
|
123
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
action: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>>;
|
|
127
|
+
treeActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
|
+
label: z.ZodString;
|
|
129
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
action: z.ZodString;
|
|
132
|
+
}, z.core.$strict>>>;
|
|
133
|
+
contentSlots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
134
|
+
kind: z.ZodEnum<{
|
|
135
|
+
filter: "filter";
|
|
136
|
+
column: "column";
|
|
137
|
+
badge: "badge";
|
|
138
|
+
bulkAction: "bulkAction";
|
|
139
|
+
}>;
|
|
140
|
+
label: z.ZodString;
|
|
141
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
action: z.ZodString;
|
|
144
|
+
}, z.core.$strict>>>;
|
|
145
|
+
adminSlots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
146
|
+
slot: z.ZodString;
|
|
147
|
+
label: z.ZodString;
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
action: z.ZodString;
|
|
150
|
+
}, z.core.$strict>>>;
|
|
115
151
|
hooks: z.ZodArray<z.ZodString>;
|
|
116
152
|
scheduledTasks: z.ZodArray<z.ZodObject<{
|
|
117
153
|
id: z.ZodString;
|
|
118
154
|
name: z.ZodString;
|
|
119
155
|
cron: z.ZodString;
|
|
120
156
|
}, z.core.$strict>>;
|
|
157
|
+
settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
type: z.ZodString;
|
|
160
|
+
label: z.ZodString;
|
|
161
|
+
askAtInstall: z.ZodBoolean;
|
|
162
|
+
}, z.core.$strict>>>;
|
|
121
163
|
migrations: z.ZodArray<z.ZodObject<{
|
|
122
164
|
id: z.ZodString;
|
|
123
165
|
name: z.ZodString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { CapabilityDetailSchema } from "./capability-detail.js";
|
|
2
3
|
import { PluginActionDeclarationSchema, PluginRoleOfferSchema } from "./plugin-actions.schema.js";
|
|
3
4
|
import { HOSTILE_CHARS_MESSAGE, hasHostileChars } from "./plugin-docs-text.js";
|
|
4
5
|
import { PluginLabelStringSchema } from "./plugin-labels.js";
|
|
@@ -143,17 +144,27 @@ export const PluginReferenceSchema = z
|
|
|
143
144
|
.object({
|
|
144
145
|
id: z.string(),
|
|
145
146
|
mediation: z.enum(["mediated", "promised"]),
|
|
146
|
-
payload: z.object({ count: z.number().int().nonnegative(), details: z.array(
|
|
147
|
+
payload: z.object({ count: z.number().int().nonnegative(), details: z.array(CapabilityDetailSchema) }).strict(),
|
|
147
148
|
})
|
|
148
149
|
.strict()),
|
|
149
150
|
documentTypes: z.array(z.object({ name: z.string(), kind: z.string(), fields: z.array(z.unknown()) }).passthrough()),
|
|
150
|
-
|
|
151
|
+
// M33 K45: a data type's name as a label map (buildReference writes one); a plain string, as a
|
|
152
|
+
// reference.json written before K45 carries it, still parses.
|
|
153
|
+
dataTypes: z.array(z.object({ id: z.string(), name: z.union([z.string(), ReferenceLabelMapSchema]) }).passthrough()),
|
|
151
154
|
templates: z.array(z.object({ name: z.string(), alias: z.string(), kind: z.string(), documentType: z.string().optional() }).strict()),
|
|
152
155
|
adminSections: z.array(z.object({ ...gated, label: ReferenceLabelMapSchema, rail: z.array(z.object({ ...gated, label: ReferenceLabelMapSchema }).strict()) }).strict()),
|
|
153
156
|
railEntries: z.array(z.object({ ...gated, label: ReferenceLabelMapSchema, section: z.string() }).strict()),
|
|
154
157
|
dashboardWidgets: z.array(z.object({ ...gated, name: z.string() }).strict()),
|
|
158
|
+
// M32 F3: default to empty, so a reference.json written before editor panels existed still parses.
|
|
159
|
+
editorPanels: z.array(z.object({ ...gated, label: z.string(), documentTypes: z.array(z.string()).optional() }).strict()).default([]),
|
|
160
|
+
treeActions: z.array(z.object({ ...gated, label: z.string(), documentTypes: z.array(z.string()).optional() }).strict()).default([]),
|
|
161
|
+
// M35 C2: columns, badges, filters and bulk actions; and views in the core's own screens.
|
|
162
|
+
contentSlots: z.array(z.object({ ...gated, kind: z.enum(["column", "badge", "filter", "bulkAction"]), label: z.string(), documentTypes: z.array(z.string()).optional() }).strict()).default([]),
|
|
163
|
+
adminSlots: z.array(z.object({ ...gated, slot: z.string(), label: z.string() }).strict()).default([]),
|
|
155
164
|
hooks: z.array(z.string()),
|
|
156
165
|
scheduledTasks: z.array(z.object({ id: z.string(), name: z.string(), cron: z.string() }).strict()),
|
|
166
|
+
// M32 F4d (D8): the settings fields a plugin declares; defaults to empty so older references still parse.
|
|
167
|
+
settings: z.array(z.object({ id: z.string(), type: z.string(), label: z.string(), askAtInstall: z.boolean() }).strict()).default([]),
|
|
157
168
|
migrations: z.array(z.object({ id: z.string(), name: z.string() }).strict()),
|
|
158
169
|
assertions: z.array(z.object({ key: z.string(), reason: z.string() }).strict()),
|
|
159
170
|
installOptions: z.array(ReferenceInstallOptionSchema).default([]),
|
|
@@ -162,7 +173,7 @@ export const PluginReferenceSchema = z
|
|
|
162
173
|
export function emptyPluginReference() {
|
|
163
174
|
return {
|
|
164
175
|
actions: [], roles: [], apiRoutes: [], capabilities: [], documentTypes: [], dataTypes: [], templates: [],
|
|
165
|
-
adminSections: [], railEntries: [], dashboardWidgets: [], hooks: [], scheduledTasks: [], migrations: [], assertions: [], installOptions: [],
|
|
176
|
+
adminSections: [], railEntries: [], dashboardWidgets: [], editorPanels: [], treeActions: [], contentSlots: [], adminSlots: [], hooks: [], scheduledTasks: [], settings: [], migrations: [], assertions: [], installOptions: [],
|
|
166
177
|
};
|
|
167
178
|
}
|
|
168
179
|
export const REFERENCE_PAGE_SLUGS = ["permissions", "api-routes", "capabilities", "content", "admin-surfaces", "lifecycle"];
|
|
@@ -174,8 +185,8 @@ export const REFERENCE_PAGE_TABLES = {
|
|
|
174
185
|
"api-routes": ["apiRoutes"],
|
|
175
186
|
capabilities: ["capabilities"],
|
|
176
187
|
content: ["documentTypes", "dataTypes", "templates"],
|
|
177
|
-
"admin-surfaces": ["adminSections", "railEntries", "dashboardWidgets"],
|
|
178
|
-
lifecycle: ["installOptions", "hooks", "scheduledTasks", "migrations", "assertions"],
|
|
188
|
+
"admin-surfaces": ["adminSections", "railEntries", "dashboardWidgets", "editorPanels", "treeActions", "contentSlots", "adminSlots"],
|
|
189
|
+
lifecycle: ["installOptions", "settings", "hooks", "scheduledTasks", "migrations", "assertions"],
|
|
179
190
|
};
|
|
180
191
|
export function isReferencePageSlug(slug) {
|
|
181
192
|
return REFERENCE_PAGE_SLUGS.includes(slug);
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type CreateDocumentTypeRequest } from "./document-type-api.schema.js";
|
|
3
|
+
/** A field's or a tab's name: a plain string as the core API takes it, or a label map. */
|
|
4
|
+
export declare const PluginFieldNameSchema: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
5
|
+
en: z.ZodString;
|
|
6
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
7
|
+
/** A field's help for AI: a note as the core API takes it, or a map of notes of the same length. */
|
|
8
|
+
export declare const PluginHelpLabelSchema: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
9
|
+
en: z.ZodString;
|
|
10
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
11
|
+
export declare const PluginDocumentTypeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
kind: z.ZodLiteral<"page">;
|
|
15
|
+
treeRules: z.ZodObject<{
|
|
16
|
+
allowedAtRoot: z.ZodBoolean;
|
|
17
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
18
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
help: z.ZodOptional<z.ZodString>;
|
|
21
|
+
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
collection: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
datatypeId: z.ZodString;
|
|
26
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
38
|
+
en: z.ZodString;
|
|
39
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
40
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
41
|
+
en: z.ZodString;
|
|
42
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
47
|
+
en: z.ZodString;
|
|
48
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
49
|
+
}, z.core.$strict>>>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
kind: z.ZodLiteral<"element">;
|
|
54
|
+
help: z.ZodOptional<z.ZodString>;
|
|
55
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
datatypeId: z.ZodString;
|
|
58
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
67
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
70
|
+
en: z.ZodString;
|
|
71
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
72
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
73
|
+
en: z.ZodString;
|
|
74
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
75
|
+
}, z.core.$strict>>;
|
|
76
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
79
|
+
en: z.ZodString;
|
|
80
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
81
|
+
}, z.core.$strict>>>;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
85
|
+
kind: z.ZodLiteral<"media">;
|
|
86
|
+
help: z.ZodOptional<z.ZodString>;
|
|
87
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
datatypeId: z.ZodString;
|
|
92
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
104
|
+
en: z.ZodString;
|
|
105
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
106
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
107
|
+
en: z.ZodString;
|
|
108
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
113
|
+
en: z.ZodString;
|
|
114
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
115
|
+
}, z.core.$strict>>>;
|
|
116
|
+
}, z.core.$strict>], "kind">;
|
|
117
|
+
export declare const PluginDocumentTypesSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
kind: z.ZodLiteral<"page">;
|
|
121
|
+
treeRules: z.ZodObject<{
|
|
122
|
+
allowedAtRoot: z.ZodBoolean;
|
|
123
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
124
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
help: z.ZodOptional<z.ZodString>;
|
|
127
|
+
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
collection: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
datatypeId: z.ZodString;
|
|
132
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
144
|
+
en: z.ZodString;
|
|
145
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
146
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
147
|
+
en: z.ZodString;
|
|
148
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
153
|
+
en: z.ZodString;
|
|
154
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
155
|
+
}, z.core.$strict>>>;
|
|
156
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
159
|
+
kind: z.ZodLiteral<"element">;
|
|
160
|
+
help: z.ZodOptional<z.ZodString>;
|
|
161
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
datatypeId: z.ZodString;
|
|
164
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strict>>;
|
|
172
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
173
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
176
|
+
en: z.ZodString;
|
|
177
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
178
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
179
|
+
en: z.ZodString;
|
|
180
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
185
|
+
en: z.ZodString;
|
|
186
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
187
|
+
}, z.core.$strict>>>;
|
|
188
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
kind: z.ZodLiteral<"media">;
|
|
192
|
+
help: z.ZodOptional<z.ZodString>;
|
|
193
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
datatypeId: z.ZodString;
|
|
198
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
207
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
210
|
+
en: z.ZodString;
|
|
211
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
212
|
+
help: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
213
|
+
en: z.ZodString;
|
|
214
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
219
|
+
en: z.ZodString;
|
|
220
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
221
|
+
}, z.core.$strict>>>;
|
|
222
|
+
}, z.core.$strict>], "kind">>;
|
|
223
|
+
export type PluginDocumentType = z.output<typeof PluginDocumentTypeSchema>;
|
|
224
|
+
export type PluginFieldName = z.output<typeof PluginFieldNameSchema>;
|
|
225
|
+
/** Whether a value is a field's help as a manifest may write it (a note, or a map of notes). */
|
|
226
|
+
export declare function isPluginHelpLabel(value: unknown): boolean;
|
|
227
|
+
/** The type as the core API takes it: each map resolved in `language` (else English, which every map carries). */
|
|
228
|
+
export declare function resolvePluginDocumentType(type: PluginDocumentType, language: string): CreateDocumentTypeRequest;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CreateDocumentTypeRequestSchema, validateFieldsAndTabs } from "./document-type-api.schema.js";
|
|
3
|
+
import { FieldDefinitionSchema, HelpForAiSchema, TabDefinitionSchema } from "./document-type.schema.js";
|
|
4
|
+
import { MCP_HELP_MAX_CHARS } from "./mcp-tool-inputs.schema.js";
|
|
5
|
+
import { labelMapSchema, pluginLabelMapSchema, resolveLabel } from "./plugin-labels.js";
|
|
6
|
+
// M33 K12 (Shop 4.1 C4, consolidation 3.16): the document types a plugin's manifest declares. A
|
|
7
|
+
// field's `name` and `help` and a tab's `name` may be a label map (`{ en, de?, ar?, ... }`, English
|
|
8
|
+
// required), resolved to plain strings in the site's default language when the install or an update
|
|
9
|
+
// writes the type. The type's own `name` stays a plain string, because it is an identifier
|
|
10
|
+
// (`contentAccess`, `templates` and code name the type by it), and so does every field id. The core
|
|
11
|
+
// document type API (CreateDocumentTypeRequestSchema) stays plain strings: this schema is the
|
|
12
|
+
// manifest's only. Declared data types (`dataTypeConfigs`) keep plain names: there the name is the
|
|
13
|
+
// key other declarations reference.
|
|
14
|
+
/** A field's or a tab's name: a plain string as the core API takes it, or a label map. */
|
|
15
|
+
export const PluginFieldNameSchema = z.union([z.string().min(1), pluginLabelMapSchema()]);
|
|
16
|
+
/** A field's help for AI: a note as the core API takes it, or a map of notes of the same length. */
|
|
17
|
+
export const PluginHelpLabelSchema = z.union([HelpForAiSchema, labelMapSchema({ max: MCP_HELP_MAX_CHARS })]);
|
|
18
|
+
const PluginFieldSchema = FieldDefinitionSchema.extend({ name: PluginFieldNameSchema, help: PluginHelpLabelSchema.optional() });
|
|
19
|
+
const PluginTabSchema = TabDefinitionSchema.extend({ name: PluginFieldNameSchema });
|
|
20
|
+
const labelled = { fields: z.array(PluginFieldSchema), tabs: z.array(PluginTabSchema).default([]) };
|
|
21
|
+
const [pageBranch, elementBranch, mediaBranch] = CreateDocumentTypeRequestSchema.options;
|
|
22
|
+
export const PluginDocumentTypeSchema = z
|
|
23
|
+
.discriminatedUnion("kind", [pageBranch.extend(labelled), elementBranch.extend(labelled), mediaBranch.extend(labelled)])
|
|
24
|
+
.superRefine(validateFieldsAndTabs);
|
|
25
|
+
export const PluginDocumentTypesSchema = z.array(PluginDocumentTypeSchema);
|
|
26
|
+
/** Whether a value is a field's help as a manifest may write it (a note, or a map of notes). */
|
|
27
|
+
export function isPluginHelpLabel(value) {
|
|
28
|
+
return PluginHelpLabelSchema.safeParse(value).success;
|
|
29
|
+
}
|
|
30
|
+
/** The type as the core API takes it: each map resolved in `language` (else English, which every map carries). */
|
|
31
|
+
export function resolvePluginDocumentType(type, language) {
|
|
32
|
+
const text = (label) => resolveLabel(label, language);
|
|
33
|
+
return {
|
|
34
|
+
...type,
|
|
35
|
+
fields: type.fields.map((field) => {
|
|
36
|
+
const { help, ...rest } = field;
|
|
37
|
+
return help === undefined ? { ...rest, name: text(field.name) } : { ...rest, name: text(field.name), help: text(help) };
|
|
38
|
+
}),
|
|
39
|
+
...(type.tabs === undefined ? {} : { tabs: type.tabs.map((tab) => ({ ...tab, name: text(tab.name) })) }),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Tries an event gets before it is given up (and audited as `plugin.event.givenUp`). */
|
|
2
|
+
export declare const DURABLE_EVENT_TRIES = 4;
|
|
3
|
+
/** The wait before the next try after the first, second and third failed one. */
|
|
4
|
+
export declare const DURABLE_RETRY_DELAYS_MS: readonly [60000, 300000, 1800000];
|
|
5
|
+
/** The write batch is flushed this often ... */
|
|
6
|
+
export declare const DURABLE_FLUSH_MS = 200;
|
|
7
|
+
/** ... or as soon as it holds this many rows, in one insert. */
|
|
8
|
+
export declare const DURABLE_FLUSH_ROWS = 100;
|
|
9
|
+
/** How long a running try holds its row before the replay may take it again. */
|
|
10
|
+
export declare const DURABLE_CLAIM_MS = 300000;
|
|
11
|
+
/** How often the replay runs, on the instance holding the lease. */
|
|
12
|
+
export declare const DURABLE_REPLAY_EVERY_MS = 30000;
|
|
13
|
+
/** The most rows one replay pass takes. */
|
|
14
|
+
export declare const DURABLE_REPLAY_BATCH = 500;
|
|
15
|
+
/** A row is deleted this long after the replay first offered it to its handler (`offeredAt`). */
|
|
16
|
+
export declare const DURABLE_ROW_MAX_AGE_MS = 86400000;
|
|
17
|
+
/** The most rows one plugin keeps waiting; past it a live event runs in memory only and a held one (its lane was full) is dropped. */
|
|
18
|
+
export declare const DURABLE_WAITING_MAX = 10000;
|
|
19
|
+
/**
|
|
20
|
+
* The wait before the next try once `failedTries` tries have failed (1, 2 or 3), or null when the
|
|
21
|
+
* event is given up (`failedTries` of DURABLE_EVENT_TRIES or more) or the count is no whole
|
|
22
|
+
* number of at least 1.
|
|
23
|
+
*/
|
|
24
|
+
export declare function durableRetryDelayMs(failedTries: number): number | null;
|
|
25
|
+
/** The 35 events a plugin may hook (the SDK's HOOK_EVENTS is this list), and the only ones a `hooks`
|
|
26
|
+
* entry may name, durable or not. The first 19 are those of release 0.20.0; the rest came with
|
|
27
|
+
* month 35's sessions B2 and U2b and are experimental (experimental-points.ts). */
|
|
28
|
+
export declare const PLUGIN_HOOK_EVENTS: readonly ["content:afterSave", "content:afterPublish", "content:afterTrash", "content:afterRestore", "content:afterUnpublish", "content:afterMove", "media:afterUpload", "media:afterTrash", "media:afterDelete", "user:afterLogin", "user:afterCreate", "user:afterDelete", "settings:afterChange", "plugin:afterInstall", "plugin:afterUninstall", "plugin:afterUpdate", "plugin:afterActivate", "plugin:afterDeactivate", "audit:afterRecord", "content:afterSort", "content:afterAccessChange", "documentType:afterChange", "dataType:afterChange", "role:afterChange", "user:afterChange", "site:afterAddressChange", "site:afterPageViews", "system:afterStart", "system:beforeShutdown", "system:afterError", "visitor:afterRegister", "visitor:afterConfirm", "visitor:afterSignIn", "visitor:afterGroupChange", "visitor:afterDelete"];
|
|
29
|
+
/** M35 B2: events whose moment is gone after a restart, so a hook on them is never durable. */
|
|
30
|
+
export declare const NON_DURABLE_HOOK_EVENTS: readonly ["system:beforeShutdown"];
|
|
31
|
+
/** Whether a `hooks` entry for this event may be written `{ handler, durable: true }`. */
|
|
32
|
+
export declare function isDurableAllowed(event: string): boolean;
|
|
33
|
+
/** The hook events release 0.20.0 shipped: under the promise. Every other event is experimental (experimental-points.ts). */
|
|
34
|
+
export declare const PROMISED_HOOK_EVENTS: readonly ["content:afterSave", "content:afterPublish", "content:afterTrash", "content:afterRestore", "content:afterUnpublish", "content:afterMove", "media:afterUpload", "media:afterTrash", "media:afterDelete", "user:afterLogin", "user:afterCreate", "user:afterDelete", "settings:afterChange", "plugin:afterInstall", "plugin:afterUninstall", "plugin:afterUpdate", "plugin:afterActivate", "plugin:afterDeactivate", "audit:afterRecord"];
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// M33 K18 (Webhooks 2.11 C3): durable hook events. A `hooks` value written
|
|
2
|
+
// `{ handler, durable: true }` keeps each raised event in the core table `plugin_hook_outbox` until
|
|
3
|
+
// the handler settles: written in batches, replayed on one instance, retried after 1, 5 and 30
|
|
4
|
+
// minutes, given up after the fourth failed try. Delivery is at least once. These are the limits the
|
|
5
|
+
// server's outbox writer and replay read, and the docs print.
|
|
6
|
+
/** Tries an event gets before it is given up (and audited as `plugin.event.givenUp`). */
|
|
7
|
+
export const DURABLE_EVENT_TRIES = 4;
|
|
8
|
+
/** The wait before the next try after the first, second and third failed one. */
|
|
9
|
+
export const DURABLE_RETRY_DELAYS_MS = [60_000, 300_000, 1_800_000];
|
|
10
|
+
/** The write batch is flushed this often ... */
|
|
11
|
+
export const DURABLE_FLUSH_MS = 200;
|
|
12
|
+
/** ... or as soon as it holds this many rows, in one insert. */
|
|
13
|
+
export const DURABLE_FLUSH_ROWS = 100;
|
|
14
|
+
/** How long a running try holds its row before the replay may take it again. */
|
|
15
|
+
export const DURABLE_CLAIM_MS = 300_000;
|
|
16
|
+
/** How often the replay runs, on the instance holding the lease. */
|
|
17
|
+
export const DURABLE_REPLAY_EVERY_MS = 30_000;
|
|
18
|
+
/** The most rows one replay pass takes. */
|
|
19
|
+
export const DURABLE_REPLAY_BATCH = 500;
|
|
20
|
+
/** A row is deleted this long after the replay first offered it to its handler (`offeredAt`). */
|
|
21
|
+
export const DURABLE_ROW_MAX_AGE_MS = 86_400_000;
|
|
22
|
+
/** The most rows one plugin keeps waiting; past it a live event runs in memory only and a held one (its lane was full) is dropped. */
|
|
23
|
+
export const DURABLE_WAITING_MAX = 10_000;
|
|
24
|
+
/**
|
|
25
|
+
* The wait before the next try once `failedTries` tries have failed (1, 2 or 3), or null when the
|
|
26
|
+
* event is given up (`failedTries` of DURABLE_EVENT_TRIES or more) or the count is no whole
|
|
27
|
+
* number of at least 1.
|
|
28
|
+
*/
|
|
29
|
+
export function durableRetryDelayMs(failedTries) {
|
|
30
|
+
if (!Number.isInteger(failedTries) || failedTries < 1 || failedTries >= DURABLE_EVENT_TRIES)
|
|
31
|
+
return null;
|
|
32
|
+
return DURABLE_RETRY_DELAYS_MS[failedTries - 1];
|
|
33
|
+
}
|
|
34
|
+
/** The 35 events a plugin may hook (the SDK's HOOK_EVENTS is this list), and the only ones a `hooks`
|
|
35
|
+
* entry may name, durable or not. The first 19 are those of release 0.20.0; the rest came with
|
|
36
|
+
* month 35's sessions B2 and U2b and are experimental (experimental-points.ts). */
|
|
37
|
+
export const PLUGIN_HOOK_EVENTS = [
|
|
38
|
+
"content:afterSave",
|
|
39
|
+
"content:afterPublish",
|
|
40
|
+
"content:afterTrash",
|
|
41
|
+
"content:afterRestore",
|
|
42
|
+
"content:afterUnpublish",
|
|
43
|
+
"content:afterMove",
|
|
44
|
+
"media:afterUpload",
|
|
45
|
+
"media:afterTrash",
|
|
46
|
+
"media:afterDelete",
|
|
47
|
+
"user:afterLogin",
|
|
48
|
+
"user:afterCreate",
|
|
49
|
+
"user:afterDelete",
|
|
50
|
+
"settings:afterChange",
|
|
51
|
+
"plugin:afterInstall",
|
|
52
|
+
"plugin:afterUninstall",
|
|
53
|
+
"plugin:afterUpdate",
|
|
54
|
+
"plugin:afterActivate",
|
|
55
|
+
"plugin:afterDeactivate",
|
|
56
|
+
"audit:afterRecord",
|
|
57
|
+
"content:afterSort",
|
|
58
|
+
"content:afterAccessChange",
|
|
59
|
+
"documentType:afterChange",
|
|
60
|
+
"dataType:afterChange",
|
|
61
|
+
"role:afterChange",
|
|
62
|
+
"user:afterChange",
|
|
63
|
+
"site:afterAddressChange",
|
|
64
|
+
"site:afterPageViews",
|
|
65
|
+
"system:afterStart",
|
|
66
|
+
"system:beforeShutdown",
|
|
67
|
+
"system:afterError",
|
|
68
|
+
// M35 U2b (W8): site visitor accounts. Payloads carry ids and keys, never an email.
|
|
69
|
+
"visitor:afterRegister",
|
|
70
|
+
"visitor:afterConfirm",
|
|
71
|
+
"visitor:afterSignIn",
|
|
72
|
+
"visitor:afterGroupChange",
|
|
73
|
+
"visitor:afterDelete",
|
|
74
|
+
];
|
|
75
|
+
/** M35 B2: events whose moment is gone after a restart, so a hook on them is never durable. */
|
|
76
|
+
export const NON_DURABLE_HOOK_EVENTS = ["system:beforeShutdown"];
|
|
77
|
+
/** Whether a `hooks` entry for this event may be written `{ handler, durable: true }`. */
|
|
78
|
+
export function isDurableAllowed(event) {
|
|
79
|
+
return !NON_DURABLE_HOOK_EVENTS.includes(event);
|
|
80
|
+
}
|
|
81
|
+
/** The hook events release 0.20.0 shipped: under the promise. Every other event is experimental (experimental-points.ts). */
|
|
82
|
+
export const PROMISED_HOOK_EVENTS = [
|
|
83
|
+
"content:afterSave",
|
|
84
|
+
"content:afterPublish",
|
|
85
|
+
"content:afterTrash",
|
|
86
|
+
"content:afterRestore",
|
|
87
|
+
"content:afterUnpublish",
|
|
88
|
+
"content:afterMove",
|
|
89
|
+
"media:afterUpload",
|
|
90
|
+
"media:afterTrash",
|
|
91
|
+
"media:afterDelete",
|
|
92
|
+
"user:afterLogin",
|
|
93
|
+
"user:afterCreate",
|
|
94
|
+
"user:afterDelete",
|
|
95
|
+
"settings:afterChange",
|
|
96
|
+
"plugin:afterInstall",
|
|
97
|
+
"plugin:afterUninstall",
|
|
98
|
+
"plugin:afterUpdate",
|
|
99
|
+
"plugin:afterActivate",
|
|
100
|
+
"plugin:afterDeactivate",
|
|
101
|
+
"audit:afterRecord",
|
|
102
|
+
];
|