@kardalum/plugin-sdk 0.0.0-stage → 0.16.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 +118 -0
- package/LICENSE +202 -0
- package/README.md +80 -2
- package/dist/admin-section-registry.d.ts +34 -0
- package/dist/admin-section-registry.js +49 -0
- package/dist/built-in-serializers.d.ts +3 -0
- package/dist/built-in-serializers.js +18 -0
- package/dist/built-in-settings-schemas.d.ts +14 -0
- package/dist/built-in-settings-schemas.js +225 -0
- package/dist/built-in-value-schemas.d.ts +4 -0
- package/dist/built-in-value-schemas.js +47 -0
- package/dist/built-ins.d.ts +1 -0
- package/dist/built-ins.js +257 -0
- package/dist/capabilities.d.ts +29 -0
- package/dist/capabilities.js +67 -0
- package/dist/data-type-plugin.d.ts +28 -0
- package/dist/data-type-plugin.js +1 -0
- package/dist/datatype-validation.d.ts +26 -0
- package/dist/datatype-validation.js +110 -0
- package/dist/datatypes-entry.d.ts +4 -0
- package/dist/datatypes-entry.js +18 -0
- package/dist/define-plugin.d.ts +25 -0
- package/dist/define-plugin.js +51 -0
- package/dist/entitlement-entry.d.ts +5 -0
- package/dist/entitlement-entry.js +24 -0
- package/dist/entitlement-gate.d.ts +36 -0
- package/dist/entitlement-gate.js +201 -0
- package/dist/entitlement-types.d.ts +39 -0
- package/dist/entitlement-types.js +1 -0
- package/dist/entitlement.d.ts +57 -0
- package/dist/entitlement.js +170 -0
- package/dist/host-entry.d.ts +1 -0
- package/dist/host-entry.js +11 -0
- package/dist/icon-name.d.ts +1 -0
- package/dist/icon-name.js +1 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +10 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +94 -0
- package/dist/license-verdict-keys.d.ts +18 -0
- package/dist/license-verdict-keys.js +26 -0
- package/dist/local-host.d.ts +3 -0
- package/dist/local-host.js +38 -0
- package/dist/manifest-entry.d.ts +8 -0
- package/dist/manifest-entry.js +13 -0
- package/dist/manifest-schema.d.ts +476 -0
- package/dist/manifest-schema.js +823 -0
- package/dist/manifest.d.ts +611 -0
- package/dist/manifest.js +86 -0
- package/dist/media/media-picker.d.ts +39 -0
- package/dist/media/media-picker.js +447 -0
- package/dist/media/upload-error.d.ts +12 -0
- package/dist/media/upload-error.js +30 -0
- package/dist/plugin-context.d.ts +82 -0
- package/dist/plugin-context.js +77 -0
- package/dist/plugin-screen-context.d.ts +71 -0
- package/dist/plugin-screen-context.js +41 -0
- package/dist/read-all-pages.d.ts +23 -0
- package/dist/read-all-pages.js +30 -0
- package/dist/register-built-ins.d.ts +1 -0
- package/dist/register-built-ins.js +41 -0
- package/dist/registry.d.ts +4 -0
- package/dist/registry.js +17 -0
- package/dist/rendition-eligibility.d.ts +24 -0
- package/dist/rendition-eligibility.js +40 -0
- package/dist/richtext/block-panel.d.ts +27 -0
- package/dist/richtext/block-panel.js +232 -0
- package/dist/richtext/extensions.d.ts +19 -0
- package/dist/richtext/extensions.js +56 -0
- package/dist/richtext/insert-menu.d.ts +24 -0
- package/dist/richtext/insert-menu.js +142 -0
- package/dist/richtext/kardalum-block.d.ts +33 -0
- package/dist/richtext/kardalum-block.js +282 -0
- package/dist/richtext/style-listbox.d.ts +10 -0
- package/dist/richtext/style-listbox.js +69 -0
- package/dist/richtext/text-style-class.d.ts +18 -0
- package/dist/richtext/text-style-class.js +36 -0
- package/dist/simple-storage-value-provider.d.ts +9 -0
- package/dist/simple-storage-value-provider.js +96 -0
- package/dist/structured-storage-types.d.ts +61 -0
- package/dist/structured-storage-types.js +11 -0
- package/dist/tailwind.d.ts +1 -0
- package/dist/tailwind.js +5 -0
- package/dist/tokens/system-dark.css +75 -0
- package/dist/tokens/tokens.css +239 -0
- package/dist/tokens/tokens.json +212 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.js +11 -0
- package/dist/ui-entry.d.ts +5 -0
- package/dist/ui-entry.js +42 -0
- package/dist/views/content-list-preview.d.ts +1 -0
- package/dist/views/content-list-preview.js +14 -0
- package/dist/views/content-list-settings-view.d.ts +1 -0
- package/dist/views/content-list-settings-view.js +97 -0
- package/dist/views/content-list-view.d.ts +19 -0
- package/dist/views/content-list-view.js +248 -0
- package/dist/views/crop-view.d.ts +55 -0
- package/dist/views/crop-view.js +161 -0
- package/dist/views/date-range-view.d.ts +6 -0
- package/dist/views/date-range-view.js +55 -0
- package/dist/views/file-upload-view.d.ts +43 -0
- package/dist/views/file-upload-view.js +104 -0
- package/dist/views/html-code-editor.d.ts +10 -0
- package/dist/views/html-code-editor.js +101 -0
- package/dist/views/html-view.d.ts +3 -0
- package/dist/views/html-view.js +53 -0
- package/dist/views/image-view.d.ts +3 -0
- package/dist/views/image-view.js +372 -0
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +429 -0
- package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
- package/node_modules/@kardalum/api-schemas/README.md +56 -0
- package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
- package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +25 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +93 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +88 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +542 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +357 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +260 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +152 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
- package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +352 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +133 -0
- package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +298 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
- package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +113 -0
- package/node_modules/@kardalum/api-schemas/dist/index.js +64 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +73 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +104 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +682 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +269 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +177 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +222 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
- package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
- package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
- package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +249 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +84 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +172 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +196 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +69 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +59 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +585 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +536 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +391 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +413 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +29 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +100 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +162 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +314 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +338 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +96 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +75 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +79 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +138 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +105 -0
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +47 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +97 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +73 -0
- package/node_modules/@kardalum/api-schemas/package.json +35 -0
- package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
- package/node_modules/@kardalum/design-tokens/README.md +29 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
- package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
- package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
- package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
- package/node_modules/@kardalum/design-tokens/package.json +42 -0
- package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
- package/node_modules/@kardalum/plugin-package/README.md +71 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +111 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +61 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +103 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +351 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
- package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
- package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -0
- package/node_modules/@kardalum/plugin-package/dist/index.js +8 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +6 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +20 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +57 -0
- package/node_modules/@kardalum/plugin-package/dist/types.d.ts +43 -0
- package/node_modules/@kardalum/plugin-package/dist/types.js +15 -0
- package/node_modules/@kardalum/plugin-package/package.json +54 -0
- package/node_modules/@kardalum/ui/LICENSE +202 -0
- package/node_modules/@kardalum/ui/README.md +35 -0
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
- package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
- package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
- package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
- package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
- package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
- package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
- package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
- package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
- package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
- package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
- package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
- package/node_modules/@kardalum/ui/dist/components/property-field.js +89 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
- package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
- package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
- package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
- package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
- package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
- package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
- package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
- package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/index.js +18 -0
- package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
- package/node_modules/@kardalum/ui/package.json +63 -0
- package/package.json +146 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiErrorSchema } from "./api-error.schema.js";
|
|
3
|
+
import { RoleIdSchema } from "./role.schema.js";
|
|
4
|
+
export const LoginRequestSchema = z.object({
|
|
5
|
+
email: z.string().email(),
|
|
6
|
+
password: z.string().min(1),
|
|
7
|
+
});
|
|
8
|
+
const AuthUserSchema = z.object({
|
|
9
|
+
id: z.string().uuid(),
|
|
10
|
+
email: z.string().email(),
|
|
11
|
+
name: z.string().nullable(),
|
|
12
|
+
role: RoleIdSchema,
|
|
13
|
+
/** The role's display label at login or refresh, for the user menu
|
|
14
|
+
* badge. A snapshot like `actions`. */
|
|
15
|
+
roleLabel: z.string(),
|
|
16
|
+
/** Every action this user's roles grant, resolved at login or refresh
|
|
17
|
+
* (S271). A snapshot: it is no fresher than the access token it rides
|
|
18
|
+
* with, and the server re-resolves on every request, so a stale list
|
|
19
|
+
* at worst shows a control the server then refuses. */
|
|
20
|
+
actions: z.array(z.string()),
|
|
21
|
+
});
|
|
22
|
+
// The refresh token itself never appears in a request/response body — it
|
|
23
|
+
// travels only as an httpOnly cookie (see routes/auth.ts), so the JS client
|
|
24
|
+
// can never read it, and a page reload doesn't lose it.
|
|
25
|
+
export const LoginResponseSchema = z.object({
|
|
26
|
+
accessToken: z.string(),
|
|
27
|
+
user: AuthUserSchema,
|
|
28
|
+
});
|
|
29
|
+
export const RefreshResponseSchema = z.object({
|
|
30
|
+
accessToken: z.string(),
|
|
31
|
+
user: AuthUserSchema,
|
|
32
|
+
});
|
|
33
|
+
export const LogoutResponseSchema = z.object({
|
|
34
|
+
success: z.literal(true),
|
|
35
|
+
});
|
|
36
|
+
// Kept as a named export for existing imports; the shape itself lives once
|
|
37
|
+
// in api-error.schema.ts.
|
|
38
|
+
export const AuthErrorSchema = ApiErrorSchema;
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CultureSchema: z.ZodString;
|
|
3
|
+
export declare const CreateContentRequestSchema: z.ZodObject<{
|
|
4
|
+
documentTypeId: z.ZodString;
|
|
5
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
6
|
+
path: z.ZodOptional<z.ZodString>;
|
|
7
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
9
|
+
sortOrder: z.ZodNumber;
|
|
10
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type CreateContentRequest = z.infer<typeof CreateContentRequestSchema>;
|
|
13
|
+
export declare const ContentItemResponseSchema: z.ZodObject<{
|
|
14
|
+
node: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
path: z.ZodString;
|
|
18
|
+
depth: z.ZodNumber;
|
|
19
|
+
sortOrder: z.ZodNumber;
|
|
20
|
+
documentTypeId: z.ZodString;
|
|
21
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
url: z.ZodNullable<z.ZodString>;
|
|
24
|
+
version: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
contentId: z.ZodString;
|
|
27
|
+
version: z.ZodNumber;
|
|
28
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
cultureData: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
30
|
+
createdAt: z.ZodString;
|
|
31
|
+
createdBy: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
culture: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
culture: z.ZodString;
|
|
35
|
+
currentVersion: z.ZodNumber;
|
|
36
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
access: z.ZodObject<{
|
|
39
|
+
read: z.ZodBoolean;
|
|
40
|
+
create: z.ZodBoolean;
|
|
41
|
+
update: z.ZodBoolean;
|
|
42
|
+
publish: z.ZodBoolean;
|
|
43
|
+
delete: z.ZodBoolean;
|
|
44
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
45
|
+
"content.read": "content.read";
|
|
46
|
+
"content.create": "content.create";
|
|
47
|
+
"content.update": "content.update";
|
|
48
|
+
"content.publish": "content.publish";
|
|
49
|
+
"content.delete": "content.delete";
|
|
50
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
51
|
+
reason: z.ZodEnum<{
|
|
52
|
+
"role-lacks-action": "role-lacks-action";
|
|
53
|
+
"not-granted": "not-granted";
|
|
54
|
+
}>;
|
|
55
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
56
|
+
nodeId: z.ZodString;
|
|
57
|
+
path: z.ZodNullable<z.ZodString>;
|
|
58
|
+
name: z.ZodNullable<z.ZodString>;
|
|
59
|
+
mode: z.ZodEnum<{
|
|
60
|
+
restricted: "restricted";
|
|
61
|
+
open: "open";
|
|
62
|
+
}>;
|
|
63
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
64
|
+
subjectKind: z.ZodEnum<{
|
|
65
|
+
role: "role";
|
|
66
|
+
user: "user";
|
|
67
|
+
}>;
|
|
68
|
+
subjectId: z.ZodString;
|
|
69
|
+
label: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
|
|
76
|
+
export declare const ContentByPathQuerySchema: z.ZodObject<{
|
|
77
|
+
path: z.ZodString;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type ContentByPathQuery = z.infer<typeof ContentByPathQuerySchema>;
|
|
80
|
+
export declare const ContentByPathResponseSchema: z.ZodObject<{
|
|
81
|
+
node: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
84
|
+
path: z.ZodString;
|
|
85
|
+
depth: z.ZodNumber;
|
|
86
|
+
sortOrder: z.ZodNumber;
|
|
87
|
+
documentTypeId: z.ZodString;
|
|
88
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
access: z.ZodObject<{
|
|
91
|
+
read: z.ZodBoolean;
|
|
92
|
+
create: z.ZodBoolean;
|
|
93
|
+
update: z.ZodBoolean;
|
|
94
|
+
publish: z.ZodBoolean;
|
|
95
|
+
delete: z.ZodBoolean;
|
|
96
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
97
|
+
"content.read": "content.read";
|
|
98
|
+
"content.create": "content.create";
|
|
99
|
+
"content.update": "content.update";
|
|
100
|
+
"content.publish": "content.publish";
|
|
101
|
+
"content.delete": "content.delete";
|
|
102
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
103
|
+
reason: z.ZodEnum<{
|
|
104
|
+
"role-lacks-action": "role-lacks-action";
|
|
105
|
+
"not-granted": "not-granted";
|
|
106
|
+
}>;
|
|
107
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
108
|
+
nodeId: z.ZodString;
|
|
109
|
+
path: z.ZodNullable<z.ZodString>;
|
|
110
|
+
name: z.ZodNullable<z.ZodString>;
|
|
111
|
+
mode: z.ZodEnum<{
|
|
112
|
+
restricted: "restricted";
|
|
113
|
+
open: "open";
|
|
114
|
+
}>;
|
|
115
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
116
|
+
subjectKind: z.ZodEnum<{
|
|
117
|
+
role: "role";
|
|
118
|
+
user: "user";
|
|
119
|
+
}>;
|
|
120
|
+
subjectId: z.ZodString;
|
|
121
|
+
label: z.ZodNullable<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type ContentByPathResponse = z.infer<typeof ContentByPathResponseSchema>;
|
|
128
|
+
export declare const ContentByAddressQuerySchema: z.ZodObject<{
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
host: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export type ContentByAddressQuery = z.infer<typeof ContentByAddressQuerySchema>;
|
|
133
|
+
export declare const ContentByAddressResponseSchema: z.ZodObject<{
|
|
134
|
+
node: z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
137
|
+
path: z.ZodString;
|
|
138
|
+
depth: z.ZodNumber;
|
|
139
|
+
sortOrder: z.ZodNumber;
|
|
140
|
+
documentTypeId: z.ZodString;
|
|
141
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
access: z.ZodObject<{
|
|
144
|
+
read: z.ZodBoolean;
|
|
145
|
+
create: z.ZodBoolean;
|
|
146
|
+
update: z.ZodBoolean;
|
|
147
|
+
publish: z.ZodBoolean;
|
|
148
|
+
delete: z.ZodBoolean;
|
|
149
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
150
|
+
"content.read": "content.read";
|
|
151
|
+
"content.create": "content.create";
|
|
152
|
+
"content.update": "content.update";
|
|
153
|
+
"content.publish": "content.publish";
|
|
154
|
+
"content.delete": "content.delete";
|
|
155
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
156
|
+
reason: z.ZodEnum<{
|
|
157
|
+
"role-lacks-action": "role-lacks-action";
|
|
158
|
+
"not-granted": "not-granted";
|
|
159
|
+
}>;
|
|
160
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
161
|
+
nodeId: z.ZodString;
|
|
162
|
+
path: z.ZodNullable<z.ZodString>;
|
|
163
|
+
name: z.ZodNullable<z.ZodString>;
|
|
164
|
+
mode: z.ZodEnum<{
|
|
165
|
+
restricted: "restricted";
|
|
166
|
+
open: "open";
|
|
167
|
+
}>;
|
|
168
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
169
|
+
subjectKind: z.ZodEnum<{
|
|
170
|
+
role: "role";
|
|
171
|
+
user: "user";
|
|
172
|
+
}>;
|
|
173
|
+
subjectId: z.ZodString;
|
|
174
|
+
label: z.ZodNullable<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export type ContentByAddressResponse = ContentByPathResponse;
|
|
181
|
+
export declare const SaveContentRequestSchema: z.ZodObject<{
|
|
182
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
183
|
+
culture: z.ZodOptional<z.ZodString>;
|
|
184
|
+
baseVersion: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type SaveContentRequest = z.infer<typeof SaveContentRequestSchema>;
|
|
187
|
+
export declare const SaveContentResponseSchema: z.ZodObject<{
|
|
188
|
+
version: z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
contentId: z.ZodString;
|
|
191
|
+
version: z.ZodNumber;
|
|
192
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
193
|
+
cultureData: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
194
|
+
createdAt: z.ZodString;
|
|
195
|
+
createdBy: z.ZodString;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
node: z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
200
|
+
path: z.ZodString;
|
|
201
|
+
depth: z.ZodNumber;
|
|
202
|
+
sortOrder: z.ZodNumber;
|
|
203
|
+
documentTypeId: z.ZodString;
|
|
204
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
url: z.ZodNullable<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type SaveContentResponse = z.infer<typeof SaveContentResponseSchema>;
|
|
209
|
+
export declare const LatestVersionQuerySchema: z.ZodObject<{
|
|
210
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type LatestVersionQuery = z.infer<typeof LatestVersionQuerySchema>;
|
|
213
|
+
export declare const VersionQuerySchema: z.ZodObject<{
|
|
214
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export type VersionQuery = z.infer<typeof VersionQuerySchema>;
|
|
217
|
+
export declare const LatestVersionResponseSchema: z.ZodObject<{
|
|
218
|
+
version: z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
contentId: z.ZodString;
|
|
221
|
+
version: z.ZodNumber;
|
|
222
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
223
|
+
cultureData: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
224
|
+
createdAt: z.ZodString;
|
|
225
|
+
createdBy: z.ZodString;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
fellBack: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
export type LatestVersionResponse = z.infer<typeof LatestVersionResponseSchema>;
|
|
230
|
+
export declare const ContentVersionMetaSchema: z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
createdAt: z.ZodString;
|
|
233
|
+
version: z.ZodNumber;
|
|
234
|
+
contentId: z.ZodString;
|
|
235
|
+
cultureData: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
236
|
+
createdBy: z.ZodString;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export type ContentVersionMeta = z.infer<typeof ContentVersionMetaSchema>;
|
|
239
|
+
export declare const VersionListQuerySchema: z.ZodObject<{
|
|
240
|
+
cursor: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
241
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
export type VersionListQuery = z.infer<typeof VersionListQuerySchema>;
|
|
244
|
+
export declare const VersionListResponseSchema: z.ZodObject<{
|
|
245
|
+
items: z.ZodArray<z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
createdAt: z.ZodString;
|
|
248
|
+
version: z.ZodNumber;
|
|
249
|
+
contentId: z.ZodString;
|
|
250
|
+
cultureData: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
251
|
+
createdBy: z.ZodString;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
nextCursor: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type VersionListResponse = z.infer<typeof VersionListResponseSchema>;
|
|
256
|
+
export declare const PublishContentRequestSchema: z.ZodObject<{
|
|
257
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
culture: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export type PublishContentRequest = z.infer<typeof PublishContentRequestSchema>;
|
|
261
|
+
export declare const PublishAllRequestSchema: z.ZodObject<{
|
|
262
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export type PublishAllRequest = z.infer<typeof PublishAllRequestSchema>;
|
|
265
|
+
export declare const PublishContentResponseSchema: z.ZodObject<{
|
|
266
|
+
node: z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
269
|
+
path: z.ZodString;
|
|
270
|
+
depth: z.ZodNumber;
|
|
271
|
+
sortOrder: z.ZodNumber;
|
|
272
|
+
documentTypeId: z.ZodString;
|
|
273
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
url: z.ZodNullable<z.ZodString>;
|
|
276
|
+
culture: z.ZodObject<{
|
|
277
|
+
culture: z.ZodString;
|
|
278
|
+
currentVersion: z.ZodNumber;
|
|
279
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
export type PublishContentResponse = z.infer<typeof PublishContentResponseSchema>;
|
|
283
|
+
export declare const PublishAllResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
284
|
+
culture: z.ZodString;
|
|
285
|
+
status: z.ZodLiteral<"published">;
|
|
286
|
+
version: z.ZodNumber;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
culture: z.ZodString;
|
|
289
|
+
status: z.ZodLiteral<"incomplete">;
|
|
290
|
+
fieldIds: z.ZodArray<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>], "status">;
|
|
292
|
+
export type PublishAllResult = z.infer<typeof PublishAllResultSchema>;
|
|
293
|
+
export declare const PublishAllResponseSchema: z.ZodObject<{
|
|
294
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
295
|
+
culture: z.ZodString;
|
|
296
|
+
status: z.ZodLiteral<"published">;
|
|
297
|
+
version: z.ZodNumber;
|
|
298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
299
|
+
culture: z.ZodString;
|
|
300
|
+
status: z.ZodLiteral<"incomplete">;
|
|
301
|
+
fieldIds: z.ZodArray<z.ZodString>;
|
|
302
|
+
}, z.core.$strip>], "status">>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
export type PublishAllResponse = z.infer<typeof PublishAllResponseSchema>;
|
|
305
|
+
export declare const PreviewTokenResponseSchema: z.ZodObject<{
|
|
306
|
+
token: z.ZodString;
|
|
307
|
+
expiresAt: z.ZodString;
|
|
308
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
export type PreviewTokenResponse = z.infer<typeof PreviewTokenResponseSchema>;
|
|
311
|
+
export declare const ContentUrlImpactResponseSchema: z.ZodObject<{
|
|
312
|
+
publishedCount: z.ZodNumber;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
export type ContentUrlImpactResponse = z.infer<typeof ContentUrlImpactResponseSchema>;
|
|
315
|
+
export declare const ContentItemQuerySchema: z.ZodObject<{
|
|
316
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
export type ContentItemQuery = z.infer<typeof ContentItemQuerySchema>;
|
|
319
|
+
export declare const ContentChildrenQuerySchema: z.ZodObject<{
|
|
320
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
321
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
export type ContentChildrenQuery = z.infer<typeof ContentChildrenQuerySchema>;
|
|
324
|
+
export declare const ContentNodeWithNameSchema: z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
327
|
+
path: z.ZodString;
|
|
328
|
+
depth: z.ZodNumber;
|
|
329
|
+
sortOrder: z.ZodNumber;
|
|
330
|
+
documentTypeId: z.ZodString;
|
|
331
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
332
|
+
name: z.ZodOptional<z.ZodString>;
|
|
333
|
+
culturesBehind: z.ZodNumber;
|
|
334
|
+
defaultCulture: z.ZodNullable<z.ZodObject<{
|
|
335
|
+
culture: z.ZodString;
|
|
336
|
+
currentVersion: z.ZodNumber;
|
|
337
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
childCount: z.ZodNumber;
|
|
340
|
+
access: z.ZodObject<{
|
|
341
|
+
read: z.ZodBoolean;
|
|
342
|
+
create: z.ZodBoolean;
|
|
343
|
+
update: z.ZodBoolean;
|
|
344
|
+
publish: z.ZodBoolean;
|
|
345
|
+
delete: z.ZodBoolean;
|
|
346
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
347
|
+
"content.read": "content.read";
|
|
348
|
+
"content.create": "content.create";
|
|
349
|
+
"content.update": "content.update";
|
|
350
|
+
"content.publish": "content.publish";
|
|
351
|
+
"content.delete": "content.delete";
|
|
352
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
353
|
+
reason: z.ZodEnum<{
|
|
354
|
+
"role-lacks-action": "role-lacks-action";
|
|
355
|
+
"not-granted": "not-granted";
|
|
356
|
+
}>;
|
|
357
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
358
|
+
nodeId: z.ZodString;
|
|
359
|
+
path: z.ZodNullable<z.ZodString>;
|
|
360
|
+
name: z.ZodNullable<z.ZodString>;
|
|
361
|
+
mode: z.ZodEnum<{
|
|
362
|
+
restricted: "restricted";
|
|
363
|
+
open: "open";
|
|
364
|
+
}>;
|
|
365
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
366
|
+
subjectKind: z.ZodEnum<{
|
|
367
|
+
role: "role";
|
|
368
|
+
user: "user";
|
|
369
|
+
}>;
|
|
370
|
+
subjectId: z.ZodString;
|
|
371
|
+
label: z.ZodNullable<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
export type ContentNodeWithName = z.infer<typeof ContentNodeWithNameSchema>;
|
|
378
|
+
export declare const CopyContentRequestSchema: z.ZodObject<{
|
|
379
|
+
targetParentId: z.ZodNullable<z.ZodString>;
|
|
380
|
+
includeChildren: z.ZodDefault<z.ZodBoolean>;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
export type CopyContentRequest = z.infer<typeof CopyContentRequestSchema>;
|
|
383
|
+
export type CopyContentRequestInput = z.input<typeof CopyContentRequestSchema>;
|
|
384
|
+
export declare const MoveContentRequestSchema: z.ZodObject<{
|
|
385
|
+
targetParentId: z.ZodNullable<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
export type MoveContentRequest = z.infer<typeof MoveContentRequestSchema>;
|
|
388
|
+
export declare const MoveContentResponseSchema: z.ZodObject<{
|
|
389
|
+
node: z.ZodObject<{
|
|
390
|
+
id: z.ZodString;
|
|
391
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
392
|
+
path: z.ZodString;
|
|
393
|
+
depth: z.ZodNumber;
|
|
394
|
+
sortOrder: z.ZodNumber;
|
|
395
|
+
documentTypeId: z.ZodString;
|
|
396
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
access: z.ZodObject<{
|
|
399
|
+
read: z.ZodBoolean;
|
|
400
|
+
create: z.ZodBoolean;
|
|
401
|
+
update: z.ZodBoolean;
|
|
402
|
+
publish: z.ZodBoolean;
|
|
403
|
+
delete: z.ZodBoolean;
|
|
404
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
405
|
+
"content.read": "content.read";
|
|
406
|
+
"content.create": "content.create";
|
|
407
|
+
"content.update": "content.update";
|
|
408
|
+
"content.publish": "content.publish";
|
|
409
|
+
"content.delete": "content.delete";
|
|
410
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
411
|
+
reason: z.ZodEnum<{
|
|
412
|
+
"role-lacks-action": "role-lacks-action";
|
|
413
|
+
"not-granted": "not-granted";
|
|
414
|
+
}>;
|
|
415
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
416
|
+
nodeId: z.ZodString;
|
|
417
|
+
path: z.ZodNullable<z.ZodString>;
|
|
418
|
+
name: z.ZodNullable<z.ZodString>;
|
|
419
|
+
mode: z.ZodEnum<{
|
|
420
|
+
restricted: "restricted";
|
|
421
|
+
open: "open";
|
|
422
|
+
}>;
|
|
423
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
424
|
+
subjectKind: z.ZodEnum<{
|
|
425
|
+
role: "role";
|
|
426
|
+
user: "user";
|
|
427
|
+
}>;
|
|
428
|
+
subjectId: z.ZodString;
|
|
429
|
+
label: z.ZodNullable<z.ZodString>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
export type MoveContentResponse = z.infer<typeof MoveContentResponseSchema>;
|
|
436
|
+
export declare const ContentPathConflictSchema: z.ZodObject<{
|
|
437
|
+
message: z.ZodString;
|
|
438
|
+
path: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
export type ContentPathConflictResponse = z.infer<typeof ContentPathConflictSchema>;
|
|
441
|
+
export declare const ContentChildrenResponseSchema: z.ZodObject<{
|
|
442
|
+
items: z.ZodArray<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
445
|
+
path: z.ZodString;
|
|
446
|
+
depth: z.ZodNumber;
|
|
447
|
+
sortOrder: z.ZodNumber;
|
|
448
|
+
documentTypeId: z.ZodString;
|
|
449
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
450
|
+
name: z.ZodOptional<z.ZodString>;
|
|
451
|
+
culturesBehind: z.ZodNumber;
|
|
452
|
+
defaultCulture: z.ZodNullable<z.ZodObject<{
|
|
453
|
+
culture: z.ZodString;
|
|
454
|
+
currentVersion: z.ZodNumber;
|
|
455
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
childCount: z.ZodNumber;
|
|
458
|
+
access: z.ZodObject<{
|
|
459
|
+
read: z.ZodBoolean;
|
|
460
|
+
create: z.ZodBoolean;
|
|
461
|
+
update: z.ZodBoolean;
|
|
462
|
+
publish: z.ZodBoolean;
|
|
463
|
+
delete: z.ZodBoolean;
|
|
464
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
465
|
+
"content.read": "content.read";
|
|
466
|
+
"content.create": "content.create";
|
|
467
|
+
"content.update": "content.update";
|
|
468
|
+
"content.publish": "content.publish";
|
|
469
|
+
"content.delete": "content.delete";
|
|
470
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
471
|
+
reason: z.ZodEnum<{
|
|
472
|
+
"role-lacks-action": "role-lacks-action";
|
|
473
|
+
"not-granted": "not-granted";
|
|
474
|
+
}>;
|
|
475
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
476
|
+
nodeId: z.ZodString;
|
|
477
|
+
path: z.ZodNullable<z.ZodString>;
|
|
478
|
+
name: z.ZodNullable<z.ZodString>;
|
|
479
|
+
mode: z.ZodEnum<{
|
|
480
|
+
restricted: "restricted";
|
|
481
|
+
open: "open";
|
|
482
|
+
}>;
|
|
483
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
484
|
+
subjectKind: z.ZodEnum<{
|
|
485
|
+
role: "role";
|
|
486
|
+
user: "user";
|
|
487
|
+
}>;
|
|
488
|
+
subjectId: z.ZodString;
|
|
489
|
+
label: z.ZodNullable<z.ZodString>;
|
|
490
|
+
}, z.core.$strip>>;
|
|
491
|
+
}, z.core.$strip>>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
}, z.core.$strip>>;
|
|
495
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
export type ContentChildrenResponse = z.infer<typeof ContentChildrenResponseSchema>;
|
|
498
|
+
export declare const ReorderNodesRequestSchema: z.ZodObject<{
|
|
499
|
+
orderedIds: z.ZodArray<z.ZodString>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
export type ReorderNodesRequest = z.infer<typeof ReorderNodesRequestSchema>;
|
|
502
|
+
export declare const ReorderNodesResponseSchema: z.ZodObject<{
|
|
503
|
+
success: z.ZodLiteral<true>;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
export type ReorderNodesResponse = z.infer<typeof ReorderNodesResponseSchema>;
|
|
506
|
+
export declare const FieldValidationFailureSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
507
|
+
fieldId: z.ZodString;
|
|
508
|
+
key: z.ZodString;
|
|
509
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
510
|
+
path: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
fieldId: z.ZodString;
|
|
513
|
+
message: z.ZodString;
|
|
514
|
+
path: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>]>;
|
|
516
|
+
export type FieldValidationFailureResponse = z.infer<typeof FieldValidationFailureSchema>;
|
|
517
|
+
export declare const ContentValidationErrorSchema: z.ZodObject<{
|
|
518
|
+
message: z.ZodString;
|
|
519
|
+
fieldErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
520
|
+
fieldId: z.ZodString;
|
|
521
|
+
key: z.ZodString;
|
|
522
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
523
|
+
path: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
525
|
+
fieldId: z.ZodString;
|
|
526
|
+
message: z.ZodString;
|
|
527
|
+
path: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strip>]>>;
|
|
529
|
+
heldByPath: z.ZodOptional<z.ZodString>;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
export type ContentValidationErrorResponse = z.infer<typeof ContentValidationErrorSchema>;
|
|
532
|
+
export declare const CultureSettingsSchema: z.ZodObject<{
|
|
533
|
+
cultures: z.ZodArray<z.ZodString>;
|
|
534
|
+
defaultCulture: z.ZodString;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
export type CultureSettings = z.infer<typeof CultureSettingsSchema>;
|
|
537
|
+
export declare const TranslationIncompleteResponseSchema: z.ZodObject<{
|
|
538
|
+
message: z.ZodString;
|
|
539
|
+
culture: z.ZodString;
|
|
540
|
+
fieldIds: z.ZodArray<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
export type TranslationIncompleteResponse = z.infer<typeof TranslationIncompleteResponseSchema>;
|