@cosmicdrift/kumiko-samples 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/package.json +1 -1
- package/packages/bundled-features/package.json +21 -11
- package/packages/bundled-features/src/account-security/README.md +31 -0
- package/packages/bundled-features/src/account-security/changes.json +8 -0
- package/packages/bundled-features/src/account-security/constants.ts +6 -0
- package/packages/bundled-features/src/account-security/feature.ts +100 -0
- package/packages/bundled-features/src/account-security/i18n.ts +9 -0
- package/packages/bundled-features/src/account-security/index.ts +13 -0
- package/packages/bundled-features/src/admin-shell/feature.ts +4 -4
- package/packages/bundled-features/src/admin-shell/index.ts +4 -4
- package/packages/bundled-features/src/admin-shell/overview-allowlist.ts +3 -3
- package/packages/bundled-features/src/admin-shell/overview-panels.ts +3 -3
- package/packages/bundled-features/src/admin-shell/web/client-plugin.tsx +2 -2
- package/packages/bundled-features/src/admin-shell/web/i18n.ts +1 -1
- package/packages/bundled-features/src/admin-shell/web/index.ts +1 -1
- package/packages/bundled-features/src/agent-tools/agent-doc-lint.ts +1 -1
- package/packages/bundled-features/src/agent-tools/agent-manifest.ts +2 -2
- package/packages/bundled-features/src/agent-tools/feature.ts +1 -1
- package/packages/bundled-features/src/agent-tools/index.ts +8 -8
- package/packages/bundled-features/src/agent-tools/manifest-deny-qns.ts +1 -1
- package/packages/bundled-features/src/agent-tools/tool-catalog.ts +3 -3
- package/packages/bundled-features/src/agent-tools/tool-dispatch.ts +2 -2
- package/packages/bundled-features/src/audit/feature.ts +6 -6
- package/packages/bundled-features/src/audit/handlers/details.query.ts +3 -3
- package/packages/bundled-features/src/audit/handlers/list.query.ts +3 -3
- package/packages/bundled-features/src/audit/handlers/resolve-audit-tenant.ts +1 -1
- package/packages/bundled-features/src/audit/index.ts +3 -3
- package/packages/bundled-features/src/audit/run-escape-hatch-retention.ts +4 -4
- package/packages/bundled-features/src/audit/web/client-plugin.tsx +2 -2
- package/packages/bundled-features/src/audit/web/i18n.ts +1 -1
- package/packages/bundled-features/src/audit/web/index.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/bootstrap.ts +10 -10
- package/packages/bundled-features/src/auth-email-password/changes.json +6 -0
- package/packages/bundled-features/src/auth-email-password/errors.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/feature.ts +26 -24
- package/packages/bundled-features/src/auth-email-password/handlers/change-password.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/confirm-account-unlock.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/confirm-token-flow.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/invite-accept-with-login.write.ts +10 -10
- package/packages/bundled-features/src/auth-email-password/handlers/invite-accept.write.ts +7 -7
- package/packages/bundled-features/src/auth-email-password/handlers/invite-create.write.ts +11 -11
- package/packages/bundled-features/src/auth-email-password/handlers/invite-info.query.ts +5 -5
- package/packages/bundled-features/src/auth-email-password/handlers/invite-signup-complete.write.ts +11 -11
- package/packages/bundled-features/src/auth-email-password/handlers/login.write.ts +6 -6
- package/packages/bundled-features/src/auth-email-password/handlers/request-account-unlock.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/request-email-verification.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/request-password-reset.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/reset-password.write.ts +6 -6
- package/packages/bundled-features/src/auth-email-password/handlers/self-registration-status.query.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/signup-confirm.write.ts +7 -7
- package/packages/bundled-features/src/auth-email-password/handlers/signup-request.write.ts +7 -7
- package/packages/bundled-features/src/auth-email-password/handlers/switch-tenant-mfa-gate.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/token-request-handler.ts +5 -5
- package/packages/bundled-features/src/auth-email-password/handlers/verify-email.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/index.ts +13 -13
- package/packages/bundled-features/src/auth-email-password/invite-token-store.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/lockout-store.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/magic-link-mail.ts +2 -2
- package/packages/bundled-features/src/auth-email-password/mail-notifications.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/reset-token.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/seeding.ts +6 -6
- package/packages/bundled-features/src/auth-email-password/signed-token.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/signup-activation.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/signup-token-store.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/testing.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/unlock-token.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/verification-token.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-gate.tsx +4 -4
- package/packages/bundled-features/src/auth-email-password/web/client-plugin.ts +3 -3
- package/packages/bundled-features/src/auth-email-password/web/confirm-account-unlock-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-email-password/web/default-topbar-actions.tsx +2 -2
- package/packages/bundled-features/src/auth-email-password/web/forgot-password-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-email-password/web/index.ts +42 -42
- package/packages/bundled-features/src/auth-email-password/web/invite-accept-screen.tsx +4 -4
- package/packages/bundled-features/src/auth-email-password/web/login-screen.tsx +4 -4
- package/packages/bundled-features/src/auth-email-password/web/request-account-unlock-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-email-password/web/reset-password-screen.tsx +3 -3
- package/packages/bundled-features/src/auth-email-password/web/session-bootstrap-error.tsx +2 -2
- package/packages/bundled-features/src/auth-email-password/web/session.tsx +1 -1
- package/packages/bundled-features/src/auth-email-password/web/signup-complete-screen.tsx +4 -4
- package/packages/bundled-features/src/auth-email-password/web/signup-screen.tsx +3 -3
- package/packages/bundled-features/src/auth-email-password/web/tenant-menu-items.tsx +1 -1
- package/packages/bundled-features/src/auth-email-password/web/tenant-switcher.tsx +1 -1
- package/packages/bundled-features/src/auth-email-password/web/use-shell-user.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/web/user-menu.tsx +1 -1
- package/packages/bundled-features/src/auth-email-password/web/verify-email-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-foundation/boot-checks.ts +1 -1
- package/packages/bundled-features/src/auth-foundation/changes.json +8 -0
- package/packages/bundled-features/src/auth-foundation/feature.ts +3 -6
- package/packages/bundled-features/src/auth-foundation/index.ts +3 -4
- package/packages/bundled-features/src/auth-foundation/resolve-anonymous-access.ts +2 -2
- package/packages/bundled-features/src/auth-mfa/changes.json +6 -0
- package/packages/bundled-features/src/auth-mfa/db/queries.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/env.ts +28 -0
- package/packages/bundled-features/src/auth-mfa/errors.ts +2 -2
- package/packages/bundled-features/src/auth-mfa/feature-exports.ts +100 -0
- package/packages/bundled-features/src/auth-mfa/feature.ts +86 -105
- package/packages/bundled-features/src/auth-mfa/handlers/disable.write.ts +4 -4
- package/packages/bundled-features/src/auth-mfa/handlers/enable-confirm-preauth.write.ts +10 -10
- package/packages/bundled-features/src/auth-mfa/handlers/enable-confirm.write.ts +7 -7
- package/packages/bundled-features/src/auth-mfa/handlers/enable-start-preauth.write.ts +9 -9
- package/packages/bundled-features/src/auth-mfa/handlers/enable-start.write.ts +9 -9
- package/packages/bundled-features/src/auth-mfa/handlers/reencrypt.job.ts +2 -2
- package/packages/bundled-features/src/auth-mfa/handlers/regenerate-recovery.write.ts +5 -5
- package/packages/bundled-features/src/auth-mfa/handlers/status.query.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/handlers/verify.write.ts +9 -9
- package/packages/bundled-features/src/auth-mfa/index.ts +16 -11
- package/packages/bundled-features/src/auth-mfa/mfa-challenge-token.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/mfa-code-verifier.ts +2 -2
- package/packages/bundled-features/src/auth-mfa/mfa-preauth-setup-token.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/mfa-status-checker.ts +5 -5
- package/packages/bundled-features/src/auth-mfa/mfa-verify-attempts.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/otpauth-uri.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/recovery-codes.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/screens.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/testing.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/token-secrets.ts +26 -0
- package/packages/bundled-features/src/auth-mfa/verify-factor.ts +5 -5
- package/packages/bundled-features/src/auth-mfa/web/client-plugin.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/web/index.ts +15 -15
- package/packages/bundled-features/src/auth-mfa/web/mfa-client.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-disable-dialog.tsx +1 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-regenerate-recovery-dialog.tsx +1 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-setup-preauth-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-mfa/web/mfa-verify-screen.tsx +2 -2
- package/packages/bundled-features/src/auth-mfa-user-data/changes.json +10 -1
- package/packages/bundled-features/src/auth-mfa-user-data/hooks.ts +2 -2
- package/packages/bundled-features/src/auth-mfa-user-data/index.ts +1 -4
- package/packages/bundled-features/src/billing-foundation/billing-info-query.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/changes.json +8 -0
- package/packages/bundled-features/src/billing-foundation/checkout-core.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/confirmation-mail.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/consent-gate.ts +5 -5
- package/packages/bundled-features/src/billing-foundation/consumer-protection/consent-text.ts +2 -2
- package/packages/bundled-features/src/billing-foundation/consumer-protection/issue-confirmation.ts +8 -8
- package/packages/bundled-features/src/billing-foundation/consumer-protection/mail-notifications.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/consumer-protection/register-consent.ts +7 -7
- package/packages/bundled-features/src/billing-foundation/consumer-protection/register-termination.ts +5 -5
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-mail.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-notify.ts +6 -6
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-pages.ts +7 -7
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-record.ts +10 -10
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-request.ts +12 -12
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-texts.ts +2 -2
- package/packages/bundled-features/src/billing-foundation/consumer-protection/withdrawal-period.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/events.ts +2 -2
- package/packages/bundled-features/src/billing-foundation/feature.ts +19 -22
- package/packages/bundled-features/src/billing-foundation/get-subscription-for-tenant.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/handlers/billing-plans.query.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/handlers/create-checkout-session.write.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/handlers/create-portal-session.write.ts +6 -6
- package/packages/bundled-features/src/billing-foundation/handlers/list-subscriptions.query.ts +2 -2
- package/packages/bundled-features/src/billing-foundation/handlers/process-event.write.ts +5 -5
- package/packages/bundled-features/src/billing-foundation/handlers/process-payment-event.write.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/handlers/start-plan-checkout.write.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/handlers/switch-plan.write.ts +5 -5
- package/packages/bundled-features/src/billing-foundation/handlers/sync-subscription.write.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/index.ts +16 -16
- package/packages/bundled-features/src/billing-foundation/plan-catalog.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/projection.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/screens.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/subscription-tier-sync.ts +6 -5
- package/packages/bundled-features/src/billing-foundation/tenant-destroy-hook.ts +4 -4
- package/packages/bundled-features/src/billing-foundation/types.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/validate-options.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/web/billing-plans-panel.tsx +4 -4
- package/packages/bundled-features/src/billing-foundation/web/cancel-contract-dialog.tsx +2 -2
- package/packages/bundled-features/src/billing-foundation/web/checkout-consent-dialog.tsx +2 -2
- package/packages/bundled-features/src/billing-foundation/web/client-plugin.tsx +2 -2
- package/packages/bundled-features/src/billing-foundation/web/index.ts +6 -6
- package/packages/bundled-features/src/billing-foundation/webhook-handler.ts +2 -2
- package/packages/bundled-features/src/cap-counter/book-cap-usage.ts +3 -3
- package/packages/bundled-features/src/cap-counter/calendar-cap-usage-reservation.ts +4 -4
- package/packages/bundled-features/src/cap-counter/cap-reservation.ts +4 -4
- package/packages/bundled-features/src/cap-counter/changes.json +8 -0
- package/packages/bundled-features/src/cap-counter/enforce-cap.ts +2 -2
- package/packages/bundled-features/src/cap-counter/feature.ts +8 -11
- package/packages/bundled-features/src/cap-counter/handlers/get-counter.query.ts +1 -1
- package/packages/bundled-features/src/cap-counter/handlers/increment-rolling.write.ts +2 -2
- package/packages/bundled-features/src/cap-counter/handlers/increment.write.ts +1 -1
- package/packages/bundled-features/src/cap-counter/handlers/mark-soft-warned.write.ts +1 -1
- package/packages/bundled-features/src/cap-counter/index.ts +13 -13
- package/packages/bundled-features/src/cap-counter/stock-cap-guard.ts +1 -1
- package/packages/bundled-features/src/cap-counter/value-cap-guard.ts +2 -2
- package/packages/bundled-features/src/cap-counter/with-cap-enforcement.ts +4 -4
- package/packages/bundled-features/src/cap-overview/feature.ts +8 -8
- package/packages/bundled-features/src/cap-overview/handlers/caps-usage.query.ts +3 -3
- package/packages/bundled-features/src/cap-overview/handlers/tenant-caps-list.query.ts +7 -7
- package/packages/bundled-features/src/cap-overview/handlers/tenant-options.query.ts +1 -1
- package/packages/bundled-features/src/cap-overview/index.ts +6 -6
- package/packages/bundled-features/src/cap-overview/screens.ts +2 -2
- package/packages/bundled-features/src/cap-overview/types.ts +1 -1
- package/packages/bundled-features/src/cap-overview/usage-math.ts +1 -1
- package/packages/bundled-features/src/cap-overview/web/cap-cards-panel.tsx +3 -3
- package/packages/bundled-features/src/cap-overview/web/cap-usage-bar.tsx +2 -2
- package/packages/bundled-features/src/cap-overview/web/cap-usage-cell.tsx +2 -2
- package/packages/bundled-features/src/cap-overview/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/cap-overview/web/index.ts +4 -4
- package/packages/bundled-features/src/channel-discord/discord-channel.ts +1 -1
- package/packages/bundled-features/src/channel-discord/feature.ts +1 -1
- package/packages/bundled-features/src/channel-discord/index.ts +2 -2
- package/packages/bundled-features/src/channel-email/changes.json +13 -0
- package/packages/bundled-features/src/channel-email/email-channel.ts +43 -12
- package/packages/bundled-features/src/channel-email/env.ts +28 -0
- package/packages/bundled-features/src/channel-email/feature.ts +9 -5
- package/packages/bundled-features/src/channel-email/index.ts +10 -5
- package/packages/bundled-features/src/channel-email/pii-guard.ts +1 -1
- package/packages/bundled-features/src/channel-email/smtp-transport.ts +1 -1
- package/packages/bundled-features/src/channel-email/types.ts +1 -1
- package/packages/bundled-features/src/channel-in-app/feature.ts +6 -6
- package/packages/bundled-features/src/channel-in-app/handlers/inbox.query.ts +1 -1
- package/packages/bundled-features/src/channel-in-app/handlers/mark-all-read.write.ts +1 -1
- package/packages/bundled-features/src/channel-in-app/handlers/mark-read.write.ts +1 -1
- package/packages/bundled-features/src/channel-in-app/handlers/unread-count.query.ts +1 -1
- package/packages/bundled-features/src/channel-in-app/in-app-channel.ts +2 -2
- package/packages/bundled-features/src/channel-in-app/index.ts +4 -4
- package/packages/bundled-features/src/channel-push/feature.ts +1 -1
- package/packages/bundled-features/src/channel-push/index.ts +3 -3
- package/packages/bundled-features/src/channel-push/push-channel.ts +2 -2
- package/packages/bundled-features/src/channel-slack/feature.ts +1 -1
- package/packages/bundled-features/src/channel-slack/index.ts +2 -2
- package/packages/bundled-features/src/channel-slack/slack-channel.ts +1 -1
- package/packages/bundled-features/src/channel-teams/feature.ts +1 -1
- package/packages/bundled-features/src/channel-teams/index.ts +2 -2
- package/packages/bundled-features/src/channel-teams/teams-channel.ts +1 -1
- package/packages/bundled-features/src/channel-telegram/feature.ts +1 -1
- package/packages/bundled-features/src/channel-telegram/index.ts +2 -2
- package/packages/bundled-features/src/channel-telegram/telegram-channel.ts +1 -1
- package/packages/bundled-features/src/compliance-profiles/feature.ts +9 -9
- package/packages/bundled-features/src/compliance-profiles/handlers/for-tenant.query.ts +2 -2
- package/packages/bundled-features/src/compliance-profiles/handlers/needs-profile.query.ts +1 -1
- package/packages/bundled-features/src/compliance-profiles/handlers/set-profile.write.ts +2 -2
- package/packages/bundled-features/src/compliance-profiles/index.ts +3 -3
- package/packages/bundled-features/src/compliance-profiles/resolve-for-tenant.ts +3 -3
- package/packages/bundled-features/src/compliance-profiles/seeding.ts +1 -1
- package/packages/bundled-features/src/compliance-profiles/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/compliance-profiles/web/compliance-profile-catalog.tsx +1 -1
- package/packages/bundled-features/src/compliance-profiles/web/index.ts +2 -2
- package/packages/bundled-features/src/compliance-profiles-ops/changes.json +10 -0
- package/packages/bundled-features/src/compliance-profiles-ops/handlers/tenants-missing-profile.query.ts +2 -2
- package/packages/bundled-features/src/compliance-profiles-ops/index.ts +1 -4
- package/packages/bundled-features/src/config/db/queries/resolver.ts +1 -1
- package/packages/bundled-features/src/config/feature.ts +11 -11
- package/packages/bundled-features/src/config/handlers/cascade.query.ts +3 -3
- package/packages/bundled-features/src/config/handlers/readiness.query.ts +2 -2
- package/packages/bundled-features/src/config/handlers/reencrypt.job.ts +2 -2
- package/packages/bundled-features/src/config/handlers/reset.write.ts +3 -3
- package/packages/bundled-features/src/config/handlers/schema.query.ts +1 -1
- package/packages/bundled-features/src/config/handlers/selected-extensions.query.ts +3 -3
- package/packages/bundled-features/src/config/handlers/set.write.ts +4 -4
- package/packages/bundled-features/src/config/handlers/values.query.ts +3 -3
- package/packages/bundled-features/src/config/index.ts +9 -9
- package/packages/bundled-features/src/config/resolver.ts +2 -2
- package/packages/bundled-features/src/config/web/client-plugin.ts +2 -2
- package/packages/bundled-features/src/config/web/i18n.ts +1 -2
- package/packages/bundled-features/src/config/web/index.ts +2 -2
- package/packages/bundled-features/src/config/write-helpers.ts +3 -3
- package/packages/bundled-features/src/crypto-shredding/changes.json +6 -0
- package/packages/bundled-features/src/crypto-shredding/env/index.ts +94 -0
- package/packages/bundled-features/src/crypto-shredding/feature.ts +9 -5
- package/packages/bundled-features/src/crypto-shredding/handlers/forget-subject.write.ts +6 -6
- package/packages/bundled-features/src/crypto-shredding/index.ts +4 -3
- package/packages/bundled-features/src/custom-fields/changes.json +8 -0
- package/packages/bundled-features/src/custom-fields/executor.ts +1 -1
- package/packages/bundled-features/src/custom-fields/feature.ts +10 -13
- package/packages/bundled-features/src/custom-fields/handlers/clear-custom-field.write.ts +3 -3
- package/packages/bundled-features/src/custom-fields/handlers/define-system-field.write.ts +5 -5
- package/packages/bundled-features/src/custom-fields/handlers/define-tenant-field.write.ts +6 -6
- package/packages/bundled-features/src/custom-fields/handlers/delete-system-field.write.ts +6 -6
- package/packages/bundled-features/src/custom-fields/handlers/delete-tenant-field.write.ts +5 -5
- package/packages/bundled-features/src/custom-fields/handlers/set-custom-field.write.ts +4 -4
- package/packages/bundled-features/src/custom-fields/handlers/update-tenant-field.write.ts +5 -5
- package/packages/bundled-features/src/custom-fields/index.ts +10 -11
- package/packages/bundled-features/src/custom-fields/lib/define-or-resurrect.ts +2 -2
- package/packages/bundled-features/src/custom-fields/lib/field-access.ts +2 -2
- package/packages/bundled-features/src/custom-fields/lib/field-definition-row.ts +1 -1
- package/packages/bundled-features/src/custom-fields/lib/quota.ts +1 -1
- package/packages/bundled-features/src/custom-fields/lib/value-schema.ts +1 -1
- package/packages/bundled-features/src/custom-fields/run-retention.ts +3 -3
- package/packages/bundled-features/src/custom-fields/schemas.ts +1 -1
- package/packages/bundled-features/src/custom-fields/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/custom-fields/web/custom-fields-form-section.tsx +1 -1
- package/packages/bundled-features/src/custom-fields/web/index.ts +3 -3
- package/packages/bundled-features/src/custom-fields/wire-for-entity.ts +4 -4
- package/packages/bundled-features/src/custom-fields/wire-user-data-rights.ts +1 -1
- package/packages/bundled-features/src/data-retention/_internal/parse-override.ts +2 -2
- package/packages/bundled-features/src/data-retention/feature.ts +11 -11
- package/packages/bundled-features/src/data-retention/handlers/policy-for.query.ts +2 -2
- package/packages/bundled-features/src/data-retention/index.ts +3 -3
- package/packages/bundled-features/src/data-retention/resolve-for-tenant.ts +6 -6
- package/packages/bundled-features/src/data-retention/resolve-tenant-preset.ts +2 -2
- package/packages/bundled-features/src/data-retention/resolver.ts +1 -1
- package/packages/bundled-features/src/data-retention/run-retention-cleanup.ts +5 -5
- package/packages/bundled-features/src/delivery/address-opt-out.ts +2 -2
- package/packages/bundled-features/src/delivery/attachment-ref.ts +3 -3
- package/packages/bundled-features/src/delivery/attempt-log-retention.ts +1 -1
- package/packages/bundled-features/src/delivery/attempt-log.ts +4 -4
- package/packages/bundled-features/src/delivery/changes.json +12 -0
- package/packages/bundled-features/src/delivery/channel-context.ts +5 -5
- package/packages/bundled-features/src/delivery/chat-webhook-channel.ts +2 -2
- package/packages/bundled-features/src/delivery/constants.ts +2 -2
- package/packages/bundled-features/src/delivery/db/queries/address-opt-outs.ts +1 -1
- package/packages/bundled-features/src/delivery/delivery-service.ts +11 -11
- package/packages/bundled-features/src/delivery/events.ts +1 -1
- package/packages/bundled-features/src/delivery/feature.ts +16 -14
- package/packages/bundled-features/src/delivery/handlers/log.query.ts +4 -4
- package/packages/bundled-features/src/delivery/handlers/preferences.query.ts +1 -1
- package/packages/bundled-features/src/delivery/handlers/resubscribe-address.write.ts +2 -2
- package/packages/bundled-features/src/delivery/handlers/resubscribe-user.write.ts +2 -2
- package/packages/bundled-features/src/delivery/handlers/set-preference.write.ts +2 -2
- package/packages/bundled-features/src/delivery/handlers/unsubscribe-address.write.ts +2 -2
- package/packages/bundled-features/src/delivery/handlers/unsubscribe-page-chrome.query.ts +56 -0
- package/packages/bundled-features/src/delivery/handlers/unsubscribe-user.write.ts +2 -2
- package/packages/bundled-features/src/delivery/i18n.ts +1 -1
- package/packages/bundled-features/src/delivery/index.ts +26 -19
- package/packages/bundled-features/src/delivery/jobs.ts +7 -7
- package/packages/bundled-features/src/delivery/notify-factory.ts +1 -1
- package/packages/bundled-features/src/delivery/public-names.ts +1 -0
- package/packages/bundled-features/src/delivery/testing.ts +5 -5
- package/packages/bundled-features/src/delivery/types.ts +3 -3
- package/packages/bundled-features/src/delivery/unsubscribe-link.ts +4 -4
- package/packages/bundled-features/src/delivery/unsubscribe-page-strings.ts +5 -0
- package/packages/bundled-features/src/delivery/unsubscribe-page.ts +226 -0
- package/packages/bundled-features/src/delivery/unsubscribe.ts +217 -92
- package/packages/bundled-features/src/delivery/upsert-preference.ts +1 -1
- package/packages/bundled-features/src/delivery/web/client-plugin.tsx +6 -6
- package/packages/bundled-features/src/delivery/web/delivery-channel-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/delivery-error-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/delivery-status-cell.tsx +2 -2
- package/packages/bundled-features/src/delivery/web/delivery-type-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/index.ts +2 -2
- package/packages/bundled-features/src/derivatives-sharp/changes.json +8 -0
- package/packages/bundled-features/src/derivatives-sharp/feature.ts +1 -4
- package/packages/bundled-features/src/derivatives-sharp/index.ts +2 -2
- package/packages/bundled-features/src/derivatives-sharp/render.ts +1 -1
- package/packages/bundled-features/src/document-ingest-foundation/boot-checks.ts +2 -2
- package/packages/bundled-features/src/document-ingest-foundation/changes.json +8 -0
- package/packages/bundled-features/src/document-ingest-foundation/executor.ts +1 -1
- package/packages/bundled-features/src/document-ingest-foundation/feature.ts +7 -10
- package/packages/bundled-features/src/document-ingest-foundation/forget-extract-with-file-ref.ts +3 -3
- package/packages/bundled-features/src/document-ingest-foundation/index.ts +7 -10
- package/packages/bundled-features/src/document-ingest-foundation/pages.ts +1 -1
- package/packages/bundled-features/src/document-ingest-foundation/providers.ts +1 -1
- package/packages/bundled-features/src/document-ingest-foundation/tenant-destroy-hook.ts +2 -2
- package/packages/bundled-features/src/document-ingest-foundation/write-document-extract.ts +4 -4
- package/packages/bundled-features/src/feature-toggles/compose-tier-resolver.ts +1 -1
- package/packages/bundled-features/src/feature-toggles/feature.ts +12 -12
- package/packages/bundled-features/src/feature-toggles/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/feature-toggles/handlers/registered.query.ts +2 -2
- package/packages/bundled-features/src/feature-toggles/handlers/set.write.ts +3 -3
- package/packages/bundled-features/src/feature-toggles/index.ts +3 -3
- package/packages/bundled-features/src/feature-toggles/toggle-runtime.ts +2 -2
- package/packages/bundled-features/src/feature-toggles/toggle-sync-signal.ts +1 -1
- package/packages/bundled-features/src/feature-toggles/web/client-plugin.tsx +2 -2
- package/packages/bundled-features/src/feature-toggles/web/index.ts +1 -1
- package/packages/bundled-features/src/file-derivatives/changes.json +8 -0
- package/packages/bundled-features/src/file-derivatives/feature.ts +2 -5
- package/packages/bundled-features/src/file-derivatives/handlers/public-variant-by-file-ref.query.ts +2 -2
- package/packages/bundled-features/src/file-derivatives/index.ts +4 -4
- package/packages/bundled-features/src/file-foundation/changes.json +8 -0
- package/packages/bundled-features/src/file-foundation/feature.ts +0 -3
- package/packages/bundled-features/src/file-foundation/index.ts +2 -3
- package/packages/bundled-features/src/file-provider-inmemory/changes.json +10 -1
- package/packages/bundled-features/src/file-provider-inmemory/feature.ts +0 -3
- package/packages/bundled-features/src/file-provider-inmemory/index.ts +1 -2
- package/packages/bundled-features/src/file-provider-s3/changes.json +22 -0
- package/packages/bundled-features/src/file-provider-s3/env-feature.ts +10 -7
- package/packages/bundled-features/src/file-provider-s3/env-schema.ts +71 -0
- package/packages/bundled-features/src/file-provider-s3/feature.ts +2 -5
- package/packages/bundled-features/src/file-provider-s3/index.ts +2 -2
- package/packages/bundled-features/src/file-provider-s3/lib/env-helper.ts +1 -1
- package/packages/bundled-features/src/file-provider-s3/lib/index.ts +3 -3
- package/packages/bundled-features/src/files/index.ts +1 -1
- package/packages/bundled-features/src/files-tenant-data/handlers/sweep-orphaned-derivatives.job.ts +2 -2
- package/packages/bundled-features/src/files-tenant-data/hooks.ts +1 -1
- package/packages/bundled-features/src/files-tenant-data/index.ts +4 -4
- package/packages/bundled-features/src/folders/changes.json +8 -0
- package/packages/bundled-features/src/folders/executor.ts +1 -1
- package/packages/bundled-features/src/folders/feature.ts +6 -9
- package/packages/bundled-features/src/folders/handlers/clear-folder.write.ts +5 -5
- package/packages/bundled-features/src/folders/handlers/delete-folder.write.ts +3 -3
- package/packages/bundled-features/src/folders/handlers/set-folder.write.ts +5 -5
- package/packages/bundled-features/src/folders/index.ts +7 -8
- package/packages/bundled-features/src/folders/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/folders/web/folder-manager.tsx +2 -2
- package/packages/bundled-features/src/folders/web/folder-section.tsx +2 -2
- package/packages/bundled-features/src/folders/web/index.ts +5 -5
- package/packages/bundled-features/src/folders-user-data/changes.json +10 -1
- package/packages/bundled-features/src/folders-user-data/hooks.ts +1 -1
- package/packages/bundled-features/src/folders-user-data/index.ts +1 -4
- package/packages/bundled-features/src/form-draft/changes.json +8 -0
- package/packages/bundled-features/src/form-draft/db/queries/cleanup.ts +1 -1
- package/packages/bundled-features/src/form-draft/entity.ts +1 -1
- package/packages/bundled-features/src/form-draft/executor.ts +1 -1
- package/packages/bundled-features/src/form-draft/feature.ts +7 -10
- package/packages/bundled-features/src/form-draft/handlers/cleanup.job.ts +4 -4
- package/packages/bundled-features/src/form-draft/handlers/discard.write.ts +6 -6
- package/packages/bundled-features/src/form-draft/handlers/get.query.ts +4 -4
- package/packages/bundled-features/src/form-draft/handlers/list.query.ts +3 -3
- package/packages/bundled-features/src/form-draft/handlers/save.write.ts +5 -5
- package/packages/bundled-features/src/form-draft/index.ts +10 -10
- package/packages/bundled-features/src/form-draft/lookup.ts +2 -2
- package/packages/bundled-features/src/form-draft/release-file-refs.ts +1 -1
- package/packages/bundled-features/src/form-draft/schemas.ts +1 -1
- package/packages/bundled-features/src/form-draft-user-data/changes.json +10 -1
- package/packages/bundled-features/src/form-draft-user-data/hooks.ts +1 -1
- package/packages/bundled-features/src/form-draft-user-data/index.ts +1 -4
- package/packages/bundled-features/src/foundation-shared/build-info-env.ts +16 -0
- package/packages/bundled-features/src/foundation-shared/changes.json +8 -1
- package/packages/bundled-features/src/foundation-shared/demo-admin-env.ts +24 -0
- package/packages/bundled-features/src/foundation-shared/index.ts +5 -3
- package/packages/bundled-features/src/foundation-shared/mail-host-policy.ts +1 -1
- package/packages/bundled-features/src/host-routing/README.md +89 -0
- package/packages/bundled-features/src/host-routing/changes.json +8 -0
- package/packages/bundled-features/src/host-routing/constants.ts +24 -0
- package/packages/bundled-features/src/host-routing/dispatch.ts +130 -0
- package/packages/bundled-features/src/host-routing/feature.ts +146 -0
- package/packages/bundled-features/src/host-routing/host.ts +42 -0
- package/packages/bundled-features/src/host-routing/index.ts +21 -0
- package/packages/bundled-features/src/host-routing/options.ts +43 -0
- package/packages/bundled-features/src/host-routing/validate-options.ts +38 -0
- package/packages/bundled-features/src/inbound-mail-foundation/changes.json +8 -0
- package/packages/bundled-features/src/inbound-mail-foundation/connect-routes.ts +5 -5
- package/packages/bundled-features/src/inbound-mail-foundation/events.ts +1 -1
- package/packages/bundled-features/src/inbound-mail-foundation/feature.ts +12 -15
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/account-state.ts +1 -1
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/connect-account.write.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/disconnect-account.write.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/ingest-message.write.ts +4 -4
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/list-accounts.query.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/list-messages.query.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/update-account.write.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/index.ts +12 -12
- package/packages/bundled-features/src/inbound-mail-foundation/oauth-access-token.ts +2 -2
- package/packages/bundled-features/src/inbound-mail-foundation/projection.ts +2 -2
- package/packages/bundled-features/src/inbound-mail-foundation/provider-factory.ts +2 -2
- package/packages/bundled-features/src/inbound-mail-foundation/retention-sweep.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/tenant-destroy-hook.ts +3 -3
- package/packages/bundled-features/src/inbound-mail-foundation/types.ts +1 -1
- package/packages/bundled-features/src/inbound-mail-foundation/watch-supervisor.ts +6 -6
- package/packages/bundled-features/src/inbound-provider-imap/changes.json +8 -0
- package/packages/bundled-features/src/inbound-provider-imap/feature.ts +3 -6
- package/packages/bundled-features/src/inbound-provider-imap/imap-client.ts +1 -1
- package/packages/bundled-features/src/inbound-provider-imap/index.ts +3 -4
- package/packages/bundled-features/src/inbound-provider-inmemory/changes.json +10 -1
- package/packages/bundled-features/src/inbound-provider-inmemory/feature.ts +0 -3
- package/packages/bundled-features/src/inbound-provider-inmemory/index.ts +1 -2
- package/packages/bundled-features/src/jobs/db/queries/retention.ts +3 -3
- package/packages/bundled-features/src/jobs/db/queries/stale-run-sweep.ts +5 -5
- package/packages/bundled-features/src/jobs/feature.ts +16 -16
- package/packages/bundled-features/src/jobs/handlers/catalog.query.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/detail.query.ts +2 -2
- package/packages/bundled-features/src/jobs/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/jobs/handlers/retention-cleanup.job.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/retry.write.ts +3 -3
- package/packages/bundled-features/src/jobs/handlers/stale-run-sweep.job.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/tenant-failures.query.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/tenant-runs.query.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/trigger.write.ts +2 -2
- package/packages/bundled-features/src/jobs/index.ts +9 -9
- package/packages/bundled-features/src/jobs/job-run-logger.ts +6 -6
- package/packages/bundled-features/src/jobs/web/client-plugin.tsx +2 -2
- package/packages/bundled-features/src/jobs/web/i18n.ts +1 -1
- package/packages/bundled-features/src/jobs/web/index.ts +1 -1
- package/packages/bundled-features/src/ledger/changes.json +8 -0
- package/packages/bundled-features/src/ledger/entity.ts +1 -1
- package/packages/bundled-features/src/ledger/executor.ts +1 -1
- package/packages/bundled-features/src/ledger/feature.ts +7 -10
- package/packages/bundled-features/src/ledger/handlers/confirm-schedule-period.write.ts +5 -5
- package/packages/bundled-features/src/ledger/handlers/create-transaction.write.ts +3 -3
- package/packages/bundled-features/src/ledger/handlers/reports.query.ts +3 -3
- package/packages/bundled-features/src/ledger/handlers/reverse-transaction.write.ts +5 -5
- package/packages/bundled-features/src/ledger/index.ts +10 -11
- package/packages/bundled-features/src/ledger/recurring.ts +2 -2
- package/packages/bundled-features/src/ledger/reports.ts +2 -2
- package/packages/bundled-features/src/ledger/schemas.ts +1 -1
- package/packages/bundled-features/src/ledger/web/index.ts +3 -3
- package/packages/bundled-features/src/legal-pages/README.md +39 -0
- package/packages/bundled-features/src/legal-pages/changes.json +6 -0
- package/packages/bundled-features/src/legal-pages/constants.ts +22 -0
- package/packages/bundled-features/src/legal-pages/feature.ts +14 -7
- package/packages/bundled-features/src/legal-pages/index.ts +12 -3
- package/packages/bundled-features/src/legal-pages/layout.ts +45 -0
- package/packages/bundled-features/src/legal-pages/lib/boot-check.ts +1 -1
- package/packages/bundled-features/src/legal-pages/lib/validate-routes.ts +1 -1
- package/packages/bundled-features/src/legal-pages/markdown.ts +2 -2
- package/packages/bundled-features/src/legal-pages/seed.ts +53 -0
- package/packages/bundled-features/src/legal-pages/web/client-plugin.ts +1 -1
- package/packages/bundled-features/src/legal-pages/web/index.ts +1 -1
- package/packages/bundled-features/src/mail-foundation/changes.json +10 -1
- package/packages/bundled-features/src/mail-foundation/feature.ts +21 -15
- package/packages/bundled-features/src/mail-foundation/i18n.ts +8 -0
- package/packages/bundled-features/src/mail-foundation/index.ts +1 -2
- package/packages/bundled-features/src/mail-transport-inmemory/changes.json +10 -1
- package/packages/bundled-features/src/mail-transport-inmemory/feature.ts +6 -3
- package/packages/bundled-features/src/mail-transport-inmemory/index.ts +1 -2
- package/packages/bundled-features/src/mail-transport-smtp/changes.json +15 -0
- package/packages/bundled-features/src/mail-transport-smtp/config-keys.ts +67 -0
- package/packages/bundled-features/src/mail-transport-smtp/feature.ts +6 -36
- package/packages/bundled-features/src/mail-transport-smtp/i18n.ts +28 -0
- package/packages/bundled-features/src/mail-transport-smtp/index.ts +1 -2
- package/packages/bundled-features/src/managed-pages/branding.ts +1 -1
- package/packages/bundled-features/src/managed-pages/css-gate.ts +1 -1
- package/packages/bundled-features/src/managed-pages/feature.ts +12 -12
- package/packages/bundled-features/src/managed-pages/handlers/branding.query.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/by-slug.query.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/by-tenant-published.query.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/page-crud.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/set.write.ts +2 -2
- package/packages/bundled-features/src/managed-pages/index.ts +5 -5
- package/packages/bundled-features/src/managed-pages/screens/branding-screen.ts +1 -1
- package/packages/bundled-features/src/managed-pages/seeding.ts +1 -1
- package/packages/bundled-features/src/managed-pages/web/client-plugin.tsx +1 -1
- package/packages/bundled-features/src/managed-pages/web/i18n.ts +1 -1
- package/packages/bundled-features/src/managed-pages/web/index.ts +2 -2
- package/packages/bundled-features/src/metrics/compute.ts +3 -3
- package/packages/bundled-features/src/metrics/default-metrics.ts +5 -5
- package/packages/bundled-features/src/metrics/feature.ts +7 -7
- package/packages/bundled-features/src/metrics/filters.ts +1 -1
- package/packages/bundled-features/src/metrics/index.ts +5 -5
- package/packages/bundled-features/src/metrics/types.ts +1 -1
- package/packages/bundled-features/src/metrics/validate.ts +3 -3
- package/packages/bundled-features/src/metrics/window.ts +2 -2
- package/packages/bundled-features/src/notes-history/changes.json +8 -0
- package/packages/bundled-features/src/notes-history/executor.ts +1 -1
- package/packages/bundled-features/src/notes-history/feature.ts +6 -9
- package/packages/bundled-features/src/notes-history/handlers/add-note.write.ts +6 -6
- package/packages/bundled-features/src/notes-history/index.ts +6 -7
- package/packages/bundled-features/src/notes-history/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/notes-history/web/index.ts +3 -3
- package/packages/bundled-features/src/notes-history/web/notes-section.tsx +1 -1
- package/packages/bundled-features/src/notes-history-user-data/changes.json +8 -0
- package/packages/bundled-features/src/notes-history-user-data/hooks.ts +1 -1
- package/packages/bundled-features/src/notes-history-user-data/index.ts +2 -5
- package/packages/bundled-features/src/page-render/cached-page-response.ts +1 -1
- package/packages/bundled-features/src/page-render/index.ts +7 -7
- package/packages/bundled-features/src/page-render/layout.ts +2 -2
- package/packages/bundled-features/src/page-render/web.ts +5 -5
- package/packages/bundled-features/src/personal-access-tokens/feature.ts +13 -13
- package/packages/bundled-features/src/personal-access-tokens/handlers/available-scopes.query.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/handlers/create.write.ts +5 -5
- package/packages/bundled-features/src/personal-access-tokens/handlers/list.query.ts +3 -3
- package/packages/bundled-features/src/personal-access-tokens/handlers/revoke.write.ts +3 -3
- package/packages/bundled-features/src/personal-access-tokens/hash.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/i18n.ts +2 -2
- package/packages/bundled-features/src/personal-access-tokens/index.ts +13 -13
- package/packages/bundled-features/src/personal-access-tokens/resolver.ts +5 -5
- package/packages/bundled-features/src/personal-access-tokens/revoke-for-user.ts +2 -2
- package/packages/bundled-features/src/personal-access-tokens/roles.ts +2 -2
- package/packages/bundled-features/src/personal-access-tokens/schema/api-token.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/screens.ts +2 -2
- package/packages/bundled-features/src/presets/changes.json +6 -0
- package/packages/bundled-features/src/presets/dsgvo-self-service.ts +7 -5
- package/packages/bundled-features/src/presets/index.ts +2 -2
- package/packages/bundled-features/src/presets/security-baseline.ts +6 -4
- package/packages/bundled-features/src/rate-limiting/feature.ts +2 -2
- package/packages/bundled-features/src/rate-limiting/handlers/bucket-access.ts +1 -1
- package/packages/bundled-features/src/rate-limiting/handlers/status.query.ts +2 -2
- package/packages/bundled-features/src/rate-limiting/index.ts +2 -2
- package/packages/bundled-features/src/readiness/changes.json +10 -1
- package/packages/bundled-features/src/readiness/feature.ts +1 -4
- package/packages/bundled-features/src/readiness/handlers/status.query.ts +1 -1
- package/packages/bundled-features/src/readiness/index.ts +3 -3
- package/packages/bundled-features/src/renderer-foundation/api.ts +2 -2
- package/packages/bundled-features/src/renderer-foundation/constants.ts +2 -2
- package/packages/bundled-features/src/renderer-foundation/feature.ts +2 -2
- package/packages/bundled-features/src/renderer-foundation/index.ts +8 -5
- package/packages/bundled-features/src/renderer-foundation/types.ts +22 -2
- package/packages/bundled-features/src/renderer-pdf/feature.ts +2 -2
- package/packages/bundled-features/src/renderer-pdf/index.ts +2 -2
- package/packages/bundled-features/src/renderer-pdf/render-table-pdf.ts +2 -2
- package/packages/bundled-features/src/secrets/changes.json +18 -0
- package/packages/bundled-features/src/secrets/constants.ts +9 -0
- package/packages/bundled-features/src/secrets/db/queries/read.ts +1 -1
- package/packages/bundled-features/src/secrets/feature.ts +34 -15
- package/packages/bundled-features/src/secrets/handlers/delete.write.ts +8 -5
- package/packages/bundled-features/src/secrets/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/secrets/handlers/rotate.job.ts +2 -2
- package/packages/bundled-features/src/secrets/handlers/set.write.ts +8 -5
- package/packages/bundled-features/src/secrets/i18n.ts +1 -1
- package/packages/bundled-features/src/secrets/index.ts +9 -7
- package/packages/bundled-features/src/secrets/secrets-context.ts +3 -3
- package/packages/bundled-features/src/secrets/write-gate.ts +1 -1
- package/packages/bundled-features/src/seo/feature.ts +8 -8
- package/packages/bundled-features/src/seo/handlers/seo-config.query.ts +1 -1
- package/packages/bundled-features/src/seo/index.ts +6 -6
- package/packages/bundled-features/src/sessions/feature.ts +13 -13
- package/packages/bundled-features/src/sessions/handlers/cleanup.job.ts +1 -1
- package/packages/bundled-features/src/sessions/handlers/detail.query.ts +2 -2
- package/packages/bundled-features/src/sessions/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/sessions/handlers/mine.query.ts +2 -2
- package/packages/bundled-features/src/sessions/handlers/revoke-all-for-user.write.ts +2 -2
- package/packages/bundled-features/src/sessions/handlers/revoke-all-others.write.ts +3 -3
- package/packages/bundled-features/src/sessions/handlers/revoke.write.ts +3 -3
- package/packages/bundled-features/src/sessions/index.ts +8 -8
- package/packages/bundled-features/src/sessions/schema/user-session.ts +1 -1
- package/packages/bundled-features/src/sessions/screens.ts +1 -1
- package/packages/bundled-features/src/sessions/session-callbacks.ts +6 -6
- package/packages/bundled-features/src/sessions/testing.ts +1 -1
- package/packages/bundled-features/src/shared/index.ts +31 -31
- package/packages/bundled-features/src/shared/password-hashing.ts +1 -1
- package/packages/bundled-features/src/shared/row-bound-grant.ts +1 -1
- package/packages/bundled-features/src/step-dispatcher/deliver-dispatch-request.ts +4 -4
- package/packages/bundled-features/src/step-dispatcher/dispatch-payload.ts +2 -2
- package/packages/bundled-features/src/step-dispatcher/feature.ts +3 -3
- package/packages/bundled-features/src/step-dispatcher/index.ts +3 -3
- package/packages/bundled-features/src/step-dispatcher/webhook-runner.ts +1 -1
- package/packages/bundled-features/src/subscription-mollie/feature.ts +3 -3
- package/packages/bundled-features/src/subscription-mollie/index.ts +3 -3
- package/packages/bundled-features/src/subscription-mollie/verify-webhook.ts +2 -2
- package/packages/bundled-features/src/subscription-stripe/changes.json +6 -0
- package/packages/bundled-features/src/subscription-stripe/feature.ts +34 -6
- package/packages/bundled-features/src/subscription-stripe/index.ts +3 -2
- package/packages/bundled-features/src/subscription-stripe/plugin-methods.ts +2 -2
- package/packages/bundled-features/src/subscription-stripe/runtime.ts +1 -1
- package/packages/bundled-features/src/subscription-stripe/verify-webhook.ts +2 -2
- package/packages/bundled-features/src/tags/changes.json +8 -0
- package/packages/bundled-features/src/tags/executor.ts +1 -1
- package/packages/bundled-features/src/tags/feature.ts +11 -14
- package/packages/bundled-features/src/tags/handlers/assign-tag.write.ts +5 -5
- package/packages/bundled-features/src/tags/handlers/create-tag.write.ts +3 -3
- package/packages/bundled-features/src/tags/handlers/delete-tag.write.ts +3 -3
- package/packages/bundled-features/src/tags/handlers/remove-tag.write.ts +5 -5
- package/packages/bundled-features/src/tags/handlers/update-tag.write.ts +3 -3
- package/packages/bundled-features/src/tags/index.ts +11 -11
- package/packages/bundled-features/src/tags/screens.ts +1 -1
- package/packages/bundled-features/src/tags/web/client-plugin.tsx +5 -5
- package/packages/bundled-features/src/tags/web/entity-tags.tsx +2 -2
- package/packages/bundled-features/src/tags/web/index.ts +9 -9
- package/packages/bundled-features/src/tags/web/tag-filter.tsx +3 -3
- package/packages/bundled-features/src/tags/web/tag-manager.tsx +2 -2
- package/packages/bundled-features/src/tags/web/tag-picker.tsx +1 -1
- package/packages/bundled-features/src/tags/web/tag-section.tsx +3 -3
- package/packages/bundled-features/src/tags/web/tags-cell.tsx +2 -2
- package/packages/bundled-features/src/template-resolver/api.ts +7 -7
- package/packages/bundled-features/src/template-resolver/changes.json +6 -0
- package/packages/bundled-features/src/template-resolver/compile-document-body.ts +4 -4
- package/packages/bundled-features/src/template-resolver/compile-steps-block.ts +3 -3
- package/packages/bundled-features/src/template-resolver/constants.ts +1 -2
- package/packages/bundled-features/src/template-resolver/document-sanitizer.ts +4 -4
- package/packages/bundled-features/src/template-resolver/document-schema.ts +1 -1
- package/packages/bundled-features/src/template-resolver/feature.ts +31 -31
- package/packages/bundled-features/src/template-resolver/handlers/bundle-import.ts +11 -11
- package/packages/bundled-features/src/template-resolver/handlers/by-slug.query.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/by-tenant.query.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/collection-item.query.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/collection-list.query.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/collection-set.write.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/collection-shared.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/copy-locale.write.ts +13 -13
- package/packages/bundled-features/src/template-resolver/handlers/diff-to-system.query.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/discard-draft.write.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/export-bundle.query.ts +7 -7
- package/packages/bundled-features/src/template-resolver/handlers/find-by-id.query.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/import-bundle-system.write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/import-bundle.write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/layout-source.query.ts +7 -7
- package/packages/bundled-features/src/template-resolver/handlers/list.query.ts +4 -4
- package/packages/bundled-features/src/template-resolver/handlers/override-diff.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/overview.query.ts +6 -6
- package/packages/bundled-features/src/template-resolver/handlers/preview.query.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/reset-to-system.write.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/resource-link-pdf.write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/resource-remove.write.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/resource-shared.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/resource-upload.write.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/send-test.write.ts +9 -7
- package/packages/bundled-features/src/template-resolver/handlers/set.write.ts +7 -7
- package/packages/bundled-features/src/template-resolver/handlers/shared.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/template-gates.ts +7 -7
- package/packages/bundled-features/src/template-resolver/handlers/template-write.ts +10 -10
- package/packages/bundled-features/src/template-resolver/handlers/tenant-overrides.query.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/toggle-status.write.ts +6 -6
- package/packages/bundled-features/src/template-resolver/handlers/upsert-system.write.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/upsert-tenant.write.ts +3 -3
- package/packages/bundled-features/src/template-resolver/handlers/usage.query.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/validate.query.ts +8 -8
- package/packages/bundled-features/src/template-resolver/index.ts +25 -25
- package/packages/bundled-features/src/template-resolver/layout-appearance.ts +2 -2
- package/packages/bundled-features/src/template-resolver/layout-regions.ts +2 -2
- package/packages/bundled-features/src/template-resolver/linked-resources.ts +2 -2
- package/packages/bundled-features/src/template-resolver/preview-display-html.ts +1 -1
- package/packages/bundled-features/src/template-resolver/print-document.ts +1 -1
- package/packages/bundled-features/src/template-resolver/resource-image.ts +1 -1
- package/packages/bundled-features/src/template-resolver/seeding.ts +10 -10
- package/packages/bundled-features/src/template-resolver/store-template-resource.ts +10 -10
- package/packages/bundled-features/src/template-resolver/table.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-bundle.ts +4 -4
- package/packages/bundled-features/src/template-resolver/template-diff.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-draft.ts +2 -2
- package/packages/bundled-features/src/template-resolver/template-meta.ts +2 -2
- package/packages/bundled-features/src/template-resolver/template-preview.ts +40 -25
- package/packages/bundled-features/src/template-resolver/template-resources.ts +4 -4
- package/packages/bundled-features/src/template-resolver/template-system-only.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-usage.ts +4 -1
- package/packages/bundled-features/src/template-resolver/template-validation.ts +3 -3
- package/packages/bundled-features/src/template-resolver/testing.ts +4 -4
- package/packages/bundled-features/src/template-resolver/user-content-table.ts +2 -2
- package/packages/bundled-features/src/template-resolver/web/client-plugin.tsx +4 -4
- package/packages/bundled-features/src/template-resolver/web/document-editor-extensions.ts +8 -5
- package/packages/bundled-features/src/template-resolver/web/document-editor.tsx +2 -2
- package/packages/bundled-features/src/template-resolver/web/document-tiptap-editor.tsx +30 -11
- package/packages/bundled-features/src/template-resolver/web/editor-handle.ts +2 -2
- package/packages/bundled-features/src/template-resolver/web/index.ts +7 -7
- package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor-lazy.tsx +3 -3
- package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor.tsx +6 -6
- package/packages/bundled-features/src/template-resolver/web/placeholder-text.ts +1 -1
- package/packages/bundled-features/src/template-resolver-user-data/changes.json +10 -0
- package/packages/bundled-features/src/template-resolver-user-data/hooks.ts +1 -1
- package/packages/bundled-features/src/template-resolver-user-data/index.ts +1 -4
- package/packages/bundled-features/src/tenant/cancel-pending-invitation.ts +2 -2
- package/packages/bundled-features/src/tenant/command-schemas.ts +6 -6
- package/packages/bundled-features/src/tenant/decrypt-tenant-names.ts +1 -1
- package/packages/bundled-features/src/tenant/feature.ts +24 -24
- package/packages/bundled-features/src/tenant/handlers/active-tenant-ids.query.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/add-member.write.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/cancel-invitation.write.ts +2 -2
- package/packages/bundled-features/src/tenant/handlers/create.write.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/invitations.query.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/list.query.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/me.query.ts +2 -2
- package/packages/bundled-features/src/tenant/handlers/member-directory.query.ts +4 -4
- package/packages/bundled-features/src/tenant/handlers/member-role-availability.query.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/members.query.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/memberships.query.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/remove-member.write.ts +6 -6
- package/packages/bundled-features/src/tenant/handlers/resolve-user-ids.query.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/team-list.query.ts +5 -5
- package/packages/bundled-features/src/tenant/handlers/tenant-directory.query.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/toggle-enabled.write.ts +1 -1
- package/packages/bundled-features/src/tenant/handlers/update-member-roles.write.ts +3 -3
- package/packages/bundled-features/src/tenant/handlers/update.write.ts +1 -1
- package/packages/bundled-features/src/tenant/index.ts +10 -10
- package/packages/bundled-features/src/tenant/invitation-table.ts +1 -1
- package/packages/bundled-features/src/tenant/invited-membership.ts +4 -4
- package/packages/bundled-features/src/tenant/is-tenant-serving-public-content.ts +1 -1
- package/packages/bundled-features/src/tenant/last-tenant-admin.ts +2 -2
- package/packages/bundled-features/src/tenant/member-role-options.ts +1 -1
- package/packages/bundled-features/src/tenant/screens.ts +2 -2
- package/packages/bundled-features/src/tenant/seeding.ts +3 -3
- package/packages/bundled-features/src/tenant/testing.ts +1 -1
- package/packages/bundled-features/src/tenant/web/client-plugin.tsx +3 -3
- package/packages/bundled-features/src/tenant/web/index.ts +3 -3
- package/packages/bundled-features/src/tenant/web/member-roles-cell.tsx +1 -1
- package/packages/bundled-features/src/tenant/web/member-status-cell.tsx +1 -1
- package/packages/bundled-features/src/tenant-handover/feature.ts +4 -4
- package/packages/bundled-features/src/tenant-handover/grant.ts +1 -1
- package/packages/bundled-features/src/tenant-handover/handlers/claim.write.ts +5 -5
- package/packages/bundled-features/src/tenant-handover/index.ts +3 -3
- package/packages/bundled-features/src/tenant-handover/move-entity-graph.ts +1 -1
- package/packages/bundled-features/src/tenant-handover/root-anchor.ts +1 -1
- package/packages/bundled-features/src/tenant-handover/signup-handover-provider.ts +5 -5
- package/packages/bundled-features/src/tenant-lifecycle/boot-checks.ts +1 -1
- package/packages/bundled-features/src/tenant-lifecycle/feature.ts +8 -8
- package/packages/bundled-features/src/tenant-lifecycle/handlers/cancel-destruction.write.ts +4 -4
- package/packages/bundled-features/src/tenant-lifecycle/handlers/request-destruction.write.ts +5 -5
- package/packages/bundled-features/src/tenant-lifecycle/index.ts +3 -3
- package/packages/bundled-features/src/tenant-lifecycle/lib/revoke-tenant-sessions.ts +1 -1
- package/packages/bundled-features/src/tenant-lifecycle/lifecycle-gate.ts +1 -1
- package/packages/bundled-features/src/tenant-lifecycle/run-tenant-destroy.ts +5 -5
- package/packages/bundled-features/src/tenant-lifecycle/stages.ts +3 -3
- package/packages/bundled-features/src/tenant-lifecycle/testing.ts +3 -3
- package/packages/bundled-features/src/tenant-settings/changes.json +10 -1
- package/packages/bundled-features/src/tenant-settings/feature.ts +2 -5
- package/packages/bundled-features/src/tenant-settings/index.ts +4 -5
- package/packages/bundled-features/src/tenant-settings/tenant-defaults.ts +1 -1
- package/packages/bundled-features/src/tier-engine/changes.json +8 -0
- package/packages/bundled-features/src/tier-engine/entity.ts +1 -1
- package/packages/bundled-features/src/tier-engine/feature.ts +10 -13
- package/packages/bundled-features/src/tier-engine/handlers/get-tenant-tier.query.ts +1 -1
- package/packages/bundled-features/src/tier-engine/handlers/set-tenant-tier.write.ts +4 -4
- package/packages/bundled-features/src/tier-engine/i18n.ts +4 -10
- package/packages/bundled-features/src/tier-engine/index.ts +8 -9
- package/packages/bundled-features/src/tier-engine/tier-option-gate.ts +1 -1
- package/packages/bundled-features/src/tier-engine/tier-resolver.ts +2 -2
- package/packages/bundled-features/src/tier-engine/web/client-plugin.tsx +9 -3
- package/packages/bundled-features/src/tier-engine/web/index.ts +1 -1
- package/packages/bundled-features/src/user/command-schemas.ts +2 -2
- package/packages/bundled-features/src/user/feature.ts +10 -10
- package/packages/bundled-features/src/user/handlers/create.write.ts +3 -3
- package/packages/bundled-features/src/user/handlers/detail.query.ts +2 -2
- package/packages/bundled-features/src/user/handlers/find-for-auth.query.ts +1 -1
- package/packages/bundled-features/src/user/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/user/handlers/me.query.ts +1 -1
- package/packages/bundled-features/src/user/handlers/update-roles.ts +2 -2
- package/packages/bundled-features/src/user/handlers/update.write.ts +4 -4
- package/packages/bundled-features/src/user/index.ts +8 -8
- package/packages/bundled-features/src/user/invited-global-roles.ts +2 -2
- package/packages/bundled-features/src/user/principal-status.ts +1 -1
- package/packages/bundled-features/src/user/resolve-display-names.ts +2 -2
- package/packages/bundled-features/src/user/schema/user.ts +1 -1
- package/packages/bundled-features/src/user/seeding.ts +2 -2
- package/packages/bundled-features/src/user/testing.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/audit-download.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/boot-checks.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/changes.json +6 -0
- package/packages/bundled-features/src/user-data-rights/db/queries/export-jobs.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/db/queries/forget-cleanup.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/deletion-token.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/feature.ts +38 -35
- package/packages/bundled-features/src/user-data-rights/handlers/cancel-deletion.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/confirm-deletion-by-token.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/deletion-grace-period.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/download-attempt-list.query.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/download-by-job.query.ts +4 -4
- package/packages/bundled-features/src/user-data-rights/handlers/download-by-token.query.ts +5 -5
- package/packages/bundled-features/src/user-data-rights/handlers/export-job-detail.query.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/export-job-list.query.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/export-status.query.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/lift-restriction.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/list-download-attempts.query.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/handlers/my-audit-log.query.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/request-deletion-by-email.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/request-deletion.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/handlers/request-export.write.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/handlers/restrict-account.write.ts +4 -4
- package/packages/bundled-features/src/user-data-rights/handlers/run-forget-cleanup.write.ts +3 -3
- package/packages/bundled-features/src/user-data-rights/index.ts +13 -13
- package/packages/bundled-features/src/user-data-rights/lib/default-mailers.ts +46 -9
- package/packages/bundled-features/src/user-data-rights/lib/deny-if-target-outside-admin-tenant.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/lib/mail-transport-resolver.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/lib/resolve-tenant-model.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/lib/storage-provider-resolver.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/lib/update-user-lifecycle.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/mail-notifications.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/run-export-jobs.ts +8 -8
- package/packages/bundled-features/src/user-data-rights/run-forget-cleanup.ts +6 -6
- package/packages/bundled-features/src/user-data-rights/run-user-export.ts +2 -2
- package/packages/bundled-features/src/user-data-rights/web/client-plugin.tsx +4 -4
- package/packages/bundled-features/src/user-data-rights/web/i18n.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/web/index.ts +8 -8
- package/packages/bundled-features/src/user-data-rights/web/privacy-center-screen.tsx +1 -1
- package/packages/bundled-features/src/user-data-rights/web/public-deletion-gate.tsx +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/feature.ts +11 -11
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/api-token.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/config-value.userdata-hook.ts +3 -3
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/delivery-attempt.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/download-attempt.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/file-ref.userdata-hook.ts +1 -1
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/in-app-message.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/job-run.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/notification-preference.userdata-hook.ts +3 -3
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/tenant-invitation.userdata-hook.ts +4 -4
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/user-session.userdata-hook.ts +2 -2
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/user.userdata-hook.ts +1 -1
- package/packages/bundled-features/src/user-data-rights-defaults/index.ts +11 -11
- package/packages/bundled-features/src/user-profile/feature.ts +2 -2
- package/packages/bundled-features/src/user-profile/handlers/change-email.write.ts +4 -4
- package/packages/bundled-features/src/user-profile/index.ts +2 -2
- package/packages/bundled-features/src/user-profile/web/client-plugin.ts +3 -3
- package/packages/bundled-features/src/user-profile/web/index.ts +2 -2
- package/packages/bundled-features/src/user-profile/web/profile-screen.tsx +3 -3
- package/packages/bundled-features/src/waitlist/changes.json +7 -0
- package/packages/bundled-features/src/waitlist/constants.ts +12 -0
- package/packages/bundled-features/src/waitlist/entity.ts +5 -3
- package/packages/bundled-features/src/waitlist/entries-admin.ts +55 -0
- package/packages/bundled-features/src/waitlist/feature.ts +33 -12
- package/packages/bundled-features/src/waitlist/handlers/export-purge.write.ts +81 -0
- package/packages/bundled-features/src/waitlist/handlers/invite.write.ts +7 -7
- package/packages/bundled-features/src/waitlist/handlers/list.query.ts +2 -2
- package/packages/bundled-features/src/waitlist/handlers/reject.write.ts +5 -5
- package/packages/bundled-features/src/waitlist/handlers/submit.write.ts +5 -5
- package/packages/bundled-features/src/waitlist/i18n.ts +4 -0
- package/packages/bundled-features/src/waitlist/import.ts +83 -0
- package/packages/bundled-features/src/waitlist/index.ts +23 -5
- package/packages/bundled-features/src/waitlist/legacy-migrate.ts +220 -0
- package/packages/bundled-features/src/waitlist/lib.ts +5 -5
- package/packages/bundled-features/src/waitlist/link-on-signup.ts +106 -0
- package/packages/bundled-features/src/waitlist/mail.ts +1 -1
- package/packages/bundled-features/src/waitlist/options.ts +15 -3
- package/packages/bundled-features/src/waitlist/payloads.ts +3 -1
- package/packages/bundled-features/src/waitlist/screens.ts +2 -2
- package/packages/bundled-features/src/waitlist/user-data-hooks.ts +3 -3
- package/packages/bundled-features/src/workflow-runner/changes.json +8 -0
- package/packages/bundled-features/src/workflow-runner/db/queries/due-runs.ts +1 -1
- package/packages/bundled-features/src/workflow-runner/event-subscriber.ts +2 -2
- package/packages/bundled-features/src/workflow-runner/event-trigger.ts +4 -4
- package/packages/bundled-features/src/workflow-runner/feature.ts +4 -7
- package/packages/bundled-features/src/workflow-runner/handlers/resume-run.write.ts +3 -3
- package/packages/bundled-features/src/workflow-runner/index.ts +4 -4
- package/packages/bundled-features/src/workflow-runner/pending-projection.ts +1 -1
- package/samples/apps/ui-walkthrough/package.json +2 -1
- package/samples/apps/ui-walkthrough/src/app/auth-constants.ts +4 -0
- package/samples/apps/ui-walkthrough/src/app/server.ts +10 -1
- package/samples/apps/ui-walkthrough/src/app/template-seed-data.ts +1 -1
- package/samples/apps/ui-walkthrough/src/features/billing/feature.ts +11 -10
- package/samples/apps/ui-walkthrough/src/features/billing/i18n.ts +22 -1
- package/samples/apps/ui-walkthrough/src/run-config.ts +14 -5
- package/samples/apps/ui-walkthrough/tsconfig.json +1 -0
- package/samples/apps/use-all-bundled/feature-manifest.json +59 -18
- package/samples/apps/use-all-bundled/scripts/check-coverage.ts +2 -3
- package/samples/apps/use-all-bundled/src/run-config.ts +22 -20
- package/samples/recipes/apex-surface-auth/README.md +1 -0
- package/samples/recipes/apex-surface-auth/src/feature.ts +1 -1
- package/samples/recipes/api-worker-split/bin/api.ts +6 -1
- package/samples/recipes/app-config/README.md +28 -0
- package/samples/recipes/app-config/kumiko.config.ts +9 -0
- package/samples/recipes/app-config/package.json +8 -0
- package/samples/recipes/app-config/src/feature.ts +6 -0
- package/samples/recipes/app-config/tsconfig.json +22 -0
- package/samples/recipes/auth-mfa/README.md +14 -0
- package/samples/recipes/auth-mfa/src/feature.ts +7 -0
- package/samples/recipes/compose-stacks/README.md +60 -0
- package/samples/recipes/compose-stacks/package.json +11 -0
- package/samples/recipes/compose-stacks/src/app.ts +44 -0
- package/samples/recipes/env-composition/README.md +36 -0
- package/samples/recipes/env-composition/bin/server.ts +15 -0
- package/samples/recipes/env-composition/package.json +15 -0
- package/samples/recipes/env-composition/src/env.ts +47 -0
- package/samples/recipes/host-routing/README.md +25 -0
- package/samples/recipes/host-routing/package.json +12 -0
- package/samples/recipes/host-routing/src/feature.ts +35 -0
- package/samples/recipes/legal-pages/README.md +15 -0
- package/samples/recipes/legal-pages/src/feature.ts +13 -2
- package/samples/recipes/managed-config/README.md +1 -0
- package/samples/recipes/managed-pages/README.md +1 -0
- package/samples/recipes/prod-boot-options/README.md +48 -0
- package/samples/recipes/prod-boot-options/bin/server.ts +11 -0
- package/samples/recipes/prod-boot-options/package.json +13 -0
- package/samples/recipes/prod-boot-options/src/app.ts +32 -0
- package/samples/recipes/security-baseline/README.md +16 -13
- package/samples/recipes/security-baseline/package.json +2 -1
- package/samples/recipes/security-baseline/src/feature.ts +3 -3
- package/packages/bundled-features/src/file-provider-s3-env/changes.json +0 -1
- package/packages/bundled-features/src/file-provider-s3-env/index.ts +0 -8
- package/packages/bundled-features/src/files-provider-s3/changes.json +0 -1
- package/packages/bundled-features/src/files-provider-s3/index.ts +0 -11
|
@@ -8,31 +8,31 @@ import {
|
|
|
8
8
|
JOB_RUNS_SCREEN_ID,
|
|
9
9
|
JobHandlers,
|
|
10
10
|
JobQueries,
|
|
11
|
-
} from "./constants.
|
|
12
|
-
import { catalogQuery } from "./handlers/catalog.query.
|
|
13
|
-
import { detailQuery } from "./handlers/detail.query.
|
|
14
|
-
import { listQuery } from "./handlers/list.query.
|
|
11
|
+
} from "./constants.ts";
|
|
12
|
+
import { catalogQuery } from "./handlers/catalog.query.ts";
|
|
13
|
+
import { detailQuery } from "./handlers/detail.query.ts";
|
|
14
|
+
import { listQuery } from "./handlers/list.query.ts";
|
|
15
15
|
import {
|
|
16
16
|
projectionRebuildJob,
|
|
17
17
|
projectionRebuildPayloadSchema,
|
|
18
|
-
} from "./handlers/projection-rebuild.job.
|
|
19
|
-
import { reindexEntityJob, reindexEntityPayloadSchema } from "./handlers/reindex-entity.job.
|
|
18
|
+
} from "./handlers/projection-rebuild.job.ts";
|
|
19
|
+
import { reindexEntityJob, reindexEntityPayloadSchema } from "./handlers/reindex-entity.job.ts";
|
|
20
20
|
import {
|
|
21
21
|
createRetentionCleanupJob,
|
|
22
22
|
DEFAULT_JOB_RUN_RETENTION_DAYS,
|
|
23
|
-
} from "./handlers/retention-cleanup.job.
|
|
24
|
-
import { retryWrite } from "./handlers/retry.write.
|
|
23
|
+
} from "./handlers/retention-cleanup.job.ts";
|
|
24
|
+
import { retryWrite } from "./handlers/retry.write.ts";
|
|
25
25
|
import {
|
|
26
26
|
createStaleRunSweepJob,
|
|
27
27
|
DEFAULT_JOB_RUN_STALE_TIMEOUT_HOURS,
|
|
28
|
-
} from "./handlers/stale-run-sweep.job.
|
|
29
|
-
import { tenantFailuresQuery } from "./handlers/tenant-failures.query.
|
|
30
|
-
import { tenantRunsQuery } from "./handlers/tenant-runs.query.
|
|
31
|
-
import { triggerWrite } from "./handlers/trigger.write.
|
|
32
|
-
import { JOBS_I18N } from "./i18n.
|
|
33
|
-
import { jobRunLogsTableMeta, jobRunsTableMeta } from "./job-run-table.
|
|
34
|
-
import { tenantJobFailuresTableMeta } from "./tenant-job-failure-table.
|
|
35
|
-
import { tenantJobRunsTableMeta } from "./tenant-job-run-table.
|
|
28
|
+
} from "./handlers/stale-run-sweep.job.ts";
|
|
29
|
+
import { tenantFailuresQuery } from "./handlers/tenant-failures.query.ts";
|
|
30
|
+
import { tenantRunsQuery } from "./handlers/tenant-runs.query.ts";
|
|
31
|
+
import { triggerWrite } from "./handlers/trigger.write.ts";
|
|
32
|
+
import { JOBS_I18N } from "./i18n.ts";
|
|
33
|
+
import { jobRunLogsTableMeta, jobRunsTableMeta } from "./job-run-table.ts";
|
|
34
|
+
import { tenantJobFailuresTableMeta } from "./tenant-job-failure-table.ts";
|
|
35
|
+
import { tenantJobRunsTableMeta } from "./tenant-job-run-table.ts";
|
|
36
36
|
|
|
37
37
|
export type JobsFeatureOptions = {
|
|
38
38
|
// How long a job run (and its logs) stays in store_job_runs/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineQueryHandler, type JobDefinition } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { isManualTrigger } from "../is-manual-trigger.
|
|
3
|
+
import { isManualTrigger } from "../is-manual-trigger.ts";
|
|
4
4
|
|
|
5
5
|
export type ManualJobCatalogEntry = {
|
|
6
6
|
readonly jobName: string;
|
|
@@ -2,8 +2,8 @@ import { fetchOne, selectMany } from "@cosmicdrift/kumiko-framework/db";
|
|
|
2
2
|
import { defineQueryHandler } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import { decryptStoredPii, mapWithConcurrency } from "../../shared/index.
|
|
6
|
-
import { jobRunLogsTable, jobRunsTable } from "../job-run-table.
|
|
5
|
+
import { decryptStoredPii, mapWithConcurrency } from "../../shared/index.ts";
|
|
6
|
+
import { jobRunLogsTable, jobRunsTable } from "../job-run-table.ts";
|
|
7
7
|
|
|
8
8
|
// Matches job-run-logger.ts's KMS_POOL_CONCURRENCY / the tenant handlers'
|
|
9
9
|
// KMS_POOL_CONCURRENCY — bounds concurrent decrypt calls against the KMS
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
import { defineQueryHandler } from "@cosmicdrift/kumiko-framework/engine";
|
|
9
9
|
import { InternalError, ValidationError } from "@cosmicdrift/kumiko-framework/errors";
|
|
10
10
|
import * as z from "zod";
|
|
11
|
-
import { decryptStoredPii, mapWithConcurrency } from "../../shared/index.
|
|
12
|
-
import { jobRunsTable } from "../job-run-table.
|
|
11
|
+
import { decryptStoredPii, mapWithConcurrency } from "../../shared/index.ts";
|
|
12
|
+
import { jobRunsTable } from "../job-run-table.ts";
|
|
13
13
|
|
|
14
14
|
const KMS_POOL_CONCURRENCY = 4;
|
|
15
15
|
const DEFAULT_PAGE_SIZE = 50;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { JobHandlerFn } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
|
|
4
|
-
import { deleteStaleJobRuns } from "../db/queries/retention.
|
|
4
|
+
import { deleteStaleJobRuns } from "../db/queries/retention.ts";
|
|
5
5
|
|
|
6
6
|
// Single source for the retention window — change here, nowhere else.
|
|
7
7
|
export const DEFAULT_JOB_RUN_RETENTION_DAYS = 30;
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
import type { JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
11
11
|
import { parseJsonOrThrow } from "@cosmicdrift/kumiko-framework/utils";
|
|
12
12
|
import * as z from "zod";
|
|
13
|
-
import { decryptStoredPii } from "../../shared/index.
|
|
14
|
-
import { JobErrors } from "../constants.
|
|
15
|
-
import { jobRunsTable } from "../job-run-table.
|
|
13
|
+
import { decryptStoredPii } from "../../shared/index.ts";
|
|
14
|
+
import { JobErrors } from "../constants.ts";
|
|
15
|
+
import { jobRunsTable } from "../job-run-table.ts";
|
|
16
16
|
|
|
17
17
|
type JobRunRow = {
|
|
18
18
|
readonly status: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { JobHandlerFn } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
|
|
4
|
-
import { markStaleJobRunsFailed } from "../db/queries/stale-run-sweep.
|
|
4
|
+
import { markStaleJobRunsFailed } from "../db/queries/stale-run-sweep.ts";
|
|
5
5
|
|
|
6
6
|
// 24h, not e.g. the 1h cache-TTL used elsewhere in this feature (see
|
|
7
7
|
// job-run-logger.ts) — a wrong guess there costs one extra DB lookup, a
|
|
@@ -4,7 +4,7 @@ import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
|
|
|
4
4
|
import { serializeJobSubject } from "@cosmicdrift/kumiko-framework/jobs";
|
|
5
5
|
import { parseJsonSafe } from "@cosmicdrift/kumiko-framework/utils";
|
|
6
6
|
import * as z from "zod";
|
|
7
|
-
import { tenantJobFailuresTable } from "../tenant-job-failure-table.
|
|
7
|
+
import { tenantJobFailuresTable } from "../tenant-job-failure-table.ts";
|
|
8
8
|
|
|
9
9
|
type TenantJobFailureRow = {
|
|
10
10
|
readonly tenantId: string;
|
|
@@ -4,7 +4,7 @@ import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
|
|
|
4
4
|
import { serializeJobSubject } from "@cosmicdrift/kumiko-framework/jobs";
|
|
5
5
|
import { parseJsonSafe } from "@cosmicdrift/kumiko-framework/utils";
|
|
6
6
|
import * as z from "zod";
|
|
7
|
-
import { type TenantJobRunStatus, tenantJobRunsTable } from "../tenant-job-run-table.
|
|
7
|
+
import { type TenantJobRunStatus, tenantJobRunsTable } from "../tenant-job-run-table.ts";
|
|
8
8
|
|
|
9
9
|
type TenantJobRunRow = {
|
|
10
10
|
readonly tenantId: string;
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "@cosmicdrift/kumiko-framework/errors";
|
|
9
9
|
import type { JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
10
10
|
import * as z from "zod";
|
|
11
|
-
import { JobErrors } from "../constants.
|
|
12
|
-
import { isManualTrigger } from "../is-manual-trigger.
|
|
11
|
+
import { JobErrors } from "../constants.ts";
|
|
12
|
+
import { isManualTrigger } from "../is-manual-trigger.ts";
|
|
13
13
|
|
|
14
14
|
function invalidPayloadError(): UnprocessableError {
|
|
15
15
|
return new UnprocessableError(JobErrors.invalidPayload, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { JOBS_FEATURE, JobErrors, JobHandlers, JobQueries } from "./constants.
|
|
2
|
-
export { createJobsFeature, type JobsFeatureOptions } from "./feature.
|
|
3
|
-
export type { JobRunLoggerCallbacks } from "./job-run-logger.
|
|
4
|
-
export { createJobRunLogger } from "./job-run-logger.
|
|
5
|
-
export type { JobLogLevel, JobRunStatus } from "./job-run-table.
|
|
6
|
-
export { jobRunLogsTable, jobRunsTable } from "./job-run-table.
|
|
7
|
-
export { tenantJobFailuresTable } from "./tenant-job-failure-table.
|
|
8
|
-
export type { TenantJobRunStatus } from "./tenant-job-run-table.
|
|
9
|
-
export { tenantJobRunsTable } from "./tenant-job-run-table.
|
|
1
|
+
export { JOBS_FEATURE, JobErrors, JobHandlers, JobQueries } from "./constants.ts";
|
|
2
|
+
export { createJobsFeature, type JobsFeatureOptions } from "./feature.ts";
|
|
3
|
+
export type { JobRunLoggerCallbacks } from "./job-run-logger.ts";
|
|
4
|
+
export { createJobRunLogger } from "./job-run-logger.ts";
|
|
5
|
+
export type { JobLogLevel, JobRunStatus } from "./job-run-table.ts";
|
|
6
|
+
export { jobRunLogsTable, jobRunsTable } from "./job-run-table.ts";
|
|
7
|
+
export { tenantJobFailuresTable } from "./tenant-job-failure-table.ts";
|
|
8
|
+
export type { TenantJobRunStatus } from "./tenant-job-run-table.ts";
|
|
9
|
+
export { tenantJobRunsTable } from "./tenant-job-run-table.ts";
|
|
@@ -29,12 +29,12 @@ import type {
|
|
|
29
29
|
} from "@cosmicdrift/kumiko-framework/jobs";
|
|
30
30
|
import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
|
|
31
31
|
import { generateId } from "@cosmicdrift/kumiko-framework/utils";
|
|
32
|
-
import { mapWithConcurrency } from "../shared/index.
|
|
33
|
-
import { runCompletedSchema, runFailedSchema, runStartedSchema } from "./events.
|
|
34
|
-
import { parseJobInstant } from "./job-instant.
|
|
35
|
-
import { jobRunLogsTable, jobRunsTable } from "./job-run-table.
|
|
36
|
-
import { tenantJobFailuresTable } from "./tenant-job-failure-table.
|
|
37
|
-
import { tenantJobRunsTable } from "./tenant-job-run-table.
|
|
32
|
+
import { mapWithConcurrency } from "../shared/index.ts";
|
|
33
|
+
import { runCompletedSchema, runFailedSchema, runStartedSchema } from "./events.ts";
|
|
34
|
+
import { parseJobInstant } from "./job-instant.ts";
|
|
35
|
+
import { jobRunLogsTable, jobRunsTable } from "./job-run-table.ts";
|
|
36
|
+
import { tenantJobFailuresTable } from "./tenant-job-failure-table.ts";
|
|
37
|
+
import { tenantJobRunsTable } from "./tenant-job-run-table.ts";
|
|
38
38
|
|
|
39
39
|
// Matches PgKmsAdapter's default pool size (see tenant/handlers/*.query.ts) —
|
|
40
40
|
// bounds concurrent getOrCreateDek calls so a large log batch doesn't claim
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @runtime client
|
|
2
2
|
import { mergeTranslations, type TranslationsByLocale } from "@cosmicdrift/kumiko-renderer";
|
|
3
3
|
import type { ClientFeatureDefinition } from "@cosmicdrift/kumiko-renderer-web";
|
|
4
|
-
import { JOBS_FEATURE } from "../constants.
|
|
5
|
-
import { defaultTranslations } from "./i18n.
|
|
4
|
+
import { JOBS_FEATURE } from "../constants.ts";
|
|
5
|
+
import { defaultTranslations } from "./i18n.ts";
|
|
6
6
|
|
|
7
7
|
export type JobsClientOptions = {
|
|
8
8
|
readonly translations?: TranslationsByLocale;
|
|
@@ -3,6 +3,6 @@ import {
|
|
|
3
3
|
type TranslationsByLocale,
|
|
4
4
|
translationsByLocaleFromKeys,
|
|
5
5
|
} from "@cosmicdrift/kumiko-renderer";
|
|
6
|
-
import { JOBS_I18N } from "../i18n.
|
|
6
|
+
import { JOBS_I18N } from "../i18n.ts";
|
|
7
7
|
|
|
8
8
|
export const defaultTranslations: TranslationsByLocale = translationsByLocaleFromKeys(JOBS_I18N);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @runtime client
|
|
2
|
-
export { type JobsClientOptions, jobsClient } from "./client-plugin.
|
|
2
|
+
export { type JobsClientOptions, jobsClient } from "./client-plugin.tsx";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.370.0",
|
|
4
|
+
"type": "breaking",
|
|
5
|
+
"title": "The deprecated ledgerFeature constant is removed",
|
|
6
|
+
"detail": "ledgerFeature was kept next to createLedgerFeature() for one release. Mount the feature by calling createLedgerFeature().",
|
|
7
|
+
"migration": "Run bun kumiko-upgrade --apply. It replaces ledgerFeature with createLedgerFeature().",
|
|
8
|
+
"codemod": "scripts/codemod/feature-factory.ts"
|
|
9
|
+
},
|
|
2
10
|
{
|
|
3
11
|
"version": "0.364.0",
|
|
4
12
|
"type": "fix",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createSelectField,
|
|
8
8
|
createTextField,
|
|
9
9
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
10
|
-
import { ACCOUNT_TYPES, SCHEDULE_INTERVALS, TRANSACTION_STATUS } from "./constants.
|
|
10
|
+
import { ACCOUNT_TYPES, SCHEDULE_INTERVALS, TRANSACTION_STATUS } from "./constants.ts";
|
|
11
11
|
|
|
12
12
|
// account — a node in the chart of accounts. Event-sourced (create/update/list/
|
|
13
13
|
// detail via the standard handlers); the framework projects `read_ledger_accounts`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createEntityExecutor } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { accountEntity, scheduleEntity, transactionEntity } from "./entity.
|
|
2
|
+
import { accountEntity, scheduleEntity, transactionEntity } from "./entity.ts";
|
|
3
3
|
|
|
4
4
|
// Shared tables + executors for the account + transaction handlers. Built once
|
|
5
5
|
// (side-effect-free). The tables back the report query-handlers (selectMany over
|
|
@@ -21,17 +21,17 @@ import {
|
|
|
21
21
|
defineFeature,
|
|
22
22
|
type FeatureRegistrar,
|
|
23
23
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
24
|
-
import { DEFAULT_LEDGER_ACCESS, LEDGER_FEATURE_NAME } from "./constants.
|
|
25
|
-
import { accountEntity, scheduleEntity, transactionEntity } from "./entity.
|
|
26
|
-
import { createConfirmSchedulePeriodHandler } from "./handlers/confirm-schedule-period.write.
|
|
27
|
-
import { createCreateTransactionHandler } from "./handlers/create-transaction.write.
|
|
24
|
+
import { DEFAULT_LEDGER_ACCESS, LEDGER_FEATURE_NAME } from "./constants.ts";
|
|
25
|
+
import { accountEntity, scheduleEntity, transactionEntity } from "./entity.ts";
|
|
26
|
+
import { createConfirmSchedulePeriodHandler } from "./handlers/confirm-schedule-period.write.ts";
|
|
27
|
+
import { createCreateTransactionHandler } from "./handlers/create-transaction.write.ts";
|
|
28
28
|
import {
|
|
29
29
|
createBalanceSheetHandler,
|
|
30
30
|
createBalancesReportHandler,
|
|
31
31
|
createIncomeStatementHandler,
|
|
32
|
-
} from "./handlers/reports.query.
|
|
33
|
-
import { createReverseTransactionHandler } from "./handlers/reverse-transaction.write.
|
|
34
|
-
import { requireScheduleSubjectPair } from "./schedule-subject-pair.
|
|
32
|
+
} from "./handlers/reports.query.ts";
|
|
33
|
+
import { createReverseTransactionHandler } from "./handlers/reverse-transaction.write.ts";
|
|
34
|
+
import { requireScheduleSubjectPair } from "./schedule-subject-pair.ts";
|
|
35
35
|
|
|
36
36
|
// Opt-in tier-gating (mirrors folders): when set, the feature declares itself
|
|
37
37
|
// r.toggleable so the dispatcher gate + tier-engine can switch the WHOLE ledger
|
|
@@ -181,6 +181,3 @@ export function createLedgerFeature(opts: LedgerFeatureOptions = {}): typeof def
|
|
|
181
181
|
const access = resolveAccess(opts);
|
|
182
182
|
return defineFeature(LEDGER_FEATURE_NAME, (r) => registerLedger(r, access, opts.toggleable));
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
/** @deprecated Use createLedgerFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
186
|
-
export const ledgerFeature = createLedgerFeature();
|
|
@@ -6,19 +6,19 @@ import type {
|
|
|
6
6
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
7
7
|
import { NotFoundError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
8
8
|
import { generateId } from "@cosmicdrift/kumiko-framework/utils";
|
|
9
|
-
import { DEFAULT_LEDGER_ACCESS } from "../constants.
|
|
9
|
+
import { DEFAULT_LEDGER_ACCESS } from "../constants.ts";
|
|
10
10
|
import {
|
|
11
11
|
accountExecutor,
|
|
12
12
|
scheduleExecutor,
|
|
13
13
|
transactionExecutor,
|
|
14
14
|
transactionTable,
|
|
15
|
-
} from "../executor.
|
|
16
|
-
import { findReversedIds, isoMonth, scheduleReference } from "../recurring.
|
|
15
|
+
} from "../executor.ts";
|
|
16
|
+
import { findReversedIds, isoMonth, scheduleReference } from "../recurring.ts";
|
|
17
17
|
import {
|
|
18
18
|
type ConfirmSchedulePeriodPayload,
|
|
19
19
|
confirmSchedulePeriodPayloadSchema,
|
|
20
|
-
} from "../schemas.
|
|
21
|
-
import { readSubjectReference } from "../subject-reference.
|
|
20
|
+
} from "../schemas.ts";
|
|
21
|
+
import { readSubjectReference } from "../subject-reference.ts";
|
|
22
22
|
|
|
23
23
|
// pg_advisory_xact_lock namespace (int4): 'lcsp' as ASCII, disjoint from the
|
|
24
24
|
// framework's other fixed advisory-lock keys.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { NotFoundError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
3
|
import { generateId } from "@cosmicdrift/kumiko-framework/utils";
|
|
4
|
-
import { DEFAULT_LEDGER_ACCESS } from "../constants.
|
|
5
|
-
import { accountExecutor, transactionExecutor } from "../executor.
|
|
6
|
-
import { type CreateTransactionPayload, createTransactionPayloadSchema } from "../schemas.
|
|
4
|
+
import { DEFAULT_LEDGER_ACCESS } from "../constants.ts";
|
|
5
|
+
import { accountExecutor, transactionExecutor } from "../executor.ts";
|
|
6
|
+
import { type CreateTransactionPayload, createTransactionPayloadSchema } from "../schemas.ts";
|
|
7
7
|
|
|
8
8
|
// create-transaction — books a balanced journal entry. The Σ=0 and ≥2-accounts
|
|
9
9
|
// invariants are enforced by createTransactionPayloadSchema (command boundary).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AccessRule, QueryHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import { DEFAULT_LEDGER_ACCESS } from "../constants.
|
|
4
|
-
import { accountTable, transactionTable } from "../executor.
|
|
3
|
+
import { DEFAULT_LEDGER_ACCESS } from "../constants.ts";
|
|
4
|
+
import { accountTable, transactionTable } from "../executor.ts";
|
|
5
5
|
import {
|
|
6
6
|
accountBalances,
|
|
7
7
|
balanceSheet,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
type LedgerEntry,
|
|
11
11
|
toAccounts,
|
|
12
12
|
toEntries,
|
|
13
|
-
} from "../reports.
|
|
13
|
+
} from "../reports.ts";
|
|
14
14
|
|
|
15
15
|
// Reports take an optional reporting period. Balance-sheet is cumulative → pass
|
|
16
16
|
// { to: asOf }; income-statement is a period → { from, to }.
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
writeFailure,
|
|
7
7
|
} from "@cosmicdrift/kumiko-framework/errors";
|
|
8
8
|
import { generateId } from "@cosmicdrift/kumiko-framework/utils";
|
|
9
|
-
import { DEFAULT_LEDGER_ACCESS } from "../constants.
|
|
10
|
-
import { transactionExecutor, transactionTable } from "../executor.
|
|
11
|
-
import { normalizeLines } from "../reports.
|
|
12
|
-
import { type ReverseTransactionPayload, reverseTransactionPayloadSchema } from "../schemas.
|
|
13
|
-
import { readSubjectReference } from "../subject-reference.
|
|
9
|
+
import { DEFAULT_LEDGER_ACCESS } from "../constants.ts";
|
|
10
|
+
import { transactionExecutor, transactionTable } from "../executor.ts";
|
|
11
|
+
import { normalizeLines } from "../reports.ts";
|
|
12
|
+
import { type ReverseTransactionPayload, reverseTransactionPayloadSchema } from "../schemas.ts";
|
|
13
|
+
import { readSubjectReference } from "../subject-reference.ts";
|
|
14
14
|
|
|
15
15
|
// reverse-transaction (Storno) — the ONLY correction path for a posted entry.
|
|
16
16
|
// Books the mirror image (every amount negated) as a new posted entry that
|
|
@@ -10,30 +10,29 @@ export {
|
|
|
10
10
|
type ScheduleInterval,
|
|
11
11
|
TRANSACTION_STATUS,
|
|
12
12
|
type TransactionStatus,
|
|
13
|
-
} from "./constants.
|
|
14
|
-
export { accountEntity, scheduleEntity, transactionEntity } from "./entity.
|
|
13
|
+
} from "./constants.ts";
|
|
14
|
+
export { accountEntity, scheduleEntity, transactionEntity } from "./entity.ts";
|
|
15
15
|
export {
|
|
16
16
|
createLedgerFeature,
|
|
17
17
|
type LedgerFeatureOptions,
|
|
18
|
-
|
|
19
|
-
} from "./feature.js";
|
|
18
|
+
} from "./feature.ts";
|
|
20
19
|
export {
|
|
21
20
|
confirmSchedulePeriodHandler,
|
|
22
21
|
createConfirmSchedulePeriodHandler,
|
|
23
|
-
} from "./handlers/confirm-schedule-period.write.
|
|
22
|
+
} from "./handlers/confirm-schedule-period.write.ts";
|
|
24
23
|
export {
|
|
25
24
|
createCreateTransactionHandler,
|
|
26
25
|
createTransactionHandler,
|
|
27
|
-
} from "./handlers/create-transaction.write.
|
|
26
|
+
} from "./handlers/create-transaction.write.ts";
|
|
28
27
|
export {
|
|
29
28
|
createBalanceSheetHandler,
|
|
30
29
|
createBalancesReportHandler,
|
|
31
30
|
createIncomeStatementHandler,
|
|
32
|
-
} from "./handlers/reports.query.
|
|
31
|
+
} from "./handlers/reports.query.ts";
|
|
33
32
|
export {
|
|
34
33
|
createReverseTransactionHandler,
|
|
35
34
|
reverseTransactionHandler,
|
|
36
|
-
} from "./handlers/reverse-transaction.write.
|
|
35
|
+
} from "./handlers/reverse-transaction.write.ts";
|
|
37
36
|
export {
|
|
38
37
|
findReversedIds,
|
|
39
38
|
type LedgerTxRow,
|
|
@@ -44,7 +43,7 @@ export {
|
|
|
44
43
|
type ScheduleMonth,
|
|
45
44
|
type ScheduleMonthStatus,
|
|
46
45
|
scheduleReference,
|
|
47
|
-
} from "./recurring.
|
|
46
|
+
} from "./recurring.ts";
|
|
48
47
|
export {
|
|
49
48
|
type AccountBalance,
|
|
50
49
|
accountBalances,
|
|
@@ -57,7 +56,7 @@ export {
|
|
|
57
56
|
type LedgerEntry,
|
|
58
57
|
type Period,
|
|
59
58
|
rawBalances,
|
|
60
|
-
} from "./reports.
|
|
59
|
+
} from "./reports.ts";
|
|
61
60
|
export {
|
|
62
61
|
accountTypeSchema,
|
|
63
62
|
type ConfirmSchedulePeriodPayload,
|
|
@@ -68,4 +67,4 @@ export {
|
|
|
68
67
|
postingSchema,
|
|
69
68
|
type ReverseTransactionPayload,
|
|
70
69
|
reverseTransactionPayloadSchema,
|
|
71
|
-
} from "./schemas.
|
|
70
|
+
} from "./schemas.ts";
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
// pure — no DB, no Date API (windows/asOf come in as params) — so the no-date-api
|
|
14
14
|
// guard stays green and the forecast is deterministic.
|
|
15
15
|
|
|
16
|
-
import type { ScheduleInterval } from "./constants.
|
|
17
|
-
import type { Posting } from "./schemas.
|
|
16
|
+
import type { ScheduleInterval } from "./constants.ts";
|
|
17
|
+
import type { Posting } from "./schemas.ts";
|
|
18
18
|
|
|
19
19
|
export type ScheduleDef = {
|
|
20
20
|
readonly startDate: string; // ISO; first period (day ignored for monthly)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseJsonSafe } from "@cosmicdrift/kumiko-framework/utils";
|
|
2
|
-
import type { AccountType } from "./constants.
|
|
3
|
-
import type { Posting } from "./schemas.
|
|
2
|
+
import type { AccountType } from "./constants.ts";
|
|
3
|
+
import type { Posting } from "./schemas.ts";
|
|
4
4
|
|
|
5
5
|
// Pure report aggregation over posted journal entries. No DB, no IO — the query
|
|
6
6
|
// handlers fetch accounts + transactions (selectMany) and feed them here, so the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ACCOUNT_TYPES, TRANSACTION_STATUS } from "./constants.
|
|
2
|
+
import { ACCOUNT_TYPES, TRANSACTION_STATUS } from "./constants.ts";
|
|
3
3
|
|
|
4
4
|
// A posting line. amount is integer minor units (cents), SIGNED: Soll/debit > 0,
|
|
5
5
|
// Haben/credit < 0. Integer → the balance check is exact (=== 0), no float epsilon.
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
type ScheduleInterval,
|
|
18
18
|
TRANSACTION_STATUS,
|
|
19
19
|
type TransactionStatus,
|
|
20
|
-
} from "../constants.
|
|
20
|
+
} from "../constants.ts";
|
|
21
21
|
export {
|
|
22
22
|
type LedgerTxRow,
|
|
23
23
|
mergeScheduleActuals,
|
|
@@ -27,10 +27,10 @@ export {
|
|
|
27
27
|
type ScheduleMonth,
|
|
28
28
|
type ScheduleMonthStatus,
|
|
29
29
|
scheduleReference,
|
|
30
|
-
} from "../recurring.
|
|
30
|
+
} from "../recurring.ts";
|
|
31
31
|
export {
|
|
32
32
|
type ConfirmSchedulePeriodPayload,
|
|
33
33
|
confirmSchedulePeriodPayloadSchema,
|
|
34
34
|
type Posting,
|
|
35
35
|
postingSchema,
|
|
36
|
-
} from "../schemas.
|
|
36
|
+
} from "../schemas.ts";
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
import { SYSTEM_TENANT_ID } from "@cosmicdrift/kumiko-framework/engine";
|
|
24
24
|
|
|
25
25
|
runProdApp({
|
|
26
|
+
envSchema, // composeEnvSchema({ core: frameworkCoreEnvSchema, features })
|
|
26
27
|
features: [
|
|
27
28
|
createTemplateResolverFeature(), // legal-pages requires template-resolver
|
|
28
29
|
createLegalPagesFeature(),
|
|
@@ -129,6 +130,29 @@ non-empty `path`/`slug`/`lang`, and every `path` must start with `/`.
|
|
|
129
130
|
An empty `routes` array is allowed — the boot check alone, no public
|
|
130
131
|
routes.
|
|
131
132
|
|
|
133
|
+
### Terms of service
|
|
134
|
+
|
|
135
|
+
`createLegalPagesFeature({ terms: true })` appends `LEGAL_TERMS_ROUTES` to the
|
|
136
|
+
routes: `/legal/nutzungsbedingungen` (`terms` / `de`) and `/legal/terms`
|
|
137
|
+
(`terms` / `en`). Terms are never boot-required; an unseeded block answers 404.
|
|
138
|
+
|
|
139
|
+
### Layout helper
|
|
140
|
+
|
|
141
|
+
`createLegalPagesLayout({ siteName, css?, stylesheetHrefs?, headerHtml?, footerHtml?,
|
|
142
|
+
contentClass? })` returns a `wrapLayout` with the app's chrome around the body:
|
|
143
|
+
title as `<title> · <siteName>`, body inside `<main data-tenant-content>`.
|
|
144
|
+
`headerHtml`/`footerHtml` get the route's `lang` and must return trusted HTML; the CSP
|
|
145
|
+
rules above still apply.
|
|
146
|
+
|
|
147
|
+
### Paths for static sites
|
|
148
|
+
|
|
149
|
+
Apps that render legal pages elsewhere (e.g. an Astro site) link to the same
|
|
150
|
+
paths with `legalPagePath(routes, slug, lang)`, for example
|
|
151
|
+
`legalPagePath([...LEGAL_ROUTES, ...LEGAL_TERMS_ROUTES], "terms", "en")`. It is
|
|
152
|
+
client-safe and returns `undefined` for an unknown combination. Import it with
|
|
153
|
+
the route constants from `@cosmicdrift/kumiko-bundled-features/legal-pages/constants`,
|
|
154
|
+
which keeps the server feature out of a client bundle.
|
|
155
|
+
|
|
132
156
|
---
|
|
133
157
|
|
|
134
158
|
## Boot check
|
|
@@ -212,6 +236,21 @@ E-Mail: hello@example.com`,
|
|
|
212
236
|
});
|
|
213
237
|
```
|
|
214
238
|
|
|
239
|
+
### Boot seed for runProdApp
|
|
240
|
+
|
|
241
|
+
`legalContentSeed(source)` returns a seed for `runProdApp({ seeds: [...] })`.
|
|
242
|
+
`source` is `{ blocks }` (import your generated JSON) or `{ path }` (a JSON file
|
|
243
|
+
resolved against the process cwd). Both are validated as a list of
|
|
244
|
+
`{ slug, locale, title, content }`. The template is authoritative: an existing
|
|
245
|
+
block is updated on every boot, so edits made through the API are overwritten.
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import legalContent from "./legal-content.json" with { type: "json" };
|
|
249
|
+
import { legalContentSeed } from "@cosmicdrift/kumiko-bundled-features/legal-pages";
|
|
250
|
+
|
|
251
|
+
runProdApp({ /* ... */ seeds: [legalContentSeed({ blocks: legalContent })] });
|
|
252
|
+
```
|
|
253
|
+
|
|
215
254
|
Templates for imprint + privacy policy: see
|
|
216
255
|
[docs/plans/datenschutz/legal-artifacts.md](../../../../docs/plans/datenschutz/legal-artifacts.md)
|
|
217
256
|
and vetted external generators (e-recht24.de,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.370.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "legal-pages serves terms of service, ships a layout helper and a boot seed",
|
|
6
|
+
"detail": "createLegalPagesFeature({ terms: true }) adds /legal/nutzungsbedingungen and /legal/terms (slug terms, de/en, never boot-required). createLegalPagesLayout({ siteName, css?, stylesheetHrefs?, headerHtml?, footerHtml?, contentClass? }) builds a wrapLayout with the app's chrome. legalContentSeed({ blocks } | { path }) returns a seed for runProdApp seeds that writes the blocks into SYSTEM_TENANT and updates existing ones, so the JSON stays authoritative. legalPagePath(routes, slug, lang) from the client-safe ./legal-pages/constants subpath gives static sites the same paths. Defaults are unchanged."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.352.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -51,6 +51,28 @@ export const LEGAL_ROUTES = [
|
|
|
51
51
|
{ path: "/legal/privacy", slug: "privacy", lang: "en", titleFallback: "Privacy Policy" },
|
|
52
52
|
] as const;
|
|
53
53
|
|
|
54
|
+
// Terms of service are opt-in (`terms: true`) and never boot-required: not every
|
|
55
|
+
// app needs them, and DACH law does not mandate them the way it does imprint.
|
|
56
|
+
export const LEGAL_TERMS_ROUTES = [
|
|
57
|
+
{
|
|
58
|
+
path: "/legal/nutzungsbedingungen",
|
|
59
|
+
slug: "terms",
|
|
60
|
+
lang: "de",
|
|
61
|
+
titleFallback: "Nutzungsbedingungen",
|
|
62
|
+
},
|
|
63
|
+
{ path: "/legal/terms", slug: "terms", lang: "en", titleFallback: "Terms of Service" },
|
|
64
|
+
] as const;
|
|
65
|
+
|
|
66
|
+
// Client-safe path lookup so apps that render their own legal pages (e.g. a
|
|
67
|
+
// static marketing site) link to the same paths the feature serves.
|
|
68
|
+
export function legalPagePath(
|
|
69
|
+
routes: readonly LegalPageRoute[],
|
|
70
|
+
slug: string,
|
|
71
|
+
lang: string,
|
|
72
|
+
): string | undefined {
|
|
73
|
+
return routes.find((route) => route.slug === slug && route.lang === lang)?.path;
|
|
74
|
+
}
|
|
75
|
+
|
|
54
76
|
export const LegalPagesErrors = {
|
|
55
77
|
bootMissingBlock: "legal_pages_boot_missing_block",
|
|
56
78
|
} as const;
|
|
@@ -10,18 +10,19 @@ import {
|
|
|
10
10
|
type PublicPageWrapLayout,
|
|
11
11
|
redirectToCanonicalPath,
|
|
12
12
|
slashVariantOf,
|
|
13
|
-
} from "../page-render/index.
|
|
13
|
+
} from "../page-render/index.ts";
|
|
14
14
|
import {
|
|
15
15
|
LEGAL_REQUIRED_BLOCKS,
|
|
16
16
|
LEGAL_ROUTES,
|
|
17
|
+
LEGAL_TERMS_ROUTES,
|
|
17
18
|
type LegalPageRoute,
|
|
18
19
|
type LegalRequiredBlock,
|
|
19
|
-
} from "./constants.
|
|
20
|
-
import { runLegalPagesBootCheck } from "./lib/boot-check.
|
|
21
|
-
import { validateRoutes } from "./lib/validate-routes.
|
|
22
|
-
import { renderMarkdownToHtml, wrapInLayout } from "./markdown.
|
|
20
|
+
} from "./constants.ts";
|
|
21
|
+
import { runLegalPagesBootCheck } from "./lib/boot-check.ts";
|
|
22
|
+
import { validateRoutes } from "./lib/validate-routes.ts";
|
|
23
|
+
import { renderMarkdownToHtml, wrapInLayout } from "./markdown.ts";
|
|
23
24
|
|
|
24
|
-
export { type LegalPagesBootCheckCtx, runLegalPagesBootCheck } from "./lib/boot-check.
|
|
25
|
+
export { type LegalPagesBootCheckCtx, runLegalPagesBootCheck } from "./lib/boot-check.ts";
|
|
25
26
|
|
|
26
27
|
// QN-Konstante als dokumentierter Public-Contract des template-resolver-
|
|
27
28
|
// Features. Ein magic-string statt eines Code-Imports ist hier explizit
|
|
@@ -84,11 +85,17 @@ export type LegalPagesOptions = {
|
|
|
84
85
|
* `privacy/de`). Apps whose routes use a different slug/lang set
|
|
85
86
|
* (e.g. Spanish-default) pass their own list here. */
|
|
86
87
|
readonly requiredBlocks?: readonly LegalRequiredBlock[];
|
|
88
|
+
/** Also serve LEGAL_TERMS_ROUTES (`/legal/nutzungsbedingungen`,
|
|
89
|
+
* `/legal/terms`, slug `terms`). Appended to `routes`; never boot-required. */
|
|
90
|
+
readonly terms?: boolean;
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
export function createLegalPagesFeature(opts: LegalPagesOptions = {}): FeatureDefinition {
|
|
90
94
|
const wrapLayout = opts.wrapLayout ?? wrapInLayout;
|
|
91
|
-
const routes: readonly LegalPageRoute[] =
|
|
95
|
+
const routes: readonly LegalPageRoute[] = [
|
|
96
|
+
...(opts.routes ?? LEGAL_ROUTES),
|
|
97
|
+
...(opts.terms === true ? LEGAL_TERMS_ROUTES : []),
|
|
98
|
+
];
|
|
92
99
|
const requiredBlocks = opts.requiredBlocks ?? LEGAL_REQUIRED_BLOCKS;
|
|
93
100
|
validateRoutes(routes);
|
|
94
101
|
if (opts.routes !== undefined && opts.routes.length > 0 && opts.requiredBlocks === undefined) {
|