@kardalum/plugin-sdk 0.19.0 → 0.20.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 +211 -0
- package/README.md +19 -0
- package/dist/admin-section-registry.d.ts +16 -1
- package/dist/admin-section-registry.js +23 -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 +55 -3
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/content-library.d.ts +85 -0
- package/dist/content-library.js +15 -0
- package/dist/content-picker/page-picker-sheet.d.ts +13 -0
- package/dist/content-picker/page-picker-sheet.js +105 -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 +139 -1
- 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 +36 -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 +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +36 -4
- package/dist/index.js +50 -3
- package/dist/mail.d.ts +30 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +29 -4
- package/dist/manifest-entry.js +39 -2
- package/dist/manifest-schema.d.ts +443 -29
- package/dist/manifest-schema.js +285 -23
- package/dist/manifest.d.ts +450 -51
- package/dist/manifest.js +1 -1
- 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 +5 -0
- package/dist/plugin-screen-context.d.ts +112 -0
- package/dist/plugin-screen-context.js +26 -0
- package/dist/providers.d.ts +268 -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/richtext/block-panel.js +11 -6
- package/dist/richtext/insert-menu.js +9 -6
- package/dist/richtext/style-listbox.js +6 -4
- package/dist/sdk-strings.d.ts +285 -0
- package/dist/sdk-strings.js +347 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -0
- package/dist/simple-storage-value-provider.js +24 -24
- package/dist/structured-storage-types.d.ts +309 -9
- package/dist/text-entry.d.ts +1 -0
- package/dist/text-entry.js +6 -0
- package/dist/tokens/tailwind-theme.css +5 -0
- package/dist/tokens/tokens.css +15 -3
- package/dist/tokens/tokens.json +8 -3
- 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 +38 -34
- 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.js +28 -13
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +215 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +179 -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 +7 -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 +1 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +126 -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 +57 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +137 -0
- 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-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/core-actions.d.ts +10 -5
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +7 -4
- 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 +180 -15
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +41 -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/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/index.d.ts +117 -41
- package/node_modules/@kardalum/api-schemas/dist/index.js +89 -26
- 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/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 +224 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +404 -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 +312 -8
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +43 -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 +22 -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 +1 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -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 +53 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +284 -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/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-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 +42 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +74 -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 +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -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 +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +124 -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-held-embeds.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +213 -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 +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +38 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +237 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +205 -6
- 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 +335 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +242 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +16 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +34 -1
- 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 +22 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +31 -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 +310 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +430 -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-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-settings.d.ts +342 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +400 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +180 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +612 -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-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -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-editing.d.ts +4 -4
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +82 -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 +497 -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 +91 -1
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +90 -8
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +59 -1
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +110 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +34 -2
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +384 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +616 -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 +66 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +160 -0
- 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 +58 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +34 -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/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +6 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +5 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +15 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +12 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +21 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +8 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +355 -22
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +2 -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/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/content-access.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +34 -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 +27 -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/index.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +47 -5
- 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 +95 -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 +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +298 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +25 -4
- 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 +140 -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 +36 -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 +10 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +2 -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/ui/dist/components/switch.js +1 -1
- 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/package.json +12 -2
|
@@ -34,12 +34,21 @@ export declare const DataTypeEditorPluginSchema: z.ZodObject<{
|
|
|
34
34
|
message: z.ZodString;
|
|
35
35
|
renewUrl: z.ZodOptional<z.ZodString>;
|
|
36
36
|
lapsedAt: z.ZodOptional<z.ZodString>;
|
|
37
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
lapsed: "lapsed";
|
|
39
|
+
refunded: "refunded";
|
|
40
|
+
}>>;
|
|
37
41
|
}, z.core.$strip>>;
|
|
38
42
|
pluginId: z.ZodString;
|
|
39
43
|
name: z.ZodString;
|
|
40
44
|
enabled: z.ZodBoolean;
|
|
41
45
|
}, z.core.$strip>;
|
|
42
46
|
export type DataTypeEditorPlugin = z.infer<typeof DataTypeEditorPluginSchema>;
|
|
47
|
+
export declare const DataTypeDeclaredBySchema: z.ZodObject<{
|
|
48
|
+
pluginId: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type DataTypeDeclaredBy = z.infer<typeof DataTypeDeclaredBySchema>;
|
|
43
52
|
export declare const DataTypeListItemSchema: z.ZodObject<{
|
|
44
53
|
id: z.ZodString;
|
|
45
54
|
name: z.ZodString;
|
|
@@ -54,11 +63,19 @@ export declare const DataTypeListItemSchema: z.ZodObject<{
|
|
|
54
63
|
message: z.ZodString;
|
|
55
64
|
renewUrl: z.ZodOptional<z.ZodString>;
|
|
56
65
|
lapsedAt: z.ZodOptional<z.ZodString>;
|
|
66
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
lapsed: "lapsed";
|
|
68
|
+
refunded: "refunded";
|
|
69
|
+
}>>;
|
|
57
70
|
}, z.core.$strip>>;
|
|
58
71
|
pluginId: z.ZodString;
|
|
59
72
|
name: z.ZodString;
|
|
60
73
|
enabled: z.ZodBoolean;
|
|
61
74
|
}, z.core.$strip>>;
|
|
75
|
+
declaredBy: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
pluginId: z.ZodString;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
62
79
|
}, z.core.$strict>;
|
|
63
80
|
export type DataTypeListItem = z.infer<typeof DataTypeListItemSchema>;
|
|
64
81
|
export declare const DataTypeListResponseSchema: z.ZodObject<{
|
|
@@ -76,11 +93,19 @@ export declare const DataTypeListResponseSchema: z.ZodObject<{
|
|
|
76
93
|
message: z.ZodString;
|
|
77
94
|
renewUrl: z.ZodOptional<z.ZodString>;
|
|
78
95
|
lapsedAt: z.ZodOptional<z.ZodString>;
|
|
96
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
lapsed: "lapsed";
|
|
98
|
+
refunded: "refunded";
|
|
99
|
+
}>>;
|
|
79
100
|
}, z.core.$strip>>;
|
|
80
101
|
pluginId: z.ZodString;
|
|
81
102
|
name: z.ZodString;
|
|
82
103
|
enabled: z.ZodBoolean;
|
|
83
104
|
}, z.core.$strip>>;
|
|
105
|
+
declaredBy: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
pluginId: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
}, z.core.$strip>>;
|
|
84
109
|
}, z.core.$strict>>;
|
|
85
110
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
86
111
|
}, z.core.$strip>;
|
|
@@ -42,8 +42,16 @@ export const DataTypeEditorPluginSchema = z.object({
|
|
|
42
42
|
name: z.string(),
|
|
43
43
|
enabled: z.boolean(),
|
|
44
44
|
});
|
|
45
|
+
// M32 J (fix wave): the installed plugin that declared a data type (contributions.dataTypeConfigs,
|
|
46
|
+
// its plugin_data_types row), as the list names it. Absent for a data type no installed plugin
|
|
47
|
+
// declared. Such a data type goes when its plugin is uninstalled, and is not deleted by hand.
|
|
48
|
+
export const DataTypeDeclaredBySchema = z.object({
|
|
49
|
+
pluginId: z.string(),
|
|
50
|
+
name: z.string(),
|
|
51
|
+
});
|
|
45
52
|
export const DataTypeListItemSchema = DataTypeConfigSchema.extend({
|
|
46
53
|
editorPlugin: DataTypeEditorPluginSchema.optional(),
|
|
54
|
+
declaredBy: DataTypeDeclaredBySchema.optional(),
|
|
47
55
|
}).strict();
|
|
48
56
|
export const DataTypeListResponseSchema = z.object({
|
|
49
57
|
items: z.array(DataTypeListItemSchema),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
// A Data Type is a named, admin-created CONFIGURATION of a registry
|
|
3
|
-
// editor (
|
|
3
|
+
// editor (the split is: the editor is the input-control code shipped
|
|
4
4
|
// by core/plugins; the Data Type is "Richtext: limited toolbar").
|
|
5
5
|
// Document type fields reference a Data Type's id: configure once,
|
|
6
6
|
// reuse across document types. Settings are validated against the
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** At most this many params on a plugin's keyed issue; an issue with more keeps none. */
|
|
2
|
+
export declare const DATA_TYPE_ISSUE_PARAMS_MAX = 8;
|
|
3
|
+
/** A plugin's `message` is cut here, in code points, with "..." after it. */
|
|
4
|
+
export declare const DATA_TYPE_ISSUE_MESSAGE_MAX = 300;
|
|
5
|
+
/** A filled param value is cut here, in code points, with "..." after it (the API's rule since M32 I5). */
|
|
6
|
+
export declare const DATA_TYPE_ISSUE_PARAM_TEXT_MAX = 80;
|
|
7
|
+
/** A plugin issue's `path` longer than this many UTF-16 units is dropped (the issue is kept). */
|
|
8
|
+
export declare const DATA_TYPE_ISSUE_PATH_MAX = 200;
|
|
9
|
+
/** At most this many issues from one plugin hook call are passed on; the rest are dropped. */
|
|
10
|
+
export declare const DATA_TYPE_ISSUES_MAX = 20;
|
|
11
|
+
/** A param name is 1 to this many ASCII letters, digits and `_`. */
|
|
12
|
+
export declare const DATA_TYPE_ISSUE_PARAM_NAME_MAX = 64;
|
|
13
|
+
export type DataTypeIssue = {
|
|
14
|
+
key: string;
|
|
15
|
+
params?: Record<string, unknown>;
|
|
16
|
+
message?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
} | {
|
|
19
|
+
message: string;
|
|
20
|
+
path?: string;
|
|
21
|
+
};
|
|
22
|
+
/** An issue as the core passes it on: a plugin's carries the owning plugin's id. */
|
|
23
|
+
export type DataTypeValidatorIssue = DataTypeIssue & {
|
|
24
|
+
plugin?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A text made safe for a line any client may show or log: control characters (C0, C1), the line
|
|
28
|
+
* and paragraph separators and the hidden and direction characters are dropped by a character
|
|
29
|
+
* loop, and the text is cut at `max` code points with "..." after it. The input is cut to a bound
|
|
30
|
+
* before the loop, so a long run of dropped characters costs no more than a short one; a text the
|
|
31
|
+
* bound cut always ends in "...", and never in half of a surrogate pair.
|
|
32
|
+
*/
|
|
33
|
+
export declare function cleanIssueText(value: string, max: number): string;
|
|
34
|
+
/** Whether a param name is 1 to DATA_TYPE_ISSUE_PARAM_NAME_MAX ASCII letters, digits and `_`. */
|
|
35
|
+
export declare function isDataTypeIssueParamName(name: string): boolean;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isControlOrHiddenCharCode } from "./plugin-cli-commands.js";
|
|
2
|
+
// M33 K46: what a data type's `validate` hook returns, one type for the SDK, the content service,
|
|
3
|
+
// the server and the admin (it had three hand-written copies before). A configured rule and a
|
|
4
|
+
// built-in editor report a `key` from the admin's own strings. A plugin reports a `key` from its own
|
|
5
|
+
// `locales/` with its English `message` beside it, or a `message` alone. `path` names a part of a
|
|
6
|
+
// composite value. The core, never the hook, sets `plugin` on a plugin's issue
|
|
7
|
+
// (DataTypeValidatorIssue): the namespace its key is read in.
|
|
8
|
+
/** At most this many params on a plugin's keyed issue; an issue with more keeps none. */
|
|
9
|
+
export const DATA_TYPE_ISSUE_PARAMS_MAX = 8;
|
|
10
|
+
/** A plugin's `message` is cut here, in code points, with "..." after it. */
|
|
11
|
+
export const DATA_TYPE_ISSUE_MESSAGE_MAX = 300;
|
|
12
|
+
/** A filled param value is cut here, in code points, with "..." after it (the API's rule since M32 I5). */
|
|
13
|
+
export const DATA_TYPE_ISSUE_PARAM_TEXT_MAX = 80;
|
|
14
|
+
/** A plugin issue's `path` longer than this many UTF-16 units is dropped (the issue is kept). */
|
|
15
|
+
export const DATA_TYPE_ISSUE_PATH_MAX = 200;
|
|
16
|
+
/** At most this many issues from one plugin hook call are passed on; the rest are dropped. */
|
|
17
|
+
export const DATA_TYPE_ISSUES_MAX = 20;
|
|
18
|
+
/** A param name is 1 to this many ASCII letters, digits and `_`. */
|
|
19
|
+
export const DATA_TYPE_ISSUE_PARAM_NAME_MAX = 64;
|
|
20
|
+
/**
|
|
21
|
+
* A text made safe for a line any client may show or log: control characters (C0, C1), the line
|
|
22
|
+
* and paragraph separators and the hidden and direction characters are dropped by a character
|
|
23
|
+
* loop, and the text is cut at `max` code points with "..." after it. The input is cut to a bound
|
|
24
|
+
* before the loop, so a long run of dropped characters costs no more than a short one; a text the
|
|
25
|
+
* bound cut always ends in "...", and never in half of a surrogate pair.
|
|
26
|
+
*/
|
|
27
|
+
export function cleanIssueText(value, max) {
|
|
28
|
+
const cut = value.length > max * 8;
|
|
29
|
+
let bounded = cut ? value.slice(0, max * 8) : value;
|
|
30
|
+
// A cut inside a surrogate pair would keep its lone first half.
|
|
31
|
+
if (cut) {
|
|
32
|
+
const last = bounded.charCodeAt(bounded.length - 1);
|
|
33
|
+
if (last >= 0xd800 && last <= 0xdbff)
|
|
34
|
+
bounded = bounded.slice(0, -1);
|
|
35
|
+
}
|
|
36
|
+
let out = "";
|
|
37
|
+
let kept = 0;
|
|
38
|
+
for (const ch of bounded) {
|
|
39
|
+
const code = ch.codePointAt(0);
|
|
40
|
+
if (isControlOrHiddenCharCode(code) || code === 0x2028 || code === 0x2029)
|
|
41
|
+
continue;
|
|
42
|
+
if (kept === max)
|
|
43
|
+
return `${out}...`;
|
|
44
|
+
out += ch;
|
|
45
|
+
kept += 1;
|
|
46
|
+
}
|
|
47
|
+
return cut ? `${out}...` : out;
|
|
48
|
+
}
|
|
49
|
+
/** Whether a param name is 1 to DATA_TYPE_ISSUE_PARAM_NAME_MAX ASCII letters, digits and `_`. */
|
|
50
|
+
export function isDataTypeIssueParamName(name) {
|
|
51
|
+
if (name.length === 0 || name.length > DATA_TYPE_ISSUE_PARAM_NAME_MAX)
|
|
52
|
+
return false;
|
|
53
|
+
for (let i = 0; i < name.length; i++) {
|
|
54
|
+
const code = name.charCodeAt(i);
|
|
55
|
+
const ok = (code >= 48 && code <= 57) || (code >= 65 && code <= 90) || (code >= 97 && code <= 122) || code === 95;
|
|
56
|
+
if (!ok)
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
@@ -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,25 @@ 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
|
+
version: z.ZodNumber;
|
|
241
385
|
}, z.core.$strict>, z.ZodObject<{
|
|
242
386
|
id: z.ZodString;
|
|
243
387
|
name: z.ZodString;
|
|
@@ -257,12 +401,16 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
257
401
|
}, z.core.$strict>>;
|
|
258
402
|
tabId: z.ZodOptional<z.ZodString>;
|
|
259
403
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
help: z.ZodOptional<z.ZodString>;
|
|
405
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
260
406
|
}, z.core.$strict>>;
|
|
261
407
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
262
408
|
id: z.ZodString;
|
|
263
409
|
name: z.ZodString;
|
|
264
410
|
}, z.core.$strict>>>;
|
|
411
|
+
help: z.ZodOptional<z.ZodString>;
|
|
265
412
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
413
|
+
version: z.ZodNumber;
|
|
266
414
|
}, z.core.$strict>, z.ZodObject<{
|
|
267
415
|
id: z.ZodString;
|
|
268
416
|
name: z.ZodString;
|
|
@@ -282,14 +430,18 @@ export declare const DocumentTypeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
282
430
|
}, z.core.$strict>>;
|
|
283
431
|
tabId: z.ZodOptional<z.ZodString>;
|
|
284
432
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
help: z.ZodOptional<z.ZodString>;
|
|
434
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
285
435
|
}, z.core.$strict>>;
|
|
286
436
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
287
437
|
id: z.ZodString;
|
|
288
438
|
name: z.ZodString;
|
|
289
439
|
}, z.core.$strict>>>;
|
|
440
|
+
help: z.ZodOptional<z.ZodString>;
|
|
290
441
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
291
442
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
292
443
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
444
|
+
version: z.ZodNumber;
|
|
293
445
|
}, z.core.$strict>], "kind">;
|
|
294
446
|
export type DocumentTypeListItem = z.infer<typeof DocumentTypeListItemSchema>;
|
|
295
447
|
export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
@@ -312,20 +464,25 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
312
464
|
}, z.core.$strict>>;
|
|
313
465
|
tabId: z.ZodOptional<z.ZodString>;
|
|
314
466
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
+
help: z.ZodOptional<z.ZodString>;
|
|
468
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
315
469
|
}, z.core.$strict>>;
|
|
316
470
|
treeRules: z.ZodObject<{
|
|
317
471
|
allowedAtRoot: z.ZodBoolean;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}, z.core.$
|
|
472
|
+
allowedParents: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
473
|
+
allowedChildren: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.ZodString>]>;
|
|
474
|
+
}, z.core.$strict>;
|
|
321
475
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
322
476
|
id: z.ZodString;
|
|
323
477
|
name: z.ZodString;
|
|
324
478
|
}, z.core.$strict>>>;
|
|
479
|
+
help: z.ZodOptional<z.ZodString>;
|
|
325
480
|
defaultTemplateId: z.ZodOptional<z.ZodString>;
|
|
326
481
|
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
327
482
|
collection: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
retiredPrivateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
484
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
485
|
+
version: z.ZodNumber;
|
|
329
486
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
487
|
id: z.ZodString;
|
|
331
488
|
name: z.ZodString;
|
|
@@ -345,12 +502,16 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
345
502
|
}, z.core.$strict>>;
|
|
346
503
|
tabId: z.ZodOptional<z.ZodString>;
|
|
347
504
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
help: z.ZodOptional<z.ZodString>;
|
|
506
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
348
507
|
}, z.core.$strict>>;
|
|
349
508
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
350
509
|
id: z.ZodString;
|
|
351
510
|
name: z.ZodString;
|
|
352
511
|
}, z.core.$strict>>>;
|
|
512
|
+
help: z.ZodOptional<z.ZodString>;
|
|
353
513
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
514
|
+
version: z.ZodNumber;
|
|
354
515
|
}, z.core.$strict>, z.ZodObject<{
|
|
355
516
|
id: z.ZodString;
|
|
356
517
|
name: z.ZodString;
|
|
@@ -370,14 +531,18 @@ export declare const DocumentTypeListResponseSchema: z.ZodObject<{
|
|
|
370
531
|
}, z.core.$strict>>;
|
|
371
532
|
tabId: z.ZodOptional<z.ZodString>;
|
|
372
533
|
varies: z.ZodOptional<z.ZodBoolean>;
|
|
534
|
+
help: z.ZodOptional<z.ZodString>;
|
|
535
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
373
536
|
}, z.core.$strict>>;
|
|
374
537
|
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
375
538
|
id: z.ZodString;
|
|
376
539
|
name: z.ZodString;
|
|
377
540
|
}, z.core.$strict>>>;
|
|
541
|
+
help: z.ZodOptional<z.ZodString>;
|
|
378
542
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
379
543
|
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
380
544
|
ownedBy: z.ZodNullable<z.ZodString>;
|
|
545
|
+
version: z.ZodNumber;
|
|
381
546
|
}, z.core.$strict>], "kind">>;
|
|
382
547
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
383
548
|
}, z.core.$strip>;
|