@kardalum/plugin-sdk 0.0.0-stage → 0.15.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 +108 -0
- package/LICENSE +202 -0
- package/README.md +70 -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 +99 -0
- package/dist/capabilities.js +363 -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 +93 -0
- package/dist/license-verdict-keys.d.ts +18 -0
- package/dist/license-verdict-keys.js +22 -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 +408 -0
- package/dist/manifest-schema.js +774 -0
- package/dist/manifest.d.ts +546 -0
- package/dist/manifest.js +86 -0
- package/dist/media/media-picker.d.ts +39 -0
- package/dist/media/media-picker.js +438 -0
- package/dist/media/upload-error.d.ts +12 -0
- package/dist/media/upload-error.js +30 -0
- package/dist/plugin-context.d.ts +75 -0
- package/dist/plugin-context.js +70 -0
- package/dist/plugin-screen-context.d.ts +40 -0
- package/dist/plugin-screen-context.js +16 -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 +387 -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 +5 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +36 -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 +537 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +353 -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 +256 -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 +151 -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 +302 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +97 -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 +36 -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 +296 -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 +102 -0
- package/node_modules/@kardalum/api-schemas/dist/index.js +58 -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/marketplace-listing-api.schema.d.ts +381 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +197 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +167 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +214 -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 +169 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +80 -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 +89 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +134 -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-management-api.schema.d.ts +369 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +393 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +87 -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 +306 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +328 -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 +90 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +69 -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/setup-api.schema.d.ts +108 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +93 -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 +43 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +25 -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 +89 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +68 -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/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 +11 -0
- package/node_modules/@kardalum/plugin-package/dist/index.js +7 -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/sample-content.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +17 -0
- package/node_modules/@kardalum/plugin-package/dist/types.d.ts +45 -0
- package/node_modules/@kardalum/plugin-package/dist/types.js +1 -0
- package/node_modules/@kardalum/plugin-package/package.json +49 -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 +86 -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,537 @@
|
|
|
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 ContentItemQuerySchema: z.ZodObject<{
|
|
312
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
export type ContentItemQuery = z.infer<typeof ContentItemQuerySchema>;
|
|
315
|
+
export declare const ContentChildrenQuerySchema: z.ZodObject<{
|
|
316
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
317
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export type ContentChildrenQuery = z.infer<typeof ContentChildrenQuerySchema>;
|
|
320
|
+
export declare const ContentNodeWithNameSchema: z.ZodObject<{
|
|
321
|
+
id: z.ZodString;
|
|
322
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
323
|
+
path: z.ZodString;
|
|
324
|
+
depth: z.ZodNumber;
|
|
325
|
+
sortOrder: z.ZodNumber;
|
|
326
|
+
documentTypeId: z.ZodString;
|
|
327
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
328
|
+
name: z.ZodOptional<z.ZodString>;
|
|
329
|
+
culturesBehind: z.ZodNumber;
|
|
330
|
+
defaultCulture: z.ZodNullable<z.ZodObject<{
|
|
331
|
+
culture: z.ZodString;
|
|
332
|
+
currentVersion: z.ZodNumber;
|
|
333
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
childCount: z.ZodNumber;
|
|
336
|
+
access: z.ZodObject<{
|
|
337
|
+
read: z.ZodBoolean;
|
|
338
|
+
create: z.ZodBoolean;
|
|
339
|
+
update: z.ZodBoolean;
|
|
340
|
+
publish: z.ZodBoolean;
|
|
341
|
+
delete: z.ZodBoolean;
|
|
342
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
343
|
+
"content.read": "content.read";
|
|
344
|
+
"content.create": "content.create";
|
|
345
|
+
"content.update": "content.update";
|
|
346
|
+
"content.publish": "content.publish";
|
|
347
|
+
"content.delete": "content.delete";
|
|
348
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
349
|
+
reason: z.ZodEnum<{
|
|
350
|
+
"role-lacks-action": "role-lacks-action";
|
|
351
|
+
"not-granted": "not-granted";
|
|
352
|
+
}>;
|
|
353
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
354
|
+
nodeId: z.ZodString;
|
|
355
|
+
path: z.ZodNullable<z.ZodString>;
|
|
356
|
+
name: z.ZodNullable<z.ZodString>;
|
|
357
|
+
mode: z.ZodEnum<{
|
|
358
|
+
restricted: "restricted";
|
|
359
|
+
open: "open";
|
|
360
|
+
}>;
|
|
361
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
362
|
+
subjectKind: z.ZodEnum<{
|
|
363
|
+
role: "role";
|
|
364
|
+
user: "user";
|
|
365
|
+
}>;
|
|
366
|
+
subjectId: z.ZodString;
|
|
367
|
+
label: z.ZodNullable<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
export type ContentNodeWithName = z.infer<typeof ContentNodeWithNameSchema>;
|
|
374
|
+
export declare const CopyContentRequestSchema: z.ZodObject<{
|
|
375
|
+
targetParentId: z.ZodNullable<z.ZodString>;
|
|
376
|
+
includeChildren: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
export type CopyContentRequest = z.infer<typeof CopyContentRequestSchema>;
|
|
379
|
+
export declare const MoveContentRequestSchema: z.ZodObject<{
|
|
380
|
+
targetParentId: z.ZodNullable<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
export type MoveContentRequest = z.infer<typeof MoveContentRequestSchema>;
|
|
383
|
+
export declare const MoveContentResponseSchema: z.ZodObject<{
|
|
384
|
+
node: z.ZodObject<{
|
|
385
|
+
id: z.ZodString;
|
|
386
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
387
|
+
path: z.ZodString;
|
|
388
|
+
depth: z.ZodNumber;
|
|
389
|
+
sortOrder: z.ZodNumber;
|
|
390
|
+
documentTypeId: z.ZodString;
|
|
391
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
access: z.ZodObject<{
|
|
394
|
+
read: z.ZodBoolean;
|
|
395
|
+
create: z.ZodBoolean;
|
|
396
|
+
update: z.ZodBoolean;
|
|
397
|
+
publish: z.ZodBoolean;
|
|
398
|
+
delete: z.ZodBoolean;
|
|
399
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
400
|
+
"content.read": "content.read";
|
|
401
|
+
"content.create": "content.create";
|
|
402
|
+
"content.update": "content.update";
|
|
403
|
+
"content.publish": "content.publish";
|
|
404
|
+
"content.delete": "content.delete";
|
|
405
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
406
|
+
reason: z.ZodEnum<{
|
|
407
|
+
"role-lacks-action": "role-lacks-action";
|
|
408
|
+
"not-granted": "not-granted";
|
|
409
|
+
}>;
|
|
410
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
411
|
+
nodeId: z.ZodString;
|
|
412
|
+
path: z.ZodNullable<z.ZodString>;
|
|
413
|
+
name: z.ZodNullable<z.ZodString>;
|
|
414
|
+
mode: z.ZodEnum<{
|
|
415
|
+
restricted: "restricted";
|
|
416
|
+
open: "open";
|
|
417
|
+
}>;
|
|
418
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
419
|
+
subjectKind: z.ZodEnum<{
|
|
420
|
+
role: "role";
|
|
421
|
+
user: "user";
|
|
422
|
+
}>;
|
|
423
|
+
subjectId: z.ZodString;
|
|
424
|
+
label: z.ZodNullable<z.ZodString>;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
}, z.core.$strip>>;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
export type MoveContentResponse = z.infer<typeof MoveContentResponseSchema>;
|
|
431
|
+
export declare const ContentPathConflictSchema: z.ZodObject<{
|
|
432
|
+
message: z.ZodString;
|
|
433
|
+
path: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
export type ContentPathConflictResponse = z.infer<typeof ContentPathConflictSchema>;
|
|
436
|
+
export declare const ContentChildrenResponseSchema: z.ZodObject<{
|
|
437
|
+
items: z.ZodArray<z.ZodObject<{
|
|
438
|
+
id: z.ZodString;
|
|
439
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
440
|
+
path: z.ZodString;
|
|
441
|
+
depth: z.ZodNumber;
|
|
442
|
+
sortOrder: z.ZodNumber;
|
|
443
|
+
documentTypeId: z.ZodString;
|
|
444
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
445
|
+
name: z.ZodOptional<z.ZodString>;
|
|
446
|
+
culturesBehind: z.ZodNumber;
|
|
447
|
+
defaultCulture: z.ZodNullable<z.ZodObject<{
|
|
448
|
+
culture: z.ZodString;
|
|
449
|
+
currentVersion: z.ZodNumber;
|
|
450
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
childCount: z.ZodNumber;
|
|
453
|
+
access: z.ZodObject<{
|
|
454
|
+
read: z.ZodBoolean;
|
|
455
|
+
create: z.ZodBoolean;
|
|
456
|
+
update: z.ZodBoolean;
|
|
457
|
+
publish: z.ZodBoolean;
|
|
458
|
+
delete: z.ZodBoolean;
|
|
459
|
+
denied: z.ZodRecord<z.ZodEnum<{
|
|
460
|
+
"content.read": "content.read";
|
|
461
|
+
"content.create": "content.create";
|
|
462
|
+
"content.update": "content.update";
|
|
463
|
+
"content.publish": "content.publish";
|
|
464
|
+
"content.delete": "content.delete";
|
|
465
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
466
|
+
reason: z.ZodEnum<{
|
|
467
|
+
"role-lacks-action": "role-lacks-action";
|
|
468
|
+
"not-granted": "not-granted";
|
|
469
|
+
}>;
|
|
470
|
+
decidedAt: z.ZodNullable<z.ZodObject<{
|
|
471
|
+
nodeId: z.ZodString;
|
|
472
|
+
path: z.ZodNullable<z.ZodString>;
|
|
473
|
+
name: z.ZodNullable<z.ZodString>;
|
|
474
|
+
mode: z.ZodEnum<{
|
|
475
|
+
restricted: "restricted";
|
|
476
|
+
open: "open";
|
|
477
|
+
}>;
|
|
478
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
479
|
+
subjectKind: z.ZodEnum<{
|
|
480
|
+
role: "role";
|
|
481
|
+
user: "user";
|
|
482
|
+
}>;
|
|
483
|
+
subjectId: z.ZodString;
|
|
484
|
+
label: z.ZodNullable<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
488
|
+
}, z.core.$strip>;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
export type ContentChildrenResponse = z.infer<typeof ContentChildrenResponseSchema>;
|
|
493
|
+
export declare const ReorderNodesRequestSchema: z.ZodObject<{
|
|
494
|
+
orderedIds: z.ZodArray<z.ZodString>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
export type ReorderNodesRequest = z.infer<typeof ReorderNodesRequestSchema>;
|
|
497
|
+
export declare const ReorderNodesResponseSchema: z.ZodObject<{
|
|
498
|
+
success: z.ZodLiteral<true>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
export type ReorderNodesResponse = z.infer<typeof ReorderNodesResponseSchema>;
|
|
501
|
+
export declare const FieldValidationFailureSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
502
|
+
fieldId: z.ZodString;
|
|
503
|
+
key: z.ZodString;
|
|
504
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
505
|
+
path: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
+
fieldId: z.ZodString;
|
|
508
|
+
message: z.ZodString;
|
|
509
|
+
path: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>]>;
|
|
511
|
+
export type FieldValidationFailureResponse = z.infer<typeof FieldValidationFailureSchema>;
|
|
512
|
+
export declare const ContentValidationErrorSchema: z.ZodObject<{
|
|
513
|
+
message: z.ZodString;
|
|
514
|
+
fieldErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
515
|
+
fieldId: z.ZodString;
|
|
516
|
+
key: z.ZodString;
|
|
517
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
518
|
+
path: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
+
fieldId: z.ZodString;
|
|
521
|
+
message: z.ZodString;
|
|
522
|
+
path: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>]>>;
|
|
524
|
+
heldByPath: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
export type ContentValidationErrorResponse = z.infer<typeof ContentValidationErrorSchema>;
|
|
527
|
+
export declare const CultureSettingsSchema: z.ZodObject<{
|
|
528
|
+
cultures: z.ZodArray<z.ZodString>;
|
|
529
|
+
defaultCulture: z.ZodString;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
export type CultureSettings = z.infer<typeof CultureSettingsSchema>;
|
|
532
|
+
export declare const TranslationIncompleteResponseSchema: z.ZodObject<{
|
|
533
|
+
message: z.ZodString;
|
|
534
|
+
culture: z.ZodString;
|
|
535
|
+
fieldIds: z.ZodArray<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
export type TranslationIncompleteResponse = z.infer<typeof TranslationIncompleteResponseSchema>;
|