@kardalum/plugin-sdk 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/dist/admin-section-registry.d.ts +33 -1
- package/dist/admin-section-registry.js +67 -0
- package/dist/capabilities.js +46 -1
- package/dist/consent-entry.d.ts +11 -0
- package/dist/consent-entry.js +18 -0
- package/dist/content-library.d.ts +17 -0
- package/dist/content-list-extensions.d.ts +50 -0
- package/dist/content-list-extensions.js +11 -0
- package/dist/content-picker/page-picker-sheet.d.ts +2 -0
- package/dist/content-picker/page-picker-sheet.js +1 -1
- package/dist/content-picker/page-picker.d.ts +18 -0
- package/dist/content-picker/page-picker.js +20 -0
- package/dist/datatype-validation.js +10 -2
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +2 -0
- package/dist/entitlement-types.d.ts +18 -1
- package/dist/host-entry.d.ts +7 -1
- package/dist/host-entry.js +14 -1
- package/dist/index.d.ts +35 -7
- package/dist/index.js +46 -5
- package/dist/mail.d.ts +6 -2
- package/dist/manifest-entry.d.ts +22 -4
- package/dist/manifest-entry.js +25 -1
- package/dist/manifest-schema.d.ts +570 -31
- package/dist/manifest-schema.js +240 -12
- package/dist/manifest.d.ts +757 -32
- package/dist/manifest.js +8 -4
- package/dist/plugin-context.d.ts +47 -0
- package/dist/plugin-context.js +27 -0
- package/dist/plugin-permissions.d.ts +18 -0
- package/dist/plugin-permissions.js +25 -0
- package/dist/plugin-screen-context.d.ts +152 -11
- package/dist/plugin-screen-context.js +30 -0
- package/dist/providers.d.ts +47 -2
- package/dist/render-page.d.ts +15 -0
- package/dist/render-page.js +20 -0
- package/dist/richtext/block-panel.d.ts +12 -1
- package/dist/richtext/block-panel.js +27 -21
- package/dist/richtext/button-view.d.ts +11 -0
- package/dist/richtext/button-view.js +45 -0
- package/dist/richtext/content-guard.d.ts +4 -0
- package/dist/richtext/content-guard.js +27 -0
- package/dist/richtext/editor-handle.d.ts +34 -0
- package/dist/richtext/editor-handle.js +225 -0
- package/dist/richtext/extensions.d.ts +6 -0
- package/dist/richtext/extensions.js +16 -0
- package/dist/richtext/insert-menu.d.ts +6 -1
- package/dist/richtext/insert-menu.js +38 -18
- package/dist/richtext/item-attributes.d.ts +6 -0
- package/dist/richtext/item-attributes.js +19 -0
- package/dist/richtext/item-panel.d.ts +25 -0
- package/dist/richtext/item-panel.js +118 -0
- package/dist/richtext/item-view.d.ts +58 -0
- package/dist/richtext/item-view.js +172 -0
- package/dist/richtext/mark-form.d.ts +10 -0
- package/dist/richtext/mark-form.js +38 -0
- package/dist/richtext/paste-choice.d.ts +9 -0
- package/dist/richtext/paste-choice.js +13 -0
- package/dist/richtext/plugin-items.d.ts +72 -0
- package/dist/richtext/plugin-items.js +562 -0
- package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
- package/dist/richtext/plugin-mark-tooltips.js +44 -0
- package/dist/richtext/plugin-toolbar.d.ts +57 -0
- package/dist/richtext/plugin-toolbar.js +186 -0
- package/dist/richtext/rich-item-icons.d.ts +5 -0
- package/dist/richtext/rich-item-icons.js +42 -0
- package/dist/richtext/rich-items.d.ts +42 -0
- package/dist/richtext/rich-items.js +68 -0
- package/dist/richtext/rich-text-view-host.d.ts +24 -0
- package/dist/richtext/rich-text-view-host.js +11 -0
- package/dist/richtext/toolbar-button.d.ts +16 -0
- package/dist/richtext/toolbar-button.js +9 -0
- package/dist/richtext/url-paste.d.ts +20 -0
- package/dist/richtext/url-paste.js +82 -0
- package/dist/richtext-html-entry.d.ts +5 -0
- package/dist/richtext-html-entry.js +11 -0
- package/dist/sdk-strings.d.ts +59 -0
- package/dist/sdk-strings.js +64 -0
- package/dist/service-contract.d.ts +17 -0
- package/dist/service-contract.js +39 -0
- package/dist/services.d.ts +114 -0
- package/dist/services.js +1 -0
- package/dist/structured-storage-types.d.ts +124 -4
- package/dist/tailwind.js +10 -5
- package/dist/template-reads.d.ts +16 -0
- package/dist/template-reads.js +21 -0
- package/dist/testing-entry.d.ts +38 -0
- package/dist/testing-entry.js +173 -0
- package/dist/text-entry.d.ts +1 -1
- package/dist/text-entry.js +3 -2
- package/dist/tokens/system-dark.css +1 -0
- package/dist/tokens/tailwind-theme.css +2 -0
- package/dist/tokens/tokens.css +4 -0
- package/dist/tokens/tokens.json +5 -1
- package/dist/uploads.d.ts +43 -0
- package/dist/uploads.js +1 -0
- package/dist/user-library.d.ts +51 -0
- package/dist/user-library.js +15 -0
- package/dist/view-helpers.d.ts +18 -0
- package/dist/view-helpers.js +64 -0
- package/dist/views/content-list-view.js +207 -8
- package/dist/views/content-picker-view.js +1 -1
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +182 -24
- package/dist/views/unreadable-rich-text.d.ts +17 -0
- package/dist/views/unreadable-rich-text.js +40 -0
- package/dist/visitors.d.ts +81 -0
- package/dist/visitors.js +1 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +127 -8
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +82 -7
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +2 -2
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +11 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +18 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +80 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +41 -2
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +50 -13
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +19 -10
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +37 -0
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +52 -14
- package/node_modules/@kardalum/api-schemas/dist/index.js +53 -9
- package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +4 -2
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +6 -1
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +178 -2
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +51 -2
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +4 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +12 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +5 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +10 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +48 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +5 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +6 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +67 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +15 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +80 -15
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +67 -23
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +10 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +33 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +2 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +7 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +43 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +36 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +10 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +171 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +406 -42
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +303 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +66 -1
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +465 -7
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +15 -118
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +110 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +9 -2
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +7 -2
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +5 -3
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +3 -1
- package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
- package/node_modules/@kardalum/api-schemas/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +9 -1
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +4 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +6 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +5 -1
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +9 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +276 -19
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +23 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +21 -8
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +23 -10
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +30 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +6 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +24 -6
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +15 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +14 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +44 -11
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/index.js +5 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -0
- package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
- package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/index.js +2 -0
- package/package.json +15 -3
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const VISITOR_ID_PREFIX = "vis_";
|
|
3
|
+
/** "vis_" and a UUID. */
|
|
4
|
+
export declare const VISITOR_ID_LENGTH = 40;
|
|
5
|
+
/** Length first, then the prefix, then the UUID by its schema on a 36-character slice. */
|
|
6
|
+
export declare function isVisitorId(value: unknown): value is string;
|
|
7
|
+
export declare const VisitorIdSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
8
|
+
/** MySQL keeps every String as VARCHAR(191), so a visitor's email is capped there, not at 254. */
|
|
9
|
+
export declare const VISITOR_EMAIL_MAX = 191;
|
|
10
|
+
export declare const VISITOR_NAME_MAX = 80;
|
|
11
|
+
export declare const VISITOR_LOCALE_MAX = 16;
|
|
12
|
+
export declare const VisitorEmailSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
13
|
+
/** Trimmed; a blank name is no name. */
|
|
14
|
+
export declare const VisitorNameSchema: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string | undefined, string>>>;
|
|
15
|
+
/** A language code as the site's cultures spell them: letters, digits and "-", 2 to 16, checked by loop. */
|
|
16
|
+
export declare const VisitorLocaleSchema: z.ZodString;
|
|
17
|
+
export declare const VISITOR_STATUSES: readonly ["active", "pending_approval", "disabled"];
|
|
18
|
+
export type VisitorStatus = (typeof VISITOR_STATUSES)[number];
|
|
19
|
+
export declare const VISITOR_JOINING_MODES: readonly ["open", "approval", "closed"];
|
|
20
|
+
export type VisitorJoiningMode = (typeof VISITOR_JOINING_MODES)[number];
|
|
21
|
+
export declare const VISITOR_TOKEN_PURPOSES: readonly ["confirm", "reset", "email_change", "invite", "delete"];
|
|
22
|
+
export type VisitorTokenPurpose = (typeof VISITOR_TOKEN_PURPOSES)[number];
|
|
23
|
+
export declare const VISITOR_TOKEN_TTL_MS: Readonly<Record<VisitorTokenPurpose, number>>;
|
|
24
|
+
export declare const VISITOR_RESETS_PER_ACCOUNT_HOUR = 3;
|
|
25
|
+
export declare const VISITOR_CONFIRMS_PER_ACCOUNT_HOUR = 3;
|
|
26
|
+
export declare const VISITOR_BRAKE_FAILURES = 10;
|
|
27
|
+
export declare const VISITOR_BRAKE_WINDOW_MS = 900000;
|
|
28
|
+
export declare const VISITOR_BRAKE_PAUSE_MS = 900000;
|
|
29
|
+
export declare const VISITOR_REGISTRATIONS_PER_SITE_HOUR = 200;
|
|
30
|
+
export declare const VISITOR_MAILS_PER_ADDRESS_HOUR = 5;
|
|
31
|
+
export declare const VISITOR_UNCONFIRMED_KEEP_MS: number;
|
|
32
|
+
export declare const VISITOR_ENDED_SESSION_KEEP_MS: number;
|
|
33
|
+
export declare const VISITOR_HASHES_RUNNING_MAX = 4;
|
|
34
|
+
export declare const VISITOR_HASHES_QUEUED_MAX = 64;
|
|
35
|
+
export declare const VISITOR_UNUSED_MONTHS: readonly [12, 24, 36];
|
|
36
|
+
export declare const VISITOR_UNUSED_WARNING_DAYS = 14;
|
|
37
|
+
export declare const VISITOR_SWEEP_BATCH = 500;
|
|
38
|
+
export declare const VISITORS_PAGE_MAX = 100;
|
|
39
|
+
/** The caller name the visitor forms give form protection: the colon keeps it apart from every plugin id. */
|
|
40
|
+
export declare const VISITOR_FORMS_CALLER = "kardalum:visitors";
|
|
41
|
+
export declare const VISITOR_FORM_BODY_MAX_BYTES = 16384;
|
|
42
|
+
export declare const VisitorAccountSettingsSchema: z.ZodObject<{
|
|
43
|
+
enabled: z.ZodBoolean;
|
|
44
|
+
joining: z.ZodEnum<{
|
|
45
|
+
open: "open";
|
|
46
|
+
approval: "approval";
|
|
47
|
+
closed: "closed";
|
|
48
|
+
}>;
|
|
49
|
+
sessionIdleHours: z.ZodNumber;
|
|
50
|
+
staySignedInDays: z.ZodNumber;
|
|
51
|
+
absoluteDays: z.ZodNumber;
|
|
52
|
+
unusedMonths: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<12>, z.ZodLiteral<24>, z.ZodLiteral<36>]>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type VisitorAccountSettings = z.infer<typeof VisitorAccountSettingsSchema>;
|
|
55
|
+
export declare const DEFAULT_VISITOR_ACCOUNT_SETTINGS: VisitorAccountSettings;
|
|
56
|
+
export declare function visitorAccountSettingsKey(siteId: string): string;
|
|
57
|
+
export declare function readVisitorAccountSettings(value: unknown): VisitorAccountSettings;
|
|
58
|
+
export declare const VisitorSignInProviderSettingsSchema: z.ZodObject<{
|
|
59
|
+
offered: z.ZodBoolean;
|
|
60
|
+
newAccounts: z.ZodBoolean;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export type VisitorSignInProviderSettings = z.infer<typeof VisitorSignInProviderSettingsSchema>;
|
|
63
|
+
export declare function visitorSignInProviderKey(providerKey: string): string;
|
|
64
|
+
export declare function readVisitorSignInProviderSettings(value: unknown): VisitorSignInProviderSettings;
|
|
65
|
+
export declare const VISITOR_NOT_READY_REASONS: readonly ["mail_not_ready", "no_site_address", "https_required"];
|
|
66
|
+
export type VisitorNotReadyReason = (typeof VISITOR_NOT_READY_REASONS)[number];
|
|
67
|
+
export declare const VisitorSiteParamsSchema: z.ZodObject<{
|
|
68
|
+
siteId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* The sites the two visitor screens pick from, by id and name only. Settings, Visitor accounts reads
|
|
72
|
+
* them with settings.read and Users, Visitors with visitors.read, so a role built for visitor
|
|
73
|
+
* management works its screens without sites.manage (which the Sites overview asks).
|
|
74
|
+
*/
|
|
75
|
+
export declare const VisitorSiteListQuerySchema: z.ZodObject<{
|
|
76
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
77
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export declare const VisitorSiteRowSchema: z.ZodObject<{
|
|
80
|
+
siteId: z.ZodString;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const VisitorSiteListResponseSchema: z.ZodObject<{
|
|
84
|
+
items: z.ZodArray<z.ZodObject<{
|
|
85
|
+
siteId: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type VisitorSiteListQuery = z.infer<typeof VisitorSiteListQuerySchema>;
|
|
91
|
+
export type VisitorSiteRow = z.infer<typeof VisitorSiteRowSchema>;
|
|
92
|
+
export type VisitorSiteListResponse = z.infer<typeof VisitorSiteListResponseSchema>;
|
|
93
|
+
export declare const VisitorProviderParamsSchema: z.ZodObject<{
|
|
94
|
+
pluginId: z.ZodString;
|
|
95
|
+
providerId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export declare const VisitorProviderRowSchema: z.ZodObject<{
|
|
98
|
+
key: z.ZodString;
|
|
99
|
+
label: z.ZodString;
|
|
100
|
+
offeredToAdmin: z.ZodBoolean;
|
|
101
|
+
ready: z.ZodBoolean;
|
|
102
|
+
offered: z.ZodBoolean;
|
|
103
|
+
newAccounts: z.ZodBoolean;
|
|
104
|
+
callbackUrls: z.ZodArray<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export type VisitorProviderRow = z.infer<typeof VisitorProviderRowSchema>;
|
|
107
|
+
export declare const VisitorSettingsResponseSchema: z.ZodObject<{
|
|
108
|
+
siteId: z.ZodString;
|
|
109
|
+
settings: z.ZodObject<{
|
|
110
|
+
enabled: z.ZodBoolean;
|
|
111
|
+
joining: z.ZodEnum<{
|
|
112
|
+
open: "open";
|
|
113
|
+
approval: "approval";
|
|
114
|
+
closed: "closed";
|
|
115
|
+
}>;
|
|
116
|
+
sessionIdleHours: z.ZodNumber;
|
|
117
|
+
staySignedInDays: z.ZodNumber;
|
|
118
|
+
absoluteDays: z.ZodNumber;
|
|
119
|
+
unusedMonths: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<12>, z.ZodLiteral<24>, z.ZodLiteral<36>]>>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
readiness: z.ZodObject<{
|
|
122
|
+
ready: z.ZodBoolean;
|
|
123
|
+
missing: z.ZodArray<z.ZodEnum<{
|
|
124
|
+
mail_not_ready: "mail_not_ready";
|
|
125
|
+
no_site_address: "no_site_address";
|
|
126
|
+
https_required: "https_required";
|
|
127
|
+
}>>;
|
|
128
|
+
accountPathTaken: z.ZodBoolean;
|
|
129
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
132
|
+
key: z.ZodString;
|
|
133
|
+
label: z.ZodString;
|
|
134
|
+
offeredToAdmin: z.ZodBoolean;
|
|
135
|
+
ready: z.ZodBoolean;
|
|
136
|
+
offered: z.ZodBoolean;
|
|
137
|
+
newAccounts: z.ZodBoolean;
|
|
138
|
+
callbackUrls: z.ZodArray<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type VisitorSettingsResponse = z.infer<typeof VisitorSettingsResponseSchema>;
|
|
142
|
+
export declare const VisitorSettingsNotReadySchema: z.ZodObject<{
|
|
143
|
+
code: z.ZodLiteral<"visitor_accounts_not_ready">;
|
|
144
|
+
message: z.ZodString;
|
|
145
|
+
missing: z.ZodArray<z.ZodEnum<{
|
|
146
|
+
mail_not_ready: "mail_not_ready";
|
|
147
|
+
no_site_address: "no_site_address";
|
|
148
|
+
https_required: "https_required";
|
|
149
|
+
}>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
export declare const VisitorSummarySchema: z.ZodObject<{
|
|
152
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
153
|
+
siteId: z.ZodString;
|
|
154
|
+
email: z.ZodString;
|
|
155
|
+
name: z.ZodNullable<z.ZodString>;
|
|
156
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
157
|
+
confirmed: z.ZodBoolean;
|
|
158
|
+
status: z.ZodEnum<{
|
|
159
|
+
active: "active";
|
|
160
|
+
pending_approval: "pending_approval";
|
|
161
|
+
disabled: "disabled";
|
|
162
|
+
}>;
|
|
163
|
+
createdAt: z.ZodString;
|
|
164
|
+
lastSignInOn: z.ZodNullable<z.ZodString>;
|
|
165
|
+
methods: z.ZodArray<z.ZodString>;
|
|
166
|
+
activeSessions: z.ZodNumber;
|
|
167
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
168
|
+
groupId: z.ZodString;
|
|
169
|
+
key: z.ZodString;
|
|
170
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
171
|
+
en: z.ZodString;
|
|
172
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
173
|
+
ownerPluginId: z.ZodNullable<z.ZodString>;
|
|
174
|
+
addedAt: z.ZodString;
|
|
175
|
+
until: z.ZodNullable<z.ZodString>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type VisitorSummary = z.infer<typeof VisitorSummarySchema>;
|
|
179
|
+
export declare const VisitorListQuerySchema: z.ZodObject<{
|
|
180
|
+
siteId: z.ZodString;
|
|
181
|
+
cursor: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
182
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
183
|
+
email: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
184
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type VisitorListQuery = z.infer<typeof VisitorListQuerySchema>;
|
|
187
|
+
export declare const VisitorListResponseSchema: z.ZodObject<{
|
|
188
|
+
items: z.ZodArray<z.ZodObject<{
|
|
189
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
190
|
+
siteId: z.ZodString;
|
|
191
|
+
email: z.ZodString;
|
|
192
|
+
name: z.ZodNullable<z.ZodString>;
|
|
193
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
194
|
+
confirmed: z.ZodBoolean;
|
|
195
|
+
status: z.ZodEnum<{
|
|
196
|
+
active: "active";
|
|
197
|
+
pending_approval: "pending_approval";
|
|
198
|
+
disabled: "disabled";
|
|
199
|
+
}>;
|
|
200
|
+
createdAt: z.ZodString;
|
|
201
|
+
lastSignInOn: z.ZodNullable<z.ZodString>;
|
|
202
|
+
methods: z.ZodArray<z.ZodString>;
|
|
203
|
+
activeSessions: z.ZodNumber;
|
|
204
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
205
|
+
groupId: z.ZodString;
|
|
206
|
+
key: z.ZodString;
|
|
207
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
208
|
+
en: z.ZodString;
|
|
209
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
210
|
+
ownerPluginId: z.ZodNullable<z.ZodString>;
|
|
211
|
+
addedAt: z.ZodString;
|
|
212
|
+
until: z.ZodNullable<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
nextCursor: z.ZodNullable<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
export type VisitorListResponse = z.infer<typeof VisitorListResponseSchema>;
|
|
218
|
+
export declare const VisitorParamsSchema: z.ZodObject<{
|
|
219
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const VisitorResponseSchema: z.ZodObject<{
|
|
222
|
+
visitor: z.ZodObject<{
|
|
223
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
224
|
+
siteId: z.ZodString;
|
|
225
|
+
email: z.ZodString;
|
|
226
|
+
name: z.ZodNullable<z.ZodString>;
|
|
227
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
228
|
+
confirmed: z.ZodBoolean;
|
|
229
|
+
status: z.ZodEnum<{
|
|
230
|
+
active: "active";
|
|
231
|
+
pending_approval: "pending_approval";
|
|
232
|
+
disabled: "disabled";
|
|
233
|
+
}>;
|
|
234
|
+
createdAt: z.ZodString;
|
|
235
|
+
lastSignInOn: z.ZodNullable<z.ZodString>;
|
|
236
|
+
methods: z.ZodArray<z.ZodString>;
|
|
237
|
+
activeSessions: z.ZodNumber;
|
|
238
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
239
|
+
groupId: z.ZodString;
|
|
240
|
+
key: z.ZodString;
|
|
241
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
242
|
+
en: z.ZodString;
|
|
243
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
244
|
+
ownerPluginId: z.ZodNullable<z.ZodString>;
|
|
245
|
+
addedAt: z.ZodString;
|
|
246
|
+
until: z.ZodNullable<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type VisitorResponse = z.infer<typeof VisitorResponseSchema>;
|
|
251
|
+
export declare const SetVisitorDisabledRequestSchema: z.ZodObject<{
|
|
252
|
+
disabled: z.ZodBoolean;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
export declare const InviteVisitorRequestSchema: z.ZodObject<{
|
|
255
|
+
siteId: z.ZodString;
|
|
256
|
+
email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
257
|
+
name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string | undefined, string>>>;
|
|
258
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
export type InviteVisitorRequest = z.infer<typeof InviteVisitorRequestSchema>;
|
|
261
|
+
/** M35 B3 (W17, experimental): one file the visitor sent that a plugin kept, as their export lists it. */
|
|
262
|
+
export declare const VisitorExportUploadSchema: z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
type: z.ZodString;
|
|
266
|
+
size: z.ZodNumber;
|
|
267
|
+
pluginId: z.ZodString;
|
|
268
|
+
sentAt: z.ZodString;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export type VisitorExportUpload = z.infer<typeof VisitorExportUploadSchema>;
|
|
271
|
+
export declare const VisitorExportSchema: z.ZodObject<{
|
|
272
|
+
exportedAt: z.ZodString;
|
|
273
|
+
account: z.ZodObject<{
|
|
274
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
275
|
+
email: z.ZodString;
|
|
276
|
+
name: z.ZodNullable<z.ZodString>;
|
|
277
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
278
|
+
status: z.ZodEnum<{
|
|
279
|
+
active: "active";
|
|
280
|
+
pending_approval: "pending_approval";
|
|
281
|
+
disabled: "disabled";
|
|
282
|
+
}>;
|
|
283
|
+
emailConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
284
|
+
createdAt: z.ZodString;
|
|
285
|
+
lastSignInOn: z.ZodNullable<z.ZodString>;
|
|
286
|
+
passwordSet: z.ZodBoolean;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
signInMethods: z.ZodArray<z.ZodObject<{
|
|
289
|
+
provider: z.ZodString;
|
|
290
|
+
email: z.ZodNullable<z.ZodString>;
|
|
291
|
+
connectedAt: z.ZodString;
|
|
292
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>>;
|
|
294
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
295
|
+
method: z.ZodString;
|
|
296
|
+
createdAt: z.ZodString;
|
|
297
|
+
lastSeenOn: z.ZodString;
|
|
298
|
+
endsAt: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
301
|
+
groupId: z.ZodString;
|
|
302
|
+
key: z.ZodString;
|
|
303
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
304
|
+
en: z.ZodString;
|
|
305
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
306
|
+
ownerPluginId: z.ZodNullable<z.ZodString>;
|
|
307
|
+
addedAt: z.ZodString;
|
|
308
|
+
until: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
plugins: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
311
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
312
|
+
id: z.ZodString;
|
|
313
|
+
name: z.ZodString;
|
|
314
|
+
type: z.ZodString;
|
|
315
|
+
size: z.ZodNumber;
|
|
316
|
+
pluginId: z.ZodString;
|
|
317
|
+
sentAt: z.ZodString;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
uploadsTruncated: z.ZodBoolean;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
export type VisitorExport = z.infer<typeof VisitorExportSchema>;
|
|
322
|
+
/** M35 B3 fix (I1): the files a delete of the account erases, as its confirmation lists them, a page at a time. */
|
|
323
|
+
export declare const VISITOR_DELETE_UPLOADS_PAGE_MAX = 100;
|
|
324
|
+
export declare const VisitorDeleteUploadsQuerySchema: z.ZodObject<{
|
|
325
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
326
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
export type VisitorDeleteUploadsQuery = z.infer<typeof VisitorDeleteUploadsQuerySchema>;
|
|
329
|
+
export declare const VisitorDeleteUploadSchema: z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
name: z.ZodString;
|
|
332
|
+
pluginId: z.ZodString;
|
|
333
|
+
public: z.ZodBoolean;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
export type VisitorDeleteUpload = z.infer<typeof VisitorDeleteUploadSchema>;
|
|
336
|
+
export declare const VisitorDeleteUploadsResponseSchema: z.ZodObject<{
|
|
337
|
+
items: z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
name: z.ZodString;
|
|
340
|
+
pluginId: z.ZodString;
|
|
341
|
+
public: z.ZodBoolean;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
total: z.ZodNumber;
|
|
344
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export type VisitorDeleteUploadsResponse = z.infer<typeof VisitorDeleteUploadsResponseSchema>;
|
|
347
|
+
export declare const VisitorProtectionFieldsSchema: z.ZodObject<{
|
|
348
|
+
kp_website: z.ZodOptional<z.ZodString>;
|
|
349
|
+
kp_token: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
/** D6: the most fields of a protection provider (a widget's answer) one visitor form carries, as many as a provider is ever handed (D15). */
|
|
352
|
+
export declare const VISITOR_FORM_EXTRA_FIELDS_MAX = 8;
|
|
353
|
+
/** The longest value of one such field. All of them together, names and values in UTF-8, carry at most
|
|
354
|
+
* PROTECTION_FIELDS_BYTES_MAX, as much as a provider is ever handed (D15). */
|
|
355
|
+
export declare const VISITOR_FORM_EXTRA_VALUE_MAX = 4096;
|
|
356
|
+
/**
|
|
357
|
+
* Whether a posted field name lies under some valid provider prefix (D15), the only extra field a
|
|
358
|
+
* provider could ever be handed. That leaves out every secret name (none holds "_"), the built-in
|
|
359
|
+
* check's own (a prefix never starts "kp") and anything else. A scan of at most the prefix's length.
|
|
360
|
+
*/
|
|
361
|
+
export declare function isProtectionProviderFieldName(name: string): boolean;
|
|
362
|
+
export declare const VisitorSignInRequestSchema: z.ZodObject<{
|
|
363
|
+
kp_website: z.ZodOptional<z.ZodString>;
|
|
364
|
+
kp_token: z.ZodOptional<z.ZodString>;
|
|
365
|
+
email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
366
|
+
password: z.ZodString;
|
|
367
|
+
staySignedIn: z.ZodDefault<z.ZodBoolean>;
|
|
368
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
369
|
+
export declare const VisitorRegisterRequestSchema: z.ZodObject<{
|
|
370
|
+
kp_website: z.ZodOptional<z.ZodString>;
|
|
371
|
+
kp_token: z.ZodOptional<z.ZodString>;
|
|
372
|
+
email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
373
|
+
password: z.ZodString;
|
|
374
|
+
name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string | undefined, string>>>;
|
|
375
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
377
|
+
export declare const VisitorEmailRequestSchema: z.ZodObject<{
|
|
378
|
+
kp_website: z.ZodOptional<z.ZodString>;
|
|
379
|
+
kp_token: z.ZodOptional<z.ZodString>;
|
|
380
|
+
email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
381
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
382
|
+
export declare const VisitorTokenRequestSchema: z.ZodObject<{
|
|
383
|
+
token: z.ZodString;
|
|
384
|
+
staySignedIn: z.ZodDefault<z.ZodBoolean>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
export declare const VisitorResetConfirmRequestSchema: z.ZodObject<{
|
|
387
|
+
token: z.ZodString;
|
|
388
|
+
password: z.ZodString;
|
|
389
|
+
staySignedIn: z.ZodDefault<z.ZodBoolean>;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
export declare const VisitorMeSchema: z.ZodObject<{
|
|
392
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
393
|
+
name: z.ZodNullable<z.ZodString>;
|
|
394
|
+
email: z.ZodString;
|
|
395
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
export type VisitorMe = z.infer<typeof VisitorMeSchema>;
|
|
398
|
+
export declare const VisitorMeResponseSchema: z.ZodObject<{
|
|
399
|
+
visitor: z.ZodNullable<z.ZodObject<{
|
|
400
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
401
|
+
name: z.ZodNullable<z.ZodString>;
|
|
402
|
+
email: z.ZodString;
|
|
403
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
/** M35 U2b: `protection` is the chosen provider's key, field prefix, widget parts and script, null while
|
|
407
|
+
* the built-in check serves alone. */
|
|
408
|
+
export declare const VisitorFormFieldsResponseSchema: z.ZodObject<{
|
|
409
|
+
hiddenField: z.ZodString;
|
|
410
|
+
tokenField: z.ZodString;
|
|
411
|
+
token: z.ZodString;
|
|
412
|
+
minSeconds: z.ZodNumber;
|
|
413
|
+
protection: z.ZodNullable<z.ZodObject<{
|
|
414
|
+
provider: z.ZodString;
|
|
415
|
+
fieldPrefix: z.ZodString;
|
|
416
|
+
widget: z.ZodNullable<z.ZodObject<{
|
|
417
|
+
class: z.ZodOptional<z.ZodString>;
|
|
418
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
419
|
+
fallbackText: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strict>>;
|
|
421
|
+
script: z.ZodNullable<z.ZodString>;
|
|
422
|
+
}, z.core.$strict>>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
export declare const VisitorSentResponseSchema: z.ZodObject<{
|
|
425
|
+
status: z.ZodLiteral<"sent">;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
export declare const VisitorConfirmResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
|
+
status: z.ZodLiteral<"signed_in">;
|
|
429
|
+
visitor: z.ZodObject<{
|
|
430
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
431
|
+
name: z.ZodNullable<z.ZodString>;
|
|
432
|
+
email: z.ZodString;
|
|
433
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
436
|
+
status: z.ZodLiteral<"waiting_approval">;
|
|
437
|
+
}, z.core.$strip>], "status">;
|
|
438
|
+
export declare const VISITOR_REFUSAL_CODES: readonly ["wrong_credentials", "confirm_first", "link_invalid", "busy", "too_many", "cross_site", "protection", "registration_closed", "unavailable"];
|
|
439
|
+
export type VisitorRefusalCode = (typeof VISITOR_REFUSAL_CODES)[number];
|
|
440
|
+
export declare const VisitorRefusalSchema: z.ZodObject<{
|
|
441
|
+
code: z.ZodEnum<{
|
|
442
|
+
unavailable: "unavailable";
|
|
443
|
+
protection: "protection";
|
|
444
|
+
busy: "busy";
|
|
445
|
+
wrong_credentials: "wrong_credentials";
|
|
446
|
+
confirm_first: "confirm_first";
|
|
447
|
+
link_invalid: "link_invalid";
|
|
448
|
+
too_many: "too_many";
|
|
449
|
+
cross_site: "cross_site";
|
|
450
|
+
registration_closed: "registration_closed";
|
|
451
|
+
}>;
|
|
452
|
+
message: z.ZodString;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export declare const VISITOR_EXISTS_CODE = "visitor_exists";
|
|
455
|
+
export declare const VISITOR_LAST_METHOD_CODE = "last_sign_in_method";
|
|
456
|
+
/** D12: an invitation's 409: the address already has an account on the site, or the site's accounts are off or not ready. */
|
|
457
|
+
/** Why an invitation cannot be sent: the readiness reasons, and `accounts_off` while the site's visitor accounts are switched off. */
|
|
458
|
+
export declare const VISITOR_INVITE_NOT_READY_REASONS: readonly ["mail_not_ready", "no_site_address", "https_required", "accounts_off"];
|
|
459
|
+
export type VisitorInviteNotReadyReason = (typeof VISITOR_INVITE_NOT_READY_REASONS)[number];
|
|
460
|
+
export declare const VisitorInviteConflictSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
461
|
+
code: z.ZodLiteral<"visitor_exists">;
|
|
462
|
+
message: z.ZodString;
|
|
463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
464
|
+
code: z.ZodLiteral<"visitor_accounts_not_ready">;
|
|
465
|
+
message: z.ZodString;
|
|
466
|
+
missing: z.ZodArray<z.ZodEnum<{
|
|
467
|
+
mail_not_ready: "mail_not_ready";
|
|
468
|
+
no_site_address: "no_site_address";
|
|
469
|
+
https_required: "https_required";
|
|
470
|
+
accounts_off: "accounts_off";
|
|
471
|
+
}>>;
|
|
472
|
+
}, z.core.$strip>]>;
|
|
473
|
+
export declare const VISITOR_SETTINGS_SESSION_ONLY_MESSAGE = "Visitor accounts are set up by a session";
|
|
474
|
+
export declare const VISITORS_SESSION_ONLY_MESSAGE = "Visitor accounts are managed by a session";
|
|
475
|
+
export declare const VISITOR_RETURN_MAX = 512;
|
|
476
|
+
/** A site path to go back to after a sign-in: the admin return path's rule, never the admin, the API or the sign-out. */
|
|
477
|
+
export declare function isVisitorReturnPath(value: unknown): value is string;
|
|
478
|
+
/** A visitor link's token: `<selector>.<verifier>`, the reset token's exact rule. Never throws. */
|
|
479
|
+
export declare function parseVisitorLinkToken(value: unknown): {
|
|
480
|
+
selector: string;
|
|
481
|
+
verifier: string;
|
|
482
|
+
} | null;
|