@cosmicdrift/kumiko-bundled-features 0.368.0 → 0.370.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/dist/account-security/constants.d.ts +4 -0
- package/dist/account-security/constants.js +5 -0
- package/dist/account-security/feature.d.ts +14 -0
- package/dist/account-security/feature.js +62 -0
- package/dist/account-security/i18n.d.ts +6 -0
- package/dist/account-security/i18n.js +6 -0
- package/dist/account-security/index.d.ts +3 -0
- package/dist/account-security/index.js +3 -0
- package/dist/admin-shell/feature.d.ts +1 -1
- package/dist/admin-shell/index.d.ts +4 -4
- package/dist/admin-shell/overview-panels.d.ts +1 -1
- package/dist/admin-shell/web/index.d.ts +1 -1
- package/dist/agent-tools/agent-manifest.d.ts +1 -1
- package/dist/agent-tools/index.d.ts +8 -8
- package/dist/agent-tools/manifest-deny-qns.d.ts +1 -1
- package/dist/agent-tools/tool-catalog.d.ts +1 -1
- package/dist/agent-tools/tool-dispatch.d.ts +1 -1
- package/dist/audit/handlers/resolve-audit-tenant.d.ts +1 -1
- package/dist/audit/index.d.ts +3 -3
- package/dist/audit/web/index.d.ts +1 -1
- package/dist/auth-email-password/bootstrap.d.ts +1 -1
- package/dist/auth-email-password/feature.d.ts +7 -6
- package/dist/auth-email-password/feature.js +3 -1
- package/dist/auth-email-password/handlers/confirm-token-flow.d.ts +1 -1
- package/dist/auth-email-password/handlers/invite-accept-with-login.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/invite-create.write.d.ts +2 -2
- package/dist/auth-email-password/handlers/invite-signup-complete.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/login.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-account-unlock.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-email-verification.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-password-reset.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/signup-confirm.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/signup-request.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/switch-tenant-mfa-gate.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/token-request-handler.d.ts +2 -2
- package/dist/auth-email-password/index.d.ts +13 -13
- package/dist/auth-email-password/lockout-store.d.ts +1 -1
- package/dist/auth-email-password/magic-link-mail.d.ts +1 -1
- package/dist/auth-email-password/seeding.d.ts +3 -3
- package/dist/auth-email-password/signed-token.d.ts +1 -1
- package/dist/auth-email-password/signup-token-store.d.ts +1 -1
- package/dist/auth-email-password/testing.d.ts +1 -1
- package/dist/auth-email-password/web/auth-gate.d.ts +1 -1
- package/dist/auth-email-password/web/client-plugin.d.ts +2 -2
- package/dist/auth-email-password/web/index.d.ts +42 -42
- package/dist/auth-email-password/web/session-bootstrap-error.d.ts +1 -1
- package/dist/auth-email-password/web/session.d.ts +1 -1
- package/dist/auth-email-password/web/signup-complete-screen.d.ts +1 -1
- package/dist/auth-foundation/feature.d.ts +2 -6
- package/dist/auth-foundation/feature.js +0 -2
- package/dist/auth-foundation/index.d.ts +3 -3
- package/dist/auth-foundation/index.js +1 -1
- package/dist/auth-foundation/resolve-anonymous-access.d.ts +1 -1
- package/dist/auth-mfa/env.d.ts +13 -0
- package/dist/auth-mfa/env.js +24 -0
- package/dist/auth-mfa/errors.d.ts +1 -1
- package/dist/auth-mfa/feature-exports.d.ts +12 -0
- package/dist/auth-mfa/feature-exports.js +72 -0
- package/dist/auth-mfa/feature.d.ts +6 -12
- package/dist/auth-mfa/feature.js +53 -70
- package/dist/auth-mfa/handlers/reencrypt.job.d.ts +1 -1
- package/dist/auth-mfa/index.d.ts +12 -9
- package/dist/auth-mfa/index.js +4 -2
- package/dist/auth-mfa/mfa-challenge-token.d.ts +1 -1
- package/dist/auth-mfa/mfa-preauth-setup-token.d.ts +1 -1
- package/dist/auth-mfa/mfa-status-checker.d.ts +1 -1
- package/dist/auth-mfa/mfa-verify-attempts.d.ts +1 -1
- package/dist/auth-mfa/testing.d.ts +1 -1
- package/dist/auth-mfa/token-secrets.d.ts +7 -0
- package/dist/auth-mfa/token-secrets.js +13 -0
- package/dist/auth-mfa/verify-factor.d.ts +1 -1
- package/dist/auth-mfa/web/index.d.ts +15 -15
- package/dist/auth-mfa/web/mfa-client.d.ts +1 -1
- package/dist/auth-mfa-user-data/index.d.ts +0 -4
- package/dist/auth-mfa-user-data/index.js +0 -2
- package/dist/billing-foundation/checkout-core.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/confirmation-mail.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/consent-gate.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/consent-text.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/issue-confirmation.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/register-consent.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/register-termination.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/termination-mail.d.ts +3 -3
- package/dist/billing-foundation/consumer-protection/termination-notify.d.ts +5 -5
- package/dist/billing-foundation/consumer-protection/termination-pages.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/termination-record.d.ts +3 -3
- package/dist/billing-foundation/consumer-protection/termination-request.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/termination-texts.d.ts +2 -2
- package/dist/billing-foundation/feature.d.ts +1 -3
- package/dist/billing-foundation/feature.js +0 -2
- package/dist/billing-foundation/handlers/billing-plans.query.d.ts +1 -1
- package/dist/billing-foundation/handlers/create-checkout-session.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/create-portal-session.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/start-plan-checkout.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/switch-plan.write.d.ts +1 -1
- package/dist/billing-foundation/index.d.ts +16 -16
- package/dist/billing-foundation/index.js +1 -1
- package/dist/billing-foundation/plan-catalog.d.ts +1 -1
- package/dist/billing-foundation/subscription-tier-sync.d.ts +3 -1
- package/dist/billing-foundation/subscription-tier-sync.js +3 -2
- package/dist/billing-foundation/types.d.ts +3 -3
- package/dist/billing-foundation/validate-options.d.ts +1 -1
- package/dist/billing-foundation/web/checkout-consent-dialog.d.ts +1 -1
- package/dist/billing-foundation/web/index.d.ts +6 -6
- package/dist/cap-counter/calendar-cap-usage-reservation.d.ts +4 -4
- package/dist/cap-counter/cap-reservation.d.ts +1 -1
- package/dist/cap-counter/enforce-cap.d.ts +1 -1
- package/dist/cap-counter/feature.d.ts +0 -4
- package/dist/cap-counter/feature.js +0 -2
- package/dist/cap-counter/index.d.ts +13 -13
- package/dist/cap-counter/index.js +1 -1
- package/dist/cap-counter/value-cap-guard.d.ts +1 -1
- package/dist/cap-counter/with-cap-enforcement.d.ts +1 -1
- package/dist/cap-overview/feature.d.ts +1 -1
- package/dist/cap-overview/handlers/caps-usage.query.d.ts +1 -1
- package/dist/cap-overview/handlers/tenant-caps-list.query.d.ts +1 -1
- package/dist/cap-overview/index.d.ts +6 -6
- package/dist/cap-overview/screens.d.ts +1 -1
- package/dist/cap-overview/types.d.ts +1 -1
- package/dist/cap-overview/usage-math.d.ts +1 -1
- package/dist/cap-overview/web/cap-usage-bar.d.ts +1 -1
- package/dist/cap-overview/web/index.d.ts +4 -4
- package/dist/channel-discord/discord-channel.d.ts +1 -1
- package/dist/channel-discord/feature.d.ts +1 -1
- package/dist/channel-discord/index.d.ts +2 -2
- package/dist/channel-email/email-channel.d.ts +15 -7
- package/dist/channel-email/email-channel.js +17 -3
- package/dist/channel-email/env.d.ts +14 -0
- package/dist/channel-email/env.js +27 -0
- package/dist/channel-email/feature.d.ts +14 -3
- package/dist/channel-email/feature.js +6 -2
- package/dist/channel-email/index.d.ts +6 -5
- package/dist/channel-email/index.js +2 -1
- package/dist/channel-email/pii-guard.d.ts +1 -1
- package/dist/channel-email/smtp-transport.d.ts +1 -1
- package/dist/channel-email/types.d.ts +1 -1
- package/dist/channel-in-app/in-app-channel.d.ts +1 -1
- package/dist/channel-in-app/index.d.ts +4 -4
- package/dist/channel-push/feature.d.ts +1 -1
- package/dist/channel-push/index.d.ts +3 -3
- package/dist/channel-push/push-channel.d.ts +2 -2
- package/dist/channel-slack/feature.d.ts +1 -1
- package/dist/channel-slack/index.d.ts +2 -2
- package/dist/channel-slack/slack-channel.d.ts +1 -1
- package/dist/channel-teams/feature.d.ts +1 -1
- package/dist/channel-teams/index.d.ts +2 -2
- package/dist/channel-teams/teams-channel.d.ts +1 -1
- package/dist/channel-telegram/feature.d.ts +1 -1
- package/dist/channel-telegram/index.d.ts +2 -2
- package/dist/channel-telegram/telegram-channel.d.ts +1 -1
- package/dist/compliance-profiles/feature.d.ts +1 -1
- package/dist/compliance-profiles/index.d.ts +3 -3
- package/dist/compliance-profiles/web/index.d.ts +2 -2
- package/dist/compliance-profiles-ops/index.d.ts +0 -8
- package/dist/compliance-profiles-ops/index.js +0 -2
- package/dist/config/feature.d.ts +1 -1
- package/dist/config/handlers/reencrypt.job.d.ts +1 -1
- package/dist/config/index.d.ts +8 -8
- package/dist/config/web/client-plugin.d.ts +1 -1
- package/dist/config/web/i18n.js +1 -2
- package/dist/config/web/index.d.ts +2 -2
- package/dist/crypto-shredding/env/index.d.ts +21 -0
- package/dist/crypto-shredding/env/index.js +78 -0
- package/dist/crypto-shredding/feature.d.ts +17 -2
- package/dist/crypto-shredding/feature.js +5 -1
- package/dist/crypto-shredding/index.d.ts +4 -3
- package/dist/crypto-shredding/index.js +1 -0
- package/dist/custom-fields/feature.d.ts +0 -17
- package/dist/custom-fields/feature.js +0 -2
- package/dist/custom-fields/index.d.ts +10 -10
- package/dist/custom-fields/index.js +1 -1
- package/dist/custom-fields/lib/define-or-resurrect.d.ts +2 -2
- package/dist/custom-fields/lib/field-access.d.ts +1 -1
- package/dist/custom-fields/lib/field-definition-row.d.ts +1 -1
- package/dist/custom-fields/lib/quota.d.ts +1 -1
- package/dist/custom-fields/web/index.d.ts +3 -3
- package/dist/data-retention/_internal/parse-override.d.ts +1 -1
- package/dist/data-retention/feature.d.ts +7 -7
- package/dist/data-retention/handlers/policy-for.query.d.ts +1 -1
- package/dist/data-retention/index.d.ts +3 -3
- package/dist/data-retention/resolve-for-tenant.d.ts +2 -2
- package/dist/data-retention/resolve-tenant-preset.d.ts +1 -1
- package/dist/data-retention/resolver.d.ts +1 -1
- package/dist/data-retention/run-retention-cleanup.d.ts +2 -2
- package/dist/delivery/attachment-ref.d.ts +1 -1
- package/dist/delivery/attempt-log.d.ts +1 -1
- package/dist/delivery/channel-context.d.ts +2 -2
- package/dist/delivery/chat-webhook-channel.d.ts +2 -2
- package/dist/delivery/constants.d.ts +1 -1
- package/dist/delivery/delivery-service.d.ts +2 -2
- package/dist/delivery/feature.js +3 -1
- package/dist/delivery/handlers/log.query.d.ts +1 -1
- package/dist/delivery/handlers/unsubscribe-page-chrome.query.d.ts +5 -0
- package/dist/delivery/handlers/unsubscribe-page-chrome.query.js +44 -0
- package/dist/delivery/index.d.ts +20 -19
- package/dist/delivery/index.js +3 -2
- package/dist/delivery/notify-factory.d.ts +1 -1
- package/dist/delivery/public-names.d.ts +1 -0
- package/dist/delivery/public-names.js +1 -0
- package/dist/delivery/testing.d.ts +3 -3
- package/dist/delivery/types.d.ts +3 -3
- package/dist/delivery/unsubscribe-link.d.ts +1 -1
- package/dist/delivery/unsubscribe-page-strings.d.ts +4 -0
- package/dist/delivery/unsubscribe-page-strings.js +4 -0
- package/dist/delivery/unsubscribe-page.d.ts +27 -0
- package/dist/delivery/unsubscribe-page.js +192 -0
- package/dist/delivery/unsubscribe.d.ts +22 -1
- package/dist/delivery/unsubscribe.js +152 -65
- package/dist/delivery/web/index.d.ts +2 -2
- package/dist/derivatives-sharp/feature.d.ts +0 -4
- package/dist/derivatives-sharp/feature.js +0 -2
- package/dist/derivatives-sharp/index.d.ts +2 -2
- package/dist/derivatives-sharp/index.js +1 -1
- package/dist/document-ingest-foundation/feature.d.ts +0 -7
- package/dist/document-ingest-foundation/feature.js +0 -2
- package/dist/document-ingest-foundation/index.d.ts +7 -7
- package/dist/document-ingest-foundation/index.js +1 -1
- package/dist/document-ingest-foundation/pages.d.ts +1 -1
- package/dist/document-ingest-foundation/providers.d.ts +1 -1
- package/dist/document-ingest-foundation/write-document-extract.d.ts +1 -1
- package/dist/feature-toggles/compose-tier-resolver.d.ts +1 -1
- package/dist/feature-toggles/feature.d.ts +5 -5
- package/dist/feature-toggles/handlers/set.write.d.ts +1 -1
- package/dist/feature-toggles/index.d.ts +3 -3
- package/dist/feature-toggles/toggle-sync-signal.d.ts +1 -1
- package/dist/feature-toggles/web/index.d.ts +1 -1
- package/dist/file-derivatives/feature.d.ts +0 -2
- package/dist/file-derivatives/feature.js +0 -2
- package/dist/file-derivatives/index.d.ts +4 -4
- package/dist/file-derivatives/index.js +1 -1
- package/dist/file-foundation/feature.d.ts +0 -6
- package/dist/file-foundation/feature.js +0 -2
- package/dist/file-foundation/index.d.ts +2 -2
- package/dist/file-foundation/index.js +1 -1
- package/dist/file-provider-inmemory/feature.d.ts +0 -4
- package/dist/file-provider-inmemory/feature.js +0 -2
- package/dist/file-provider-inmemory/index.d.ts +1 -1
- package/dist/file-provider-inmemory/index.js +1 -1
- package/dist/file-provider-s3/env-feature.d.ts +12 -2
- package/dist/file-provider-s3/env-feature.js +9 -6
- package/dist/file-provider-s3/env-schema.d.ts +38 -0
- package/dist/file-provider-s3/env-schema.js +51 -0
- package/dist/file-provider-s3/feature.d.ts +1 -14
- package/dist/file-provider-s3/feature.js +0 -2
- package/dist/file-provider-s3/index.d.ts +2 -1
- package/dist/file-provider-s3/index.js +2 -1
- package/dist/file-provider-s3/lib/env-helper.d.ts +1 -1
- package/dist/file-provider-s3/lib/index.d.ts +3 -3
- package/dist/files/index.d.ts +1 -1
- package/dist/files-tenant-data/index.d.ts +2 -2
- package/dist/folders/feature.d.ts +0 -4
- package/dist/folders/feature.js +0 -2
- package/dist/folders/index.d.ts +7 -7
- package/dist/folders/index.js +1 -1
- package/dist/folders/web/folder-manager.d.ts +1 -1
- package/dist/folders/web/index.d.ts +5 -5
- package/dist/folders-user-data/index.d.ts +0 -4
- package/dist/folders-user-data/index.js +0 -2
- package/dist/form-draft/db/queries/cleanup.d.ts +1 -1
- package/dist/form-draft/feature.d.ts +0 -4
- package/dist/form-draft/feature.js +0 -2
- package/dist/form-draft/handlers/cleanup.job.d.ts +1 -1
- package/dist/form-draft/handlers/get.query.d.ts +1 -1
- package/dist/form-draft/index.d.ts +10 -10
- package/dist/form-draft/index.js +1 -1
- package/dist/form-draft/lookup.d.ts +1 -1
- package/dist/form-draft/release-file-refs.d.ts +1 -1
- package/dist/form-draft-user-data/index.d.ts +0 -4
- package/dist/form-draft-user-data/index.js +0 -2
- package/dist/foundation-shared/build-info-env.d.ts +7 -0
- package/dist/foundation-shared/build-info-env.js +15 -0
- package/dist/foundation-shared/demo-admin-env.d.ts +12 -0
- package/dist/foundation-shared/demo-admin-env.js +21 -0
- package/dist/foundation-shared/index.d.ts +5 -3
- package/dist/foundation-shared/index.js +2 -0
- package/dist/host-routing/constants.d.ts +8 -0
- package/dist/host-routing/constants.js +19 -0
- package/dist/host-routing/dispatch.d.ts +24 -0
- package/dist/host-routing/dispatch.js +102 -0
- package/dist/host-routing/feature.d.ts +3 -0
- package/dist/host-routing/feature.js +102 -0
- package/dist/host-routing/host.d.ts +14 -0
- package/dist/host-routing/host.js +37 -0
- package/dist/host-routing/index.d.ts +5 -0
- package/dist/host-routing/index.js +4 -0
- package/dist/host-routing/options.d.ts +27 -0
- package/dist/host-routing/options.js +1 -0
- package/dist/host-routing/validate-options.d.ts +2 -0
- package/dist/host-routing/validate-options.js +29 -0
- package/dist/inbound-mail-foundation/connect-routes.d.ts +2 -2
- package/dist/inbound-mail-foundation/feature.d.ts +0 -4
- package/dist/inbound-mail-foundation/feature.js +0 -2
- package/dist/inbound-mail-foundation/handlers/account-state.d.ts +1 -1
- package/dist/inbound-mail-foundation/index.d.ts +12 -12
- package/dist/inbound-mail-foundation/index.js +1 -1
- package/dist/inbound-mail-foundation/oauth-access-token.d.ts +1 -1
- package/dist/inbound-mail-foundation/provider-factory.d.ts +1 -1
- package/dist/inbound-mail-foundation/types.d.ts +1 -1
- package/dist/inbound-mail-foundation/watch-supervisor.d.ts +2 -2
- package/dist/inbound-provider-imap/feature.d.ts +1 -5
- package/dist/inbound-provider-imap/feature.js +0 -2
- package/dist/inbound-provider-imap/imap-client.d.ts +1 -1
- package/dist/inbound-provider-imap/index.d.ts +3 -3
- package/dist/inbound-provider-imap/index.js +1 -1
- package/dist/inbound-provider-inmemory/feature.d.ts +0 -4
- package/dist/inbound-provider-inmemory/feature.js +0 -2
- package/dist/inbound-provider-inmemory/index.d.ts +1 -1
- package/dist/inbound-provider-inmemory/index.js +1 -1
- package/dist/jobs/handlers/tenant-runs.query.d.ts +1 -1
- package/dist/jobs/index.d.ts +9 -9
- package/dist/jobs/web/index.d.ts +1 -1
- package/dist/ledger/feature.d.ts +0 -4
- package/dist/ledger/feature.js +0 -2
- package/dist/ledger/index.d.ts +10 -10
- package/dist/ledger/index.js +1 -1
- package/dist/ledger/recurring.d.ts +2 -2
- package/dist/ledger/reports.d.ts +2 -2
- package/dist/ledger/web/index.d.ts +3 -3
- package/dist/legal-pages/constants.d.ts +12 -0
- package/dist/legal-pages/constants.js +16 -0
- package/dist/legal-pages/feature.d.ts +6 -3
- package/dist/legal-pages/feature.js +5 -2
- package/dist/legal-pages/index.d.ts +5 -3
- package/dist/legal-pages/index.js +3 -1
- package/dist/legal-pages/layout.d.ts +10 -0
- package/dist/legal-pages/layout.js +32 -0
- package/dist/legal-pages/lib/boot-check.d.ts +1 -1
- package/dist/legal-pages/lib/validate-routes.d.ts +1 -1
- package/dist/legal-pages/markdown.d.ts +2 -2
- package/dist/legal-pages/seed.d.ts +12 -0
- package/dist/legal-pages/seed.js +38 -0
- package/dist/legal-pages/web/index.d.ts +1 -1
- package/dist/mail-foundation/feature.d.ts +4 -7
- package/dist/mail-foundation/feature.js +16 -14
- package/dist/mail-foundation/i18n.d.ts +14 -0
- package/dist/mail-foundation/i18n.js +8 -0
- package/dist/mail-foundation/index.d.ts +1 -1
- package/dist/mail-foundation/index.js +1 -1
- package/dist/mail-transport-inmemory/feature.d.ts +0 -4
- package/dist/mail-transport-inmemory/feature.js +6 -2
- package/dist/mail-transport-inmemory/index.d.ts +1 -1
- package/dist/mail-transport-inmemory/index.js +1 -1
- package/dist/mail-transport-smtp/config-keys.d.ts +7 -0
- package/dist/mail-transport-smtp/config-keys.js +65 -0
- package/dist/mail-transport-smtp/feature.d.ts +0 -16
- package/dist/mail-transport-smtp/feature.js +5 -35
- package/dist/mail-transport-smtp/i18n.d.ts +41 -0
- package/dist/mail-transport-smtp/i18n.js +28 -0
- package/dist/mail-transport-smtp/index.d.ts +1 -1
- package/dist/mail-transport-smtp/index.js +1 -1
- package/dist/managed-pages/branding.d.ts +1 -1
- package/dist/managed-pages/feature.d.ts +1 -1
- package/dist/managed-pages/handlers/branding.query.d.ts +1 -1
- package/dist/managed-pages/index.d.ts +5 -5
- package/dist/managed-pages/web/index.d.ts +2 -2
- package/dist/metrics/compute.d.ts +2 -2
- package/dist/metrics/default-metrics.d.ts +9 -9
- package/dist/metrics/feature.d.ts +1 -1
- package/dist/metrics/filters.d.ts +1 -1
- package/dist/metrics/index.d.ts +5 -5
- package/dist/metrics/types.d.ts +1 -1
- package/dist/metrics/validate.d.ts +1 -1
- package/dist/metrics/window.d.ts +2 -2
- package/dist/notes-history/feature.d.ts +0 -4
- package/dist/notes-history/feature.js +0 -2
- package/dist/notes-history/handlers/add-note.write.d.ts +1 -1
- package/dist/notes-history/index.d.ts +6 -6
- package/dist/notes-history/index.js +1 -1
- package/dist/notes-history/web/index.d.ts +3 -3
- package/dist/notes-history-user-data/index.d.ts +1 -5
- package/dist/notes-history-user-data/index.js +0 -2
- package/dist/page-render/index.d.ts +7 -7
- package/dist/page-render/layout.d.ts +1 -1
- package/dist/page-render/web.d.ts +5 -5
- package/dist/personal-access-tokens/feature.d.ts +3 -3
- package/dist/personal-access-tokens/handlers/available-scopes.query.d.ts +1 -1
- package/dist/personal-access-tokens/i18n.d.ts +1 -1
- package/dist/personal-access-tokens/index.d.ts +13 -13
- package/dist/personal-access-tokens/resolver.d.ts +1 -1
- package/dist/personal-access-tokens/screens.d.ts +1 -1
- package/dist/presets/dsgvo-self-service.d.ts +3 -1
- package/dist/presets/dsgvo-self-service.js +2 -0
- package/dist/presets/index.d.ts +2 -2
- package/dist/presets/security-baseline.d.ts +2 -0
- package/dist/presets/security-baseline.js +2 -0
- package/dist/rate-limiting/index.d.ts +2 -2
- package/dist/readiness/feature.d.ts +0 -8
- package/dist/readiness/feature.js +0 -2
- package/dist/readiness/index.d.ts +3 -3
- package/dist/readiness/index.js +1 -1
- package/dist/renderer-foundation/api.d.ts +2 -2
- package/dist/renderer-foundation/constants.d.ts +2 -2
- package/dist/renderer-foundation/feature.d.ts +1 -1
- package/dist/renderer-foundation/index.d.ts +5 -5
- package/dist/renderer-foundation/types.d.ts +24 -2
- package/dist/renderer-pdf/feature.d.ts +1 -1
- package/dist/renderer-pdf/index.d.ts +2 -2
- package/dist/renderer-pdf/render-table-pdf.d.ts +1 -1
- package/dist/secrets/constants.d.ts +7 -0
- package/dist/secrets/constants.js +7 -0
- package/dist/secrets/db/queries/read.d.ts +1 -1
- package/dist/secrets/feature.d.ts +5 -3
- package/dist/secrets/feature.js +19 -5
- package/dist/secrets/handlers/delete.write.js +4 -3
- package/dist/secrets/handlers/rotate.job.d.ts +1 -1
- package/dist/secrets/handlers/set.write.js +4 -3
- package/dist/secrets/index.d.ts +7 -7
- package/dist/secrets/index.js +1 -1
- package/dist/secrets/secrets-context.d.ts +1 -1
- package/dist/seo/feature.d.ts +3 -3
- package/dist/seo/index.d.ts +6 -6
- package/dist/sessions/feature.d.ts +1 -1
- package/dist/sessions/index.d.ts +8 -8
- package/dist/sessions/session-callbacks.d.ts +1 -1
- package/dist/sessions/testing.d.ts +1 -1
- package/dist/shared/index.d.ts +31 -31
- package/dist/step-dispatcher/dispatch-payload.d.ts +2 -2
- package/dist/step-dispatcher/index.d.ts +3 -3
- package/dist/subscription-mollie/feature.d.ts +2 -2
- package/dist/subscription-mollie/index.d.ts +3 -3
- package/dist/subscription-mollie/verify-webhook.d.ts +1 -1
- package/dist/subscription-stripe/feature.d.ts +17 -1
- package/dist/subscription-stripe/feature.js +19 -1
- package/dist/subscription-stripe/index.d.ts +2 -2
- package/dist/subscription-stripe/index.js +1 -1
- package/dist/subscription-stripe/plugin-methods.d.ts +1 -1
- package/dist/subscription-stripe/verify-webhook.d.ts +1 -1
- package/dist/tags/feature.d.ts +0 -4
- package/dist/tags/feature.js +0 -2
- package/dist/tags/handlers/assign-tag.write.d.ts +1 -1
- package/dist/tags/handlers/remove-tag.write.d.ts +1 -1
- package/dist/tags/index.d.ts +11 -11
- package/dist/tags/index.js +1 -1
- package/dist/tags/web/index.d.ts +9 -9
- package/dist/template-resolver/api.d.ts +4 -4
- package/dist/template-resolver/constants.d.ts +1 -2
- package/dist/template-resolver/constants.js +0 -1
- package/dist/template-resolver/document-sanitizer.d.ts +1 -1
- package/dist/template-resolver/handlers/bundle-import.d.ts +3 -3
- package/dist/template-resolver/handlers/collection-shared.d.ts +2 -2
- package/dist/template-resolver/handlers/copy-locale.write.d.ts +1 -1
- package/dist/template-resolver/handlers/diff-to-system.query.d.ts +1 -1
- package/dist/template-resolver/handlers/find-by-id.query.d.ts +1 -1
- package/dist/template-resolver/handlers/import-bundle-system.write.d.ts +1 -1
- package/dist/template-resolver/handlers/import-bundle.write.d.ts +1 -1
- package/dist/template-resolver/handlers/layout-source.query.d.ts +3 -3
- package/dist/template-resolver/handlers/override-diff.d.ts +2 -2
- package/dist/template-resolver/handlers/overview.query.d.ts +3 -3
- package/dist/template-resolver/handlers/preview.query.d.ts +1 -1
- package/dist/template-resolver/handlers/resource-link-pdf.write.d.ts +1 -1
- package/dist/template-resolver/handlers/resource-upload.write.d.ts +1 -1
- package/dist/template-resolver/handlers/send-test.write.d.ts +1 -1
- package/dist/template-resolver/handlers/send-test.write.js +4 -2
- package/dist/template-resolver/handlers/shared.d.ts +1 -1
- package/dist/template-resolver/handlers/template-gates.d.ts +4 -4
- package/dist/template-resolver/handlers/template-write.d.ts +4 -4
- package/dist/template-resolver/handlers/tenant-overrides.query.d.ts +1 -1
- package/dist/template-resolver/handlers/toggle-status.write.d.ts +1 -1
- package/dist/template-resolver/handlers/upsert-system.write.d.ts +1 -1
- package/dist/template-resolver/handlers/upsert-tenant.write.d.ts +1 -1
- package/dist/template-resolver/handlers/usage.query.d.ts +1 -1
- package/dist/template-resolver/handlers/validate.query.d.ts +3 -3
- package/dist/template-resolver/index.d.ts +25 -25
- package/dist/template-resolver/layout-appearance.d.ts +1 -1
- package/dist/template-resolver/layout-regions.d.ts +2 -2
- package/dist/template-resolver/linked-resources.d.ts +1 -1
- package/dist/template-resolver/preview-display-html.d.ts +1 -1
- package/dist/template-resolver/resource-image.d.ts +1 -1
- package/dist/template-resolver/seeding.d.ts +2 -2
- package/dist/template-resolver/store-template-resource.d.ts +1 -1
- package/dist/template-resolver/template-draft.d.ts +2 -2
- package/dist/template-resolver/template-meta.d.ts +2 -2
- package/dist/template-resolver/template-preview.d.ts +7 -6
- package/dist/template-resolver/template-preview.js +19 -12
- package/dist/template-resolver/template-resources.d.ts +1 -1
- package/dist/template-resolver/template-usage.d.ts +3 -1
- package/dist/template-resolver/template-usage.js +1 -0
- package/dist/template-resolver/template-validation.d.ts +1 -1
- package/dist/template-resolver/testing.d.ts +1 -1
- package/dist/template-resolver/user-content-table.d.ts +1 -1
- package/dist/template-resolver/web/document-editor-extensions.d.ts +1 -1
- package/dist/template-resolver/web/document-editor-extensions.js +6 -2
- package/dist/template-resolver/web/document-editor.d.ts +1 -1
- package/dist/template-resolver/web/document-tiptap-editor.d.ts +1 -1
- package/dist/template-resolver/web/document-tiptap-editor.js +13 -10
- package/dist/template-resolver/web/editor-handle.d.ts +1 -1
- package/dist/template-resolver/web/index.d.ts +7 -7
- package/dist/template-resolver/web/placeholder-line-editor-lazy.d.ts +2 -2
- package/dist/template-resolver/web/placeholder-line-editor.d.ts +1 -1
- package/dist/template-resolver-user-data/index.d.ts +0 -4
- package/dist/template-resolver-user-data/index.js +0 -2
- package/dist/tenant/feature.d.ts +1 -1
- package/dist/tenant/index.d.ts +10 -10
- package/dist/tenant/is-tenant-serving-public-content.d.ts +1 -1
- package/dist/tenant/testing.d.ts +1 -1
- package/dist/tenant/web/index.d.ts +3 -3
- package/dist/tenant-handover/feature.d.ts +1 -1
- package/dist/tenant-handover/index.d.ts +3 -3
- package/dist/tenant-handover/signup-handover-provider.d.ts +1 -1
- package/dist/tenant-lifecycle/feature.d.ts +2 -2
- package/dist/tenant-lifecycle/index.d.ts +3 -3
- package/dist/tenant-lifecycle/run-tenant-destroy.d.ts +1 -1
- package/dist/tenant-lifecycle/stages.d.ts +1 -1
- package/dist/tenant-lifecycle/testing.d.ts +1 -1
- package/dist/tenant-settings/feature.d.ts +1 -3
- package/dist/tenant-settings/feature.js +0 -2
- package/dist/tenant-settings/index.d.ts +4 -4
- package/dist/tenant-settings/index.js +1 -1
- package/dist/tier-engine/entity.d.ts +1 -1
- package/dist/tier-engine/feature.d.ts +2 -4
- package/dist/tier-engine/feature.js +0 -2
- package/dist/tier-engine/handlers/get-tenant-tier.query.d.ts +1 -1
- package/dist/tier-engine/i18n.d.ts +0 -2
- package/dist/tier-engine/i18n.js +4 -4
- package/dist/tier-engine/index.d.ts +8 -8
- package/dist/tier-engine/index.js +1 -1
- package/dist/tier-engine/tier-option-gate.d.ts +1 -1
- package/dist/tier-engine/tier-resolver.d.ts +1 -1
- package/dist/tier-engine/web/client-plugin.js +3 -2
- package/dist/tier-engine/web/index.d.ts +1 -1
- package/dist/user/index.d.ts +8 -8
- package/dist/user/invited-global-roles.d.ts +1 -1
- package/dist/user/principal-status.d.ts +1 -1
- package/dist/user/seeding.d.ts +1 -1
- package/dist/user/testing.d.ts +1 -1
- package/dist/user-data-rights/deletion-token.d.ts +1 -1
- package/dist/user-data-rights/feature.d.ts +5 -5
- package/dist/user-data-rights/feature.js +7 -4
- package/dist/user-data-rights/handlers/request-deletion.write.d.ts +1 -1
- package/dist/user-data-rights/handlers/run-forget-cleanup.write.d.ts +3 -3
- package/dist/user-data-rights/index.d.ts +13 -13
- package/dist/user-data-rights/lib/default-mailers.d.ts +7 -4
- package/dist/user-data-rights/lib/default-mailers.js +25 -3
- package/dist/user-data-rights/web/client-plugin.d.ts +1 -1
- package/dist/user-data-rights/web/index.d.ts +8 -8
- package/dist/user-data-rights-defaults/index.d.ts +11 -11
- package/dist/user-profile/index.d.ts +2 -2
- package/dist/user-profile/web/index.d.ts +2 -2
- package/dist/waitlist/constants.d.ts +9 -0
- package/dist/waitlist/constants.js +11 -0
- package/dist/waitlist/entity.d.ts +38 -6
- package/dist/waitlist/entity.js +4 -2
- package/dist/waitlist/entries-admin.d.ts +4 -0
- package/dist/waitlist/entries-admin.js +42 -0
- package/dist/waitlist/feature.d.ts +1 -1
- package/dist/waitlist/feature.js +16 -1
- package/dist/waitlist/handlers/export-purge.write.d.ts +12 -0
- package/dist/waitlist/handlers/export-purge.write.js +61 -0
- package/dist/waitlist/handlers/invite.write.d.ts +1 -1
- package/dist/waitlist/handlers/submit.write.d.ts +1 -1
- package/dist/waitlist/i18n.js +4 -0
- package/dist/waitlist/import.d.ts +24 -0
- package/dist/waitlist/import.js +51 -0
- package/dist/waitlist/index.d.ts +7 -5
- package/dist/waitlist/index.js +2 -0
- package/dist/waitlist/legacy-migrate.d.ts +27 -0
- package/dist/waitlist/legacy-migrate.js +173 -0
- package/dist/waitlist/lib.d.ts +2 -2
- package/dist/waitlist/link-on-signup.d.ts +3 -0
- package/dist/waitlist/link-on-signup.js +83 -0
- package/dist/waitlist/options.d.ts +11 -3
- package/dist/waitlist/payloads.d.ts +3 -0
- package/dist/waitlist/payloads.js +1 -0
- package/dist/workflow-runner/feature.d.ts +0 -4
- package/dist/workflow-runner/feature.js +0 -2
- package/dist/workflow-runner/index.d.ts +4 -4
- package/dist/workflow-runner/index.js +1 -1
- package/package.json +43 -27
- package/src/account-security/changes.json +8 -0
- package/src/auth-email-password/changes.json +6 -0
- package/src/auth-foundation/changes.json +8 -0
- package/src/auth-mfa/changes.json +6 -0
- package/src/auth-mfa-user-data/changes.json +10 -1
- package/src/billing-foundation/changes.json +8 -0
- package/src/cap-counter/changes.json +8 -0
- package/src/channel-email/changes.json +13 -0
- package/src/compliance-profiles-ops/changes.json +10 -0
- package/src/crypto-shredding/changes.json +6 -0
- package/src/custom-fields/changes.json +8 -0
- package/src/delivery/changes.json +12 -0
- package/src/derivatives-sharp/changes.json +8 -0
- package/src/document-ingest-foundation/changes.json +8 -0
- package/src/file-derivatives/changes.json +8 -0
- package/src/file-foundation/changes.json +8 -0
- package/src/file-provider-inmemory/changes.json +10 -1
- package/src/file-provider-s3/changes.json +22 -0
- package/src/folders/changes.json +8 -0
- package/src/folders-user-data/changes.json +10 -1
- package/src/form-draft/changes.json +8 -0
- package/src/form-draft-user-data/changes.json +10 -1
- package/src/foundation-shared/changes.json +8 -1
- package/src/host-routing/changes.json +8 -0
- package/src/inbound-mail-foundation/changes.json +8 -0
- package/src/inbound-provider-imap/changes.json +8 -0
- package/src/inbound-provider-inmemory/changes.json +10 -1
- package/src/ledger/changes.json +8 -0
- package/src/legal-pages/changes.json +6 -0
- package/src/mail-foundation/changes.json +10 -1
- package/src/mail-transport-inmemory/changes.json +10 -1
- package/src/mail-transport-smtp/changes.json +15 -0
- package/src/notes-history/changes.json +8 -0
- package/src/notes-history-user-data/changes.json +8 -0
- package/src/presets/changes.json +6 -0
- package/src/readiness/changes.json +10 -1
- package/src/secrets/changes.json +18 -0
- package/src/subscription-stripe/changes.json +6 -0
- package/src/tags/changes.json +8 -0
- package/src/template-resolver/changes.json +6 -0
- package/src/template-resolver-user-data/changes.json +10 -0
- package/src/tenant-settings/changes.json +10 -1
- package/src/tier-engine/changes.json +8 -0
- package/src/user-data-rights/changes.json +6 -0
- package/src/waitlist/changes.json +7 -0
- package/src/workflow-runner/changes.json +8 -0
- package/dist/file-provider-s3-env/index.d.ts +0 -8
- package/dist/file-provider-s3-env/index.js +0 -7
- package/dist/files-provider-s3/index.d.ts +0 -5
- package/dist/files-provider-s3/index.js +0 -5
- package/src/file-provider-s3-env/changes.json +0 -1
- package/src/files-provider-s3/changes.json +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const ACCOUNT_SECURITY_FEATURE = "account-security";
|
|
2
|
+
export declare const ACCOUNT_SECURITY_SCREEN_ID = "account-security";
|
|
3
|
+
export declare const ACCOUNT_SECURITY_SCREEN_QN = "account-security:screen:account-security";
|
|
4
|
+
export declare const ACCOUNT_SECURITY_NAV_LABEL = "account-security:nav.accountSecurity";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @runtime client
|
|
2
|
+
export const ACCOUNT_SECURITY_FEATURE = "account-security";
|
|
3
|
+
export const ACCOUNT_SECURITY_SCREEN_ID = "account-security";
|
|
4
|
+
export const ACCOUNT_SECURITY_SCREEN_QN = `${ACCOUNT_SECURITY_FEATURE}:screen:${ACCOUNT_SECURITY_SCREEN_ID}`;
|
|
5
|
+
export const ACCOUNT_SECURITY_NAV_LABEL = `${ACCOUNT_SECURITY_FEATURE}:nav.accountSecurity`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type AccessRule, type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
export interface AccountSecurityNavOptions {
|
|
3
|
+
readonly order?: number;
|
|
4
|
+
readonly parent?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AccountSecurityFeatureOptions {
|
|
7
|
+
readonly access?: AccessRule;
|
|
8
|
+
readonly nav?: AccountSecurityNavOptions;
|
|
9
|
+
}
|
|
10
|
+
export declare const accountSecurityMfaStatusVisibility: {
|
|
11
|
+
readonly query: "auth-mfa:query:user-mfa:status";
|
|
12
|
+
readonly field: "enabled";
|
|
13
|
+
};
|
|
14
|
+
export declare function createAccountSecurityFeature(options?: AccountSecurityFeatureOptions): FeatureDefinition;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineFeature, } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
import { AuthMfaQueries, MFA_DISABLE_SCREEN_ID, MFA_ENABLE_SCREEN_ID, MFA_REGENERATE_RECOVERY_SCREEN_ID, } from "../auth-mfa/index.js";
|
|
3
|
+
import { SESSION_MINE_SCREEN_ID } from "../sessions/index.js";
|
|
4
|
+
import { ACCOUNT_SECURITY_FEATURE, ACCOUNT_SECURITY_NAV_LABEL, ACCOUNT_SECURITY_SCREEN_ID, ACCOUNT_SECURITY_SCREEN_QN, } from "./constants.js";
|
|
5
|
+
import { ACCOUNT_SECURITY_I18N } from "./i18n.js";
|
|
6
|
+
const DEFAULT_ACCESS = {
|
|
7
|
+
openToAll: { reason: "signed-in users manage their own account security" },
|
|
8
|
+
};
|
|
9
|
+
const DEFAULT_NAV_ORDER = 90;
|
|
10
|
+
export const accountSecurityMfaStatusVisibility = {
|
|
11
|
+
query: AuthMfaQueries.status,
|
|
12
|
+
field: "enabled",
|
|
13
|
+
};
|
|
14
|
+
export function createAccountSecurityFeature(options = {}) {
|
|
15
|
+
const { access = DEFAULT_ACCESS, nav } = options;
|
|
16
|
+
return defineFeature(ACCOUNT_SECURITY_FEATURE, (r) => {
|
|
17
|
+
r.describe("Self-service account dashboard: MFA enrollment, recovery codes and the user's own sessions, composed from the auth-mfa and sessions screens.");
|
|
18
|
+
r.requires({ features: ["sessions"] });
|
|
19
|
+
r.requires({ features: ["auth-mfa"] });
|
|
20
|
+
r.translations({ keys: ACCOUNT_SECURITY_I18N });
|
|
21
|
+
r.screen({
|
|
22
|
+
id: ACCOUNT_SECURITY_SCREEN_ID,
|
|
23
|
+
type: "dashboard",
|
|
24
|
+
access,
|
|
25
|
+
dormant: nav === undefined,
|
|
26
|
+
panels: [
|
|
27
|
+
{
|
|
28
|
+
kind: "screen",
|
|
29
|
+
id: "mfa-enable",
|
|
30
|
+
screen: `auth-mfa:screen:${MFA_ENABLE_SCREEN_ID}`,
|
|
31
|
+
visibleWhen: { ...accountSecurityMfaStatusVisibility, eq: false },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
kind: "screen",
|
|
35
|
+
id: "mfa-regenerate",
|
|
36
|
+
screen: `auth-mfa:screen:${MFA_REGENERATE_RECOVERY_SCREEN_ID}`,
|
|
37
|
+
visibleWhen: { ...accountSecurityMfaStatusVisibility, eq: true },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
kind: "screen",
|
|
41
|
+
id: "mfa-disable",
|
|
42
|
+
screen: `auth-mfa:screen:${MFA_DISABLE_SCREEN_ID}`,
|
|
43
|
+
visibleWhen: { ...accountSecurityMfaStatusVisibility, eq: true },
|
|
44
|
+
},
|
|
45
|
+
{ kind: "screen", id: "sessions", screen: `sessions:screen:${SESSION_MINE_SCREEN_ID}` },
|
|
46
|
+
],
|
|
47
|
+
});
|
|
48
|
+
if (nav !== undefined) {
|
|
49
|
+
// Explicit property assignments: the feature-AST parser reads neither
|
|
50
|
+
// `??`, shorthand properties nor a conditional spread, and the boot validator treats
|
|
51
|
+
// `parent: undefined` as a top-level entry.
|
|
52
|
+
const { order: navOrder = DEFAULT_NAV_ORDER, parent: navParent } = nav;
|
|
53
|
+
r.nav({
|
|
54
|
+
id: ACCOUNT_SECURITY_SCREEN_ID,
|
|
55
|
+
label: ACCOUNT_SECURITY_NAV_LABEL,
|
|
56
|
+
screen: ACCOUNT_SECURITY_SCREEN_QN,
|
|
57
|
+
order: navOrder,
|
|
58
|
+
parent: navParent,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @runtime client
|
|
2
|
+
// Server-registered so the framework projects these keys into the client bundle.
|
|
3
|
+
export const ACCOUNT_SECURITY_I18N = {
|
|
4
|
+
"screen:account-security.title": { de: "Konto & Sicherheit", en: "Account & Security" },
|
|
5
|
+
"account-security:nav.accountSecurity": { de: "Konto & Sicherheit", en: "Account & Security" },
|
|
6
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ACCOUNT_SECURITY_FEATURE, ACCOUNT_SECURITY_NAV_LABEL, ACCOUNT_SECURITY_SCREEN_ID, ACCOUNT_SECURITY_SCREEN_QN, } from "./constants.ts";
|
|
2
|
+
export { type AccountSecurityFeatureOptions, type AccountSecurityNavOptions, accountSecurityMfaStatusVisibility, createAccountSecurityFeature, } from "./feature.ts";
|
|
3
|
+
export { ACCOUNT_SECURITY_I18N } from "./i18n.ts";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ACCOUNT_SECURITY_FEATURE, ACCOUNT_SECURITY_NAV_LABEL, ACCOUNT_SECURITY_SCREEN_ID, ACCOUNT_SECURITY_SCREEN_QN, } from "./constants.js";
|
|
2
|
+
export { accountSecurityMfaStatusVisibility, createAccountSecurityFeature, } from "./feature.js";
|
|
3
|
+
export { ACCOUNT_SECURITY_I18N } from "./i18n.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type MetricDefinition } from "../metrics/index.
|
|
2
|
+
import { type MetricDefinition } from "../metrics/index.ts";
|
|
3
3
|
export type CreateAdminShellOptions = {
|
|
4
4
|
/** Short workspace id for tenant operators (URL segment). Default `tenant-admin`. */
|
|
5
5
|
readonly workspaceIds?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ADMIN_SHELL_FEATURE, DEFAULT_PLATFORM_WORKSPACE_ID, DEFAULT_TENANT_WORKSPACE_ID, PLATFORM_OVERVIEW_SCREEN_ID, TENANT_OVERVIEW_SCREEN_ID, } from "./constants.
|
|
2
|
-
export { type CreateAdminShellOptions, createAdminShellFeature } from "./feature.
|
|
3
|
-
export { ADMIN_SHELL_I18N } from "./i18n.
|
|
4
|
-
export { isOverviewQueryAllowed, type OverviewWorkspaceKind, overviewAllowedQueries, PLATFORM_OVERVIEW_ALLOWED_QUERIES, TENANT_OVERVIEW_ALLOWED_QUERIES, TENANT_OVERVIEW_FORBIDDEN_QUERIES, } from "./overview-allowlist.
|
|
1
|
+
export { ADMIN_SHELL_FEATURE, DEFAULT_PLATFORM_WORKSPACE_ID, DEFAULT_TENANT_WORKSPACE_ID, PLATFORM_OVERVIEW_SCREEN_ID, TENANT_OVERVIEW_SCREEN_ID, } from "./constants.ts";
|
|
2
|
+
export { type CreateAdminShellOptions, createAdminShellFeature } from "./feature.ts";
|
|
3
|
+
export { ADMIN_SHELL_I18N } from "./i18n.ts";
|
|
4
|
+
export { isOverviewQueryAllowed, type OverviewWorkspaceKind, overviewAllowedQueries, PLATFORM_OVERVIEW_ALLOWED_QUERIES, TENANT_OVERVIEW_ALLOWED_QUERIES, TENANT_OVERVIEW_FORBIDDEN_QUERIES, } from "./overview-allowlist.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DashboardFilterDefinition, DashboardPanelDefinition, DashboardTimeRangeDefinition } from "@cosmicdrift/kumiko-framework/ui-types";
|
|
2
|
-
import { type MetricDefinition } from "../metrics/index.
|
|
2
|
+
import { type MetricDefinition } from "../metrics/index.ts";
|
|
3
3
|
export declare const OVERVIEW_TIME_RANGE: DashboardTimeRangeDefinition;
|
|
4
4
|
export declare const PLATFORM_TENANT_FILTER: DashboardFilterDefinition;
|
|
5
5
|
export declare const PLATFORM_SCOPE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type AdminShellClientOptions, adminShellClient } from "./client-plugin.
|
|
1
|
+
export { type AdminShellClientOptions, adminShellClient } from "./client-plugin.tsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentManifest, AgentManifestOptions, RegistryManifestView } from "./types.
|
|
1
|
+
import type { AgentManifest, AgentManifestOptions, RegistryManifestView } from "./types.ts";
|
|
2
2
|
export declare function systemOnlyPropertyNames(jsonSchema: Record<string, unknown>): readonly string[];
|
|
3
3
|
/** Registry snapshot → AI-agent manifest. Pure, deterministic, no I/O — mirrors
|
|
4
4
|
* `buildToolCatalog`'s contract, just describing the app's shape instead of
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { AgentDocGap, AgentDocGapKind } from "./agent-doc-lint.
|
|
2
|
-
export { AgentDocGapKinds, findAgentDocGaps, findHandlerTranslationGaps, formatAgentDocGap, } from "./agent-doc-lint.
|
|
3
|
-
export { buildAgentManifest } from "./agent-manifest.
|
|
4
|
-
export { AGENT_TOOLS_FEATURE_NAME, createAgentToolsFeature } from "./feature.
|
|
5
|
-
export { buildToolCatalog, OPEN_FORM_TOOL_NAME, toolNameForQn } from "./tool-catalog.
|
|
6
|
-
export type { ToolCallRequest, ToolCallResult, ToolDispatcher } from "./tool-dispatch.
|
|
7
|
-
export { dispatchToolCall } from "./tool-dispatch.
|
|
8
|
-
export type { AgentManifest, AgentManifestEntity, AgentManifestFeature, AgentManifestField, AgentManifestHandler, AgentManifestNav, AgentManifestOptions, AgentManifestScreen, AgentManifestWorkspace, AgentToolMode, RegistryManifestView, RegistrySearchView, ToolCatalog, ToolCatalogOptions, ToolDefinition, ToolDispatchDescriptor, } from "./types.
|
|
1
|
+
export type { AgentDocGap, AgentDocGapKind } from "./agent-doc-lint.ts";
|
|
2
|
+
export { AgentDocGapKinds, findAgentDocGaps, findHandlerTranslationGaps, formatAgentDocGap, } from "./agent-doc-lint.ts";
|
|
3
|
+
export { buildAgentManifest } from "./agent-manifest.ts";
|
|
4
|
+
export { AGENT_TOOLS_FEATURE_NAME, createAgentToolsFeature } from "./feature.ts";
|
|
5
|
+
export { buildToolCatalog, OPEN_FORM_TOOL_NAME, toolNameForQn } from "./tool-catalog.ts";
|
|
6
|
+
export type { ToolCallRequest, ToolCallResult, ToolDispatcher } from "./tool-dispatch.ts";
|
|
7
|
+
export { dispatchToolCall } from "./tool-dispatch.ts";
|
|
8
|
+
export type { AgentManifest, AgentManifestEntity, AgentManifestFeature, AgentManifestField, AgentManifestHandler, AgentManifestNav, AgentManifestOptions, AgentManifestScreen, AgentManifestWorkspace, AgentToolMode, RegistryManifestView, RegistrySearchView, ToolCatalog, ToolCatalogOptions, ToolDefinition, ToolDispatchDescriptor, } from "./types.ts";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AgentManifest } from "./types.
|
|
1
|
+
import type { AgentManifest } from "./types.ts";
|
|
2
2
|
export declare function recordManifestDenyQns(manifest: AgentManifest, denyQns: ReadonlySet<string>): void;
|
|
3
3
|
export declare function assertCatalogMirrorsManifestDenyQns(manifest: AgentManifest, catalogDenyQns: ReadonlySet<string>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentManifest, RegistrySearchView, ToolCatalog, ToolCatalogOptions } from "./types.
|
|
1
|
+
import type { AgentManifest, RegistrySearchView, ToolCatalog, ToolCatalogOptions } from "./types.ts";
|
|
2
2
|
/** Drops the `query`/`write` verb segment from a handler QN, joins the rest with `_`, and
|
|
3
3
|
* sanitizes to a valid tool-call identifier. Only the FIRST matching segment is dropped —
|
|
4
4
|
* QNs are `<feature>:query|write:<entity>:<verb>`, so the verb only ever appears once at that
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SessionUser, WriteResult } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { type Logger } from "@cosmicdrift/kumiko-framework/logging";
|
|
3
|
-
import type { ToolDispatchDescriptor } from "./types.
|
|
3
|
+
import type { ToolDispatchDescriptor } from "./types.ts";
|
|
4
4
|
/** Narrow view of `Dispatcher` (packages/framework/src/pipeline/dispatcher.ts) — kept out of
|
|
5
5
|
* `ToolDispatchDescriptor`'s reach and small enough for tests to build a plain object instead
|
|
6
6
|
* of a real Dispatcher. `write` reaches the real `<entity>:write` / write-handler pipeline with
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SessionUser } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type AuditScope } from "../constants.
|
|
2
|
+
import { type AuditScope } from "../constants.ts";
|
|
3
3
|
export type AuditScopeFilter = {
|
|
4
4
|
readonly tenantId: string;
|
|
5
5
|
readonly aggregateType?: string;
|
package/dist/audit/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AUDIT_FEATURE, AuditQueries } from "./constants.
|
|
2
|
-
export { createEscapeHatchAuditSink, ESCAPE_HATCH_USED_EVENT } from "./escape-hatch-audit-sink.
|
|
3
|
-
export { createAuditFeature } from "./feature.
|
|
1
|
+
export { AUDIT_FEATURE, AuditQueries } from "./constants.ts";
|
|
2
|
+
export { createEscapeHatchAuditSink, ESCAPE_HATCH_USED_EVENT } from "./escape-hatch-audit-sink.ts";
|
|
3
|
+
export { createAuditFeature } from "./feature.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type AuditClientOptions, auditClient } from "./client-plugin.
|
|
1
|
+
export { type AuditClientOptions, auditClient } from "./client-plugin.tsx";
|
|
@@ -4,7 +4,7 @@ import { type Registry, type TenantId, type WriteResult } from "@cosmicdrift/kum
|
|
|
4
4
|
import type { Dispatcher } from "@cosmicdrift/kumiko-framework/pipeline";
|
|
5
5
|
import type { EnvelopeCipher } from "@cosmicdrift/kumiko-framework/secrets";
|
|
6
6
|
import type { Redis } from "ioredis";
|
|
7
|
-
import type { GlobalRole } from "../user/constants.
|
|
7
|
+
import type { GlobalRole } from "../user/constants.ts";
|
|
8
8
|
export type BootstrapInvite = {
|
|
9
9
|
readonly email: string;
|
|
10
10
|
/** Membership role in the tenant, validated like a tenant-admin invite
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
import { type FeatureWithEnvSchema } from "@cosmicdrift/kumiko-framework/env";
|
|
2
3
|
import * as z from "zod";
|
|
3
|
-
import type { AuthMailLocale } from "./email-templates.
|
|
4
|
-
import { type InviteCreateOptions } from "./handlers/invite-create.write.
|
|
5
|
-
import { type LoginHandlerOptions } from "./handlers/login.write.
|
|
6
|
-
import { type RequestAccountUnlockOptions } from "./handlers/request-account-unlock.write.
|
|
7
|
-
import { type SignupRequestOptions } from "./handlers/signup-request.write.
|
|
4
|
+
import type { AuthMailLocale } from "./email-templates.ts";
|
|
5
|
+
import { type InviteCreateOptions } from "./handlers/invite-create.write.ts";
|
|
6
|
+
import { type LoginHandlerOptions } from "./handlers/login.write.ts";
|
|
7
|
+
import { type RequestAccountUnlockOptions } from "./handlers/request-account-unlock.write.ts";
|
|
8
|
+
import { type SignupRequestOptions } from "./handlers/signup-request.write.ts";
|
|
8
9
|
/**
|
|
9
10
|
* Env-vars contract for the `auth-email-password` feature.
|
|
10
11
|
*
|
|
@@ -52,4 +53,4 @@ export type AuthEmailPasswordOptions = {
|
|
|
52
53
|
readonly invite?: InviteOptions;
|
|
53
54
|
readonly accountUnlock?: AccountUnlockOptions;
|
|
54
55
|
};
|
|
55
|
-
export declare function createAuthEmailPasswordFeature(opts?: AuthEmailPasswordOptions): FeatureDefinition
|
|
56
|
+
export declare function createAuthEmailPasswordFeature(opts?: AuthEmailPasswordOptions): FeatureWithEnvSchema<FeatureDefinition, typeof authEmailPasswordEnvSchema.shape>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineFeature } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
import { featureWithEnvSchema } from "@cosmicdrift/kumiko-framework/env";
|
|
2
3
|
import * as z from "zod";
|
|
3
4
|
import { MIN_HMAC_SECRET_LENGTH } from "./constants.js";
|
|
4
5
|
import { changePasswordWrite } from "./handlers/change-password.write.js";
|
|
@@ -62,7 +63,7 @@ export function createAuthEmailPasswordFeature(opts = {}) {
|
|
|
62
63
|
throw new Error(`[auth-email-password] accountUnlock.hmacSecret must be ≥${MIN_HMAC_SECRET_LENGTH} chars (HMAC-SHA256 token signing)`);
|
|
63
64
|
}
|
|
64
65
|
const strictVerification = opts.emailVerification !== undefined && (opts.emailVerification.mode ?? "strict") === "strict";
|
|
65
|
-
|
|
66
|
+
const feature = defineFeature("auth-email-password", (r) => {
|
|
66
67
|
r.describe("Provides email+password authentication: the always-on handlers are `login`, `changePassword`, and `logout`; optional flows — password reset, email verification, magic-link self-signup, tenant invite, and account-unlock — are registered only when you pass their respective option objects (`passwordReset`, `emailVerification`, `signup`, `invite`, `accountUnlock`) to `createAuthEmailPasswordFeature(opts)`. All five magic-link flows dispatch their mail through the `delivery` feature via `ctx.notify`, so mounting any of them additionally requires `delivery`. Tokens are HMAC-signed (reset/verify/unlock) or opaque-random in Redis (signup/invite). `accountUnlock` is the self-service escape hatch for `accountLockout`'s monotonic failure-counter (#1266): confirming the mailed token clears the Redis lockout state without touching the user entity. Requires the `user` and `tenant` features, and declares `JWT_SECRET` (≥ 32 chars) in `authEmailPasswordEnvSchema` so a missing secret surfaces at boot validation rather than on the first login attempt.");
|
|
67
68
|
// kumiko-lint-ignore i18n-ui-strings uiHints labels are feature-registry metadata for the admin feature catalog, not yet wired to the i18n system, see #2312
|
|
68
69
|
r.uiHints({
|
|
@@ -164,4 +165,5 @@ export function createAuthEmailPasswordFeature(opts = {}) {
|
|
|
164
165
|
}
|
|
165
166
|
return { handlers, queries };
|
|
166
167
|
});
|
|
168
|
+
return featureWithEnvSchema(feature, authEmailPasswordEnvSchema);
|
|
167
169
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HandlerContext, type WriteResult } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
|
-
import type { AuthUserRow } from "../auth-user-row.
|
|
3
|
+
import type { AuthUserRow } from "../auth-user-row.ts";
|
|
4
4
|
export type ConfirmTokenFlowSpec<TSuccessData> = {
|
|
5
5
|
readonly purpose: string;
|
|
6
6
|
readonly redisRequiredMessage: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SessionUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { type LoginHandlerOptions, type LoginResult } from "./login.write.
|
|
3
|
+
import { type LoginHandlerOptions, type LoginResult } from "./login.write.ts";
|
|
4
4
|
export type InviteAcceptWithLoginData = {
|
|
5
5
|
readonly kind: "auth-session";
|
|
6
6
|
readonly session: SessionUser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { type GlobalRole } from "../../user/constants.
|
|
3
|
-
import type { AuthMailLocale } from "../email-templates.
|
|
2
|
+
import { type GlobalRole } from "../../user/constants.ts";
|
|
3
|
+
import type { AuthMailLocale } from "../email-templates.ts";
|
|
4
4
|
export type InviteCreateData = {
|
|
5
5
|
readonly kind: "invite-created";
|
|
6
6
|
readonly invitationId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SessionUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { type LoginHandlerOptions, type LoginResult } from "./login.write.
|
|
3
|
+
import { type LoginHandlerOptions, type LoginResult } from "./login.write.ts";
|
|
4
4
|
export type InviteSignupCompleteData = {
|
|
5
5
|
readonly kind: "auth-session";
|
|
6
6
|
readonly session: SessionUser;
|
|
@@ -2,7 +2,7 @@ import type { HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
|
|
|
2
2
|
import { type SessionUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import type { WriteFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import { type AuthUserRow } from "../auth-user-row.
|
|
5
|
+
import { type AuthUserRow } from "../auth-user-row.ts";
|
|
6
6
|
export type LoginHandlerOptions = {
|
|
7
7
|
readonly strictEmailVerification?: boolean;
|
|
8
8
|
readonly accountLockout?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.
|
|
1
|
+
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.ts";
|
|
2
2
|
export type RequestAccountUnlockOptions = TokenRequestOptions;
|
|
3
3
|
export type RequestUnlockData = TokenRequestData<"unlock-requested">;
|
|
4
4
|
export declare function createRequestAccountUnlockHandler(opts: RequestAccountUnlockOptions): import("@cosmicdrift/kumiko-types/define-handler").WriteHandlerDefinition<"request-account-unlock", import("zod").ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.
|
|
1
|
+
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.ts";
|
|
2
2
|
export type RequestEmailVerificationOptions = TokenRequestOptions;
|
|
3
3
|
export type RequestVerificationData = TokenRequestData<"verification-requested">;
|
|
4
4
|
export declare function createRequestEmailVerificationHandler(opts: RequestEmailVerificationOptions): import("@cosmicdrift/kumiko-types/define-handler").WriteHandlerDefinition<"request-email-verification", import("zod").ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.
|
|
1
|
+
import { type TokenRequestData, type TokenRequestOptions } from "./token-request-handler.ts";
|
|
2
2
|
export type RequestPasswordResetOptions = TokenRequestOptions;
|
|
3
3
|
export type RequestResetData = TokenRequestData<"reset-requested">;
|
|
4
4
|
export declare function createRequestPasswordResetHandler(opts: RequestPasswordResetOptions): import("@cosmicdrift/kumiko-types/define-handler").WriteHandlerDefinition<"request-password-reset", import("zod").ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SessionUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { type LoginHandlerOptions, type LoginResult } from "./login.write.
|
|
3
|
+
import { type LoginHandlerOptions, type LoginResult } from "./login.write.ts";
|
|
4
4
|
export type SignupConfirmData = {
|
|
5
5
|
readonly kind: "auth-session";
|
|
6
6
|
readonly session: SessionUser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { gateEnforceMfa, type LoginHandlerOptions } from "./login.write.
|
|
2
|
+
import { gateEnforceMfa, type LoginHandlerOptions } from "./login.write.ts";
|
|
3
3
|
export type SwitchTenantMfaGateData = {
|
|
4
4
|
readonly kind: "mfa-gate-clear";
|
|
5
5
|
readonly roles: readonly string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { type AuthUserRow } from "../auth-user-row.
|
|
4
|
-
import type { AuthMailLocale } from "../email-templates.
|
|
3
|
+
import { type AuthUserRow } from "../auth-user-row.ts";
|
|
4
|
+
import type { AuthMailLocale } from "../email-templates.ts";
|
|
5
5
|
export type TokenRequestSuccess<K extends string> = {
|
|
6
6
|
readonly kind: K;
|
|
7
7
|
readonly email: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { hashPassword, verifyPassword } from "../shared/password-hashing.
|
|
2
|
-
export { type AuthPath, type AuthPaths, DEFAULT_AUTH_PATHS, makeAuthPaths } from "./auth-paths.
|
|
3
|
-
export type { BootstrapConfigValue, BootstrapDeps, BootstrapInvite, BootstrapInviteOutcome, BootstrapPlan, BootstrapReport, BootstrapSeedDeps, BootstrapSystemAdmin, BootstrapTenant, BootstrapTenantOutcome, } from "./bootstrap.
|
|
4
|
-
export { BootstrapPlanError, BootstrapWriteError, bootstrapTenants } from "./bootstrap.
|
|
5
|
-
export { AUTH_EMAIL_PASSWORD_FEATURE, AuthErrors, AuthHandlers, AuthQueries } from "./constants.
|
|
6
|
-
export type { AuthMailLocale } from "./email-templates.
|
|
7
|
-
export type { AccountLockoutOptions, AccountUnlockOptions, AuthEmailPasswordOptions, EmailVerificationOptions, InviteOptions, PasswordResetOptions, SignupOptions, } from "./feature.
|
|
8
|
-
export { authEmailPasswordEnvSchema, createAuthEmailPasswordFeature } from "./feature.
|
|
9
|
-
export { AuthMailNotificationTypes } from "./mail-notifications.
|
|
10
|
-
export { AUTH_SELF_REGISTRATION_FEATURE, createAuthSelfRegistrationToggleFeature, } from "./self-registration-toggle.
|
|
11
|
-
export { signToken, TokenPurpose, type VerifyResult, verifyToken } from "./signed-token.
|
|
12
|
-
export { type IssuedSignupActivation, type IssueSignupActivationArgs, issueSignupActivation, SIGNUP_ACTIVATION_NOTIFICATION_TYPE, } from "./signup-activation.
|
|
13
|
-
export { invalidateExistingSignupToken, normalizeEmail, SIGNUP_TOKEN_KEY_PREFIXES, storeSignupToken, } from "./signup-token-store.
|
|
1
|
+
export { hashPassword, verifyPassword } from "../shared/password-hashing.ts";
|
|
2
|
+
export { type AuthPath, type AuthPaths, DEFAULT_AUTH_PATHS, makeAuthPaths } from "./auth-paths.ts";
|
|
3
|
+
export type { BootstrapConfigValue, BootstrapDeps, BootstrapInvite, BootstrapInviteOutcome, BootstrapPlan, BootstrapReport, BootstrapSeedDeps, BootstrapSystemAdmin, BootstrapTenant, BootstrapTenantOutcome, } from "./bootstrap.ts";
|
|
4
|
+
export { BootstrapPlanError, BootstrapWriteError, bootstrapTenants } from "./bootstrap.ts";
|
|
5
|
+
export { AUTH_EMAIL_PASSWORD_FEATURE, AuthErrors, AuthHandlers, AuthQueries } from "./constants.ts";
|
|
6
|
+
export type { AuthMailLocale } from "./email-templates.ts";
|
|
7
|
+
export type { AccountLockoutOptions, AccountUnlockOptions, AuthEmailPasswordOptions, EmailVerificationOptions, InviteOptions, PasswordResetOptions, SignupOptions, } from "./feature.ts";
|
|
8
|
+
export { authEmailPasswordEnvSchema, createAuthEmailPasswordFeature } from "./feature.ts";
|
|
9
|
+
export { AuthMailNotificationTypes } from "./mail-notifications.ts";
|
|
10
|
+
export { AUTH_SELF_REGISTRATION_FEATURE, createAuthSelfRegistrationToggleFeature, } from "./self-registration-toggle.ts";
|
|
11
|
+
export { signToken, TokenPurpose, type VerifyResult, verifyToken } from "./signed-token.ts";
|
|
12
|
+
export { type IssuedSignupActivation, type IssueSignupActivationArgs, issueSignupActivation, SIGNUP_ACTIVATION_NOTIFICATION_TYPE, } from "./signup-activation.ts";
|
|
13
|
+
export { invalidateExistingSignupToken, normalizeEmail, SIGNUP_TOKEN_KEY_PREFIXES, storeSignupToken, } from "./signup-token-store.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LockoutCounterState } from "../shared/index.
|
|
1
|
+
import { type LockoutCounterState } from "../shared/index.ts";
|
|
2
2
|
export type LockoutState = LockoutCounterState;
|
|
3
3
|
export declare const getLockoutState: (redis: import("ioredis").Redis, subjectId: string) => Promise<LockoutCounterState | null>;
|
|
4
4
|
export declare const recordFailedAttempt: (redis: import("ioredis").Redis, subjectId: string, maxFailedAttempts: number, lockoutDurationMinutes: number) => Promise<LockoutCounterState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NotifyFn } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type AuthMailLocale } from "./email-templates.
|
|
2
|
+
import { type AuthMailLocale } from "./email-templates.ts";
|
|
3
3
|
export type MagicLinkMailSpec = {
|
|
4
4
|
readonly handlerName: string;
|
|
5
5
|
readonly notificationType: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { SessionUser, TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
|
-
import { type SeedTenantHooks } from "../tenant/seeding.
|
|
4
|
-
export { seedTenant, seedTenantMembership } from "../tenant/seeding.
|
|
5
|
-
export { seedUser } from "../user/seeding.
|
|
3
|
+
import { type SeedTenantHooks } from "../tenant/seeding.ts";
|
|
4
|
+
export { seedTenant, seedTenantMembership } from "../tenant/seeding.ts";
|
|
5
|
+
export { seedUser } from "../user/seeding.ts";
|
|
6
6
|
export type SeedUserWithPasswordOptions = {
|
|
7
7
|
readonly email: string;
|
|
8
8
|
readonly password: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../shared/signed-token.
|
|
1
|
+
export * from "../shared/signed-token.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Redis } from "ioredis";
|
|
2
|
-
import { type SignupHandoverBinding } from "../shared/index.
|
|
2
|
+
import { type SignupHandoverBinding } from "../shared/index.ts";
|
|
3
3
|
/** Email normalization — single source for every lookup layer (used
|
|
4
4
|
* internally by the store AND by callers that need a consistent form
|
|
5
5
|
* in the return body / mail send). Previously two places called
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./seeding.
|
|
1
|
+
export * from "./seeding.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
-
import { type LoginScreenProps } from "./login-screen.
|
|
2
|
+
import { type LoginScreenProps } from "./login-screen.tsx";
|
|
3
3
|
export type MfaVerifyComponentProps = {
|
|
4
4
|
readonly challengeToken: string;
|
|
5
5
|
readonly onSuccess?: (landingPath?: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TranslationsByLocale } from "@cosmicdrift/kumiko-renderer";
|
|
2
2
|
import type { ComponentType, ReactNode } from "react";
|
|
3
|
-
import { type AuthGateOptions, type MfaSetupComponentProps, type MfaVerifyComponentProps } from "./auth-gate.
|
|
4
|
-
import type { LoginScreenProps } from "./login-screen.
|
|
3
|
+
import { type AuthGateOptions, type MfaSetupComponentProps, type MfaVerifyComponentProps } from "./auth-gate.tsx";
|
|
4
|
+
import type { LoginScreenProps } from "./login-screen.tsx";
|
|
5
5
|
export type EmailPasswordClientOptions = {
|
|
6
6
|
/** Eigener Login-Screen. Default: der shadcn-stylte LoginScreen
|
|
7
7
|
* aus diesem Modul. Für Branding- oder Layout-Overrides einfach
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export { defaultTranslations, mergeTranslations } from "../i18n.
|
|
2
|
-
export type { AuthTokenFailure, CurrentUserProfile, LoginFailure, LoginRequest, LoginResponse, ResetPasswordFailure, SignupConfirmSuccess, TenantSummary, VerifyEmailFailure, } from "./auth-client.
|
|
3
|
-
export { AuthRequestError, confirmAccountUnlock, confirmSignup, requestAccountUnlock, requestEmailVerification, requestPasswordReset, requestSignup, resetPassword, toLoginResponse, verifyEmail, } from "./auth-client.
|
|
4
|
-
export type { AuthCardProps, AuthShellRenderer } from "./auth-form-primitives.
|
|
5
|
-
export { AuthCard, AuthShellProvider, useAuthShell } from "./auth-form-primitives.
|
|
6
|
-
export type { AuthGateOptions, LoginRouteOptions, MfaSetupComponentProps, MfaVerifyComponentProps, SessionAuthGateOptions, } from "./auth-gate.
|
|
7
|
-
export { createLoginRoute, makeAuthGate, makeSessionAuthGate } from "./auth-gate.
|
|
8
|
-
export { buildLoginRedirectUrl, isSafeNextPath, NEXT_QUERY_PARAM, readNextFromSearch, } from "./auth-redirect.
|
|
9
|
-
export type { EmailPasswordClientFeature, EmailPasswordClientOptions, } from "./client-plugin.
|
|
10
|
-
export { emailPasswordClient } from "./client-plugin.
|
|
11
|
-
export type { ConfirmAccountUnlockScreenProps } from "./confirm-account-unlock-screen.
|
|
12
|
-
export { ConfirmAccountUnlockScreen } from "./confirm-account-unlock-screen.
|
|
13
|
-
export type { DefaultTopbarActionsProps } from "./default-topbar-actions.
|
|
14
|
-
export { DefaultTopbarActions } from "./default-topbar-actions.
|
|
15
|
-
export type { ForgotPasswordScreenProps } from "./forgot-password-screen.
|
|
16
|
-
export { ForgotPasswordScreen } from "./forgot-password-screen.
|
|
17
|
-
export type { InviteAcceptScreenProps } from "./invite-accept-screen.
|
|
18
|
-
export { InviteAcceptScreen } from "./invite-accept-screen.
|
|
19
|
-
export type { AuthLegalLink, LoginScreenProps } from "./login-screen.
|
|
20
|
-
export { LoginScreen } from "./login-screen.
|
|
21
|
-
export type { RequestAccountUnlockScreenProps } from "./request-account-unlock-screen.
|
|
22
|
-
export { RequestAccountUnlockScreen } from "./request-account-unlock-screen.
|
|
23
|
-
export type { ResetPasswordScreenProps } from "./reset-password-screen.
|
|
24
|
-
export { ResetPasswordScreen } from "./reset-password-screen.
|
|
25
|
-
export type { SessionApi, SessionBootstrapFailure, SessionState, SessionStatus, } from "./session.
|
|
26
|
-
export { hasLikelyAuthSession, SessionContext, SessionProvider, useSession } from "./session.
|
|
27
|
-
export type { SessionBootstrapErrorScreenProps } from "./session-bootstrap-error.
|
|
28
|
-
export { retryDelayMs, SessionBootstrapErrorScreen } from "./session-bootstrap-error.
|
|
29
|
-
export type { SignupCompleteScreenProps } from "./signup-complete-screen.
|
|
30
|
-
export { SignupCompleteScreen } from "./signup-complete-screen.
|
|
31
|
-
export type { SignupScreenProps } from "./signup-screen.
|
|
32
|
-
export { SignupScreen } from "./signup-screen.
|
|
33
|
-
export type { TenantMenuItemsProps } from "./tenant-menu-items.
|
|
34
|
-
export { TenantMenuItems } from "./tenant-menu-items.
|
|
35
|
-
export type { TenantSwitcherProps } from "./tenant-switcher.
|
|
36
|
-
export { TenantSwitcher } from "./tenant-switcher.
|
|
37
|
-
export type { ShellUser } from "./use-shell-user.
|
|
38
|
-
export { useShellUser } from "./use-shell-user.
|
|
39
|
-
export type { UserMenuProps } from "./user-menu.
|
|
40
|
-
export { UserMenu } from "./user-menu.
|
|
41
|
-
export type { VerifyEmailScreenProps } from "./verify-email-screen.
|
|
42
|
-
export { VerifyEmailScreen } from "./verify-email-screen.
|
|
1
|
+
export { defaultTranslations, mergeTranslations } from "../i18n.ts";
|
|
2
|
+
export type { AuthTokenFailure, CurrentUserProfile, LoginFailure, LoginRequest, LoginResponse, ResetPasswordFailure, SignupConfirmSuccess, TenantSummary, VerifyEmailFailure, } from "./auth-client.ts";
|
|
3
|
+
export { AuthRequestError, confirmAccountUnlock, confirmSignup, requestAccountUnlock, requestEmailVerification, requestPasswordReset, requestSignup, resetPassword, toLoginResponse, verifyEmail, } from "./auth-client.ts";
|
|
4
|
+
export type { AuthCardProps, AuthShellRenderer } from "./auth-form-primitives.tsx";
|
|
5
|
+
export { AuthCard, AuthShellProvider, useAuthShell } from "./auth-form-primitives.tsx";
|
|
6
|
+
export type { AuthGateOptions, LoginRouteOptions, MfaSetupComponentProps, MfaVerifyComponentProps, SessionAuthGateOptions, } from "./auth-gate.tsx";
|
|
7
|
+
export { createLoginRoute, makeAuthGate, makeSessionAuthGate } from "./auth-gate.tsx";
|
|
8
|
+
export { buildLoginRedirectUrl, isSafeNextPath, NEXT_QUERY_PARAM, readNextFromSearch, } from "./auth-redirect.ts";
|
|
9
|
+
export type { EmailPasswordClientFeature, EmailPasswordClientOptions, } from "./client-plugin.ts";
|
|
10
|
+
export { emailPasswordClient } from "./client-plugin.ts";
|
|
11
|
+
export type { ConfirmAccountUnlockScreenProps } from "./confirm-account-unlock-screen.tsx";
|
|
12
|
+
export { ConfirmAccountUnlockScreen } from "./confirm-account-unlock-screen.tsx";
|
|
13
|
+
export type { DefaultTopbarActionsProps } from "./default-topbar-actions.tsx";
|
|
14
|
+
export { DefaultTopbarActions } from "./default-topbar-actions.tsx";
|
|
15
|
+
export type { ForgotPasswordScreenProps } from "./forgot-password-screen.tsx";
|
|
16
|
+
export { ForgotPasswordScreen } from "./forgot-password-screen.tsx";
|
|
17
|
+
export type { InviteAcceptScreenProps } from "./invite-accept-screen.tsx";
|
|
18
|
+
export { InviteAcceptScreen } from "./invite-accept-screen.tsx";
|
|
19
|
+
export type { AuthLegalLink, LoginScreenProps } from "./login-screen.tsx";
|
|
20
|
+
export { LoginScreen } from "./login-screen.tsx";
|
|
21
|
+
export type { RequestAccountUnlockScreenProps } from "./request-account-unlock-screen.tsx";
|
|
22
|
+
export { RequestAccountUnlockScreen } from "./request-account-unlock-screen.tsx";
|
|
23
|
+
export type { ResetPasswordScreenProps } from "./reset-password-screen.tsx";
|
|
24
|
+
export { ResetPasswordScreen } from "./reset-password-screen.tsx";
|
|
25
|
+
export type { SessionApi, SessionBootstrapFailure, SessionState, SessionStatus, } from "./session.tsx";
|
|
26
|
+
export { hasLikelyAuthSession, SessionContext, SessionProvider, useSession } from "./session.tsx";
|
|
27
|
+
export type { SessionBootstrapErrorScreenProps } from "./session-bootstrap-error.tsx";
|
|
28
|
+
export { retryDelayMs, SessionBootstrapErrorScreen } from "./session-bootstrap-error.tsx";
|
|
29
|
+
export type { SignupCompleteScreenProps } from "./signup-complete-screen.tsx";
|
|
30
|
+
export { SignupCompleteScreen } from "./signup-complete-screen.tsx";
|
|
31
|
+
export type { SignupScreenProps } from "./signup-screen.tsx";
|
|
32
|
+
export { SignupScreen } from "./signup-screen.tsx";
|
|
33
|
+
export type { TenantMenuItemsProps } from "./tenant-menu-items.tsx";
|
|
34
|
+
export { TenantMenuItems } from "./tenant-menu-items.tsx";
|
|
35
|
+
export type { TenantSwitcherProps } from "./tenant-switcher.tsx";
|
|
36
|
+
export { TenantSwitcher } from "./tenant-switcher.tsx";
|
|
37
|
+
export type { ShellUser } from "./use-shell-user.ts";
|
|
38
|
+
export { useShellUser } from "./use-shell-user.ts";
|
|
39
|
+
export type { UserMenuProps } from "./user-menu.tsx";
|
|
40
|
+
export { UserMenu } from "./user-menu.tsx";
|
|
41
|
+
export type { VerifyEmailScreenProps } from "./verify-email-screen.tsx";
|
|
42
|
+
export { VerifyEmailScreen } from "./verify-email-screen.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { SessionBootstrapFailure } from "./session.
|
|
2
|
+
import type { SessionBootstrapFailure } from "./session.tsx";
|
|
3
3
|
export type SessionBootstrapErrorScreenProps = {
|
|
4
4
|
readonly failure: SessionBootstrapFailure;
|
|
5
5
|
readonly onRetry: () => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type CurrentUserProfile, type LoginRequest, type LoginResult, type TenantSummary } from "./auth-client.
|
|
2
|
+
import { type CurrentUserProfile, type LoginRequest, type LoginResult, type TenantSummary } from "./auth-client.ts";
|
|
3
3
|
export type SessionStatus = "loading" | "unauthenticated" | "authenticated" | "error";
|
|
4
4
|
export type SessionBootstrapFailure = {
|
|
5
5
|
readonly httpStatus: number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type SignupConfirmSuccess } from "./auth-client.
|
|
2
|
+
import { type SignupConfirmSuccess } from "./auth-client.ts";
|
|
3
3
|
export type SignupCompleteScreenProps = {
|
|
4
4
|
readonly title?: string;
|
|
5
5
|
/** Override for the URL token — server-rendered apps can pass it. Default: `?token=...`. */
|