@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,162 @@
|
|
|
1
|
+
// S295 (2026-10-14-s295-routes-fastify-knows-about-design.md 3.1): the rule for
|
|
2
|
+
// what a plugin may declare as an apiRoute's address, as plain data, so the
|
|
3
|
+
// SDK's manifest schema (and through it `kardalum plugin validate`), the
|
|
4
|
+
// marketplace's submission gate and the server's route table read one rule.
|
|
5
|
+
// The server routes plugin routes through find-my-way, Fastify's own router;
|
|
6
|
+
// this admits the part of its syntax a plugin needs (static segments and
|
|
7
|
+
// ":name" parameters) and refuses, within one manifest, what that router would
|
|
8
|
+
// read as one route or match by its own precedence.
|
|
9
|
+
/** The methods an apiRoute may declare: the one list the SDK's manifest schema
|
|
10
|
+
* enforces (and the manual's enum test reads, through the SDK's re-export)
|
|
11
|
+
* and the only methods this rule compares. */
|
|
12
|
+
export const API_ROUTE_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE"];
|
|
13
|
+
/** S297: a route's `schema.response` declares success statuses only, "200" to "299", at most this many. */
|
|
14
|
+
export const API_ROUTE_RESPONSE_STATUSES_MAX = 4;
|
|
15
|
+
/** True for a success status code written canonically as a string: "200" to "299". Linear, no pattern. */
|
|
16
|
+
export function isApiRouteResponseStatus(key) {
|
|
17
|
+
const status = Number(key);
|
|
18
|
+
return Number.isInteger(status) && status >= 200 && status <= 299 && String(status) === key;
|
|
19
|
+
}
|
|
20
|
+
/** The longest declared path, checked before the path is split. */
|
|
21
|
+
export const API_ROUTE_PATH_MAX = 200;
|
|
22
|
+
/** The most apiRoutes one manifest declares, which bounds the pairwise check. */
|
|
23
|
+
export const API_ROUTES_MAX = 200;
|
|
24
|
+
// A string of another length fails each of the five comparisons on its length
|
|
25
|
+
// alone, so a hostile method costs five length checks and nothing more.
|
|
26
|
+
const isApiRouteMethod = (value) => typeof value === "string" && API_ROUTE_METHODS.includes(value);
|
|
27
|
+
// Fixed, anchored, one character class each, so linear on any input. A
|
|
28
|
+
// parameter's name starts with a letter and holds no "-" or ".", which the
|
|
29
|
+
// router reads as the start of a static part inside a parameter segment.
|
|
30
|
+
const STATIC_SEGMENT = /^[A-Za-z0-9_-]+$/;
|
|
31
|
+
const PARAM_SEGMENT = /^:[A-Za-z][A-Za-z0-9_]*$/;
|
|
32
|
+
// The host's plugin storage route owns GET and PUT
|
|
33
|
+
// /api/plugins/:pluginId/storage/:contentId/:fieldId (the server's
|
|
34
|
+
// routes/plugin-storage.ts), and the router tries its static "storage" first.
|
|
35
|
+
const STORAGE_ROUTE_METHODS = new Set(["GET", "PUT"]);
|
|
36
|
+
/** Why `path` cannot be a declared apiRoute path, or null when it can be. */
|
|
37
|
+
export function apiRoutePathProblem(path) {
|
|
38
|
+
if (!path.startsWith("/"))
|
|
39
|
+
return 'path must start with "/"';
|
|
40
|
+
if (path.length > API_ROUTE_PATH_MAX)
|
|
41
|
+
return `path must be at most ${API_ROUTE_PATH_MAX} characters`;
|
|
42
|
+
if (path === "/")
|
|
43
|
+
return 'path must name at least one segment after "/"';
|
|
44
|
+
const names = new Set();
|
|
45
|
+
for (const segment of path.slice(1).split("/")) {
|
|
46
|
+
if (segment === "")
|
|
47
|
+
return `path "${path}" has an empty segment: one "/" between segments, and none at the end`;
|
|
48
|
+
if (PARAM_SEGMENT.test(segment)) {
|
|
49
|
+
const name = segment.slice(1);
|
|
50
|
+
if (names.has(name))
|
|
51
|
+
return `path "${path}" names the parameter ":${name}" twice`;
|
|
52
|
+
names.add(name);
|
|
53
|
+
}
|
|
54
|
+
else if (!STATIC_SEGMENT.test(segment)) {
|
|
55
|
+
return `path segment "${segment}" must be letters, digits, "-" and "_", or a parameter ":name" whose name is a letter followed by letters, digits or "_"`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const isParam = (segment) => segment.startsWith(":");
|
|
61
|
+
/** One request path reaches both: as many segments, and at every place the
|
|
62
|
+
* same static segment or a parameter on either side. A static segment over
|
|
63
|
+
* 100 characters beside a parameter counts too, although no request reaches
|
|
64
|
+
* both: the router matches a parameter of at most 100 characters (the limit
|
|
65
|
+
* the manual states), and this rule refuses the pair without modelling it. */
|
|
66
|
+
function overlaps(a, b) {
|
|
67
|
+
return a.length === b.length && a.every((x, at) => { const y = b[at]; return x === y || isParam(x) || isParam(y); });
|
|
68
|
+
}
|
|
69
|
+
/** The router reads the two as one route: the same, a parameter's name aside. */
|
|
70
|
+
function sameRoute(a, b) {
|
|
71
|
+
return a.length === b.length && a.every((x, at) => { const y = b[at]; return x === y || (isParam(x) && isParam(y)); });
|
|
72
|
+
}
|
|
73
|
+
/** A manifest's apiRoutes, checked as the router will read them, with every
|
|
74
|
+
* issue rooted at the manifest: each path by apiRoutePathProblem; then, among
|
|
75
|
+
* the declarations whose path passed, a GET or PUT the host's storage route
|
|
76
|
+
* answers first, and the first earlier declaration of the same method that
|
|
77
|
+
* the router reads as the same route (a duplicate, reported in preference)
|
|
78
|
+
* or that one request can match too (ambiguous). An entry whose method is
|
|
79
|
+
* not one of API_ROUTE_METHODS, or whose path is not a string, is the
|
|
80
|
+
* schema's to report and is skipped here: the marketplace door runs this on
|
|
81
|
+
* a manifest.json its own schema leaves unvalidated, and a method that is
|
|
82
|
+
* any string must cost no comparison and appear in no message. */
|
|
83
|
+
export function checkApiRouteDeclarations(manifest) {
|
|
84
|
+
const contributions = manifest.contributions;
|
|
85
|
+
if (!contributions || typeof contributions !== "object")
|
|
86
|
+
return [];
|
|
87
|
+
const routes = contributions.apiRoutes;
|
|
88
|
+
if (!Array.isArray(routes))
|
|
89
|
+
return [];
|
|
90
|
+
if (routes.length > API_ROUTES_MAX) {
|
|
91
|
+
return [{ path: ["contributions", "apiRoutes"], message: `a plugin declares at most ${API_ROUTES_MAX} apiRoutes` }];
|
|
92
|
+
}
|
|
93
|
+
const issues = [];
|
|
94
|
+
const declared = [];
|
|
95
|
+
routes.forEach((entry, index) => {
|
|
96
|
+
const { method, path } = (entry ?? {});
|
|
97
|
+
if (!isApiRouteMethod(method) || typeof path !== "string")
|
|
98
|
+
return;
|
|
99
|
+
const at = ["contributions", "apiRoutes", index, "path"];
|
|
100
|
+
const problem = apiRoutePathProblem(path);
|
|
101
|
+
if (problem !== null) {
|
|
102
|
+
issues.push({ path: at, message: problem });
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const segments = path.slice(1).split("/");
|
|
106
|
+
if (STORAGE_ROUTE_METHODS.has(method) && segments.length === 3 && segments[0] === "storage") {
|
|
107
|
+
issues.push({
|
|
108
|
+
path: at,
|
|
109
|
+
message: `apiRoute "${method} ${path}" has the address of the host's plugin storage route (${method} /api/plugins/<plugin id>/storage/<contentId>/<fieldId>), which answers it before this plugin's handler could`,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const sameMethod = declared.filter((other) => other.method === method);
|
|
113
|
+
const duplicate = sameMethod.find((other) => sameRoute(other.segments, segments));
|
|
114
|
+
const earlier = duplicate ?? sameMethod.find((other) => overlaps(other.segments, segments));
|
|
115
|
+
if (earlier) {
|
|
116
|
+
const named = `"${method} ${earlier.path}" (apiRoutes.${earlier.index})`;
|
|
117
|
+
issues.push({
|
|
118
|
+
path: at,
|
|
119
|
+
message: duplicate === undefined
|
|
120
|
+
? `Ambiguous apiRoute "${method} ${path}": a request can match both it and ${named}, so the router would choose which one answers, not this manifest`
|
|
121
|
+
: duplicate.path === path
|
|
122
|
+
? `Duplicate apiRoute "${method} ${path}": method+path pairs must be unique within a manifest`
|
|
123
|
+
: `Duplicate apiRoute "${method} ${path}": the router reads it as ${named}, because a parameter's name does not make two paths different`,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
declared.push({ index, method, path, segments });
|
|
127
|
+
});
|
|
128
|
+
return issues;
|
|
129
|
+
}
|
|
130
|
+
/** S299 (2026-10-15-s299-tokens-that-carry-actions-design.md D15): every apiRoute
|
|
131
|
+
* that needs a credential names the action its caller must hold: a session's
|
|
132
|
+
* role on the admin tier (the default, and the tier of any value this code does
|
|
133
|
+
* not recognise, as effectiveAccess reads it) and an API key on the "apiKey"
|
|
134
|
+
* tier. Only a "public" route, which needs no credential, may omit it. One
|
|
135
|
+
* function, so the SDK's manifest schema (and through it install, upload, the
|
|
136
|
+
* boot loader and `kardalum plugin validate`) and the marketplace door cannot
|
|
137
|
+
* disagree. An entry that is not an object is the schema's to report and is
|
|
138
|
+
* skipped; the pairwise comparison checkApiRouteDeclarations runs is not
|
|
139
|
+
* needed, so a manifest past API_ROUTES_MAX is that function's to report. */
|
|
140
|
+
export function checkApiRouteActions(manifest) {
|
|
141
|
+
const contributions = manifest.contributions;
|
|
142
|
+
if (!contributions || typeof contributions !== "object")
|
|
143
|
+
return [];
|
|
144
|
+
const routes = contributions.apiRoutes;
|
|
145
|
+
if (!Array.isArray(routes) || routes.length > API_ROUTES_MAX)
|
|
146
|
+
return [];
|
|
147
|
+
const issues = [];
|
|
148
|
+
routes.forEach((entry, index) => {
|
|
149
|
+
if (entry === null || typeof entry !== "object")
|
|
150
|
+
return;
|
|
151
|
+
const { access, action } = entry;
|
|
152
|
+
if (access === "public")
|
|
153
|
+
return;
|
|
154
|
+
if (typeof action === "string" && action !== "")
|
|
155
|
+
return;
|
|
156
|
+
issues.push({
|
|
157
|
+
path: ["contributions", "apiRoutes", index, "action"],
|
|
158
|
+
message: 'an admin-tier or apiKey-tier apiRoute must declare an "action" (only a "public" route may omit it)',
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
return issues;
|
|
162
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PluginSchema: z.ZodObject<{
|
|
3
|
+
pluginId: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
version: z.ZodString;
|
|
7
|
+
trustTier: z.ZodString;
|
|
8
|
+
storageType: z.ZodString;
|
|
9
|
+
enabled: z.ZodBoolean;
|
|
10
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type Plugin = z.infer<typeof PluginSchema>;
|
|
13
|
+
export declare const PluginListQuerySchema: z.ZodObject<{
|
|
14
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
15
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type PluginListQuery = z.infer<typeof PluginListQuerySchema>;
|
|
18
|
+
export declare const PluginListResponseSchema: z.ZodObject<{
|
|
19
|
+
items: z.ZodArray<z.ZodObject<{
|
|
20
|
+
pluginId: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
type: z.ZodString;
|
|
23
|
+
version: z.ZodString;
|
|
24
|
+
trustTier: z.ZodString;
|
|
25
|
+
storageType: z.ZodString;
|
|
26
|
+
enabled: z.ZodBoolean;
|
|
27
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type PluginListResponse = z.infer<typeof PluginListResponseSchema>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Read-side shape of a plugin_registry row — the ONLY consumer today is
|
|
3
|
+
// the admin's boot-time remote loader (kardalum dev, Session 79), but this
|
|
4
|
+
// is real, permanent infrastructure: any dynamically-installed plugin
|
|
5
|
+
// needs a way for the admin to discover it at boot, sandbox or not.
|
|
6
|
+
export const PluginSchema = z.object({
|
|
7
|
+
pluginId: z.string(),
|
|
8
|
+
name: z.string(),
|
|
9
|
+
type: z.string(),
|
|
10
|
+
version: z.string(),
|
|
11
|
+
trustTier: z.string(),
|
|
12
|
+
storageType: z.string(),
|
|
13
|
+
enabled: z.boolean(),
|
|
14
|
+
remoteUrl: z.string().nullable(),
|
|
15
|
+
});
|
|
16
|
+
// Cursor-paginated per the non-negotiable list-endpoint rule, mirroring
|
|
17
|
+
// DataTypeListResponseSchema's exact shape (data-type-api.schema.ts).
|
|
18
|
+
export const PluginListQuerySchema = z.object({
|
|
19
|
+
cursor: z.string().uuid().optional(),
|
|
20
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
21
|
+
});
|
|
22
|
+
export const PluginListResponseSchema = z.object({
|
|
23
|
+
items: z.array(PluginSchema),
|
|
24
|
+
nextCursor: z.string().uuid().nullable(),
|
|
25
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PluginStorageParamsSchema: z.ZodObject<{
|
|
3
|
+
pluginId: z.ZodString;
|
|
4
|
+
contentId: z.ZodString;
|
|
5
|
+
fieldId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type PluginStorageParams = z.infer<typeof PluginStorageParamsSchema>;
|
|
8
|
+
export declare const SetPluginFieldValueRequestSchema: z.ZodObject<{
|
|
9
|
+
value: z.ZodUnknown;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type SetPluginFieldValueRequest = z.infer<typeof SetPluginFieldValueRequestSchema>;
|
|
12
|
+
export declare const PluginFieldValueResponseSchema: z.ZodObject<{
|
|
13
|
+
value: z.ZodUnknown;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type PluginFieldValueResponse = z.infer<typeof PluginFieldValueResponseSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// SimpleStorageAPI's HTTP surface (Session 68) — the SimpleStorageAPI
|
|
3
|
+
// interface is get(contentId, fieldId) / set(contentId, fieldId, value),
|
|
4
|
+
// with pluginId made explicit here as a required 3rd param: this is the
|
|
5
|
+
// lower-level adapter/HTTP surface, not the plugin-facing SDK ergonomics
|
|
6
|
+
// (usePluginValue(), Session 70, resolves pluginId from React context and
|
|
7
|
+
// never asks a plugin author to pass it by hand).
|
|
8
|
+
// Matches FieldDefinition.id's shape (document-type.schema.ts) — same
|
|
9
|
+
// stable key, just scoped to one plugin's stored value for that field.
|
|
10
|
+
const FieldIdSchema = z.string().regex(/^[a-zA-Z][a-zA-Z0-9_]*$/);
|
|
11
|
+
// Deliberately NOT plugin-sdk's stricter reverse-DNS pluginIdSchema:
|
|
12
|
+
// plugin-sdk depends on api-schemas, not the reverse, so it can't be
|
|
13
|
+
// imported here without a cycle.
|
|
14
|
+
const PluginIdSchema = z.string().min(1);
|
|
15
|
+
export const PluginStorageParamsSchema = z.object({
|
|
16
|
+
pluginId: PluginIdSchema,
|
|
17
|
+
contentId: z.string().uuid(),
|
|
18
|
+
fieldId: FieldIdSchema,
|
|
19
|
+
});
|
|
20
|
+
// `value` is z.unknown(), not a record — SimpleStorageAPI's value is
|
|
21
|
+
// untyped by design; a plugin can store a string, number, array, or
|
|
22
|
+
// object, not only key-value maps.
|
|
23
|
+
export const SetPluginFieldValueRequestSchema = z.object({ value: z.unknown() }).strict();
|
|
24
|
+
export const PluginFieldValueResponseSchema = z.object({ value: z.unknown() });
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PublicContentExtensionsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3
|
+
export declare const PublicContentItemSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
documentTypeId: z.ZodString;
|
|
6
|
+
locale: z.ZodString;
|
|
7
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
version: z.ZodNumber;
|
|
9
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
url: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type PublicContentItem = z.infer<typeof PublicContentItemSchema>;
|
|
14
|
+
export declare const PublicContentItemQuerySchema: z.ZodObject<{
|
|
15
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
16
|
+
format: z.ZodOptional<z.ZodString>;
|
|
17
|
+
previewToken: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type PublicContentItemQuery = z.infer<typeof PublicContentItemQuerySchema>;
|
|
20
|
+
export declare const PublicContentFormatResponseSchema: z.ZodObject<{
|
|
21
|
+
format: z.ZodString;
|
|
22
|
+
content: z.ZodUnknown;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type PublicContentFormatResponse = z.infer<typeof PublicContentFormatResponseSchema>;
|
|
25
|
+
export declare const PublicContentByPathQuerySchema: z.ZodObject<{
|
|
26
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
27
|
+
format: z.ZodOptional<z.ZodString>;
|
|
28
|
+
previewToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
path: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type PublicContentByPathQuery = z.infer<typeof PublicContentByPathQuerySchema>;
|
|
32
|
+
export declare const PublicContentByAddressQuerySchema: z.ZodObject<{
|
|
33
|
+
path: z.ZodString;
|
|
34
|
+
host: z.ZodOptional<z.ZodString>;
|
|
35
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type PublicContentByAddressQuery = z.infer<typeof PublicContentByAddressQuerySchema>;
|
|
38
|
+
export declare const PublicContentByAddressResponseSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
documentTypeId: z.ZodString;
|
|
41
|
+
locale: z.ZodString;
|
|
42
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
43
|
+
version: z.ZodNumber;
|
|
44
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
+
url: z.ZodNullable<z.ZodString>;
|
|
47
|
+
redirected: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type PublicContentByAddressResponse = z.infer<typeof PublicContentByAddressResponseSchema>;
|
|
50
|
+
export declare const PublicContentListQuerySchema: z.ZodObject<{
|
|
51
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
52
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type PublicContentListQuery = z.infer<typeof PublicContentListQuerySchema>;
|
|
55
|
+
export declare const PublicContentNodeSummarySchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
58
|
+
path: z.ZodString;
|
|
59
|
+
depth: z.ZodNumber;
|
|
60
|
+
sortOrder: z.ZodNumber;
|
|
61
|
+
documentTypeId: z.ZodString;
|
|
62
|
+
publishedAt: z.ZodString;
|
|
63
|
+
url: z.ZodNullable<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type PublicContentNodeSummary = z.infer<typeof PublicContentNodeSummarySchema>;
|
|
66
|
+
export declare const PublicContentListResponseSchema: z.ZodObject<{
|
|
67
|
+
items: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
path: z.ZodString;
|
|
71
|
+
depth: z.ZodNumber;
|
|
72
|
+
sortOrder: z.ZodNumber;
|
|
73
|
+
documentTypeId: z.ZodString;
|
|
74
|
+
publishedAt: z.ZodString;
|
|
75
|
+
url: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type PublicContentListResponse = z.infer<typeof PublicContentListResponseSchema>;
|
|
80
|
+
export declare const PublicSiteSchema: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
path: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
hostnames: z.ZodArray<z.ZodString>;
|
|
85
|
+
isDefault: z.ZodBoolean;
|
|
86
|
+
url: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type PublicSite = z.infer<typeof PublicSiteSchema>;
|
|
89
|
+
export declare const PublicSitesQuerySchema: z.ZodObject<{
|
|
90
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
91
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type PublicSitesQuery = z.infer<typeof PublicSitesQuerySchema>;
|
|
94
|
+
export declare const PublicSitesResponseSchema: z.ZodObject<{
|
|
95
|
+
items: z.ZodArray<z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
path: z.ZodString;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
hostnames: z.ZodArray<z.ZodString>;
|
|
100
|
+
isDefault: z.ZodBoolean;
|
|
101
|
+
url: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type PublicSitesResponse = z.infer<typeof PublicSitesResponseSchema>;
|
|
106
|
+
export declare const PublicContentSearchQuerySchema: z.ZodObject<{
|
|
107
|
+
documentTypeId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
under: z.ZodOptional<z.ZodString>;
|
|
109
|
+
q: z.ZodOptional<z.ZodString>;
|
|
110
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
111
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type PublicContentSearchQuery = z.infer<typeof PublicContentSearchQuerySchema>;
|
|
114
|
+
export declare const PublicMediaFileSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
filename: z.ZodString;
|
|
117
|
+
mimeType: z.ZodString;
|
|
118
|
+
size: z.ZodNumber;
|
|
119
|
+
downloadUrl: z.ZodString;
|
|
120
|
+
visibility: z.ZodEnum<{
|
|
121
|
+
public: "public";
|
|
122
|
+
private: "private";
|
|
123
|
+
}>;
|
|
124
|
+
uploadedAt: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type PublicMediaFile = z.infer<typeof PublicMediaFileSchema>;
|
|
127
|
+
export declare const PublicMediaListQuerySchema: z.ZodObject<{
|
|
128
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
129
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
130
|
+
search: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export type PublicMediaListQuery = z.infer<typeof PublicMediaListQuerySchema>;
|
|
133
|
+
export declare const PublicMediaListResponseSchema: z.ZodObject<{
|
|
134
|
+
items: z.ZodArray<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
filename: z.ZodString;
|
|
137
|
+
mimeType: z.ZodString;
|
|
138
|
+
size: z.ZodNumber;
|
|
139
|
+
downloadUrl: z.ZodString;
|
|
140
|
+
visibility: z.ZodEnum<{
|
|
141
|
+
public: "public";
|
|
142
|
+
private: "private";
|
|
143
|
+
}>;
|
|
144
|
+
uploadedAt: z.ZodString;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type PublicMediaListResponse = z.infer<typeof PublicMediaListResponseSchema>;
|
|
149
|
+
export declare const PublicFieldDefinitionSchema: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
datatypeId: z.ZodString;
|
|
153
|
+
valueSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type PublicFieldDefinition = z.infer<typeof PublicFieldDefinitionSchema>;
|
|
164
|
+
export declare const PublicDocumentTypeSchema: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
icon: z.ZodString;
|
|
168
|
+
kind: z.ZodEnum<{
|
|
169
|
+
page: "page";
|
|
170
|
+
element: "element";
|
|
171
|
+
}>;
|
|
172
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
datatypeId: z.ZodString;
|
|
176
|
+
valueSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type PublicDocumentType = z.infer<typeof PublicDocumentTypeSchema>;
|
|
188
|
+
export declare const PublicDocumentTypeListQuerySchema: z.ZodObject<{
|
|
189
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
190
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export type PublicDocumentTypeListQuery = z.infer<typeof PublicDocumentTypeListQuerySchema>;
|
|
193
|
+
export declare const PublicDocumentTypeListResponseSchema: z.ZodObject<{
|
|
194
|
+
items: z.ZodArray<z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
icon: z.ZodString;
|
|
198
|
+
kind: z.ZodEnum<{
|
|
199
|
+
page: "page";
|
|
200
|
+
element: "element";
|
|
201
|
+
}>;
|
|
202
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
datatypeId: z.ZodString;
|
|
206
|
+
valueSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
export type PublicDocumentTypeListResponse = z.infer<typeof PublicDocumentTypeListResponseSchema>;
|
|
220
|
+
export declare const PublicTemplateSchema: z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
documentTypeId: z.ZodNullable<z.ZodString>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type PublicTemplate = z.infer<typeof PublicTemplateSchema>;
|
|
226
|
+
export declare const PublicTemplateListQuerySchema: z.ZodObject<{
|
|
227
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
228
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
229
|
+
documentTypeId: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export type PublicTemplateListQuery = z.infer<typeof PublicTemplateListQuerySchema>;
|
|
232
|
+
export declare const PublicTemplateListResponseSchema: z.ZodObject<{
|
|
233
|
+
items: z.ZodArray<z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
documentTypeId: z.ZodNullable<z.ZodString>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
export type PublicTemplateListResponse = z.infer<typeof PublicTemplateListResponseSchema>;
|
|
241
|
+
export declare const PublicContentWriteResponseSchema: z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
documentTypeId: z.ZodString;
|
|
244
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
245
|
+
path: z.ZodString;
|
|
246
|
+
version: z.ZodNumber;
|
|
247
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
248
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type PublicContentWriteResponse = z.infer<typeof PublicContentWriteResponseSchema>;
|
|
251
|
+
export declare const PublicCreateContentRequestSchema: z.ZodObject<{
|
|
252
|
+
documentTypeId: z.ZodString;
|
|
253
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
254
|
+
slug: z.ZodString;
|
|
255
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export type PublicCreateContentRequest = z.infer<typeof PublicCreateContentRequestSchema>;
|
|
258
|
+
export type PublicCreateContentRequestInput = z.input<typeof PublicCreateContentRequestSchema>;
|
|
259
|
+
export declare const PublicUpdateContentRequestSchema: z.ZodObject<{
|
|
260
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export type PublicUpdateContentRequest = z.infer<typeof PublicUpdateContentRequestSchema>;
|
|
263
|
+
export declare const PublicContentDeleteQuerySchema: z.ZodObject<{
|
|
264
|
+
cascade: z.ZodDefault<z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
export type PublicContentDeleteQuery = z.infer<typeof PublicContentDeleteQuerySchema>;
|
|
267
|
+
export declare const PublicContentDeleteResponseSchema: z.ZodObject<{
|
|
268
|
+
ok: z.ZodLiteral<true>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export type PublicContentDeleteResponse = z.infer<typeof PublicContentDeleteResponseSchema>;
|
|
271
|
+
export declare const PublicContentDeleteConfirmationSchema: z.ZodObject<{
|
|
272
|
+
descendantCount: z.ZodNumber;
|
|
273
|
+
message: z.ZodString;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
export type PublicContentDeleteConfirmation = z.infer<typeof PublicContentDeleteConfirmationSchema>;
|
|
276
|
+
export declare const PublicMediaUploadFieldsSchema: z.ZodObject<{
|
|
277
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
278
|
+
public: "public";
|
|
279
|
+
private: "private";
|
|
280
|
+
}>>;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
export type PublicMediaUploadFields = z.infer<typeof PublicMediaUploadFieldsSchema>;
|
|
283
|
+
export declare const PublicMediaUploadBodySchema: z.ZodObject<{
|
|
284
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
285
|
+
public: "public";
|
|
286
|
+
private: "private";
|
|
287
|
+
}>>;
|
|
288
|
+
file: z.ZodFile;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
export type PublicMediaUploadBody = z.infer<typeof PublicMediaUploadBodySchema>;
|
|
291
|
+
export declare const PublicMediaUpdateRequestSchema: z.ZodObject<{
|
|
292
|
+
visibility: z.ZodEnum<{
|
|
293
|
+
public: "public";
|
|
294
|
+
private: "private";
|
|
295
|
+
}>;
|
|
296
|
+
}, z.core.$strict>;
|
|
297
|
+
export type PublicMediaUpdateRequest = z.infer<typeof PublicMediaUpdateRequestSchema>;
|
|
298
|
+
export declare const PublicMediaWriteResponseSchema: z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
filename: z.ZodString;
|
|
301
|
+
mimeType: z.ZodString;
|
|
302
|
+
size: z.ZodNumber;
|
|
303
|
+
downloadUrl: z.ZodString;
|
|
304
|
+
visibility: z.ZodEnum<{
|
|
305
|
+
public: "public";
|
|
306
|
+
private: "private";
|
|
307
|
+
}>;
|
|
308
|
+
uploadedAt: z.ZodString;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
export type PublicMediaWriteResponse = z.infer<typeof PublicMediaWriteResponseSchema>;
|
|
311
|
+
export declare const PublicMediaDeleteResponseSchema: z.ZodObject<{
|
|
312
|
+
ok: z.ZodLiteral<true>;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
export type PublicMediaDeleteResponse = z.infer<typeof PublicMediaDeleteResponseSchema>;
|