@kardalum/plugin-sdk 0.19.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 +281 -0
- package/README.md +19 -0
- package/dist/admin-section-registry.d.ts +48 -1
- package/dist/admin-section-registry.js +90 -0
- package/dist/built-in-editor-ids.d.ts +1 -1
- package/dist/built-in-editor-ids.js +2 -20
- package/dist/built-in-settings-schemas.d.ts +10 -0
- package/dist/built-in-settings-schemas.js +86 -0
- package/dist/built-in-value-schemas.js +35 -0
- package/dist/built-ins.js +38 -7
- package/dist/capabilities.d.ts +11 -1
- package/dist/capabilities.js +101 -4
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/consent-entry.d.ts +11 -0
- package/dist/consent-entry.js +18 -0
- package/dist/content-library.d.ts +102 -0
- package/dist/content-library.js +15 -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 +15 -0
- package/dist/content-picker/page-picker-sheet.js +105 -0
- package/dist/content-picker/page-picker.d.ts +18 -0
- package/dist/content-picker/page-picker.js +20 -0
- package/dist/content-picker/page-tree.d.ts +25 -0
- package/dist/content-picker/page-tree.js +132 -0
- package/dist/data-type-plugin.d.ts +7 -1
- package/dist/datatype-validation.d.ts +4 -9
- package/dist/datatype-validation.js +147 -1
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +2 -0
- package/dist/entitlement-entry.d.ts +1 -1
- package/dist/entitlement-entry.js +1 -1
- package/dist/entitlement-gate.d.ts +14 -0
- package/dist/entitlement-gate.js +64 -7
- package/dist/entitlement-plan.d.ts +6 -0
- package/dist/entitlement-plan.js +10 -0
- package/dist/entitlement-types.d.ts +53 -12
- package/dist/entitlement.d.ts +31 -4
- package/dist/entitlement.js +58 -17
- package/dist/hook-entry.d.ts +5 -0
- package/dist/hook-entry.js +30 -0
- package/dist/host-entry.d.ts +7 -1
- package/dist/host-entry.js +14 -1
- package/dist/index.d.ts +67 -7
- package/dist/index.js +94 -6
- package/dist/mail.d.ts +34 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +47 -4
- package/dist/manifest-entry.js +63 -2
- package/dist/manifest-schema.d.ts +993 -40
- package/dist/manifest-schema.js +516 -26
- package/dist/manifest.d.ts +1186 -62
- package/dist/manifest.js +8 -4
- package/dist/media/media-picker.js +31 -18
- package/dist/media/upload-error.d.ts +5 -1
- package/dist/media/upload-error.js +14 -2
- package/dist/media-library.d.ts +32 -0
- package/dist/media-library.js +15 -0
- package/dist/nested-field-host.d.ts +76 -0
- package/dist/nested-field-host.js +90 -0
- package/dist/notify.d.ts +12 -4
- package/dist/notify.js +1 -1
- package/dist/outbound.d.ts +47 -0
- package/dist/outbound.js +1 -0
- package/dist/plugin-context.d.ts +52 -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 +262 -9
- package/dist/plugin-screen-context.js +56 -0
- package/dist/providers.d.ts +313 -0
- package/dist/providers.js +74 -0
- package/dist/read-all-pages.d.ts +5 -0
- package/dist/read-all-pages.js +3 -2
- package/dist/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 +36 -25
- 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 +45 -22
- 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/style-listbox.js +6 -4
- 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 +344 -0
- package/dist/sdk-strings.js +411 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -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/simple-storage-value-provider.js +24 -24
- package/dist/structured-storage-types.d.ts +429 -9
- 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 -0
- package/dist/text-entry.js +7 -0
- package/dist/tokens/system-dark.css +1 -0
- package/dist/tokens/tailwind-theme.css +7 -0
- package/dist/tokens/tokens.css +19 -3
- package/dist/tokens/tokens.json +13 -4
- 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/asset-view.js +4 -1
- package/dist/views/content-list-preview.js +3 -1
- package/dist/views/content-list-settings-view.js +11 -7
- package/dist/views/content-list-view.d.ts +5 -3
- package/dist/views/content-list-view.js +243 -40
- package/dist/views/content-picker-view.d.ts +3 -0
- package/dist/views/content-picker-view.js +143 -0
- package/dist/views/crop-view.d.ts +4 -6
- package/dist/views/crop-view.js +22 -13
- package/dist/views/date-range-view.js +4 -1
- package/dist/views/file-upload-view.d.ts +5 -7
- package/dist/views/file-upload-view.js +16 -7
- package/dist/views/group-view.d.ts +8 -0
- package/dist/views/group-view.js +123 -0
- package/dist/views/html-view.js +7 -6
- package/dist/views/image-view.js +37 -19
- package/dist/views/link-view.d.ts +3 -0
- package/dist/views/link-view.js +150 -0
- package/dist/views/options-list-view.d.ts +3 -0
- package/dist/views/options-list-view.js +104 -0
- package/dist/views/repeatable-list-view.d.ts +3 -0
- package/dist/views/repeatable-list-view.js +113 -0
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +208 -35
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- 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 +334 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +254 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +11 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +144 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +115 -3
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +58 -11
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +137 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +178 -2
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-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/content-search.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/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 +55 -13
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +22 -10
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +257 -15
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +78 -5
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +90 -5
- package/node_modules/@kardalum/api-schemas/dist/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/form-protection.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/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 +162 -48
- package/node_modules/@kardalum/api-schemas/dist/index.js +137 -30
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/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/legal-anchors.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +226 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +409 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +490 -10
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +53 -3
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +38 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +13 -1
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +60 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +333 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
- package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/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/password-reset.schema.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-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-caller.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +84 -0
- 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-data-type-configs.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +44 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +44 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +16 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +126 -0
- 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-field-info.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-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 +119 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +216 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +46 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +41 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +304 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +220 -6
- 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-labels.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +408 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +307 -23
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +61 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +346 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +461 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-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-sealed-values.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-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 +352 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +409 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +347 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +976 -0
- 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-storage-api.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +47 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-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-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -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/plural-rules.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
- package/node_modules/@kardalum/api-schemas/dist/render-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 +307 -4
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- 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 +71 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +540 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +394 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +201 -1
- 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 +97 -8
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +64 -1
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +136 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +53 -2
- 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 +386 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +618 -0
- 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/snapshot-api.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +188 -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/template.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +72 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +36 -3
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
- package/node_modules/@kardalum/api-schemas/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 +2 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +15 -1
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +7 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +2 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +19 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +18 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +13 -4
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +5 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +38 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +17 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +625 -35
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
- package/node_modules/@kardalum/plugin-package/dist/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/ai-declarations.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/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.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +47 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +40 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +76 -6
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +99 -0
- 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/locales.js +9 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +316 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +40 -4
- 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 +91 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +150 -0
- 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.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +69 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +17 -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 +8 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +7 -1
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
- package/node_modules/@kardalum/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/switch.js +1 -1
- 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/components/tooltip.js +1 -2
- package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +6 -1
- package/node_modules/@kardalum/ui/dist/components/truncated-text.js +5 -4
- package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/index.js +2 -0
- package/package.json +25 -3
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** D5: the kinds this release knows. "gate" (35-U3b) and "task" are additive; a step ignores what it does not know. */
|
|
3
|
+
export declare const SIGN_IN_STEP_KINDS: readonly ["factor"];
|
|
4
|
+
export type SignInStepKind = (typeof SIGN_IN_STEP_KINDS)[number];
|
|
5
|
+
/** D5: what a factor's `status` answers. Each later kind brings its own two states. */
|
|
6
|
+
export declare const SIGN_IN_STEP_STATES: readonly ["setUp", "notSetUp"];
|
|
7
|
+
/** Named apart from SignInStepState (a settings card, below). */
|
|
8
|
+
export type SignInStepStatusState = (typeof SIGN_IN_STEP_STATES)[number];
|
|
9
|
+
/** D4: the forms a step is drawn in. Setup during a sign-in (35-U3c) answers `form: "setup"` on the step page. */
|
|
10
|
+
export declare const SIGN_IN_STEP_FORMS: readonly ["challenge", "setup"];
|
|
11
|
+
export declare const SIGN_IN_STEP_PARTS: readonly ["main", "alternate"];
|
|
12
|
+
export type SignInStepPart = (typeof SIGN_IN_STEP_PARTS)[number];
|
|
13
|
+
export declare const SIGN_IN_STEP_TELLS: readonly ["wrong", "expired", "unavailable"];
|
|
14
|
+
/** D4: the codes a step route answers with. */
|
|
15
|
+
export declare const SIGN_IN_STEP_ERROR_CODES: readonly ["wrong", "expired", "paused", "unavailable"];
|
|
16
|
+
export type SignInStepErrorCode = (typeof SIGN_IN_STEP_ERROR_CODES)[number];
|
|
17
|
+
/** D7, D10: what the owner chooses for a step. "everyone" and roles come with required factors (35-U3c). */
|
|
18
|
+
export declare const SIGN_IN_STEP_WHO: readonly ["setUp"];
|
|
19
|
+
export declare const SIGN_IN_STEP_FAILURE_RULES: readonly ["refuse", "allow"];
|
|
20
|
+
export type SignInStepFailureRule = (typeof SIGN_IN_STEP_FAILURE_RULES)[number];
|
|
21
|
+
/** D2: the most steps switched on site-wide. A plugin declares at most PROVIDERS_PER_KIND_MAX. */
|
|
22
|
+
export declare const SIGN_IN_STEPS_ON_MAX = 10;
|
|
23
|
+
/** D3: the pending sign-in's bounds. */
|
|
24
|
+
export declare const SIGN_IN_PENDING_TTL_SECONDS = 600;
|
|
25
|
+
export declare const SIGN_IN_PENDING_WRONG_MAX = 5;
|
|
26
|
+
export declare const SIGN_IN_PENDING_PER_ACCOUNT_MAX = 5;
|
|
27
|
+
export declare const SIGN_IN_PENDING_PER_ADDRESS_MAX = 10;
|
|
28
|
+
export declare const SIGN_IN_PENDING_LIVE_MAX = 10000;
|
|
29
|
+
/** D8: a setup row lives as long as a pending sign-in; a person without a password sets up from a session this fresh. */
|
|
30
|
+
export declare const SIGN_IN_SETUP_TTL_SECONDS = 600;
|
|
31
|
+
export declare const SIGN_IN_STEP_FRESH_SESSION_MS = 600000;
|
|
32
|
+
/** D9 (decision 12 (a)): the account brake. */
|
|
33
|
+
export declare const SIGN_IN_STEP_BRAKE_FAILURES = 10;
|
|
34
|
+
export declare const SIGN_IN_STEP_BRAKE_WINDOW_MS = 900000;
|
|
35
|
+
export declare const SIGN_IN_STEP_BRAKE_PAUSE_MS = 900000;
|
|
36
|
+
/** D6: the parts' limits. */
|
|
37
|
+
export declare const SIGN_IN_STEP_FIELDS_MAX = 3;
|
|
38
|
+
export declare const SIGN_IN_STEP_LEAD_MAX = 2;
|
|
39
|
+
export declare const SIGN_IN_STEP_LEAD_TEXT_MAX = 400;
|
|
40
|
+
export declare const SIGN_IN_STEP_LABEL_MAX = 80;
|
|
41
|
+
export declare const SIGN_IN_STEP_FIELD_ID_MAX = 32;
|
|
42
|
+
export declare const SIGN_IN_STEP_CODE_DIGITS_MIN = 4;
|
|
43
|
+
export declare const SIGN_IN_STEP_CODE_DIGITS_MAX = 10;
|
|
44
|
+
export declare const SIGN_IN_STEP_TEXT_MAX = 64;
|
|
45
|
+
export declare const SIGN_IN_STEP_SECRET_MIN = 16;
|
|
46
|
+
export declare const SIGN_IN_STEP_SECRET_MAX = 128;
|
|
47
|
+
export declare const SIGN_IN_STEP_KEEP_CODES_MAX = 16;
|
|
48
|
+
export declare const SIGN_IN_STEP_KEEP_CODE_MIN = 4;
|
|
49
|
+
export declare const SIGN_IN_STEP_KEEP_CODE_MAX = 32;
|
|
50
|
+
export declare const SIGN_IN_STEP_STATE_MAX_BYTES = 4096;
|
|
51
|
+
export declare const SIGN_IN_STEP_KEPT_MAX_BYTES = 8192;
|
|
52
|
+
export declare const SIGN_IN_STEP_ANSWER_MAX_BYTES = 16384;
|
|
53
|
+
/** Longer than any field's rule, so a value past its field is still read and answered `wrong`. */
|
|
54
|
+
export declare const SIGN_IN_STEP_ANSWER_VALUE_MAX = 256;
|
|
55
|
+
/** A step key, `<pluginId>/<stepId>`. */
|
|
56
|
+
export declare const SIGN_IN_STEP_KEY_MAX: number;
|
|
57
|
+
/** The longest otpauth address (a 253-character host, a 191-character email, a 128-character key, the query). */
|
|
58
|
+
export declare const SIGN_IN_STEP_OTPAUTH_MAX = 2048;
|
|
59
|
+
export declare function isSignInStepKind(value: unknown): value is SignInStepKind;
|
|
60
|
+
/** A field id: a-z first, then a-z, 0-9 and "-", 1 to 32, no "-" last. */
|
|
61
|
+
export declare function isSignInStepFieldId(value: unknown): value is string;
|
|
62
|
+
/** An authenticator key: 16 to 128 characters of the RFC 4648 base32 alphabet, upper case, no padding. */
|
|
63
|
+
export declare function isBase32Secret(value: unknown): value is string;
|
|
64
|
+
/** A code to keep: 4 to 32 characters of A to Z, a to z, 0 to 9 and "-". */
|
|
65
|
+
export declare function isKeepCode(value: unknown): value is string;
|
|
66
|
+
/**
|
|
67
|
+
* D5: the kind rule. Every required function of the table kind (`status`) is always required; a factor
|
|
68
|
+
* also declares every optional one. Both lists are PROVIDER_TABLE_FUNCTIONS.signInStep's, never retyped.
|
|
69
|
+
*/
|
|
70
|
+
export declare function signInStepFunctionsProblem(kind: SignInStepKind, present: ReadonlySet<string>): string | null;
|
|
71
|
+
/** D5: a step entry's own fields (the id and label are the provider table's shared rule). Names a field, never a value. */
|
|
72
|
+
export declare function signInStepDeclarationProblems(entry: Record<string, unknown>, where: string): string[];
|
|
73
|
+
/** D5: a plugin with a factor step seals its secret (`sealedValues`) in its structured storage. */
|
|
74
|
+
export declare function signInStepManifestProblems(manifest: {
|
|
75
|
+
contributions?: unknown;
|
|
76
|
+
databaseCompatibility?: unknown;
|
|
77
|
+
}): string[];
|
|
78
|
+
export declare const SignInStepCodeFieldSchema: z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"code">;
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
82
|
+
en: z.ZodString;
|
|
83
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
84
|
+
digits: z.ZodNumber;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export declare const SignInStepTextFieldSchema: z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"text">;
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
90
|
+
en: z.ZodString;
|
|
91
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
92
|
+
max: z.ZodNumber;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
export declare const SignInStepFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"code">;
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
98
|
+
en: z.ZodString;
|
|
99
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
100
|
+
digits: z.ZodNumber;
|
|
101
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
102
|
+
type: z.ZodLiteral<"text">;
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
105
|
+
en: z.ZodString;
|
|
106
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
107
|
+
max: z.ZodNumber;
|
|
108
|
+
}, z.core.$strict>], "type">;
|
|
109
|
+
export type SignInStepField = z.infer<typeof SignInStepFieldSchema>;
|
|
110
|
+
export declare const SignInStepSetupKeySchema: z.ZodObject<{
|
|
111
|
+
secret: z.ZodString;
|
|
112
|
+
algorithm: z.ZodEnum<{
|
|
113
|
+
SHA1: "SHA1";
|
|
114
|
+
SHA256: "SHA256";
|
|
115
|
+
SHA512: "SHA512";
|
|
116
|
+
}>;
|
|
117
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
118
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
export type SignInStepSetupKey = z.infer<typeof SignInStepSetupKeySchema>;
|
|
121
|
+
/** D6: what the browser draws. `setupKey`, `otpauthUri` and `keepCodes` only on a setup, to the browser that holds it. */
|
|
122
|
+
export declare const SignInStepDrawableSchema: z.ZodObject<{
|
|
123
|
+
lead: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
124
|
+
en: z.ZodString;
|
|
125
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>>;
|
|
126
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
type: z.ZodLiteral<"code">;
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
130
|
+
en: z.ZodString;
|
|
131
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
132
|
+
digits: z.ZodNumber;
|
|
133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
134
|
+
type: z.ZodLiteral<"text">;
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
137
|
+
en: z.ZodString;
|
|
138
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
139
|
+
max: z.ZodNumber;
|
|
140
|
+
}, z.core.$strict>], "type">>;
|
|
141
|
+
alternate: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
143
|
+
en: z.ZodString;
|
|
144
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
145
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
|
+
type: z.ZodLiteral<"code">;
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
149
|
+
en: z.ZodString;
|
|
150
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
151
|
+
digits: z.ZodNumber;
|
|
152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
153
|
+
type: z.ZodLiteral<"text">;
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
156
|
+
en: z.ZodString;
|
|
157
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
158
|
+
max: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>], "type">>;
|
|
160
|
+
}, z.core.$strict>>;
|
|
161
|
+
submitLabel: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
162
|
+
en: z.ZodString;
|
|
163
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
164
|
+
setupKey: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
secret: z.ZodString;
|
|
166
|
+
algorithm: z.ZodEnum<{
|
|
167
|
+
SHA1: "SHA1";
|
|
168
|
+
SHA256: "SHA256";
|
|
169
|
+
SHA512: "SHA512";
|
|
170
|
+
}>;
|
|
171
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
172
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
otpauthUri: z.ZodOptional<z.ZodString>;
|
|
175
|
+
keepCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
export type SignInStepDrawable = z.infer<typeof SignInStepDrawableSchema>;
|
|
178
|
+
/** D6: a plugin's challenge (`challenge` or `setupBegin`). `state` is opaque, sealed by the core, never sent to the browser. */
|
|
179
|
+
export declare const SignInStepChallengeSchema: z.ZodObject<{
|
|
180
|
+
lead: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
181
|
+
en: z.ZodString;
|
|
182
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>>;
|
|
183
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
+
type: z.ZodLiteral<"code">;
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
187
|
+
en: z.ZodString;
|
|
188
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
189
|
+
digits: z.ZodNumber;
|
|
190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"text">;
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
194
|
+
en: z.ZodString;
|
|
195
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
196
|
+
max: z.ZodNumber;
|
|
197
|
+
}, z.core.$strict>], "type">>;
|
|
198
|
+
alternate: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
200
|
+
en: z.ZodString;
|
|
201
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
202
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
203
|
+
type: z.ZodLiteral<"code">;
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
206
|
+
en: z.ZodString;
|
|
207
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
208
|
+
digits: z.ZodNumber;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"text">;
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
213
|
+
en: z.ZodString;
|
|
214
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
215
|
+
max: z.ZodNumber;
|
|
216
|
+
}, z.core.$strict>], "type">>;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
submitLabel: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
219
|
+
en: z.ZodString;
|
|
220
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
221
|
+
setupKey: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
secret: z.ZodString;
|
|
223
|
+
algorithm: z.ZodEnum<{
|
|
224
|
+
SHA1: "SHA1";
|
|
225
|
+
SHA256: "SHA256";
|
|
226
|
+
SHA512: "SHA512";
|
|
227
|
+
}>;
|
|
228
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
229
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
230
|
+
}, z.core.$strict>>;
|
|
231
|
+
keepCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
+
state: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
export type SignInStepChallenge = z.infer<typeof SignInStepChallengeSchema>;
|
|
235
|
+
/** The secret half of a kept challenge, sealed into its row. */
|
|
236
|
+
export interface SignInStepSecret {
|
|
237
|
+
state: string | null;
|
|
238
|
+
setupKey: SignInStepSetupKey | null;
|
|
239
|
+
keepCodes: string[] | null;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* D6: a plugin's challenge as the core keeps it, or null when it is out of shape: the drawable half
|
|
243
|
+
* (at most SIGN_IN_STEP_KEPT_MAX_BYTES as JSON) and the secret half. `form` "challenge" refuses the
|
|
244
|
+
* setup parts. The answer is copied once and the copy is what is checked and kept.
|
|
245
|
+
*/
|
|
246
|
+
export declare function readSignInStepChallenge(raw: unknown, form: "challenge" | "setup"): {
|
|
247
|
+
drawable: SignInStepDrawable;
|
|
248
|
+
secret: SignInStepSecret;
|
|
249
|
+
} | null;
|
|
250
|
+
/** D6: a status answer of a kind, or null when out of shape (read once). */
|
|
251
|
+
export declare function readSignInStepStatus(raw: unknown, kind: SignInStepKind): SignInStepStatusState | null;
|
|
252
|
+
export declare const SignInStepVerdictSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
253
|
+
ok: z.ZodLiteral<true>;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
ok: z.ZodLiteral<false>;
|
|
256
|
+
tell: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
unavailable: "unavailable";
|
|
258
|
+
expired: "expired";
|
|
259
|
+
wrong: "wrong";
|
|
260
|
+
}>>;
|
|
261
|
+
}, z.core.$strict>]>;
|
|
262
|
+
export type SignInStepVerdict = z.infer<typeof SignInStepVerdictSchema>;
|
|
263
|
+
/** D6: a verify or setupFinish answer, or null when out of shape. */
|
|
264
|
+
export declare function readSignInStepVerdict(raw: unknown): SignInStepVerdict | null;
|
|
265
|
+
/**
|
|
266
|
+
* D6: the core's check of an answer against the kept challenge, before any plugin call: exactly the
|
|
267
|
+
* chosen part's field ids, a code exactly `digits` ASCII digits, a text 1 to `max` characters with no
|
|
268
|
+
* hidden character. Null when it passes, else "wrong" (counted, and the plugin never sees it).
|
|
269
|
+
*/
|
|
270
|
+
export declare function signInStepAnswerProblem(drawable: SignInStepDrawable, part: SignInStepPart, answer: Readonly<Record<string, string>>): "wrong" | null;
|
|
271
|
+
/** D6: the otpauth address the core builds for a setup's QR code; the plugin never learns the issuer or the email. */
|
|
272
|
+
export declare function otpAuthUri(input: {
|
|
273
|
+
issuer: string;
|
|
274
|
+
account: string;
|
|
275
|
+
setupKey: SignInStepSetupKey;
|
|
276
|
+
}): string;
|
|
277
|
+
/** D5: what a step learns. A union keyed on `audience`; only the admin branch exists (D14). */
|
|
278
|
+
export declare const SignInStepPersonSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
279
|
+
audience: z.ZodLiteral<"admin">;
|
|
280
|
+
userId: z.ZodString;
|
|
281
|
+
roleId: z.ZodString;
|
|
282
|
+
method: z.ZodEnum<{
|
|
283
|
+
password: "password";
|
|
284
|
+
provider: "provider";
|
|
285
|
+
}>;
|
|
286
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
287
|
+
culture: z.ZodString;
|
|
288
|
+
}, z.core.$strict>], "audience">;
|
|
289
|
+
export type SignInStepPerson = z.infer<typeof SignInStepPersonSchema>;
|
|
290
|
+
export declare const SignInStepStatusSchema: z.ZodObject<{
|
|
291
|
+
state: z.ZodEnum<{
|
|
292
|
+
setUp: "setUp";
|
|
293
|
+
notSetUp: "notSetUp";
|
|
294
|
+
}>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export type SignInStepStatus = z.infer<typeof SignInStepStatusSchema>;
|
|
297
|
+
export declare const SignInStepAnswerInputSchema: z.ZodObject<{
|
|
298
|
+
part: z.ZodEnum<{
|
|
299
|
+
alternate: "alternate";
|
|
300
|
+
main: "main";
|
|
301
|
+
}>;
|
|
302
|
+
answer: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
303
|
+
state: z.ZodNullable<z.ZodString>;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
export type SignInStepAnswerInput = z.infer<typeof SignInStepAnswerInputSchema>;
|
|
306
|
+
/** D4: the step to draw (`GET /api/auth/steps/current`, the 202 of a login, `choose`). */
|
|
307
|
+
export declare const SignInStepPendingSchema: z.ZodObject<{
|
|
308
|
+
key: z.ZodString;
|
|
309
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
310
|
+
en: z.ZodString;
|
|
311
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
312
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
313
|
+
en: z.ZodString;
|
|
314
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
315
|
+
kind: z.ZodEnum<{
|
|
316
|
+
factor: "factor";
|
|
317
|
+
}>;
|
|
318
|
+
form: z.ZodEnum<{
|
|
319
|
+
challenge: "challenge";
|
|
320
|
+
setup: "setup";
|
|
321
|
+
}>;
|
|
322
|
+
challenge: z.ZodObject<{
|
|
323
|
+
lead: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
324
|
+
en: z.ZodString;
|
|
325
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>>;
|
|
326
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"code">;
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
330
|
+
en: z.ZodString;
|
|
331
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
332
|
+
digits: z.ZodNumber;
|
|
333
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
334
|
+
type: z.ZodLiteral<"text">;
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
337
|
+
en: z.ZodString;
|
|
338
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
339
|
+
max: z.ZodNumber;
|
|
340
|
+
}, z.core.$strict>], "type">>;
|
|
341
|
+
alternate: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
343
|
+
en: z.ZodString;
|
|
344
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
345
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"code">;
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
349
|
+
en: z.ZodString;
|
|
350
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
351
|
+
digits: z.ZodNumber;
|
|
352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
353
|
+
type: z.ZodLiteral<"text">;
|
|
354
|
+
id: z.ZodString;
|
|
355
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
356
|
+
en: z.ZodString;
|
|
357
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
358
|
+
max: z.ZodNumber;
|
|
359
|
+
}, z.core.$strict>], "type">>;
|
|
360
|
+
}, z.core.$strict>>;
|
|
361
|
+
submitLabel: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
362
|
+
en: z.ZodString;
|
|
363
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
364
|
+
setupKey: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
secret: z.ZodString;
|
|
366
|
+
algorithm: z.ZodEnum<{
|
|
367
|
+
SHA1: "SHA1";
|
|
368
|
+
SHA256: "SHA256";
|
|
369
|
+
SHA512: "SHA512";
|
|
370
|
+
}>;
|
|
371
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
372
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
373
|
+
}, z.core.$strict>>;
|
|
374
|
+
otpauthUri: z.ZodOptional<z.ZodString>;
|
|
375
|
+
keepCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
376
|
+
}, z.core.$strict>;
|
|
377
|
+
others: z.ZodArray<z.ZodObject<{
|
|
378
|
+
key: z.ZodString;
|
|
379
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
380
|
+
en: z.ZodString;
|
|
381
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
attemptsLeft: z.ZodNumber;
|
|
384
|
+
expiresAt: z.ZodString;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
export type SignInStepPending = z.infer<typeof SignInStepPendingSchema>;
|
|
387
|
+
export declare const LoginStepResponseSchema: z.ZodObject<{
|
|
388
|
+
step: z.ZodObject<{
|
|
389
|
+
key: z.ZodString;
|
|
390
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
391
|
+
en: z.ZodString;
|
|
392
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
393
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
394
|
+
en: z.ZodString;
|
|
395
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
396
|
+
kind: z.ZodEnum<{
|
|
397
|
+
factor: "factor";
|
|
398
|
+
}>;
|
|
399
|
+
form: z.ZodEnum<{
|
|
400
|
+
challenge: "challenge";
|
|
401
|
+
setup: "setup";
|
|
402
|
+
}>;
|
|
403
|
+
challenge: z.ZodObject<{
|
|
404
|
+
lead: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
405
|
+
en: z.ZodString;
|
|
406
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>>;
|
|
407
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
408
|
+
type: z.ZodLiteral<"code">;
|
|
409
|
+
id: z.ZodString;
|
|
410
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
411
|
+
en: z.ZodString;
|
|
412
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
413
|
+
digits: z.ZodNumber;
|
|
414
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
415
|
+
type: z.ZodLiteral<"text">;
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
418
|
+
en: z.ZodString;
|
|
419
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
420
|
+
max: z.ZodNumber;
|
|
421
|
+
}, z.core.$strict>], "type">>;
|
|
422
|
+
alternate: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
424
|
+
en: z.ZodString;
|
|
425
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
426
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
427
|
+
type: z.ZodLiteral<"code">;
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
430
|
+
en: z.ZodString;
|
|
431
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
432
|
+
digits: z.ZodNumber;
|
|
433
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
434
|
+
type: z.ZodLiteral<"text">;
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
437
|
+
en: z.ZodString;
|
|
438
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
439
|
+
max: z.ZodNumber;
|
|
440
|
+
}, z.core.$strict>], "type">>;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
submitLabel: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
443
|
+
en: z.ZodString;
|
|
444
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
445
|
+
setupKey: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
secret: z.ZodString;
|
|
447
|
+
algorithm: z.ZodEnum<{
|
|
448
|
+
SHA1: "SHA1";
|
|
449
|
+
SHA256: "SHA256";
|
|
450
|
+
SHA512: "SHA512";
|
|
451
|
+
}>;
|
|
452
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
453
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
otpauthUri: z.ZodOptional<z.ZodString>;
|
|
456
|
+
keepCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
457
|
+
}, z.core.$strict>;
|
|
458
|
+
others: z.ZodArray<z.ZodObject<{
|
|
459
|
+
key: z.ZodString;
|
|
460
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
461
|
+
en: z.ZodString;
|
|
462
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
attemptsLeft: z.ZodNumber;
|
|
465
|
+
expiresAt: z.ZodString;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
export type LoginStepResponse = z.infer<typeof LoginStepResponseSchema>;
|
|
469
|
+
export declare const SignInStepAnswerRequestSchema: z.ZodObject<{
|
|
470
|
+
key: z.ZodString;
|
|
471
|
+
form: z.ZodLiteral<"challenge">;
|
|
472
|
+
part: z.ZodEnum<{
|
|
473
|
+
alternate: "alternate";
|
|
474
|
+
main: "main";
|
|
475
|
+
}>;
|
|
476
|
+
answer: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
export type SignInStepAnswerRequest = z.infer<typeof SignInStepAnswerRequestSchema>;
|
|
479
|
+
export declare const SignInStepChooseRequestSchema: z.ZodObject<{
|
|
480
|
+
key: z.ZodString;
|
|
481
|
+
}, z.core.$strict>;
|
|
482
|
+
/** D4: the last step passed: the login body and the admin path to land on. */
|
|
483
|
+
export declare const SignInStepCompletedResponseSchema: z.ZodObject<{
|
|
484
|
+
accessToken: z.ZodString;
|
|
485
|
+
user: z.ZodObject<{
|
|
486
|
+
id: z.ZodString;
|
|
487
|
+
email: z.ZodString;
|
|
488
|
+
name: z.ZodNullable<z.ZodString>;
|
|
489
|
+
role: z.ZodString;
|
|
490
|
+
roleLabel: z.ZodString;
|
|
491
|
+
actions: z.ZodArray<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
returnTo: z.ZodString;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
export type SignInStepCompletedResponse = z.infer<typeof SignInStepCompletedResponseSchema>;
|
|
496
|
+
export declare const SignInStepErrorSchema: z.ZodObject<{
|
|
497
|
+
code: z.ZodEnum<{
|
|
498
|
+
unavailable: "unavailable";
|
|
499
|
+
expired: "expired";
|
|
500
|
+
wrong: "wrong";
|
|
501
|
+
paused: "paused";
|
|
502
|
+
}>;
|
|
503
|
+
message: z.ZodString;
|
|
504
|
+
attemptsLeft: z.ZodOptional<z.ZodNumber>;
|
|
505
|
+
}, z.core.$strip>;
|
|
506
|
+
export type SignInStepError = z.infer<typeof SignInStepErrorSchema>;
|
|
507
|
+
/** D7: one step's settings, one `signInStep.<key>` row. A missing or damaged row reads as the defaults (off). */
|
|
508
|
+
export declare const SignInStepSettingsSchema: z.ZodObject<{
|
|
509
|
+
enabled: z.ZodBoolean;
|
|
510
|
+
who: z.ZodDefault<z.ZodEnum<{
|
|
511
|
+
setUp: "setUp";
|
|
512
|
+
}>>;
|
|
513
|
+
onFailure: z.ZodEnum<{
|
|
514
|
+
allow: "allow";
|
|
515
|
+
refuse: "refuse";
|
|
516
|
+
}>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
export type SignInStepSettings = z.infer<typeof SignInStepSettingsSchema>;
|
|
519
|
+
export declare const DEFAULT_SIGN_IN_STEP_SETTINGS: Readonly<SignInStepSettings>;
|
|
520
|
+
export declare function signInStepSettingsKey(stepKey: string): string;
|
|
521
|
+
/** D7.1: every write carries the person's password. */
|
|
522
|
+
export declare const UpdateSignInStepRequestSchema: z.ZodObject<{
|
|
523
|
+
enabled: z.ZodBoolean;
|
|
524
|
+
who: z.ZodDefault<z.ZodEnum<{
|
|
525
|
+
setUp: "setUp";
|
|
526
|
+
}>>;
|
|
527
|
+
onFailure: z.ZodEnum<{
|
|
528
|
+
allow: "allow";
|
|
529
|
+
refuse: "refuse";
|
|
530
|
+
}>;
|
|
531
|
+
password: z.ZodString;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
export declare const SignInStepParamsSchema: z.ZodObject<{
|
|
534
|
+
pluginId: z.ZodString;
|
|
535
|
+
stepId: z.ZodString;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
export declare const SignInStepStateSchema: z.ZodObject<{
|
|
538
|
+
key: z.ZodString;
|
|
539
|
+
pluginId: z.ZodString;
|
|
540
|
+
stepId: z.ZodString;
|
|
541
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
542
|
+
en: z.ZodString;
|
|
543
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
544
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
545
|
+
en: z.ZodString;
|
|
546
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
547
|
+
kind: z.ZodEnum<{
|
|
548
|
+
factor: "factor";
|
|
549
|
+
}>;
|
|
550
|
+
settings: z.ZodObject<{
|
|
551
|
+
enabled: z.ZodBoolean;
|
|
552
|
+
who: z.ZodDefault<z.ZodEnum<{
|
|
553
|
+
setUp: "setUp";
|
|
554
|
+
}>>;
|
|
555
|
+
onFailure: z.ZodEnum<{
|
|
556
|
+
allow: "allow";
|
|
557
|
+
refuse: "refuse";
|
|
558
|
+
}>;
|
|
559
|
+
}, z.core.$strict>;
|
|
560
|
+
served: z.ZodBoolean;
|
|
561
|
+
readOnly: z.ZodBoolean;
|
|
562
|
+
setUpCount: z.ZodNumber;
|
|
563
|
+
}, z.core.$strip>;
|
|
564
|
+
export type SignInStepState = z.infer<typeof SignInStepStateSchema>;
|
|
565
|
+
export declare const SignInStepsResponseSchema: z.ZodObject<{
|
|
566
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
567
|
+
key: z.ZodString;
|
|
568
|
+
pluginId: z.ZodString;
|
|
569
|
+
stepId: z.ZodString;
|
|
570
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
571
|
+
en: z.ZodString;
|
|
572
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
573
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
574
|
+
en: z.ZodString;
|
|
575
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
576
|
+
kind: z.ZodEnum<{
|
|
577
|
+
factor: "factor";
|
|
578
|
+
}>;
|
|
579
|
+
settings: z.ZodObject<{
|
|
580
|
+
enabled: z.ZodBoolean;
|
|
581
|
+
who: z.ZodDefault<z.ZodEnum<{
|
|
582
|
+
setUp: "setUp";
|
|
583
|
+
}>>;
|
|
584
|
+
onFailure: z.ZodEnum<{
|
|
585
|
+
allow: "allow";
|
|
586
|
+
refuse: "refuse";
|
|
587
|
+
}>;
|
|
588
|
+
}, z.core.$strict>;
|
|
589
|
+
served: z.ZodBoolean;
|
|
590
|
+
readOnly: z.ZodBoolean;
|
|
591
|
+
setUpCount: z.ZodNumber;
|
|
592
|
+
}, z.core.$strip>>;
|
|
593
|
+
serverSwitch: z.ZodBoolean;
|
|
594
|
+
switchedOnMax: z.ZodNumber;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
export type SignInStepsResponse = z.infer<typeof SignInStepsResponseSchema>;
|
|
597
|
+
/** D7.1, D8: a password a route refused, by code (a 403, never a 401). */
|
|
598
|
+
/** `sign_in_again`: a person without a password whose session is older than SIGN_IN_STEP_FRESH_SESSION_MS (D8). */
|
|
599
|
+
export declare const SignInStepPasswordRefusedSchema: z.ZodObject<{
|
|
600
|
+
code: z.ZodEnum<{
|
|
601
|
+
account_refused: "account_refused";
|
|
602
|
+
wrong_password: "wrong_password";
|
|
603
|
+
sign_in_again: "sign_in_again";
|
|
604
|
+
}>;
|
|
605
|
+
message: z.ZodString;
|
|
606
|
+
}, z.core.$strip>;
|
|
607
|
+
export declare const SignInStepConflictSchema: z.ZodObject<{
|
|
608
|
+
code: z.ZodEnum<{
|
|
609
|
+
already_set_up: "already_set_up";
|
|
610
|
+
not_switched_on: "not_switched_on";
|
|
611
|
+
too_many_on: "too_many_on";
|
|
612
|
+
}>;
|
|
613
|
+
message: z.ZodString;
|
|
614
|
+
}, z.core.$strip>;
|
|
615
|
+
/** D8: the person's own steps on Account, Sign-in methods. */
|
|
616
|
+
export declare const MySignInStepSchema: z.ZodObject<{
|
|
617
|
+
key: z.ZodString;
|
|
618
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
619
|
+
en: z.ZodString;
|
|
620
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
621
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
622
|
+
en: z.ZodString;
|
|
623
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
624
|
+
setUp: z.ZodBoolean;
|
|
625
|
+
setUpAt: z.ZodNullable<z.ZodString>;
|
|
626
|
+
served: z.ZodBoolean;
|
|
627
|
+
switchedOn: z.ZodBoolean;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
export declare const MySignInStepsResponseSchema: z.ZodObject<{
|
|
630
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
631
|
+
key: z.ZodString;
|
|
632
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
633
|
+
en: z.ZodString;
|
|
634
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
635
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
636
|
+
en: z.ZodString;
|
|
637
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
638
|
+
setUp: z.ZodBoolean;
|
|
639
|
+
setUpAt: z.ZodNullable<z.ZodString>;
|
|
640
|
+
served: z.ZodBoolean;
|
|
641
|
+
switchedOn: z.ZodBoolean;
|
|
642
|
+
}, z.core.$strip>>;
|
|
643
|
+
passwordSet: z.ZodBoolean;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
export type MySignInStepsResponse = z.infer<typeof MySignInStepsResponseSchema>;
|
|
646
|
+
export declare const SignInStepSetupRequestSchema: z.ZodObject<{
|
|
647
|
+
password: z.ZodOptional<z.ZodString>;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
export declare const SignInStepSetupResponseSchema: z.ZodObject<{
|
|
650
|
+
setup: z.ZodObject<{
|
|
651
|
+
key: z.ZodString;
|
|
652
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
653
|
+
en: z.ZodString;
|
|
654
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
655
|
+
challenge: z.ZodObject<{
|
|
656
|
+
lead: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
657
|
+
en: z.ZodString;
|
|
658
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>>;
|
|
659
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
660
|
+
type: z.ZodLiteral<"code">;
|
|
661
|
+
id: z.ZodString;
|
|
662
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
663
|
+
en: z.ZodString;
|
|
664
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
665
|
+
digits: z.ZodNumber;
|
|
666
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
667
|
+
type: z.ZodLiteral<"text">;
|
|
668
|
+
id: z.ZodString;
|
|
669
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
670
|
+
en: z.ZodString;
|
|
671
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
672
|
+
max: z.ZodNumber;
|
|
673
|
+
}, z.core.$strict>], "type">>;
|
|
674
|
+
alternate: z.ZodOptional<z.ZodObject<{
|
|
675
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
676
|
+
en: z.ZodString;
|
|
677
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
678
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
679
|
+
type: z.ZodLiteral<"code">;
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
682
|
+
en: z.ZodString;
|
|
683
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
684
|
+
digits: z.ZodNumber;
|
|
685
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
686
|
+
type: z.ZodLiteral<"text">;
|
|
687
|
+
id: z.ZodString;
|
|
688
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
689
|
+
en: z.ZodString;
|
|
690
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
691
|
+
max: z.ZodNumber;
|
|
692
|
+
}, z.core.$strict>], "type">>;
|
|
693
|
+
}, z.core.$strict>>;
|
|
694
|
+
submitLabel: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
695
|
+
en: z.ZodString;
|
|
696
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
697
|
+
setupKey: z.ZodOptional<z.ZodObject<{
|
|
698
|
+
secret: z.ZodString;
|
|
699
|
+
algorithm: z.ZodEnum<{
|
|
700
|
+
SHA1: "SHA1";
|
|
701
|
+
SHA256: "SHA256";
|
|
702
|
+
SHA512: "SHA512";
|
|
703
|
+
}>;
|
|
704
|
+
digits: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>]>;
|
|
705
|
+
period: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>]>;
|
|
706
|
+
}, z.core.$strict>>;
|
|
707
|
+
otpauthUri: z.ZodOptional<z.ZodString>;
|
|
708
|
+
keepCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
709
|
+
}, z.core.$strict>;
|
|
710
|
+
expiresAt: z.ZodString;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
}, z.core.$strip>;
|
|
713
|
+
export type SignInStepSetupResponse = z.infer<typeof SignInStepSetupResponseSchema>;
|
|
714
|
+
export declare const SignInStepSetupFinishRequestSchema: z.ZodObject<{
|
|
715
|
+
part: z.ZodLiteral<"main">;
|
|
716
|
+
answer: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
export declare const SignInStepSetupFinishResponseSchema: z.ZodObject<{
|
|
719
|
+
done: z.ZodLiteral<true>;
|
|
720
|
+
sessionsEnded: z.ZodNumber;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
export declare const SignInStepRemoveRequestSchema: z.ZodObject<{
|
|
723
|
+
password: z.ZodOptional<z.ZodString>;
|
|
724
|
+
}, z.core.$strict>;
|