@kardalum/plugin-sdk 0.19.0 → 0.20.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 +211 -0
- package/README.md +19 -0
- package/dist/admin-section-registry.d.ts +16 -1
- package/dist/admin-section-registry.js +23 -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 +55 -3
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/content-library.d.ts +85 -0
- package/dist/content-library.js +15 -0
- package/dist/content-picker/page-picker-sheet.d.ts +13 -0
- package/dist/content-picker/page-picker-sheet.js +105 -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 +139 -1
- 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 +36 -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 +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +36 -4
- package/dist/index.js +50 -3
- package/dist/mail.d.ts +30 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +29 -4
- package/dist/manifest-entry.js +39 -2
- package/dist/manifest-schema.d.ts +443 -29
- package/dist/manifest-schema.js +285 -23
- package/dist/manifest.d.ts +450 -51
- package/dist/manifest.js +1 -1
- 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 +5 -0
- package/dist/plugin-screen-context.d.ts +112 -0
- package/dist/plugin-screen-context.js +26 -0
- package/dist/providers.d.ts +268 -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/richtext/block-panel.js +11 -6
- package/dist/richtext/insert-menu.js +9 -6
- package/dist/richtext/style-listbox.js +6 -4
- package/dist/sdk-strings.d.ts +285 -0
- package/dist/sdk-strings.js +347 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -0
- package/dist/simple-storage-value-provider.js +24 -24
- package/dist/structured-storage-types.d.ts +309 -9
- package/dist/text-entry.d.ts +1 -0
- package/dist/text-entry.js +6 -0
- package/dist/tokens/tailwind-theme.css +5 -0
- package/dist/tokens/tokens.css +15 -3
- package/dist/tokens/tokens.json +8 -3
- 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 +38 -34
- 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.js +28 -13
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +215 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +179 -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 +7 -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 +1 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +126 -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 +57 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +137 -0
- 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-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/core-actions.d.ts +10 -5
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +7 -4
- 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 +180 -15
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +41 -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/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/index.d.ts +117 -41
- package/node_modules/@kardalum/api-schemas/dist/index.js +89 -26
- 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/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 +224 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +404 -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 +312 -8
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +43 -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 +22 -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 +1 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -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 +53 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +284 -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/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-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 +42 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +74 -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 +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -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 +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +124 -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-held-embeds.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +213 -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 +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +38 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +237 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +205 -6
- 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 +335 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +242 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +16 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +34 -1
- 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 +22 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +31 -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 +310 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +430 -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-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-settings.d.ts +342 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +400 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +180 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +612 -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-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -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-editing.d.ts +4 -4
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +82 -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 +497 -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 +91 -1
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +90 -8
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +59 -1
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +110 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +34 -2
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +384 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +616 -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 +66 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +160 -0
- 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 +58 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +34 -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/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +6 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +5 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +15 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +12 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +21 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +8 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +355 -22
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +2 -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/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/content-access.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +34 -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 +27 -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/index.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +47 -5
- 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 +95 -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 +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +298 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +25 -4
- 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 +140 -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 +36 -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 +10 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +2 -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/ui/dist/components/switch.js +1 -1
- 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/package.json +12 -2
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { NewPasswordSchema } from "./password-reset.schema.js";
|
|
2
3
|
import { InstallAnswersSchema, InstallDescriptionSchema } from "./plugin-install.js";
|
|
3
4
|
import { InstallRoleOutcomeSchema } from "./plugin-install-record.schema.js";
|
|
5
|
+
import { PLUGIN_ACTION_OFFER_TARGETS } from "./plugin-manifest-actions.js";
|
|
6
|
+
import { PluginSettingsFieldViewSchema } from "./plugin-settings.js";
|
|
4
7
|
import { SampleContentOutcomeSchema } from "./sample-content-outcome.schema.js";
|
|
5
8
|
// One bundled first-party starter template (currently only the blog
|
|
6
9
|
// template, apps/server/src/setup/bundled-templates.ts) offered from the
|
|
@@ -19,6 +22,32 @@ export const BundledTemplateSchema = z.object({
|
|
|
19
22
|
// S293: the template's sample-content.json `description`, for the wizard's
|
|
20
23
|
// checkbox.
|
|
21
24
|
sampleContentDescription: InstallDescriptionSchema.optional(),
|
|
25
|
+
// M32 F4d (D5): the template's settings fields marked ask-at-install, labels resolved, each at its
|
|
26
|
+
// default; the wizard draws them and sends the answers as `answers.settings`. The server always
|
|
27
|
+
// lists them (an empty list for none); optional for a reader of an older server.
|
|
28
|
+
settings: z.array(PluginSettingsFieldViewSchema).optional(),
|
|
29
|
+
// M32 H (H20): the template's form reply declaration, for the wizard's switch; null or absent for none.
|
|
30
|
+
formReplies: z.object({ label: z.string(), description: z.string().optional() }).nullable().optional(),
|
|
31
|
+
// M33 K29: the actions the template offers to the roles holding a core action, its label in
|
|
32
|
+
// English, the box's derived default, and the seeded roles that hold the target (the
|
|
33
|
+
// administrator left out). The wizard sends the ticked ones as `answers.grants`. Absent for none.
|
|
34
|
+
offers: z
|
|
35
|
+
.array(z.object({
|
|
36
|
+
action: z.string(),
|
|
37
|
+
label: z.string(),
|
|
38
|
+
target: z.enum(PLUGIN_ACTION_OFFER_TARGETS),
|
|
39
|
+
default: z.boolean(),
|
|
40
|
+
/** Exactly the roles a wizard install gives the action: the seeded ones holding the target. */
|
|
41
|
+
roles: z.array(z.string()),
|
|
42
|
+
/**
|
|
43
|
+
* M33 core part 7: the labels (in English) of the template's own offered roles whose actions
|
|
44
|
+
* include the target. They gain the action only when an install creates them, which only an
|
|
45
|
+
* install naming them in `answers.roles` does (an API caller); the wizard never sends
|
|
46
|
+
* `answers.roles`, so it does not show this list. Absent when no offered role holds the target.
|
|
47
|
+
*/
|
|
48
|
+
rolesIfCreated: z.array(z.string()).optional(),
|
|
49
|
+
}))
|
|
50
|
+
.optional(),
|
|
22
51
|
});
|
|
23
52
|
// S357c (D5): where a failed no-restart handover stopped (the server's
|
|
24
53
|
// boot/hand-off-to-full-app.ts). A kind only: the error's own text stays in
|
|
@@ -55,20 +84,23 @@ const ServerDialectSelectionSchema = z.object({
|
|
|
55
84
|
});
|
|
56
85
|
// The wizard's optional starter step (Session 151): which bundled template
|
|
57
86
|
// to install during setup completion. Absent entirely = skip, never null.
|
|
58
|
-
// S293: the starter's install answers (the wizard sends `sampleContent
|
|
87
|
+
// S293: the starter's install answers (the wizard sends `sampleContent`, and
|
|
88
|
+
// from M32 F4d (D5) the ask-at-install `settings`), the
|
|
59
89
|
// same object every install door takes; strict, so a caller still sending
|
|
60
90
|
// `includeSampleContent` is refused rather than seeded by default.
|
|
61
91
|
export const SetupStarterSelectionSchema = z
|
|
62
92
|
.object({
|
|
63
93
|
pluginId: z.string().min(1),
|
|
64
94
|
answers: InstallAnswersSchema.optional(),
|
|
95
|
+
// M32 H (H20): the owner's choice to let the starter send form replies.
|
|
96
|
+
formReplies: z.boolean().optional(),
|
|
65
97
|
})
|
|
66
98
|
.strict();
|
|
67
99
|
export const SetupCompleteRequestSchema = z.object({
|
|
68
100
|
admin: z.object({
|
|
69
101
|
email: z.string().email(),
|
|
70
102
|
name: z.string().min(1),
|
|
71
|
-
password:
|
|
103
|
+
password: NewPasswordSchema,
|
|
72
104
|
}),
|
|
73
105
|
// Optional because the wizard has two shapes. On a fresh instance it
|
|
74
106
|
// collects a database selection; when DATABASE_URL was already injected
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** D33: the protocols a sign-in provider speaks. SAML is a later, additive value. */
|
|
3
|
+
export declare const SIGN_IN_PROTOCOLS: readonly ["oidc", "oauth2"];
|
|
4
|
+
export type SignInProtocol = (typeof SIGN_IN_PROTOCOLS)[number];
|
|
5
|
+
/** D33: the icons the admin draws on the login page; no plugin markup or image reaches it. */
|
|
6
|
+
export declare const SIGN_IN_ICONS: readonly ["key", "building", "shield", "globe", "mail", "user"];
|
|
7
|
+
export type SignInIcon = (typeof SIGN_IN_ICONS)[number];
|
|
8
|
+
/** D33: how the client secret is sent to the token endpoint; "basic" when absent. */
|
|
9
|
+
export declare const SIGN_IN_CLIENT_AUTH: readonly ["basic", "post"];
|
|
10
|
+
export type SignInClientAuth = (typeof SIGN_IN_CLIENT_AUTH)[number];
|
|
11
|
+
/** D33: the most scopes an entry declares, and the longest one. */
|
|
12
|
+
export declare const SIGN_IN_SCOPES_MAX = 10;
|
|
13
|
+
export declare const SIGN_IN_SCOPE_MAX = 64;
|
|
14
|
+
/** D33, D34: the longest URL a plugin declares or a person enters. */
|
|
15
|
+
export declare const SIGN_IN_URL_MAX = 2048;
|
|
16
|
+
/** D33: the most userinfo addresses an oauth2 entry declares. */
|
|
17
|
+
export declare const SIGN_IN_USERINFO_URLS_MAX = 2;
|
|
18
|
+
/** D36: the longest subject an identity keeps. */
|
|
19
|
+
export declare const SIGN_IN_SUBJECT_MAX = 255;
|
|
20
|
+
/** D36, D53: the longest email (the `users.email` column) and name kept; the name limit is also every stored user name's. */
|
|
21
|
+
export declare const SIGN_IN_EMAIL_MAX = 191;
|
|
22
|
+
export declare const SIGN_IN_NAME_MAX = 191;
|
|
23
|
+
/** D53: the most allowed domains a provider holds, and the longest one. */
|
|
24
|
+
export declare const SIGN_IN_DOMAINS_MAX = 20;
|
|
25
|
+
export declare const SIGN_IN_DOMAIN_MAX = 253;
|
|
26
|
+
/** D35: the longest admin return path. */
|
|
27
|
+
export declare const SIGN_IN_RETURN_MAX = 512;
|
|
28
|
+
/** D35: how long an attempt lives, and the most live attempts. */
|
|
29
|
+
export declare const SIGN_IN_ATTEMPT_TTL_SECONDS = 600;
|
|
30
|
+
export declare const SIGN_IN_ATTEMPTS_LIVE_MAX = 50000;
|
|
31
|
+
/** M32 I (R5): the most live attempts one address holds. */
|
|
32
|
+
export declare const SIGN_IN_ATTEMPTS_PER_ADDRESS_MAX = 10;
|
|
33
|
+
/** D34: each provider fetch's time and the most bytes read (userinfo has its own, smaller cap). */
|
|
34
|
+
export declare const SIGN_IN_FETCH_TIMEOUT_MS = 5000;
|
|
35
|
+
export declare const SIGN_IN_FETCH_BYTES_MAX = 262144;
|
|
36
|
+
export declare const SIGN_IN_USERINFO_BYTES_MAX = 65536;
|
|
37
|
+
/** D32: the clock skew allowed when an ID token's times are checked. */
|
|
38
|
+
export declare const SIGN_IN_CLOCK_TOLERANCE_SECONDS = 30;
|
|
39
|
+
/**
|
|
40
|
+
* M33 K56: the longest a sign-in entry's description is, per language. Narrower than other
|
|
41
|
+
* providers' PROVIDER_DESCRIPTION_MAX because it is shown on the anonymous login page.
|
|
42
|
+
*/
|
|
43
|
+
export declare const SIGN_IN_DESCRIPTION_MAX = 160;
|
|
44
|
+
/** M33 K57: a sign-in button's picture: its file name's length, its most bytes, and its side in pixels. */
|
|
45
|
+
export declare const SIGN_IN_MARK_NAME_MIN = 5;
|
|
46
|
+
export declare const SIGN_IN_MARK_NAME_MAX = 64;
|
|
47
|
+
export declare const SIGN_IN_MARK_BYTES_MAX = 8192;
|
|
48
|
+
export declare const SIGN_IN_MARK_PX_MIN = 16;
|
|
49
|
+
export declare const SIGN_IN_MARK_PX_MAX = 128;
|
|
50
|
+
/** M33 K58: the longest name of the ID token claim that names the hosted domain. */
|
|
51
|
+
export declare const SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX = 64;
|
|
52
|
+
/** M33 K59: the longest name the owner gives a button, after trimming. */
|
|
53
|
+
export declare const SIGN_IN_DISPLAY_NAME_MAX = 60;
|
|
54
|
+
/**
|
|
55
|
+
* M33 K56: a sign-in entry's description as a label: a text or a language map with English, each
|
|
56
|
+
* text trimmed and 1 to SIGN_IN_DESCRIPTION_MAX characters. A fresh instance each call, because the
|
|
57
|
+
* OpenAPI conversion drops a schema instance that a second union reuses (see pluginLabelMapSchema).
|
|
58
|
+
*/
|
|
59
|
+
export declare function signInDescriptionSchema(): z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
60
|
+
en: z.ZodString;
|
|
61
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
62
|
+
/**
|
|
63
|
+
* D34: a provider address: at most SIGN_IN_URL_MAX characters, printable ASCII only (0x21 to 0x7e:
|
|
64
|
+
* no space, control, zero-width, bidirectional or fullwidth character, and an internationalised
|
|
65
|
+
* host only in its `xn--` form, so what was checked is what is fetched), no "#" (so no fragment, not
|
|
66
|
+
* even an empty one) and no backslash, parsed by `new URL`, `https` (or `http` to localhost,
|
|
67
|
+
* 127.0.0.1 or ::1 when `allowLoopbackHttp`), with a host and no credentials.
|
|
68
|
+
*/
|
|
69
|
+
export declare function isSignInUrl(value: string, options: {
|
|
70
|
+
allowLoopbackHttp: boolean;
|
|
71
|
+
}): boolean;
|
|
72
|
+
/** D33: a scope: 1 to SIGN_IN_SCOPE_MAX printable ASCII characters (0x21 to 0x7e), so no space. */
|
|
73
|
+
export declare function isSignInScope(value: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* D53: an allowed domain: ASCII lower case (an internationalised domain in its `xn--` form), at most
|
|
76
|
+
* SIGN_IN_DOMAIN_MAX characters, at least two labels of 1 to 63 of a-z, 0-9 and "-", no label
|
|
77
|
+
* starting or ending with "-".
|
|
78
|
+
*/
|
|
79
|
+
export declare function isAllowedDomain(value: string): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* D53: an email's domain, the text after its only "@" with A to Z lower-cased (ASCII only, so a
|
|
82
|
+
* character such as the Kelvin sign never folds into an allowed ASCII domain), or null for no "@",
|
|
83
|
+
* two "@", an empty local part or domain, or more than SIGN_IN_EMAIL_MAX characters.
|
|
84
|
+
*/
|
|
85
|
+
export declare function emailDomainOf(email: string): string | null;
|
|
86
|
+
/**
|
|
87
|
+
* A to Z lower-cased and nothing else. Every stored email and every email lookup goes through it, so
|
|
88
|
+
* one rule holds on every dialect (MySQL compares case-insensitively, PostgreSQL and SQLite do not)
|
|
89
|
+
* and no non-ASCII character folds into an ASCII one.
|
|
90
|
+
*/
|
|
91
|
+
export declare function lowerAscii(value: string): string;
|
|
92
|
+
/** D36: a subject: 1 to SIGN_IN_SUBJECT_MAX characters, no control character. */
|
|
93
|
+
export declare function isSignInSubject(value: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* D35: an admin return path: 1 to SIGN_IN_RETURN_MAX characters, exactly one "/" first, no "\" and
|
|
96
|
+
* no control character, and resolved against a fixed base its origin stays the base's.
|
|
97
|
+
*/
|
|
98
|
+
export declare function isAdminReturnPath(value: string): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* M33 K56: a sign-in entry's description: a text, or a language map with English, each text 1 to
|
|
101
|
+
* SIGN_IN_DESCRIPTION_MAX characters, not blank, with no control character and no bidirectional
|
|
102
|
+
* format or other hidden character (U+200E, U+200F, U+202A to U+202E and U+2066 to U+2069 among
|
|
103
|
+
* them), so a line on the login page cannot reorder the page's sentence. The length is checked
|
|
104
|
+
* before isProviderText's one linear scan reads the text.
|
|
105
|
+
*/
|
|
106
|
+
export declare function isSignInDescription(value: unknown): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* M33 K57: a sign-in entry's `mark`, the file name of a PNG in the plugin's own `public/` folder:
|
|
109
|
+
* SIGN_IN_MARK_NAME_MIN to SIGN_IN_MARK_NAME_MAX characters, lower-case letters, digits and "-",
|
|
110
|
+
* then ".png" (so no folder, no second dot and never an SVG, which can carry script), and a name
|
|
111
|
+
* the one public file rule takes (K48). One linear scan after the length check.
|
|
112
|
+
*/
|
|
113
|
+
export declare function isSignInMark(value: unknown): value is string;
|
|
114
|
+
/**
|
|
115
|
+
* M33 K58: the name of the ID token claim an `oidc` entry reads the hosted domain from: 1 to
|
|
116
|
+
* SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX characters, a lower-case letter, then lower-case letters, digits and "_".
|
|
117
|
+
*/
|
|
118
|
+
export declare function isSignInHostedDomainClaim(value: unknown): value is string;
|
|
119
|
+
/**
|
|
120
|
+
* M33 K59: the owner's name for a button, as stored (already trimmed): 1 to SIGN_IN_DISPLAY_NAME_MAX
|
|
121
|
+
* characters, not blank, with no control character and no bidirectional format or other hidden
|
|
122
|
+
* character (the rule of isSignInDescription). The length is checked before the scan.
|
|
123
|
+
*/
|
|
124
|
+
export declare function isSignInDisplayName(value: unknown): value is string;
|
|
125
|
+
/**
|
|
126
|
+
* D33: every problem with one sign-in entry's sign-in fields (its id and label are the provider
|
|
127
|
+
* check's; M33 K56 moves its description here, to the sign-in limit), each naming the field by
|
|
128
|
+
* position (`<where>.issuer ...`), never quoting a value. Declared URLs are held to `https` with no loopback exception: a plugin is a production
|
|
129
|
+
* artefact. The server's fetch applies the loopback rule to an issuer a person entered.
|
|
130
|
+
*/
|
|
131
|
+
export declare function signInDeclarationProblems(entry: Record<string, unknown>, declaredSecretNames: ReadonlySet<string>, where: string): string[];
|
|
132
|
+
/** D46: the codes a failed provider sign-in returns to the admin with, as `signInError`. */
|
|
133
|
+
export declare const SIGN_IN_ERROR_CODES: readonly ["unavailable", "expired", "refused", "failed", "not_linked", "email_unverified", "domain_not_allowed", "email_taken", "new_accounts_unavailable", "account_refused", "relink_required", "domain_not_hosted", "password_required"];
|
|
134
|
+
export type SignInErrorCode = (typeof SIGN_IN_ERROR_CODES)[number];
|
|
135
|
+
/** D46: the codes a link attempt returns to Sign-in methods with, as `linkResult`. */
|
|
136
|
+
export declare const SIGN_IN_LINK_RESULTS: readonly ["linked", "already_linked", "linked_elsewhere", "link_failed", "expired", "unavailable", "refused", "failed", "account_refused"];
|
|
137
|
+
export type SignInLinkResult = (typeof SIGN_IN_LINK_RESULTS)[number];
|
|
138
|
+
/**
|
|
139
|
+
* M32 I (R1): the actions a role given to a new sign-in account, or reached by link by email, may
|
|
140
|
+
* never hold. Each is a core action (a test says so).
|
|
141
|
+
*/
|
|
142
|
+
export declare const SIGN_IN_BARRED_ACTIONS: readonly ["users.create", "users.update", "users.delete", "roles.create", "roles.update", "roles.delete", "settings.update", "plugins.install", "plugins.update", "plugins.delete", "plugins.restore"];
|
|
143
|
+
/** M32 I (R1): the first barred action among `actions`, or undefined. */
|
|
144
|
+
export declare function firstBarredSignInAction(actions: Iterable<string>): string | undefined;
|
|
145
|
+
export declare const SIGN_IN_ROLE_BARRED_MESSAGE = "New accounts from a sign-in provider never get a role that manages users, roles, settings or plugins.";
|
|
146
|
+
export declare const ADMIN_ROLE_REFUSED_MESSAGE = "A sign-in provider never gives the Administrator role.";
|
|
147
|
+
/**
|
|
148
|
+
* Evidence 147: a button whose entry carries a provider's mark shows the provider's own label only, so
|
|
149
|
+
* no one is led to think a name the owner chose is the provider's. The settings write refuses a name
|
|
150
|
+
* for such a button with this message (400), and the public list and Sign-in methods answer no name.
|
|
151
|
+
*/
|
|
152
|
+
export declare const SIGN_IN_DISPLAY_NAME_WITH_MARK_MESSAGE = "A button that shows the provider's own mark keeps the provider's own name. Leave the name on the button empty.";
|
|
153
|
+
/**
|
|
154
|
+
* D44, D53: one provider's settings, the `signIn.provider.<providerKey>` row. New accounts and
|
|
155
|
+
* linking by verified email each need at least one allowed domain; the Administrator role is never
|
|
156
|
+
* given. Whether `roleId` names a role that exists, and link by email on an oauth2 provider, are the
|
|
157
|
+
* server's checks.
|
|
158
|
+
*/
|
|
159
|
+
export declare const SignInProviderSettingsSchema: z.ZodObject<{
|
|
160
|
+
enabled: z.ZodBoolean;
|
|
161
|
+
newAccounts: z.ZodBoolean;
|
|
162
|
+
linkByVerifiedEmail: z.ZodBoolean;
|
|
163
|
+
allowedDomains: z.ZodArray<z.ZodString>;
|
|
164
|
+
roleId: z.ZodNullable<z.ZodString>;
|
|
165
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
export type SignInProviderSettings = z.infer<typeof SignInProviderSettingsSchema>;
|
|
168
|
+
/**
|
|
169
|
+
* D44: every provider's settings before a person sets them: all off, no domains, no role. Frozen to
|
|
170
|
+
* the bottom and typed read-only, so a caller that wants to change it copies the list first
|
|
171
|
+
* (`[...DEFAULT_SIGN_IN_PROVIDER_SETTINGS.allowedDomains]`) and the compiler says so.
|
|
172
|
+
*/
|
|
173
|
+
export declare const DEFAULT_SIGN_IN_PROVIDER_SETTINGS: Readonly<Omit<SignInProviderSettings, "allowedDomains"> & {
|
|
174
|
+
allowedDomains: readonly string[];
|
|
175
|
+
}>;
|
|
176
|
+
/** D44: the settings row a provider's settings live in. */
|
|
177
|
+
export declare function signInSettingsKey(providerKey: string): string;
|
|
178
|
+
/**
|
|
179
|
+
* D45, D50: why a provider is not offered on the login page. `role_missing` is listed but does not stop
|
|
180
|
+
* the provider being offered: a missing role refuses only new accounts (D38).
|
|
181
|
+
*/
|
|
182
|
+
export declare const SIGN_IN_NOT_OFFERED_REASONS: readonly ["plugin_off", "demoted", "switched_off", "secrets_missing", "public_url_missing", "role_missing", "issuer_invalid", "issuer_has_own_button"];
|
|
183
|
+
export type SignInNotOfferedReason = (typeof SIGN_IN_NOT_OFFERED_REASONS)[number];
|
|
184
|
+
/**
|
|
185
|
+
* D42: the public `GET /api/auth/providers`: the offered providers' key, label and icon, and (M33
|
|
186
|
+
* K56, K57, K59) the line under the button, its picture's address and the owner's name for it.
|
|
187
|
+
*/
|
|
188
|
+
export declare const PublicSignInProvidersResponseSchema: z.ZodObject<{
|
|
189
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
190
|
+
key: z.ZodString;
|
|
191
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
192
|
+
en: z.ZodString;
|
|
193
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
194
|
+
icon: z.ZodEnum<{
|
|
195
|
+
key: "key";
|
|
196
|
+
user: "user";
|
|
197
|
+
mail: "mail";
|
|
198
|
+
building: "building";
|
|
199
|
+
shield: "shield";
|
|
200
|
+
globe: "globe";
|
|
201
|
+
}>;
|
|
202
|
+
description: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
203
|
+
en: z.ZodString;
|
|
204
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
205
|
+
markUrl: z.ZodNullable<z.ZodString>;
|
|
206
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
passwordReset: z.ZodBoolean;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type PublicSignInProvidersResponse = z.infer<typeof PublicSignInProvidersResponseSchema>;
|
|
211
|
+
/** D50: one attached sign-in provider as Server settings shows it. */
|
|
212
|
+
export declare const SignInProviderStateSchema: z.ZodObject<{
|
|
213
|
+
key: z.ZodString;
|
|
214
|
+
pluginId: z.ZodString;
|
|
215
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
216
|
+
en: z.ZodString;
|
|
217
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
218
|
+
protocol: z.ZodEnum<{
|
|
219
|
+
oidc: "oidc";
|
|
220
|
+
oauth2: "oauth2";
|
|
221
|
+
}>;
|
|
222
|
+
settings: z.ZodObject<{
|
|
223
|
+
enabled: z.ZodBoolean;
|
|
224
|
+
newAccounts: z.ZodBoolean;
|
|
225
|
+
linkByVerifiedEmail: z.ZodBoolean;
|
|
226
|
+
allowedDomains: z.ZodArray<z.ZodString>;
|
|
227
|
+
roleId: z.ZodNullable<z.ZodString>;
|
|
228
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
offered: z.ZodBoolean;
|
|
231
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
232
|
+
plugin_off: "plugin_off";
|
|
233
|
+
demoted: "demoted";
|
|
234
|
+
switched_off: "switched_off";
|
|
235
|
+
secrets_missing: "secrets_missing";
|
|
236
|
+
public_url_missing: "public_url_missing";
|
|
237
|
+
role_missing: "role_missing";
|
|
238
|
+
issuer_invalid: "issuer_invalid";
|
|
239
|
+
issuer_has_own_button: "issuer_has_own_button";
|
|
240
|
+
}>>;
|
|
241
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
242
|
+
linkedCount: z.ZodNumber;
|
|
243
|
+
onlyWayCount: z.ZodNumber;
|
|
244
|
+
roleBarred: z.ZodBoolean;
|
|
245
|
+
passwordRequiredCount: z.ZodNumber;
|
|
246
|
+
icon: z.ZodEnum<{
|
|
247
|
+
key: "key";
|
|
248
|
+
user: "user";
|
|
249
|
+
mail: "mail";
|
|
250
|
+
building: "building";
|
|
251
|
+
shield: "shield";
|
|
252
|
+
globe: "globe";
|
|
253
|
+
}>;
|
|
254
|
+
description: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
255
|
+
en: z.ZodString;
|
|
256
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
257
|
+
markUrl: z.ZodNullable<z.ZodString>;
|
|
258
|
+
hostedDomainChecked: z.ZodBoolean;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export type SignInProviderState = z.infer<typeof SignInProviderStateSchema>;
|
|
261
|
+
/** D50: `GET /api/manage/v1/sign-in/providers`. */
|
|
262
|
+
export declare const SignInProvidersResponseSchema: z.ZodObject<{
|
|
263
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
264
|
+
key: z.ZodString;
|
|
265
|
+
pluginId: z.ZodString;
|
|
266
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
267
|
+
en: z.ZodString;
|
|
268
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
269
|
+
protocol: z.ZodEnum<{
|
|
270
|
+
oidc: "oidc";
|
|
271
|
+
oauth2: "oauth2";
|
|
272
|
+
}>;
|
|
273
|
+
settings: z.ZodObject<{
|
|
274
|
+
enabled: z.ZodBoolean;
|
|
275
|
+
newAccounts: z.ZodBoolean;
|
|
276
|
+
linkByVerifiedEmail: z.ZodBoolean;
|
|
277
|
+
allowedDomains: z.ZodArray<z.ZodString>;
|
|
278
|
+
roleId: z.ZodNullable<z.ZodString>;
|
|
279
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
offered: z.ZodBoolean;
|
|
282
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
283
|
+
plugin_off: "plugin_off";
|
|
284
|
+
demoted: "demoted";
|
|
285
|
+
switched_off: "switched_off";
|
|
286
|
+
secrets_missing: "secrets_missing";
|
|
287
|
+
public_url_missing: "public_url_missing";
|
|
288
|
+
role_missing: "role_missing";
|
|
289
|
+
issuer_invalid: "issuer_invalid";
|
|
290
|
+
issuer_has_own_button: "issuer_has_own_button";
|
|
291
|
+
}>>;
|
|
292
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
293
|
+
linkedCount: z.ZodNumber;
|
|
294
|
+
onlyWayCount: z.ZodNumber;
|
|
295
|
+
roleBarred: z.ZodBoolean;
|
|
296
|
+
passwordRequiredCount: z.ZodNumber;
|
|
297
|
+
icon: z.ZodEnum<{
|
|
298
|
+
key: "key";
|
|
299
|
+
user: "user";
|
|
300
|
+
mail: "mail";
|
|
301
|
+
building: "building";
|
|
302
|
+
shield: "shield";
|
|
303
|
+
globe: "globe";
|
|
304
|
+
}>;
|
|
305
|
+
description: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
306
|
+
en: z.ZodString;
|
|
307
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
308
|
+
markUrl: z.ZodNullable<z.ZodString>;
|
|
309
|
+
hostedDomainChecked: z.ZodBoolean;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
export type SignInProvidersResponse = z.infer<typeof SignInProvidersResponseSchema>;
|
|
313
|
+
/** D50: the path of one provider's settings, `<pluginId>/<providerId>` being its key. Whether the
|
|
314
|
+
* table holds that key is the server's check (404). */
|
|
315
|
+
export declare const SignInProviderParamsSchema: z.ZodObject<{
|
|
316
|
+
pluginId: z.ZodString;
|
|
317
|
+
providerId: z.ZodString;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export type SignInProviderParams = z.infer<typeof SignInProviderParamsSchema>;
|
|
320
|
+
/** D50: the body of `PUT /api/manage/v1/sign-in/providers/:pluginId/:providerId`. */
|
|
321
|
+
export declare const UpdateSignInProviderRequestSchema: z.ZodObject<{
|
|
322
|
+
enabled: z.ZodBoolean;
|
|
323
|
+
newAccounts: z.ZodBoolean;
|
|
324
|
+
linkByVerifiedEmail: z.ZodBoolean;
|
|
325
|
+
allowedDomains: z.ZodArray<z.ZodString>;
|
|
326
|
+
roleId: z.ZodNullable<z.ZodString>;
|
|
327
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
}, z.core.$strict>;
|
|
329
|
+
export type UpdateSignInProviderRequest = SignInProviderSettings;
|
|
330
|
+
/** D37: a link from a session confirms the person's password first. */
|
|
331
|
+
export declare const SignInLinkRequestSchema: z.ZodObject<{
|
|
332
|
+
password: z.ZodString;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
export type SignInLinkRequest = z.infer<typeof SignInLinkRequestSchema>;
|
|
335
|
+
/** D37: where the browser goes next to finish the link at the provider. */
|
|
336
|
+
export declare const SignInLinkResponseSchema: z.ZodObject<{
|
|
337
|
+
redirectTo: z.ZodString;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
export type SignInLinkResponse = z.infer<typeof SignInLinkResponseSchema>;
|
|
340
|
+
/** D37, D52: why the link start answers 403, as a code the admin reads (never the English message). */
|
|
341
|
+
export declare const SIGN_IN_LINK_REFUSALS: readonly ["wrong_password", "account_refused"];
|
|
342
|
+
export type SignInLinkRefusal = (typeof SIGN_IN_LINK_REFUSALS)[number];
|
|
343
|
+
export declare const SignInLinkRefusedErrorSchema: z.ZodObject<{
|
|
344
|
+
code: z.ZodEnum<{
|
|
345
|
+
account_refused: "account_refused";
|
|
346
|
+
wrong_password: "wrong_password";
|
|
347
|
+
}>;
|
|
348
|
+
message: z.ZodString;
|
|
349
|
+
}, z.core.$strip>;
|
|
350
|
+
export type SignInLinkRefusedError = z.infer<typeof SignInLinkRefusedErrorSchema>;
|
|
351
|
+
/** D51: `GET /api/users/me/sign-in-methods`. */
|
|
352
|
+
export declare const SignInMethodsResponseSchema: z.ZodObject<{
|
|
353
|
+
passwordSet: z.ZodBoolean;
|
|
354
|
+
identities: z.ZodArray<z.ZodObject<{
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
providerKey: z.ZodString;
|
|
357
|
+
label: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
358
|
+
en: z.ZodString;
|
|
359
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
360
|
+
email: z.ZodNullable<z.ZodString>;
|
|
361
|
+
createdAt: z.ZodString;
|
|
362
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
363
|
+
available: z.ZodBoolean;
|
|
364
|
+
linkedByEmail: z.ZodBoolean;
|
|
365
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
366
|
+
markUrl: z.ZodNullable<z.ZodString>;
|
|
367
|
+
icon: z.ZodEnum<{
|
|
368
|
+
key: "key";
|
|
369
|
+
user: "user";
|
|
370
|
+
mail: "mail";
|
|
371
|
+
building: "building";
|
|
372
|
+
shield: "shield";
|
|
373
|
+
globe: "globe";
|
|
374
|
+
}>;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
export type SignInMethodsResponse = z.infer<typeof SignInMethodsResponseSchema>;
|
|
378
|
+
/** D51: the 409 of removing a person's last way to sign in. */
|
|
379
|
+
export declare const LAST_SIGN_IN_METHOD_CODE: "last_sign_in_method";
|
|
380
|
+
export declare const LastSignInMethodErrorSchema: z.ZodObject<{
|
|
381
|
+
code: z.ZodLiteral<"last_sign_in_method">;
|
|
382
|
+
message: z.ZodString;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
export type LastSignInMethodError = z.infer<typeof LastSignInMethodErrorSchema>;
|