@cosmicdrift/kumiko-bundled-features 0.369.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 +2 -2
- 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 +5 -1
- package/dist/channel-email/index.d.ts +6 -5
- package/dist/channel-email/index.js +1 -0
- 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/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 +2 -0
- 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 -20
- 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 +11 -3
- package/dist/delivery/unsubscribe.js +146 -64
- 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 +0 -7
- package/dist/mail-foundation/feature.js +0 -2
- 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 +0 -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/feature.d.ts +0 -16
- package/dist/mail-transport-smtp/feature.js +0 -2
- 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 +4 -3
- package/dist/secrets/feature.js +4 -2
- package/dist/secrets/handlers/delete.write.js +2 -2
- package/dist/secrets/handlers/rotate.job.d.ts +1 -1
- package/dist/secrets/handlers/set.write.js +2 -2
- 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 -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/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/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 +4 -4
- 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 +6 -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 +6 -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 +8 -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 +12 -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/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
|
@@ -2,7 +2,7 @@ import { computeRevisionEtag, etagMatches } from "@cosmicdrift/kumiko-framework/
|
|
|
2
2
|
import { defineFeature, SYSTEM_TENANT_ID, } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import { escapeHtml } from "@cosmicdrift/kumiko-headless";
|
|
4
4
|
import { cachedSecurePageResponse, redirectToCanonicalPath, slashVariantOf, } from "../page-render/index.js";
|
|
5
|
-
import { LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, } from "./constants.js";
|
|
5
|
+
import { LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, LEGAL_TERMS_ROUTES, } from "./constants.js";
|
|
6
6
|
import { runLegalPagesBootCheck } from "./lib/boot-check.js";
|
|
7
7
|
import { validateRoutes } from "./lib/validate-routes.js";
|
|
8
8
|
import { renderMarkdownToHtml, wrapInLayout } from "./markdown.js";
|
|
@@ -19,7 +19,10 @@ const TEXT_BLOCK_BY_SLUG_QN = "template-resolver:query:by-slug";
|
|
|
19
19
|
const PUBLIC_PAGE_CACHE = { kind: "revalidate", maxAgeSeconds: 60 };
|
|
20
20
|
export function createLegalPagesFeature(opts = {}) {
|
|
21
21
|
const wrapLayout = opts.wrapLayout ?? wrapInLayout;
|
|
22
|
-
const routes =
|
|
22
|
+
const routes = [
|
|
23
|
+
...(opts.routes ?? LEGAL_ROUTES),
|
|
24
|
+
...(opts.terms === true ? LEGAL_TERMS_ROUTES : []),
|
|
25
|
+
];
|
|
23
26
|
const requiredBlocks = opts.requiredBlocks ?? LEGAL_REQUIRED_BLOCKS;
|
|
24
27
|
validateRoutes(routes);
|
|
25
28
|
if (opts.routes !== undefined && opts.routes.length > 0 && opts.requiredBlocks === undefined) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { LEGAL_OPTIONAL_BLOCKS, LEGAL_PAGES_FEATURE, LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, type LegalPageRoute, LegalPagesErrors, type LegalRequiredBlock, } from "./constants.
|
|
2
|
-
export { createLegalPagesFeature, type LegalPagesBootCheckCtx, type LegalPagesOptions, runLegalPagesBootCheck, } from "./feature.
|
|
3
|
-
export {
|
|
1
|
+
export { LEGAL_OPTIONAL_BLOCKS, LEGAL_PAGES_FEATURE, LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, LEGAL_TERMS_ROUTES, type LegalPageRoute, LegalPagesErrors, type LegalRequiredBlock, legalPagePath, } from "./constants.ts";
|
|
2
|
+
export { createLegalPagesFeature, type LegalPagesBootCheckCtx, type LegalPagesOptions, runLegalPagesBootCheck, } from "./feature.ts";
|
|
3
|
+
export { createLegalPagesLayout, type LegalPagesLayoutOptions } from "./layout.ts";
|
|
4
|
+
export { renderMarkdownToHtml, wrapInLayout } from "./markdown.ts";
|
|
5
|
+
export { type LegalContentBlock, type LegalContentSeedFn, type LegalContentSeedSource, legalContentSeed, } from "./seed.ts";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { LEGAL_OPTIONAL_BLOCKS, LEGAL_PAGES_FEATURE, LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, LegalPagesErrors, } from "./constants.js";
|
|
1
|
+
export { LEGAL_OPTIONAL_BLOCKS, LEGAL_PAGES_FEATURE, LEGAL_REQUIRED_BLOCKS, LEGAL_ROUTES, LEGAL_TERMS_ROUTES, LegalPagesErrors, legalPagePath, } from "./constants.js";
|
|
2
2
|
export { createLegalPagesFeature, runLegalPagesBootCheck, } from "./feature.js";
|
|
3
|
+
export { createLegalPagesLayout } from "./layout.js";
|
|
3
4
|
export { renderMarkdownToHtml, wrapInLayout } from "./markdown.js";
|
|
5
|
+
export { legalContentSeed, } from "./seed.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type PublicPageWrapLayout } from "../page-render/index.ts";
|
|
2
|
+
export type LegalPagesLayoutOptions = {
|
|
3
|
+
readonly siteName: string;
|
|
4
|
+
readonly css?: string;
|
|
5
|
+
readonly stylesheetHrefs?: readonly string[];
|
|
6
|
+
readonly headerHtml?: (lang: string) => string;
|
|
7
|
+
readonly footerHtml?: (lang: string) => string;
|
|
8
|
+
readonly contentClass?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function createLegalPagesLayout(options: LegalPagesLayoutOptions): PublicPageWrapLayout;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { escapeHtml, escapeHtmlAttr } from "@cosmicdrift/kumiko-headless";
|
|
2
|
+
import { TENANT_CONTENT_ATTR } from "../page-render/index.js";
|
|
3
|
+
export function createLegalPagesLayout(options) {
|
|
4
|
+
const stylesheets = (options.stylesheetHrefs ?? [])
|
|
5
|
+
.map((href) => `\n<link rel="stylesheet" href="${escapeHtmlAttr(href)}">`)
|
|
6
|
+
.join("");
|
|
7
|
+
// html-ok: css comes from app code (LegalPagesLayoutOptions), never from tenant or user input.
|
|
8
|
+
const style = options.css ? `\n<style>${options.css}</style>` : "";
|
|
9
|
+
const contentClass = options.contentClass
|
|
10
|
+
? ` class="${escapeHtmlAttr(options.contentClass)}"`
|
|
11
|
+
: "";
|
|
12
|
+
return ({ title, bodyHtml, lang }) => {
|
|
13
|
+
const headerHtml = options.headerHtml?.(lang) ?? "";
|
|
14
|
+
const footerHtml = options.footerHtml?.(lang) ?? "";
|
|
15
|
+
return `<!doctype html>
|
|
16
|
+
<html lang="${escapeHtmlAttr(lang)}">
|
|
17
|
+
<head>
|
|
18
|
+
<meta charset="utf-8">
|
|
19
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
20
|
+
<title>${escapeHtml(title)} · ${escapeHtml(options.siteName)}</title>
|
|
21
|
+
<meta name="robots" content="index,follow">${stylesheets}${style}
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
${headerHtml}
|
|
25
|
+
<main ${TENANT_CONTENT_ATTR}${contentClass}>
|
|
26
|
+
${bodyHtml}
|
|
27
|
+
</main>
|
|
28
|
+
${footerHtml}
|
|
29
|
+
</body>
|
|
30
|
+
</html>`;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResolverApi } from "@cosmicdrift/kumiko-bundled-features/template-resolver";
|
|
2
|
-
import { type LegalRequiredBlock } from "../constants.
|
|
2
|
+
import { type LegalRequiredBlock } from "../constants.ts";
|
|
3
3
|
export type LegalPagesBootCheckCtx = {
|
|
4
4
|
readonly templateResolver?: TemplateResolverApi;
|
|
5
5
|
readonly log?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { LegalPageRoute } from "../constants.
|
|
1
|
+
import type { LegalPageRoute } from "../constants.ts";
|
|
2
2
|
export declare function validateRoutes(routes: readonly LegalPageRoute[]): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { wrapInLayout } from "../page-render/layout.
|
|
2
|
-
export { renderSafeMarkdown as renderMarkdownToHtml } from "../page-render/markdown.
|
|
1
|
+
export { wrapInLayout } from "../page-render/layout.ts";
|
|
2
|
+
export { renderSafeMarkdown as renderMarkdownToHtml } from "../page-render/markdown.ts";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type LegalContentBlock } from "@cosmicdrift/kumiko-bundled-features/template-resolver/seeding";
|
|
2
|
+
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
3
|
+
export type { LegalContentBlock };
|
|
4
|
+
export type LegalContentSeedSource = {
|
|
5
|
+
readonly blocks: readonly LegalContentBlock[];
|
|
6
|
+
} | {
|
|
7
|
+
readonly path: string;
|
|
8
|
+
};
|
|
9
|
+
export type LegalContentSeedFn = (deps: {
|
|
10
|
+
readonly db: DbConnection;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
export declare function legalContentSeed(source: LegalContentSeedSource): LegalContentSeedFn;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { resolve } from "node:path";
|
|
10
|
+
import { pathToFileURL } from "node:url";
|
|
11
|
+
import { seedLegalContentFromJson, } from "@cosmicdrift/kumiko-bundled-features/template-resolver/seeding";
|
|
12
|
+
import * as z from "zod";
|
|
13
|
+
const legalContentBlocksSchema = z.array(z.object({
|
|
14
|
+
slug: z.string().min(1),
|
|
15
|
+
locale: z.string().min(1),
|
|
16
|
+
title: z.string(),
|
|
17
|
+
content: z.string(),
|
|
18
|
+
}));
|
|
19
|
+
const jsonModuleSchema = z.object({ default: z.unknown() });
|
|
20
|
+
async function loadBlocksFromJson(path) {
|
|
21
|
+
const url = pathToFileURL(resolve(process.cwd(), path)).href;
|
|
22
|
+
const module = jsonModuleSchema.parse(await import(__rewriteRelativeImportExtension(url), { with: { type: "json" } }));
|
|
23
|
+
const parsed = legalContentBlocksSchema.safeParse(module.default);
|
|
24
|
+
if (!parsed.success) {
|
|
25
|
+
throw new Error(`legal-pages: ${path} is not a list of { slug, locale, title, content } blocks: ${parsed.error.message}`);
|
|
26
|
+
}
|
|
27
|
+
return parsed.data;
|
|
28
|
+
}
|
|
29
|
+
// Boot seed for runProdApp's `seeds: [...]`. The JSON template is authoritative
|
|
30
|
+
// (ifExists "update"), so legally required text changes reach rows seeded once.
|
|
31
|
+
export function legalContentSeed(source) {
|
|
32
|
+
return async ({ db }) => {
|
|
33
|
+
const blocks = "blocks" in source
|
|
34
|
+
? legalContentBlocksSchema.parse(source.blocks)
|
|
35
|
+
: await loadBlocksFromJson(source.path);
|
|
36
|
+
await seedLegalContentFromJson(db, blocks);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { legalPagesClient } from "./client-plugin.
|
|
1
|
+
export { legalPagesClient } from "./client-plugin.ts";
|
|
@@ -63,13 +63,6 @@ export declare function createMailFoundationFeature(): import("@cosmicdrift/kumi
|
|
|
63
63
|
providerConfigKey: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"text">;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
/** @deprecated Use createMailFoundationFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
67
|
-
export declare const mailFoundationFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
68
|
-
readonly exports: {
|
|
69
|
-
/** Config-key-handle for the provider-selector. */
|
|
70
|
-
providerConfigKey: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"text">;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
66
|
/**
|
|
74
67
|
* Resolves the tenant's mail-transport. Reads the `provider` config-key,
|
|
75
68
|
* looks up the matching plugin in the registry, calls its `build(ctx,
|
|
@@ -94,8 +94,6 @@ export function createMailFoundationFeature() {
|
|
|
94
94
|
}
|
|
95
95
|
// The typed handles below come from one shared instance; each factory call builds its own handle objects.
|
|
96
96
|
const sharedMailFoundationFeature = createMailFoundationFeature();
|
|
97
|
-
/** @deprecated Use createMailFoundationFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
98
|
-
export const mailFoundationFeature = sharedMailFoundationFeature;
|
|
99
97
|
// =============================================================================
|
|
100
98
|
// Transport-factory — looks up the registered plugin + delegates
|
|
101
99
|
// =============================================================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createMailFoundationFeature, createTransportForTenant, createTransportForTenantIfConfigured, isMailTransportPlugin, MAIL_TRANSPORT_EXTENSION, type MailTransportContext, type MailTransportPlugin,
|
|
1
|
+
export { createMailFoundationFeature, createTransportForTenant, createTransportForTenantIfConfigured, isMailTransportPlugin, MAIL_TRANSPORT_EXTENSION, type MailTransportContext, type MailTransportPlugin, type TenantMailTransportScope, tenantMailTransport, } from "./feature.ts";
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
// up the registered transport-plugin, returns its EmailTransport
|
|
7
7
|
// - `MailTransportPlugin` — type that provider-features implement
|
|
8
8
|
// when registering via `r.useExtension("mailTransport", ...)`
|
|
9
|
-
export { createMailFoundationFeature, createTransportForTenant, createTransportForTenantIfConfigured, isMailTransportPlugin, MAIL_TRANSPORT_EXTENSION,
|
|
9
|
+
export { createMailFoundationFeature, createTransportForTenant, createTransportForTenantIfConfigured, isMailTransportPlugin, MAIL_TRANSPORT_EXTENSION, tenantMailTransport, } from "./feature.js";
|
|
@@ -12,7 +12,3 @@ export declare function clearInbox(tenantId: string): void;
|
|
|
12
12
|
export declare function createMailTransportInMemoryFeature(): import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
13
13
|
readonly exports: void;
|
|
14
14
|
};
|
|
15
|
-
/** @deprecated Use createMailTransportInMemoryFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
16
|
-
export declare const mailTransportInMemoryFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
17
|
-
readonly exports: void;
|
|
18
|
-
};
|
|
@@ -84,5 +84,3 @@ export function createMailTransportInMemoryFeature() {
|
|
|
84
84
|
});
|
|
85
85
|
}, { dedupeOptions: {} });
|
|
86
86
|
}
|
|
87
|
-
/** @deprecated Use createMailTransportInMemoryFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
88
|
-
export const mailTransportInMemoryFeature = createMailTransportInMemoryFeature();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { clearInbox, createMailTransportInMemoryFeature, getInbox,
|
|
1
|
+
export { clearInbox, createMailTransportInMemoryFeature, getInbox, } from "./feature.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Public API of the mail-transport-inmemory bundled-feature.
|
|
2
|
-
export { clearInbox, createMailTransportInMemoryFeature, getInbox,
|
|
2
|
+
export { clearInbox, createMailTransportInMemoryFeature, getInbox, } from "./feature.js";
|
|
@@ -18,22 +18,6 @@ export declare function createMailTransportSmtpFeature(): import("@cosmicdrift/k
|
|
|
18
18
|
password: import("@cosmicdrift/kumiko-types/feature").SecretKeyHandle;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
/** @deprecated Use createMailTransportSmtpFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
22
|
-
export declare const mailTransportSmtpFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
23
|
-
readonly exports: {
|
|
24
|
-
/** Config-key-handles — typed reads via `ctx.config(...)` in
|
|
25
|
-
* consumer handlers. */
|
|
26
|
-
configKeys: {
|
|
27
|
-
readonly host: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"text">;
|
|
28
|
-
readonly port: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"number">;
|
|
29
|
-
readonly secure: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"boolean">;
|
|
30
|
-
readonly authUser: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"text">;
|
|
31
|
-
readonly from: import("@cosmicdrift/kumiko-types/config").ConfigKeyHandle<"text">;
|
|
32
|
-
};
|
|
33
|
-
/** Secret-handle for the SMTP password. */
|
|
34
|
-
password: import("@cosmicdrift/kumiko-types/feature").SecretKeyHandle;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
21
|
/** Typed handle for the SMTP password — exported so seeds + tests can
|
|
38
22
|
* set it via `secrets:write:set` with the full qualified-name. */
|
|
39
23
|
export declare const SMTP_PASSWORD: import("@cosmicdrift/kumiko-types/feature").SecretKeyHandle;
|
|
@@ -99,8 +99,6 @@ export function createMailTransportSmtpFeature() {
|
|
|
99
99
|
}
|
|
100
100
|
// The typed handles below come from one shared instance; each factory call builds its own handle objects.
|
|
101
101
|
const sharedMailTransportSmtpFeature = createMailTransportSmtpFeature();
|
|
102
|
-
/** @deprecated Use createMailTransportSmtpFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
103
|
-
export const mailTransportSmtpFeature = sharedMailTransportSmtpFeature;
|
|
104
102
|
/** Typed handle for the SMTP password — exported so seeds + tests can
|
|
105
103
|
* set it via `secrets:write:set` with the full qualified-name. */
|
|
106
104
|
export const SMTP_PASSWORD = sharedMailTransportSmtpFeature.exports.password;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createMailTransportSmtpFeature, mailTransportSmtpEnvSchema,
|
|
1
|
+
export { createMailTransportSmtpFeature, mailTransportSmtpEnvSchema, SMTP_PASSWORD, setSmtpMailHostLookup, } from "./feature.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Public API of the mail-transport-smtp bundled-feature.
|
|
2
|
-
export { createMailTransportSmtpFeature, mailTransportSmtpEnvSchema,
|
|
2
|
+
export { createMailTransportSmtpFeature, mailTransportSmtpEnvSchema, SMTP_PASSWORD, setSmtpMailHostLookup, } from "./feature.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConfigAccessor, type ConfigKeyDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type BrandingTokens } from "../page-render/index.
|
|
2
|
+
import { type BrandingTokens } from "../page-render/index.ts";
|
|
3
3
|
export declare const LAYOUT_PRESETS: readonly ["minimal", "centered", "wide"];
|
|
4
4
|
export declare const MANAGED_PAGES_CSS_FEATURE = "managed-pages-css";
|
|
5
5
|
export declare const BRANDING_KEYS: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type BrandingTokens } from "../page-render/index.
|
|
2
|
+
import { type BrandingTokens } from "../page-render/index.ts";
|
|
3
3
|
export type ManagedPagesWrapLayout = (opts: {
|
|
4
4
|
readonly title: string;
|
|
5
5
|
readonly bodyHtml: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare function createBrandingQuery(opts: {
|
|
3
3
|
readonly allowCustomCss: boolean;
|
|
4
|
-
}): import("@cosmicdrift/kumiko-types/define-handler").QueryHandlerDefinition<"branding", z.ZodObject<{}, z.core.$strip>, import("../index.
|
|
4
|
+
}): import("@cosmicdrift/kumiko-types/define-handler").QueryHandlerDefinition<"branding", z.ZodObject<{}, z.core.$strip>, import("../index.ts").BrandingTokens, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, sanitizeTenantCss, TENANT_CONTENT_ATTR, tenantStyleBlock, } from "../page-render/index.
|
|
2
|
-
export { BRANDING_QN, MANAGED_PAGES_CSS_FEATURE } from "./branding.
|
|
3
|
-
export { createManagedPagesCssFeature } from "./css-gate.
|
|
4
|
-
export { createManagedPagesFeature, type ManagedPagesOptions, type ManagedPagesWrapLayout, } from "./feature.
|
|
5
|
-
export { type PageRow, pageEntity, pagesTable } from "./table.
|
|
1
|
+
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, sanitizeTenantCss, TENANT_CONTENT_ATTR, tenantStyleBlock, } from "../page-render/index.ts";
|
|
2
|
+
export { BRANDING_QN, MANAGED_PAGES_CSS_FEATURE } from "./branding.ts";
|
|
3
|
+
export { createManagedPagesCssFeature } from "./css-gate.ts";
|
|
4
|
+
export { createManagedPagesFeature, type ManagedPagesOptions, type ManagedPagesWrapLayout, } from "./feature.ts";
|
|
5
|
+
export { type PageRow, pageEntity, pagesTable } from "./table.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type ManagedPagesClientOptions, managedPagesClient } from "./client-plugin.
|
|
2
|
-
export { defaultTranslations } from "./i18n.
|
|
1
|
+
export { type ManagedPagesClientOptions, managedPagesClient } from "./client-plugin.tsx";
|
|
2
|
+
export { defaultTranslations } from "./i18n.ts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { WhereObject } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
3
3
|
import type { TenantDb } from "@cosmicdrift/kumiko-types/tenant-db-types";
|
|
4
|
-
import { type MetricRange } from "./constants.
|
|
5
|
-
import type { MetricDefinition, MetricResult } from "./types.
|
|
4
|
+
import { type MetricRange } from "./constants.ts";
|
|
5
|
+
import type { MetricDefinition, MetricResult } from "./types.ts";
|
|
6
6
|
export type MetricRunParams = {
|
|
7
7
|
readonly range: MetricRange;
|
|
8
8
|
readonly timeZone: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const jobRunsByStatusMetric: import("./types.
|
|
2
|
-
export declare const failedJobRunsMetric: import("./types.
|
|
3
|
-
export declare const tenantJobFailuresMetric: import("./types.
|
|
4
|
-
export declare const deliveriesByChannelMetric: import("./types.
|
|
5
|
-
export declare const failedDeliveriesMetric: import("./types.
|
|
6
|
-
export declare const activeUsersMetric: import("./types.
|
|
7
|
-
export declare const activeTenantsMetric: import("./types.
|
|
8
|
-
export declare const auditWritesMetric: import("./types.
|
|
9
|
-
export declare const DEFAULT_METRICS: readonly [import("./types.
|
|
1
|
+
export declare const jobRunsByStatusMetric: import("./types.ts").MetricDefinition;
|
|
2
|
+
export declare const failedJobRunsMetric: import("./types.ts").MetricDefinition;
|
|
3
|
+
export declare const tenantJobFailuresMetric: import("./types.ts").MetricDefinition;
|
|
4
|
+
export declare const deliveriesByChannelMetric: import("./types.ts").MetricDefinition;
|
|
5
|
+
export declare const failedDeliveriesMetric: import("./types.ts").MetricDefinition;
|
|
6
|
+
export declare const activeUsersMetric: import("./types.ts").MetricDefinition;
|
|
7
|
+
export declare const activeTenantsMetric: import("./types.ts").MetricDefinition;
|
|
8
|
+
export declare const auditWritesMetric: import("./types.ts").MetricDefinition;
|
|
9
|
+
export declare const DEFAULT_METRICS: readonly [import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition, import("./types.ts").MetricDefinition];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import type { MetricsFeatureOptions } from "./types.
|
|
2
|
+
import type { MetricsFeatureOptions } from "./types.ts";
|
|
3
3
|
export declare function createMetricsFeature(options: MetricsFeatureOptions): FeatureDefinition;
|
|
4
4
|
export declare function createSystemMetricsFeature(options: MetricsFeatureOptions): FeatureDefinition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type WhereObject } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import * as z from "zod";
|
|
4
|
-
import type { MetricDefinition, MetricFilterResolver } from "./types.
|
|
4
|
+
import type { MetricDefinition, MetricFilterResolver } from "./types.ts";
|
|
5
5
|
export declare const RESERVED_PAYLOAD_KEYS: readonly string[];
|
|
6
6
|
declare const INTEGER_RANGES: {
|
|
7
7
|
readonly smallint: {
|
package/dist/metrics/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { METRIC_RANGES, METRICS_FEATURE, METRICS_SYSTEM_FEATURE, type MetricRange, type MetricScope, metricQueryName, } from "./constants.
|
|
2
|
-
export { activeTenantsMetric, activeUsersMetric, auditWritesMetric, DEFAULT_METRICS, deliveriesByChannelMetric, failedDeliveriesMetric, failedJobRunsMetric, jobRunsByStatusMetric, tenantJobFailuresMetric, } from "./default-metrics.
|
|
3
|
-
export { createMetricsFeature, createSystemMetricsFeature } from "./feature.
|
|
4
|
-
export { METRICS_I18N } from "./i18n.
|
|
5
|
-
export { defineMetric, type MetricDefinition, type MetricFilterResolver, type MetricPoint, type MetricResult, type MetricRow, type MetricSegment, type MetricSeries, type MetricsFeatureOptions, } from "./types.
|
|
1
|
+
export { METRIC_RANGES, METRICS_FEATURE, METRICS_SYSTEM_FEATURE, type MetricRange, type MetricScope, metricQueryName, } from "./constants.ts";
|
|
2
|
+
export { activeTenantsMetric, activeUsersMetric, auditWritesMetric, DEFAULT_METRICS, deliveriesByChannelMetric, failedDeliveriesMetric, failedJobRunsMetric, jobRunsByStatusMetric, tenantJobFailuresMetric, } from "./default-metrics.ts";
|
|
3
|
+
export { createMetricsFeature, createSystemMetricsFeature } from "./feature.ts";
|
|
4
|
+
export { METRICS_I18N } from "./i18n.ts";
|
|
5
|
+
export { defineMetric, type MetricDefinition, type MetricFilterResolver, type MetricPoint, type MetricResult, type MetricRow, type MetricSegment, type MetricSeries, type MetricsFeatureOptions, } from "./types.ts";
|
package/dist/metrics/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { AggregateMeasure, AggregateTimeBucket } from "@cosmicdrift/kumiko-
|
|
|
4
4
|
import type { SchemaTable } from "@cosmicdrift/kumiko-types/schema-table-types";
|
|
5
5
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
6
6
|
import type { WhereObject } from "@cosmicdrift/kumiko-types/where-clause-types";
|
|
7
|
-
import type { MetricRange, MetricScope } from "./constants.
|
|
7
|
+
import type { MetricRange, MetricScope } from "./constants.ts";
|
|
8
8
|
/** Maps a payload value (e.g. a folder id) to the values `column` may have (e.g. the folder and its subfolders' loan ids). Runs with the tenant handler context, so reads stay tenant-scoped; the result only narrows. An empty result yields no rows. */
|
|
9
9
|
export type MetricFilterResolver = {
|
|
10
10
|
readonly column: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { MetricDefinition } from "./types.
|
|
1
|
+
import type { MetricDefinition } from "./types.ts";
|
|
2
2
|
export declare function metricHasTenantColumn(metric: MetricDefinition): boolean;
|
|
3
3
|
export declare function validateMetrics(metrics: readonly MetricDefinition[]): void;
|
package/dist/metrics/window.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AggregateTimeBucket } from "@cosmicdrift/kumiko-types/aggregate-types";
|
|
2
2
|
import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
3
|
-
import type { MetricRange } from "./constants.
|
|
4
|
-
import type { MetricDefinition } from "./types.
|
|
3
|
+
import type { MetricRange } from "./constants.ts";
|
|
4
|
+
import type { MetricDefinition } from "./types.ts";
|
|
5
5
|
export type MetricWindow = {
|
|
6
6
|
readonly start: Temporal.Instant;
|
|
7
7
|
readonly end: Temporal.Instant;
|
|
@@ -39,8 +39,4 @@ export type NotesHistoryFeatureOptions = {
|
|
|
39
39
|
readonly parents?: readonly string[];
|
|
40
40
|
};
|
|
41
41
|
export declare function createNotesHistoryFeature(opts?: NotesHistoryFeatureOptions): typeof defaultNotesHistoryFeature;
|
|
42
|
-
/** @deprecated Use createNotesHistoryFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
43
|
-
export declare const notesHistoryFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
44
|
-
readonly exports: void;
|
|
45
|
-
};
|
|
46
42
|
export {};
|
|
@@ -69,5 +69,3 @@ export function createNotesHistoryFeature(opts = {}) {
|
|
|
69
69
|
}
|
|
70
70
|
return defineFeature(NOTES_HISTORY_FEATURE_NAME, (r) => registerNotesHistory(r, resolveAccess(opts), opts.ownership, opts.parents));
|
|
71
71
|
}
|
|
72
|
-
/** @deprecated Use createNotesHistoryFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
73
|
-
export const notesHistoryFeature = createNotesHistoryFeature();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { noteEntryExecutor } from "../executor.
|
|
2
|
+
import { noteEntryExecutor } from "../executor.ts";
|
|
3
3
|
export declare function createAddNoteHandler(access?: AccessRule, entryExecutor?: typeof noteEntryExecutor): WriteHandlerDef;
|
|
4
4
|
export declare const addNoteHandler: WriteHandlerDef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DEFAULT_NOTES_HISTORY_ACCESS, DEFAULT_NOTES_HISTORY_ROLES, NOTES_HISTORY_FEATURE_NAME, NOTES_SECTION_EXTENSION_NAME, NotesHistoryHandlers, NotesHistoryQueries, } from "./constants.
|
|
2
|
-
export { noteEntryEntity, noteMentionEntity } from "./entity.
|
|
3
|
-
export { noteEntryExecutor, noteEntryTable, noteMentionExecutor, noteMentionTable, } from "./executor.
|
|
4
|
-
export { createNotesHistoryFeature, type NotesHistoryFeatureOptions,
|
|
5
|
-
export { addNoteHandler, createAddNoteHandler, } from "./handlers/add-note.write.
|
|
6
|
-
export { type AddNotePayload, addNotePayloadSchema } from "./schemas.
|
|
1
|
+
export { DEFAULT_NOTES_HISTORY_ACCESS, DEFAULT_NOTES_HISTORY_ROLES, NOTES_HISTORY_FEATURE_NAME, NOTES_SECTION_EXTENSION_NAME, NotesHistoryHandlers, NotesHistoryQueries, } from "./constants.ts";
|
|
2
|
+
export { noteEntryEntity, noteMentionEntity } from "./entity.ts";
|
|
3
|
+
export { noteEntryExecutor, noteEntryTable, noteMentionExecutor, noteMentionTable, } from "./executor.ts";
|
|
4
|
+
export { createNotesHistoryFeature, type NotesHistoryFeatureOptions, } from "./feature.ts";
|
|
5
|
+
export { addNoteHandler, createAddNoteHandler, } from "./handlers/add-note.write.ts";
|
|
6
|
+
export { type AddNotePayload, addNotePayloadSchema } from "./schemas.ts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DEFAULT_NOTES_HISTORY_ACCESS, DEFAULT_NOTES_HISTORY_ROLES, NOTES_HISTORY_FEATURE_NAME, NOTES_SECTION_EXTENSION_NAME, NotesHistoryHandlers, NotesHistoryQueries, } from "./constants.js";
|
|
2
2
|
export { noteEntryEntity, noteMentionEntity } from "./entity.js";
|
|
3
3
|
export { noteEntryExecutor, noteEntryTable, noteMentionExecutor, noteMentionTable, } from "./executor.js";
|
|
4
|
-
export { createNotesHistoryFeature,
|
|
4
|
+
export { createNotesHistoryFeature, } from "./feature.js";
|
|
5
5
|
export { addNoteHandler, createAddNoteHandler, } from "./handlers/add-note.write.js";
|
|
6
6
|
export { addNotePayloadSchema } from "./schemas.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { NOTES_SECTION_EXTENSION_NAME, NotesHistoryHandlers, NotesHistoryQueries, } from "../constants.
|
|
2
|
-
export { notesHistoryClient } from "./client-plugin.
|
|
3
|
-
export { NotesSection } from "./notes-section.
|
|
1
|
+
export { NOTES_SECTION_EXTENSION_NAME, NotesHistoryHandlers, NotesHistoryQueries, } from "../constants.ts";
|
|
2
|
+
export { notesHistoryClient } from "./client-plugin.tsx";
|
|
3
|
+
export { NotesSection } from "./notes-section.tsx";
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export { eraseNoteBodiesReachingSubject } from "./hooks.
|
|
1
|
+
export { eraseNoteBodiesReachingSubject } from "./hooks.ts";
|
|
2
2
|
export declare function createNotesHistoryUserDataFeature(): import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
3
3
|
readonly exports: void;
|
|
4
4
|
};
|
|
5
|
-
/** @deprecated Use createNotesHistoryUserDataFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
6
|
-
export declare const notesHistoryUserDataFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
7
|
-
readonly exports: void;
|
|
8
|
-
};
|
|
@@ -26,5 +26,3 @@ export function createNotesHistoryUserDataFeature() {
|
|
|
26
26
|
});
|
|
27
27
|
}, { dedupeOptions: {} });
|
|
28
28
|
}
|
|
29
|
-
/** @deprecated Use createNotesHistoryUserDataFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
30
|
-
export const notesHistoryUserDataFeature = createNotesHistoryUserDataFeature();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, isSafeHexColor, isSafeHttpsUrl, layoutMaxWidth, } from "./branding.
|
|
2
|
-
export { type CachedSecurePageResponseInit, cachedSecurePageResponse, } from "./cached-page-response.
|
|
3
|
-
export { sanitizeTenantCss } from "./css-sanitize.
|
|
4
|
-
export { type PublicPageWrapLayout, type SeoHeadInput, TENANT_CONTENT_ATTR, tenantStyleBlock, wrapInLayout, } from "./layout.
|
|
5
|
-
export { renderSafeMarkdown } from "./markdown.
|
|
6
|
-
export { securePageHeaders } from "./security-headers.
|
|
7
|
-
export { redirectToCanonicalPath, slashVariantOf } from "./trailing-slash.
|
|
1
|
+
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, isSafeHexColor, isSafeHttpsUrl, layoutMaxWidth, } from "./branding.ts";
|
|
2
|
+
export { type CachedSecurePageResponseInit, cachedSecurePageResponse, } from "./cached-page-response.ts";
|
|
3
|
+
export { sanitizeTenantCss } from "./css-sanitize.ts";
|
|
4
|
+
export { type PublicPageWrapLayout, type SeoHeadInput, TENANT_CONTENT_ATTR, tenantStyleBlock, wrapInLayout, } from "./layout.ts";
|
|
5
|
+
export { renderSafeMarkdown } from "./markdown.ts";
|
|
6
|
+
export { securePageHeaders } from "./security-headers.ts";
|
|
7
|
+
export { redirectToCanonicalPath, slashVariantOf } from "./trailing-slash.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ApexHead } from "@cosmicdrift/kumiko-headless/apex";
|
|
2
|
-
import { type BrandingTokens } from "./branding.
|
|
2
|
+
import { type BrandingTokens } from "./branding.ts";
|
|
3
3
|
export type SeoHeadInput = Omit<ApexHead, "title" | "description" | "lang">;
|
|
4
4
|
export type PublicPageWrapLayout = (opts: {
|
|
5
5
|
readonly title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, isSafeHexColor, isSafeHttpsUrl, layoutMaxWidth, } from "./branding.
|
|
2
|
-
export { sanitizeTenantCss } from "./css-sanitize.
|
|
3
|
-
export { TENANT_CONTENT_ATTR, tenantStyleBlock, wrapInLayout } from "./layout.
|
|
4
|
-
export { renderSafeMarkdown } from "./markdown.
|
|
5
|
-
export { securePageHeaders } from "./security-headers.
|
|
1
|
+
export { type BrandingTokens, brandingHeaderHtml, brandingStyleBlock, EMPTY_BRANDING, isSafeHexColor, isSafeHttpsUrl, layoutMaxWidth, } from "./branding.ts";
|
|
2
|
+
export { sanitizeTenantCss } from "./css-sanitize.ts";
|
|
3
|
+
export { TENANT_CONTENT_ATTR, tenantStyleBlock, wrapInLayout } from "./layout.ts";
|
|
4
|
+
export { renderSafeMarkdown } from "./markdown.ts";
|
|
5
|
+
export { securePageHeaders } from "./security-headers.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FeatureDefinition, type ProjectionListScreenDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type PatRateLimit } from "./constants.
|
|
3
|
-
import { type CreatePatOptions } from "./handlers/create.write.
|
|
4
|
-
import type { PatScopeConfig } from "./scopes.
|
|
2
|
+
import { type PatRateLimit } from "./constants.ts";
|
|
3
|
+
import { type CreatePatOptions } from "./handlers/create.write.ts";
|
|
4
|
+
import type { PatScopeConfig } from "./scopes.ts";
|
|
5
5
|
export type BindPatAutoRevokeOnPasswordChange = (revoker: (userId: string) => Promise<number>) => void;
|
|
6
6
|
export declare function bindPatAutoRevokeOnPasswordChangeFromFeature(feature: FeatureDefinition): BindPatAutoRevokeOnPasswordChange | undefined;
|
|
7
7
|
export type PersonalAccessTokensOptions = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import type { PatScopeConfig } from "../scopes.
|
|
2
|
+
import type { PatScopeConfig } from "../scopes.ts";
|
|
3
3
|
export declare function buildAvailableScopesQuery(scopes: PatScopeConfig): import("@cosmicdrift/kumiko-types/define-handler").QueryHandlerDefinition<"available-scopes", z.ZodObject<{}, z.core.$strip>, {
|
|
4
4
|
name: string;
|
|
5
5
|
label: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { type PatRateLimit } from "./constants.
|
|
3
|
-
export type { PatRateLimit } from "./constants.
|
|
4
|
-
export { PAT_DEFAULT_RATE_LIMIT, PAT_FEATURE, PatHandlers, PatQueries } from "./constants.
|
|
5
|
-
export type { BindPatAutoRevokeOnPasswordChange, PersonalAccessTokensOptions } from "./feature.
|
|
6
|
-
export { bindPatAutoRevokeOnPasswordChangeFromFeature, createPersonalAccessTokensFeature, } from "./feature.
|
|
7
|
-
export type { CreatePatOptions, PatMfaVerifyResult } from "./handlers/create.write.
|
|
8
|
-
export { hashPatToken, mintPatToken } from "./hash.
|
|
9
|
-
export { PAT_REVOKED_AGGREGATE_TYPE, PAT_REVOKED_EVENT_QN, PAT_REVOKED_EVENT_SHORT, type PatRevokedPayload, patRevokedSchema, } from "./pat-revoked-event.
|
|
10
|
-
export { createPatResolver } from "./resolver.
|
|
11
|
-
export { revokeAllPatTokensForUser } from "./revoke-for-user.
|
|
12
|
-
export { apiTokenEntity, apiTokenTable } from "./schema/api-token.
|
|
13
|
-
export type { PatScopeConfig, PatScopeDef } from "./scopes.
|
|
14
|
-
export { expandScopes } from "./scopes.
|
|
2
|
+
import { type PatRateLimit } from "./constants.ts";
|
|
3
|
+
export type { PatRateLimit } from "./constants.ts";
|
|
4
|
+
export { PAT_DEFAULT_RATE_LIMIT, PAT_FEATURE, PatHandlers, PatQueries } from "./constants.ts";
|
|
5
|
+
export type { BindPatAutoRevokeOnPasswordChange, PersonalAccessTokensOptions } from "./feature.ts";
|
|
6
|
+
export { bindPatAutoRevokeOnPasswordChangeFromFeature, createPersonalAccessTokensFeature, } from "./feature.ts";
|
|
7
|
+
export type { CreatePatOptions, PatMfaVerifyResult } from "./handlers/create.write.ts";
|
|
8
|
+
export { hashPatToken, mintPatToken } from "./hash.ts";
|
|
9
|
+
export { PAT_REVOKED_AGGREGATE_TYPE, PAT_REVOKED_EVENT_QN, PAT_REVOKED_EVENT_SHORT, type PatRevokedPayload, patRevokedSchema, } from "./pat-revoked-event.ts";
|
|
10
|
+
export { createPatResolver } from "./resolver.ts";
|
|
11
|
+
export { revokeAllPatTokensForUser } from "./revoke-for-user.ts";
|
|
12
|
+
export { apiTokenEntity, apiTokenTable } from "./schema/api-token.ts";
|
|
13
|
+
export type { PatScopeConfig, PatScopeDef } from "./scopes.ts";
|
|
14
|
+
export { expandScopes } from "./scopes.ts";
|
|
15
15
|
export declare function patRateLimitFromFeature(feature: FeatureDefinition): PatRateLimit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TokenVerifier } from "@cosmicdrift/kumiko-framework/api";
|
|
2
2
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
3
|
-
import { type PatScopeConfig } from "./scopes.
|
|
3
|
+
import { type PatScopeConfig } from "./scopes.ts";
|
|
4
4
|
export declare function createPatResolver(opts: {
|
|
5
5
|
readonly db: DbConnection;
|
|
6
6
|
readonly scopes: PatScopeConfig;
|