@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,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** Field ids unique and every field's tab declared: the core's rule, and a plugin's manifest's (plugin-document-types.ts). */
|
|
3
|
+
export declare function validateFieldsAndTabs(value: {
|
|
4
|
+
fields: ReadonlyArray<{
|
|
5
|
+
id: string;
|
|
6
|
+
tabId?: string | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
tabs: ReadonlyArray<{
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, ctx: z.RefinementCtx): void;
|
|
2
12
|
export declare const CreateDocumentTypeRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
13
|
name: z.ZodString;
|
|
4
14
|
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -17,16 +27,19 @@ export declare const CreateDocumentTypeRequestSchema: z.ZodDiscriminatedUnion<[z
|
|
|
17
27
|
}, z.core.$strict>>;
|
|
18
28
|
tabId: z.ZodOptional<z.ZodString>;
|
|
19
29
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
help: z.ZodOptional<z.ZodString>;
|
|
31
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
20
32
|
}, z.core.$strict>>;
|
|
21
33
|
treeRules: z.ZodObject<{
|
|
22
34
|
allowedAtRoot: z.ZodBoolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, z.core.$
|
|
35
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
36
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
37
|
+
}, z.core.$strict>;
|
|
26
38
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
27
39
|
id: z.ZodString;
|
|
28
40
|
name: z.ZodString;
|
|
29
41
|
}, z.core.$strict>>>;
|
|
42
|
+
help: z.ZodOptional<z.ZodString>;
|
|
30
43
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
31
44
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
32
45
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -47,11 +60,14 @@ export declare const CreateDocumentTypeRequestSchema: z.ZodDiscriminatedUnion<[z
|
|
|
47
60
|
}, z.core.$strict>>;
|
|
48
61
|
tabId: z.ZodOptional<z.ZodString>;
|
|
49
62
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
help: z.ZodOptional<z.ZodString>;
|
|
64
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
50
65
|
}, z.core.$strict>>;
|
|
51
66
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
52
67
|
id: z.ZodString;
|
|
53
68
|
name: z.ZodString;
|
|
54
69
|
}, z.core.$strict>>>;
|
|
70
|
+
help: z.ZodOptional<z.ZodString>;
|
|
55
71
|
}, z.core.$strict>, z.ZodObject<{
|
|
56
72
|
name: z.ZodString;
|
|
57
73
|
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -70,16 +86,27 @@ export declare const CreateDocumentTypeRequestSchema: z.ZodDiscriminatedUnion<[z
|
|
|
70
86
|
}, z.core.$strict>>;
|
|
71
87
|
tabId: z.ZodOptional<z.ZodString>;
|
|
72
88
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
help: z.ZodOptional<z.ZodString>;
|
|
90
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
73
91
|
}, z.core.$strict>>;
|
|
74
92
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
75
93
|
id: z.ZodString;
|
|
76
94
|
name: z.ZodString;
|
|
77
95
|
}, z.core.$strict>>>;
|
|
96
|
+
help: z.ZodOptional<z.ZodString>;
|
|
78
97
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
79
98
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
80
99
|
}, z.core.$strict>], "kind">;
|
|
81
100
|
export type CreateDocumentTypeRequest = z.infer<typeof CreateDocumentTypeRequestSchema>;
|
|
82
101
|
export type CreateDocumentTypeRequestInput = z.input<typeof CreateDocumentTypeRequestSchema>;
|
|
102
|
+
export declare const DocumentTypeVersionSchema: z.ZodNumber;
|
|
103
|
+
export declare const DOCUMENT_TYPE_VERSION_CONFLICT_CODE: "document_type_version_conflict";
|
|
104
|
+
export declare const DocumentTypeVersionConflictSchema: z.ZodObject<{
|
|
105
|
+
code: z.ZodLiteral<"document_type_version_conflict">;
|
|
106
|
+
message: z.ZodString;
|
|
107
|
+
currentVersion: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type DocumentTypeVersionConflict = z.infer<typeof DocumentTypeVersionConflictSchema>;
|
|
83
110
|
export declare const UpdateDocumentTypeRequestSchema: z.ZodObject<{
|
|
84
111
|
name: z.ZodString;
|
|
85
112
|
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -97,6 +124,8 @@ export declare const UpdateDocumentTypeRequestSchema: z.ZodObject<{
|
|
|
97
124
|
}, z.core.$strict>>;
|
|
98
125
|
tabId: z.ZodOptional<z.ZodString>;
|
|
99
126
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
help: z.ZodOptional<z.ZodString>;
|
|
128
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
100
129
|
}, z.core.$strict>>;
|
|
101
130
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
102
131
|
id: z.ZodString;
|
|
@@ -104,13 +133,16 @@ export declare const UpdateDocumentTypeRequestSchema: z.ZodObject<{
|
|
|
104
133
|
}, z.core.$strict>>>;
|
|
105
134
|
treeRules: z.ZodOptional<z.ZodObject<{
|
|
106
135
|
allowedAtRoot: z.ZodBoolean;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, z.core.$
|
|
136
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
137
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
110
139
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
111
140
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
112
141
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
113
142
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
help: z.ZodOptional<z.ZodString>;
|
|
144
|
+
confirmPublicFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
114
146
|
}, z.core.$strict>;
|
|
115
147
|
export type UpdateDocumentTypeRequest = z.infer<typeof UpdateDocumentTypeRequestSchema>;
|
|
116
148
|
export type UpdateDocumentTypeRequestInput = z.input<typeof UpdateDocumentTypeRequestSchema>;
|
|
@@ -134,19 +166,23 @@ export declare const CreateDocumentTypeResponseSchema: z.ZodObject<{
|
|
|
134
166
|
}, z.core.$strict>>;
|
|
135
167
|
tabId: z.ZodOptional<z.ZodString>;
|
|
136
168
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
help: z.ZodOptional<z.ZodString>;
|
|
170
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
137
171
|
}, z.core.$strict>>;
|
|
138
172
|
treeRules: z.ZodObject<{
|
|
139
173
|
allowedAtRoot: z.ZodBoolean;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}, z.core.$
|
|
174
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
175
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
176
|
+
}, z.core.$strict>;
|
|
143
177
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
144
178
|
id: z.ZodString;
|
|
145
179
|
name: z.ZodString;
|
|
146
180
|
}, z.core.$strict>>>;
|
|
181
|
+
help: z.ZodOptional<z.ZodString>;
|
|
147
182
|
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
148
183
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
149
184
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
186
|
}, z.core.$strict>, z.ZodObject<{
|
|
151
187
|
id: z.ZodString;
|
|
152
188
|
name: z.ZodString;
|
|
@@ -166,11 +202,14 @@ export declare const CreateDocumentTypeResponseSchema: z.ZodObject<{
|
|
|
166
202
|
}, z.core.$strict>>;
|
|
167
203
|
tabId: z.ZodOptional<z.ZodString>;
|
|
168
204
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
help: z.ZodOptional<z.ZodString>;
|
|
206
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
169
207
|
}, z.core.$strict>>;
|
|
170
208
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
171
209
|
id: z.ZodString;
|
|
172
210
|
name: z.ZodString;
|
|
173
211
|
}, z.core.$strict>>>;
|
|
212
|
+
help: z.ZodOptional<z.ZodString>;
|
|
174
213
|
}, z.core.$strict>, z.ZodObject<{
|
|
175
214
|
id: z.ZodString;
|
|
176
215
|
name: z.ZodString;
|
|
@@ -190,16 +229,116 @@ export declare const CreateDocumentTypeResponseSchema: z.ZodObject<{
|
|
|
190
229
|
}, z.core.$strict>>;
|
|
191
230
|
tabId: z.ZodOptional<z.ZodString>;
|
|
192
231
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
help: z.ZodOptional<z.ZodString>;
|
|
233
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
193
234
|
}, z.core.$strict>>;
|
|
194
235
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
195
236
|
id: z.ZodString;
|
|
196
237
|
name: z.ZodString;
|
|
197
238
|
}, z.core.$strict>>>;
|
|
239
|
+
help: z.ZodOptional<z.ZodString>;
|
|
198
240
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
199
241
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
200
242
|
}, z.core.$strict>], "kind">;
|
|
201
243
|
}, z.core.$strip>;
|
|
202
244
|
export type CreateDocumentTypeResponse = z.infer<typeof CreateDocumentTypeResponseSchema>;
|
|
245
|
+
export declare const VersionedDocumentTypeResponseSchema: z.ZodObject<{
|
|
246
|
+
documentType: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
+
id: z.ZodString;
|
|
248
|
+
name: z.ZodString;
|
|
249
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
250
|
+
kind: z.ZodLiteral<"page">;
|
|
251
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
datatypeId: z.ZodString;
|
|
255
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
264
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
265
|
+
help: z.ZodOptional<z.ZodString>;
|
|
266
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
268
|
+
treeRules: z.ZodObject<{
|
|
269
|
+
allowedAtRoot: z.ZodBoolean;
|
|
270
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
271
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
}, z.core.$strict>>>;
|
|
277
|
+
help: z.ZodOptional<z.ZodString>;
|
|
278
|
+
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
279
|
+
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
collection: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
id: z.ZodString;
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
286
|
+
kind: z.ZodLiteral<"element">;
|
|
287
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
datatypeId: z.ZodString;
|
|
291
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
300
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
help: z.ZodOptional<z.ZodString>;
|
|
302
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
}, z.core.$strict>>;
|
|
304
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
}, z.core.$strict>>>;
|
|
308
|
+
help: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
313
|
+
kind: z.ZodLiteral<"media">;
|
|
314
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
315
|
+
id: z.ZodString;
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
datatypeId: z.ZodString;
|
|
318
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
322
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
327
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
help: z.ZodOptional<z.ZodString>;
|
|
329
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
}, z.core.$strict>>>;
|
|
335
|
+
help: z.ZodOptional<z.ZodString>;
|
|
336
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
}, z.core.$strict>], "kind">;
|
|
339
|
+
version: z.ZodNumber;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export type VersionedDocumentTypeResponse = z.infer<typeof VersionedDocumentTypeResponseSchema>;
|
|
203
342
|
export declare const DocumentTypeListQuerySchema: z.ZodObject<{
|
|
204
343
|
cursor: z.ZodOptional<z.ZodString>;
|
|
205
344
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -224,20 +363,31 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
224
363
|
}, z.core.$strict>>;
|
|
225
364
|
tabId: z.ZodOptional<z.ZodString>;
|
|
226
365
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
help: z.ZodOptional<z.ZodString>;
|
|
367
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
227
368
|
}, z.core.$strict>>;
|
|
228
369
|
treeRules: z.ZodObject<{
|
|
229
370
|
allowedAtRoot: z.ZodBoolean;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}, z.core.$
|
|
371
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
372
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
373
|
+
}, z.core.$strict>;
|
|
233
374
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
234
375
|
id: z.ZodString;
|
|
235
376
|
name: z.ZodString;
|
|
236
377
|
}, z.core.$strict>>>;
|
|
378
|
+
help: z.ZodOptional<z.ZodString>;
|
|
237
379
|
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
238
380
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
239
381
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
383
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
384
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
385
|
+
on: "on";
|
|
386
|
+
uninstalled: "uninstalled";
|
|
387
|
+
off: "off";
|
|
388
|
+
}>>>;
|
|
389
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
|
+
version: z.ZodNumber;
|
|
241
391
|
}, z.core.$strict>, z.ZodObject<{
|
|
242
392
|
id: z.ZodString;
|
|
243
393
|
name: z.ZodString;
|
|
@@ -257,12 +407,22 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
257
407
|
}, z.core.$strict>>;
|
|
258
408
|
tabId: z.ZodOptional<z.ZodString>;
|
|
259
409
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
+
help: z.ZodOptional<z.ZodString>;
|
|
411
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
260
412
|
}, z.core.$strict>>;
|
|
261
413
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
262
414
|
id: z.ZodString;
|
|
263
415
|
name: z.ZodString;
|
|
264
416
|
}, z.core.$strict>>>;
|
|
417
|
+
help: z.ZodOptional<z.ZodString>;
|
|
265
418
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
419
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
420
|
+
on: "on";
|
|
421
|
+
uninstalled: "uninstalled";
|
|
422
|
+
off: "off";
|
|
423
|
+
}>>>;
|
|
424
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
version: z.ZodNumber;
|
|
266
426
|
}, z.core.$strict>, z.ZodObject<{
|
|
267
427
|
id: z.ZodString;
|
|
268
428
|
name: z.ZodString;
|
|
@@ -282,14 +442,24 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
282
442
|
}, z.core.$strict>>;
|
|
283
443
|
tabId: z.ZodOptional<z.ZodString>;
|
|
284
444
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
help: z.ZodOptional<z.ZodString>;
|
|
446
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
285
447
|
}, z.core.$strict>>;
|
|
286
448
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
287
449
|
id: z.ZodString;
|
|
288
450
|
name: z.ZodString;
|
|
289
451
|
}, z.core.$strict>>>;
|
|
452
|
+
help: z.ZodOptional<z.ZodString>;
|
|
290
453
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
291
454
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
292
455
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
456
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
457
|
+
on: "on";
|
|
458
|
+
uninstalled: "uninstalled";
|
|
459
|
+
off: "off";
|
|
460
|
+
}>>>;
|
|
461
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
version: z.ZodNumber;
|
|
293
463
|
}, z.core.$strict>], "kind">;
|
|
294
464
|
export type DocumentTypeListItem = z.infer<typeof DocumentTypeListItemSchema>;
|
|
295
465
|
export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
@@ -312,20 +482,31 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
312
482
|
}, z.core.$strict>>;
|
|
313
483
|
tabId: z.ZodOptional<z.ZodString>;
|
|
314
484
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
485
|
+
help: z.ZodOptional<z.ZodString>;
|
|
486
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
315
487
|
}, z.core.$strict>>;
|
|
316
488
|
treeRules: z.ZodObject<{
|
|
317
489
|
allowedAtRoot: z.ZodBoolean;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}, z.core.$
|
|
490
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
491
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
492
|
+
}, z.core.$strict>;
|
|
321
493
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
322
494
|
id: z.ZodString;
|
|
323
495
|
name: z.ZodString;
|
|
324
496
|
}, z.core.$strict>>>;
|
|
497
|
+
help: z.ZodOptional<z.ZodString>;
|
|
325
498
|
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
326
499
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
327
500
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
501
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
502
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
503
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
504
|
+
on: "on";
|
|
505
|
+
uninstalled: "uninstalled";
|
|
506
|
+
off: "off";
|
|
507
|
+
}>>>;
|
|
508
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
version: z.ZodNumber;
|
|
329
510
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
511
|
id: z.ZodString;
|
|
331
512
|
name: z.ZodString;
|
|
@@ -345,12 +526,22 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
345
526
|
}, z.core.$strict>>;
|
|
346
527
|
tabId: z.ZodOptional<z.ZodString>;
|
|
347
528
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
help: z.ZodOptional<z.ZodString>;
|
|
530
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
348
531
|
}, z.core.$strict>>;
|
|
349
532
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
350
533
|
id: z.ZodString;
|
|
351
534
|
name: z.ZodString;
|
|
352
535
|
}, z.core.$strict>>>;
|
|
536
|
+
help: z.ZodOptional<z.ZodString>;
|
|
353
537
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
538
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
539
|
+
on: "on";
|
|
540
|
+
uninstalled: "uninstalled";
|
|
541
|
+
off: "off";
|
|
542
|
+
}>>>;
|
|
543
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
544
|
+
version: z.ZodNumber;
|
|
354
545
|
}, z.core.$strict>, z.ZodObject<{
|
|
355
546
|
id: z.ZodString;
|
|
356
547
|
name: z.ZodString;
|
|
@@ -370,14 +561,24 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
370
561
|
}, z.core.$strict>>;
|
|
371
562
|
tabId: z.ZodOptional<z.ZodString>;
|
|
372
563
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
564
|
+
help: z.ZodOptional<z.ZodString>;
|
|
565
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
373
566
|
}, z.core.$strict>>;
|
|
374
567
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
375
568
|
id: z.ZodString;
|
|
376
569
|
name: z.ZodString;
|
|
377
570
|
}, z.core.$strict>>>;
|
|
571
|
+
help: z.ZodOptional<z.ZodString>;
|
|
378
572
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
379
573
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
380
574
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
575
|
+
ownerState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
576
|
+
on: "on";
|
|
577
|
+
uninstalled: "uninstalled";
|
|
578
|
+
off: "off";
|
|
579
|
+
}>>>;
|
|
580
|
+
ownerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
|
+
version: z.ZodNumber;
|
|
381
582
|
}, z.core.$strict>], "kind">>;
|
|
382
583
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
383
584
|
}, z.core.$strip>;
|
|
@@ -386,3 +587,44 @@ export declare const DeleteDocumentTypeResponseSchema: z.ZodObject<{
|
|
|
386
587
|
success: z.ZodLiteral<true>;
|
|
387
588
|
}, z.core.$strip>;
|
|
388
589
|
export type DeleteDocumentTypeResponse = z.infer<typeof DeleteDocumentTypeResponseSchema>;
|
|
590
|
+
/** M35 (2026-11-22): why DELETE /document-types/:id refused (409), one code each, so the admin
|
|
591
|
+
* words each in its own language and falls back to `message`. Nothing is ever purged: a type its
|
|
592
|
+
* trashed pages still name is refused with has_trashed_pages, the count counted no further than
|
|
593
|
+
* DOCUMENT_TYPE_TRASHED_COUNT_LIMIT (countCapped then says there are at least that many). */
|
|
594
|
+
export declare const DOCUMENT_TYPE_DELETE_BLOCKED_CODES: readonly ["has_content", "has_trashed_pages", "has_templates", "has_media", "only_catch_all"];
|
|
595
|
+
export declare const DocumentTypeDeleteBlockedSchema: z.ZodObject<{
|
|
596
|
+
message: z.ZodString;
|
|
597
|
+
code: z.ZodEnum<{
|
|
598
|
+
has_content: "has_content";
|
|
599
|
+
has_trashed_pages: "has_trashed_pages";
|
|
600
|
+
has_templates: "has_templates";
|
|
601
|
+
has_media: "has_media";
|
|
602
|
+
only_catch_all: "only_catch_all";
|
|
603
|
+
}>;
|
|
604
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
countCapped: z.ZodOptional<z.ZodBoolean>;
|
|
606
|
+
}, z.core.$strip>;
|
|
607
|
+
export type DocumentTypeDeleteBlocked = z.infer<typeof DocumentTypeDeleteBlockedSchema>;
|
|
608
|
+
/** M35 (2026-11-22, operator approval): GET /document-types/:id/trashed-pages, the trashed pages
|
|
609
|
+
* that hold a type the delete refused, in path order, KEEP_PREVIEW_PAGE_SIZE at a time. The cursor
|
|
610
|
+
* is the last row's position (encodeContentWalkCursor). */
|
|
611
|
+
export declare const DocumentTypeTrashedPagesQuerySchema: z.ZodObject<{
|
|
612
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
export declare const DocumentTypeTrashedPageSchema: z.ZodObject<{
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
title: z.ZodString;
|
|
617
|
+
path: z.ZodString;
|
|
618
|
+
deletedAt: z.ZodString;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
export declare const DocumentTypeTrashedPagesResponseSchema: z.ZodObject<{
|
|
621
|
+
items: z.ZodArray<z.ZodObject<{
|
|
622
|
+
id: z.ZodString;
|
|
623
|
+
title: z.ZodString;
|
|
624
|
+
path: z.ZodString;
|
|
625
|
+
deletedAt: z.ZodString;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
export type DocumentTypeTrashedPage = z.infer<typeof DocumentTypeTrashedPageSchema>;
|
|
630
|
+
export type DocumentTypeTrashedPagesResponse = z.infer<typeof DocumentTypeTrashedPagesResponseSchema>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { ApiErrorSchema } from "./api-error.schema.js";
|
|
3
|
+
import { CONTENT_WALK_CURSOR_MAX, decodeContentWalkCursor } from "./content-reads.schema.js";
|
|
4
|
+
import { KEEP_PREVIEW_PAGE_SIZE, KeptPartStateSchema } from "./plugin-kept-parts.js";
|
|
5
|
+
import { DocumentTypeDefinitionSchema, FieldDefinitionSchema, HelpForAiSchema, TabDefinitionSchema, TreeRulesSchema, } from "./document-type.schema.js";
|
|
3
6
|
// Shared by create AND update: duplicate field keys within one document
|
|
4
7
|
// type would silently collide in ContentVersion.data later, and a tabId
|
|
5
8
|
// must reference a tab declared in the same payload.
|
|
6
|
-
|
|
9
|
+
/** Field ids unique and every field's tab declared: the core's rule, and a plugin's manifest's (plugin-document-types.ts). */
|
|
10
|
+
export function validateFieldsAndTabs(value, ctx) {
|
|
7
11
|
const seen = new Set();
|
|
8
12
|
for (const [index, field] of value.fields.entries()) {
|
|
9
13
|
if (seen.has(field.id)) {
|
|
@@ -43,6 +47,7 @@ export const CreateDocumentTypeRequestSchema = z
|
|
|
43
47
|
fields: z.array(FieldDefinitionSchema),
|
|
44
48
|
treeRules: TreeRulesSchema,
|
|
45
49
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
50
|
+
help: HelpForAiSchema.optional(),
|
|
46
51
|
// S230c: refuse publishing a language whose required varying
|
|
47
52
|
// fields are unfilled. Page types only.
|
|
48
53
|
translationMandatory: z.boolean().optional(),
|
|
@@ -61,6 +66,7 @@ export const CreateDocumentTypeRequestSchema = z
|
|
|
61
66
|
kind: z.literal("element"),
|
|
62
67
|
fields: z.array(FieldDefinitionSchema),
|
|
63
68
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
69
|
+
help: HelpForAiSchema.optional(),
|
|
64
70
|
})
|
|
65
71
|
.strict(),
|
|
66
72
|
// S234a: the third kind. No treeRules, no translationMandatory and no
|
|
@@ -76,6 +82,7 @@ export const CreateDocumentTypeRequestSchema = z
|
|
|
76
82
|
kind: z.literal("media"),
|
|
77
83
|
fields: z.array(FieldDefinitionSchema),
|
|
78
84
|
tabs: z.array(TabDefinitionSchema).default([]),
|
|
85
|
+
help: HelpForAiSchema.optional(),
|
|
79
86
|
// Which type claims an uploaded file when more than one accepts
|
|
80
87
|
// its extension: lower sorts first, and a type with no number at
|
|
81
88
|
// all sorts after every type that has one.
|
|
@@ -106,10 +113,21 @@ export const CreateDocumentTypeRequestSchema = z
|
|
|
106
113
|
varies: true,
|
|
107
114
|
}
|
|
108
115
|
],
|
|
109
|
-
treeRules: { allowedAtRoot: true,
|
|
116
|
+
treeRules: { allowedAtRoot: true, allowedParents: "any", allowedChildren: "any" },
|
|
110
117
|
tabs: [{ id: "f47ac10b-58cc-4372-a567-0e02b2c3d479", name: "Content" }],
|
|
111
118
|
},
|
|
112
119
|
});
|
|
120
|
+
// M33 core (M14 callers): a document type's row version. Every write of the type moves it on.
|
|
121
|
+
// The list answers it beside each type; a client that read a type sends it back on the PUT, which
|
|
122
|
+
// is refused with 409 and DOCUMENT_TYPE_VERSION_CONFLICT_CODE once the type changed since.
|
|
123
|
+
export const DocumentTypeVersionSchema = z.number().int().positive();
|
|
124
|
+
export const DOCUMENT_TYPE_VERSION_CONFLICT_CODE = "document_type_version_conflict";
|
|
125
|
+
export const DocumentTypeVersionConflictSchema = z.object({
|
|
126
|
+
code: z.literal(DOCUMENT_TYPE_VERSION_CONFLICT_CODE),
|
|
127
|
+
message: z.string(),
|
|
128
|
+
/** The version the row holds now. */
|
|
129
|
+
currentVersion: DocumentTypeVersionSchema,
|
|
130
|
+
});
|
|
113
131
|
// PUT /api/manage/v1/document-types/:id: the mutable subset only. `kind` is
|
|
114
132
|
// immutable after creation (a payload carrying it fails .strict(), the
|
|
115
133
|
// intended behavior, not an accident) and `defaultTemplateId` stays with
|
|
@@ -140,6 +158,19 @@ export const UpdateDocumentTypeRequestSchema = z
|
|
|
140
158
|
// owns the singleton rule for catchAll.
|
|
141
159
|
sortOrder: z.number().int().nonnegative().optional(),
|
|
142
160
|
catchAll: z.boolean().optional(),
|
|
161
|
+
// M31.5 B (D9): optional here, and the route treats omission as "keep" (the adapter
|
|
162
|
+
// writes it verbatim, as it does translationMandatory); an empty note is stored empty.
|
|
163
|
+
help: HelpForAiSchema.optional(),
|
|
164
|
+
// M32 J (fix wave 2): the field keys this save may serve although the type once held a private
|
|
165
|
+
// field under them (its retiredPrivateFieldIds, or a field the stored type marks private). The
|
|
166
|
+
// stored versions still hold the private values, so serving such a key publishes them; without
|
|
167
|
+
// the key here the save is refused with 409 naming the field.
|
|
168
|
+
confirmPublicFieldIds: z.array(FieldDefinitionSchema.shape.id).max(500).optional(),
|
|
169
|
+
// M33 core (M14 callers): the version the caller read (the list's `version`). With it the save
|
|
170
|
+
// is refused with 409 (DOCUMENT_TYPE_VERSION_CONFLICT_CODE) when the type changed since, so
|
|
171
|
+
// nothing written in between is overwritten. Without it the save is written whatever the type
|
|
172
|
+
// holds now, as before: for a caller that never read the type.
|
|
173
|
+
version: DocumentTypeVersionSchema.optional(),
|
|
143
174
|
})
|
|
144
175
|
.strict()
|
|
145
176
|
.superRefine(validateFieldsAndTabs)
|
|
@@ -159,12 +190,16 @@ export const UpdateDocumentTypeRequestSchema = z
|
|
|
159
190
|
}
|
|
160
191
|
],
|
|
161
192
|
tabs: [{ id: "f47ac10b-58cc-4372-a567-0e02b2c3d479", name: "Content" }],
|
|
162
|
-
treeRules: { allowedAtRoot: true,
|
|
193
|
+
treeRules: { allowedAtRoot: true, allowedParents: "any", allowedChildren: "any" },
|
|
163
194
|
},
|
|
164
195
|
});
|
|
165
196
|
export const CreateDocumentTypeResponseSchema = z.object({
|
|
166
197
|
documentType: DocumentTypeDefinitionSchema,
|
|
167
198
|
});
|
|
199
|
+
// M33 core (M14 callers): the POST and the PUT answer the version they wrote, for the next save.
|
|
200
|
+
export const VersionedDocumentTypeResponseSchema = CreateDocumentTypeResponseSchema.extend({
|
|
201
|
+
version: DocumentTypeVersionSchema,
|
|
202
|
+
});
|
|
168
203
|
export const DocumentTypeListQuerySchema = z.object({
|
|
169
204
|
cursor: z.string().uuid().optional(),
|
|
170
205
|
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
@@ -172,7 +207,15 @@ export const DocumentTypeListQuerySchema = z.object({
|
|
|
172
207
|
/** S366 (spec D8): a listed document type and the plugin that provided it
|
|
173
208
|
* (its plugin_document_types row), null for the operator's own, so the admin
|
|
174
209
|
* can say which plugin a type came from before it is deleted. */
|
|
175
|
-
const OWNED_BY = {
|
|
210
|
+
const OWNED_BY = {
|
|
211
|
+
ownedBy: z.string().min(1).nullable(),
|
|
212
|
+
/** M35: where the providing plugin stands (null for the operator's own): on, off, or uninstalled with the type kept. */
|
|
213
|
+
ownerState: KeptPartStateSchema.nullable().optional(),
|
|
214
|
+
/** M35: the providing plugin's display name, the name it had when an uninstall kept the type. */
|
|
215
|
+
ownerName: z.string().nullable().optional(),
|
|
216
|
+
// M33 core (M14 callers): the row version read with the type, sent back on the PUT.
|
|
217
|
+
version: DocumentTypeVersionSchema,
|
|
218
|
+
};
|
|
176
219
|
const [PAGE_TYPE, ELEMENT_TYPE, MEDIA_TYPE] = DocumentTypeDefinitionSchema.options;
|
|
177
220
|
export const DocumentTypeListItemSchema = z.discriminatedUnion("kind", [
|
|
178
221
|
PAGE_TYPE.extend(OWNED_BY),
|
|
@@ -186,3 +229,33 @@ export const DocumentTypeListResponseSchema = z.object({
|
|
|
186
229
|
export const DeleteDocumentTypeResponseSchema = z.object({
|
|
187
230
|
success: z.literal(true),
|
|
188
231
|
});
|
|
232
|
+
/** M35 (2026-11-22): why DELETE /document-types/:id refused (409), one code each, so the admin
|
|
233
|
+
* words each in its own language and falls back to `message`. Nothing is ever purged: a type its
|
|
234
|
+
* trashed pages still name is refused with has_trashed_pages, the count counted no further than
|
|
235
|
+
* DOCUMENT_TYPE_TRASHED_COUNT_LIMIT (countCapped then says there are at least that many). */
|
|
236
|
+
export const DOCUMENT_TYPE_DELETE_BLOCKED_CODES = ["has_content", "has_trashed_pages", "has_templates", "has_media", "only_catch_all"];
|
|
237
|
+
export const DocumentTypeDeleteBlockedSchema = ApiErrorSchema.extend({
|
|
238
|
+
code: z.enum(DOCUMENT_TYPE_DELETE_BLOCKED_CODES),
|
|
239
|
+
count: z.number().int().nonnegative().optional(),
|
|
240
|
+
countCapped: z.boolean().optional(),
|
|
241
|
+
});
|
|
242
|
+
/** M35 (2026-11-22, operator approval): GET /document-types/:id/trashed-pages, the trashed pages
|
|
243
|
+
* that hold a type the delete refused, in path order, KEEP_PREVIEW_PAGE_SIZE at a time. The cursor
|
|
244
|
+
* is the last row's position (encodeContentWalkCursor). */
|
|
245
|
+
export const DocumentTypeTrashedPagesQuerySchema = z.object({
|
|
246
|
+
cursor: z
|
|
247
|
+
.string()
|
|
248
|
+
.max(CONTENT_WALK_CURSOR_MAX)
|
|
249
|
+
.refine((value) => decodeContentWalkCursor(value) !== null, { message: "cursor must be a nextCursor this list answered" })
|
|
250
|
+
.optional(),
|
|
251
|
+
});
|
|
252
|
+
export const DocumentTypeTrashedPageSchema = z.object({
|
|
253
|
+
id: z.string(),
|
|
254
|
+
title: z.string(),
|
|
255
|
+
path: z.string(),
|
|
256
|
+
deletedAt: z.string(),
|
|
257
|
+
});
|
|
258
|
+
export const DocumentTypeTrashedPagesResponseSchema = z.object({
|
|
259
|
+
items: z.array(DocumentTypeTrashedPageSchema).max(KEEP_PREVIEW_PAGE_SIZE),
|
|
260
|
+
nextCursor: z.string().nullable(),
|
|
261
|
+
});
|