@cosmicdrift/kumiko-bundled-features 0.369.0 → 0.370.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-security/constants.d.ts +4 -0
- package/dist/account-security/constants.js +5 -0
- package/dist/account-security/feature.d.ts +14 -0
- package/dist/account-security/feature.js +62 -0
- package/dist/account-security/i18n.d.ts +6 -0
- package/dist/account-security/i18n.js +6 -0
- package/dist/account-security/index.d.ts +3 -0
- package/dist/account-security/index.js +3 -0
- package/dist/admin-shell/feature.d.ts +1 -1
- package/dist/admin-shell/index.d.ts +4 -4
- package/dist/admin-shell/overview-panels.d.ts +1 -1
- package/dist/admin-shell/web/index.d.ts +1 -1
- package/dist/agent-tools/agent-manifest.d.ts +1 -1
- package/dist/agent-tools/index.d.ts +8 -8
- package/dist/agent-tools/manifest-deny-qns.d.ts +1 -1
- package/dist/agent-tools/tool-catalog.d.ts +1 -1
- package/dist/agent-tools/tool-dispatch.d.ts +1 -1
- package/dist/audit/handlers/resolve-audit-tenant.d.ts +1 -1
- package/dist/audit/index.d.ts +3 -3
- package/dist/audit/web/index.d.ts +1 -1
- package/dist/auth-email-password/bootstrap.d.ts +1 -1
- package/dist/auth-email-password/feature.d.ts +7 -6
- package/dist/auth-email-password/feature.js +3 -1
- package/dist/auth-email-password/handlers/confirm-token-flow.d.ts +1 -1
- package/dist/auth-email-password/handlers/invite-accept-with-login.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/invite-create.write.d.ts +2 -2
- package/dist/auth-email-password/handlers/invite-signup-complete.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/login.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-account-unlock.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-email-verification.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/request-password-reset.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/signup-confirm.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/signup-request.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/switch-tenant-mfa-gate.write.d.ts +1 -1
- package/dist/auth-email-password/handlers/token-request-handler.d.ts +2 -2
- package/dist/auth-email-password/index.d.ts +13 -13
- package/dist/auth-email-password/lockout-store.d.ts +1 -1
- package/dist/auth-email-password/magic-link-mail.d.ts +1 -1
- package/dist/auth-email-password/seeding.d.ts +3 -3
- package/dist/auth-email-password/signed-token.d.ts +1 -1
- package/dist/auth-email-password/signup-token-store.d.ts +1 -1
- package/dist/auth-email-password/testing.d.ts +1 -1
- package/dist/auth-email-password/web/auth-gate.d.ts +1 -1
- package/dist/auth-email-password/web/client-plugin.d.ts +2 -2
- package/dist/auth-email-password/web/index.d.ts +42 -42
- package/dist/auth-email-password/web/session-bootstrap-error.d.ts +1 -1
- package/dist/auth-email-password/web/session.d.ts +1 -1
- package/dist/auth-email-password/web/signup-complete-screen.d.ts +1 -1
- package/dist/auth-foundation/feature.d.ts +2 -6
- package/dist/auth-foundation/feature.js +0 -2
- package/dist/auth-foundation/index.d.ts +3 -3
- package/dist/auth-foundation/index.js +1 -1
- package/dist/auth-foundation/resolve-anonymous-access.d.ts +1 -1
- package/dist/auth-mfa/env.d.ts +13 -0
- package/dist/auth-mfa/env.js +24 -0
- package/dist/auth-mfa/errors.d.ts +1 -1
- package/dist/auth-mfa/feature-exports.d.ts +12 -0
- package/dist/auth-mfa/feature-exports.js +72 -0
- package/dist/auth-mfa/feature.d.ts +6 -12
- package/dist/auth-mfa/feature.js +53 -70
- package/dist/auth-mfa/handlers/reencrypt.job.d.ts +1 -1
- package/dist/auth-mfa/index.d.ts +12 -9
- package/dist/auth-mfa/index.js +4 -2
- package/dist/auth-mfa/mfa-challenge-token.d.ts +1 -1
- package/dist/auth-mfa/mfa-preauth-setup-token.d.ts +1 -1
- package/dist/auth-mfa/mfa-status-checker.d.ts +1 -1
- package/dist/auth-mfa/mfa-verify-attempts.d.ts +1 -1
- package/dist/auth-mfa/testing.d.ts +1 -1
- package/dist/auth-mfa/token-secrets.d.ts +7 -0
- package/dist/auth-mfa/token-secrets.js +13 -0
- package/dist/auth-mfa/verify-factor.d.ts +1 -1
- package/dist/auth-mfa/web/index.d.ts +15 -15
- package/dist/auth-mfa/web/mfa-client.d.ts +1 -1
- package/dist/auth-mfa-user-data/index.d.ts +0 -4
- package/dist/auth-mfa-user-data/index.js +0 -2
- package/dist/billing-foundation/checkout-core.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/confirmation-mail.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/consent-gate.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/consent-text.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/issue-confirmation.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/register-consent.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/register-termination.d.ts +1 -1
- package/dist/billing-foundation/consumer-protection/termination-mail.d.ts +3 -3
- package/dist/billing-foundation/consumer-protection/termination-notify.d.ts +5 -5
- package/dist/billing-foundation/consumer-protection/termination-pages.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/termination-record.d.ts +3 -3
- package/dist/billing-foundation/consumer-protection/termination-request.d.ts +2 -2
- package/dist/billing-foundation/consumer-protection/termination-texts.d.ts +2 -2
- package/dist/billing-foundation/feature.d.ts +1 -3
- package/dist/billing-foundation/feature.js +0 -2
- package/dist/billing-foundation/handlers/billing-plans.query.d.ts +1 -1
- package/dist/billing-foundation/handlers/create-checkout-session.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/create-portal-session.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/start-plan-checkout.write.d.ts +1 -1
- package/dist/billing-foundation/handlers/switch-plan.write.d.ts +1 -1
- package/dist/billing-foundation/index.d.ts +16 -16
- package/dist/billing-foundation/index.js +1 -1
- package/dist/billing-foundation/plan-catalog.d.ts +1 -1
- package/dist/billing-foundation/subscription-tier-sync.d.ts +3 -1
- package/dist/billing-foundation/subscription-tier-sync.js +3 -2
- package/dist/billing-foundation/types.d.ts +3 -3
- package/dist/billing-foundation/validate-options.d.ts +1 -1
- package/dist/billing-foundation/web/checkout-consent-dialog.d.ts +1 -1
- package/dist/billing-foundation/web/index.d.ts +6 -6
- package/dist/cap-counter/calendar-cap-usage-reservation.d.ts +4 -4
- package/dist/cap-counter/cap-reservation.d.ts +1 -1
- package/dist/cap-counter/enforce-cap.d.ts +1 -1
- package/dist/cap-counter/feature.d.ts +0 -4
- package/dist/cap-counter/feature.js +0 -2
- package/dist/cap-counter/index.d.ts +13 -13
- package/dist/cap-counter/index.js +1 -1
- package/dist/cap-counter/value-cap-guard.d.ts +1 -1
- package/dist/cap-counter/with-cap-enforcement.d.ts +1 -1
- package/dist/cap-overview/feature.d.ts +1 -1
- package/dist/cap-overview/handlers/caps-usage.query.d.ts +1 -1
- package/dist/cap-overview/handlers/tenant-caps-list.query.d.ts +1 -1
- package/dist/cap-overview/index.d.ts +6 -6
- package/dist/cap-overview/screens.d.ts +1 -1
- package/dist/cap-overview/types.d.ts +1 -1
- package/dist/cap-overview/usage-math.d.ts +1 -1
- package/dist/cap-overview/web/cap-usage-bar.d.ts +1 -1
- package/dist/cap-overview/web/index.d.ts +4 -4
- package/dist/channel-discord/discord-channel.d.ts +1 -1
- package/dist/channel-discord/feature.d.ts +1 -1
- package/dist/channel-discord/index.d.ts +2 -2
- package/dist/channel-email/email-channel.d.ts +2 -2
- package/dist/channel-email/env.d.ts +14 -0
- package/dist/channel-email/env.js +27 -0
- package/dist/channel-email/feature.d.ts +14 -3
- package/dist/channel-email/feature.js +5 -1
- package/dist/channel-email/index.d.ts +6 -5
- package/dist/channel-email/index.js +1 -0
- package/dist/channel-email/pii-guard.d.ts +1 -1
- package/dist/channel-email/smtp-transport.d.ts +1 -1
- package/dist/channel-email/types.d.ts +1 -1
- package/dist/channel-in-app/in-app-channel.d.ts +1 -1
- package/dist/channel-in-app/index.d.ts +4 -4
- package/dist/channel-push/feature.d.ts +1 -1
- package/dist/channel-push/index.d.ts +3 -3
- package/dist/channel-push/push-channel.d.ts +2 -2
- package/dist/channel-slack/feature.d.ts +1 -1
- package/dist/channel-slack/index.d.ts +2 -2
- package/dist/channel-slack/slack-channel.d.ts +1 -1
- package/dist/channel-teams/feature.d.ts +1 -1
- package/dist/channel-teams/index.d.ts +2 -2
- package/dist/channel-teams/teams-channel.d.ts +1 -1
- package/dist/channel-telegram/feature.d.ts +1 -1
- package/dist/channel-telegram/index.d.ts +2 -2
- package/dist/channel-telegram/telegram-channel.d.ts +1 -1
- package/dist/compliance-profiles/feature.d.ts +1 -1
- package/dist/compliance-profiles/index.d.ts +3 -3
- package/dist/compliance-profiles/web/index.d.ts +2 -2
- package/dist/compliance-profiles-ops/index.d.ts +0 -8
- package/dist/compliance-profiles-ops/index.js +0 -2
- package/dist/config/feature.d.ts +1 -1
- package/dist/config/handlers/reencrypt.job.d.ts +1 -1
- package/dist/config/index.d.ts +8 -8
- package/dist/config/web/client-plugin.d.ts +1 -1
- package/dist/config/web/index.d.ts +2 -2
- package/dist/crypto-shredding/env/index.d.ts +21 -0
- package/dist/crypto-shredding/env/index.js +78 -0
- package/dist/crypto-shredding/feature.d.ts +17 -2
- package/dist/crypto-shredding/feature.js +5 -1
- package/dist/crypto-shredding/index.d.ts +4 -3
- package/dist/crypto-shredding/index.js +1 -0
- package/dist/custom-fields/feature.d.ts +0 -17
- package/dist/custom-fields/feature.js +0 -2
- package/dist/custom-fields/index.d.ts +10 -10
- package/dist/custom-fields/index.js +1 -1
- package/dist/custom-fields/lib/define-or-resurrect.d.ts +2 -2
- package/dist/custom-fields/lib/field-access.d.ts +1 -1
- package/dist/custom-fields/lib/field-definition-row.d.ts +1 -1
- package/dist/custom-fields/lib/quota.d.ts +1 -1
- package/dist/custom-fields/web/index.d.ts +3 -3
- package/dist/data-retention/_internal/parse-override.d.ts +1 -1
- package/dist/data-retention/feature.d.ts +7 -7
- package/dist/data-retention/handlers/policy-for.query.d.ts +1 -1
- package/dist/data-retention/index.d.ts +3 -3
- package/dist/data-retention/resolve-for-tenant.d.ts +2 -2
- package/dist/data-retention/resolve-tenant-preset.d.ts +1 -1
- package/dist/data-retention/resolver.d.ts +1 -1
- package/dist/data-retention/run-retention-cleanup.d.ts +2 -2
- package/dist/delivery/attachment-ref.d.ts +1 -1
- package/dist/delivery/attempt-log.d.ts +1 -1
- package/dist/delivery/channel-context.d.ts +2 -2
- package/dist/delivery/chat-webhook-channel.d.ts +2 -2
- package/dist/delivery/constants.d.ts +1 -1
- package/dist/delivery/delivery-service.d.ts +2 -2
- package/dist/delivery/feature.js +2 -0
- package/dist/delivery/handlers/log.query.d.ts +1 -1
- package/dist/delivery/handlers/unsubscribe-page-chrome.query.d.ts +5 -0
- package/dist/delivery/handlers/unsubscribe-page-chrome.query.js +44 -0
- package/dist/delivery/index.d.ts +20 -20
- package/dist/delivery/notify-factory.d.ts +1 -1
- package/dist/delivery/public-names.d.ts +1 -0
- package/dist/delivery/public-names.js +1 -0
- package/dist/delivery/testing.d.ts +3 -3
- package/dist/delivery/types.d.ts +3 -3
- package/dist/delivery/unsubscribe-link.d.ts +1 -1
- package/dist/delivery/unsubscribe-page-strings.d.ts +4 -0
- package/dist/delivery/unsubscribe-page-strings.js +4 -0
- package/dist/delivery/unsubscribe-page.d.ts +27 -0
- package/dist/delivery/unsubscribe-page.js +192 -0
- package/dist/delivery/unsubscribe.d.ts +11 -3
- package/dist/delivery/unsubscribe.js +146 -64
- package/dist/delivery/web/index.d.ts +2 -2
- package/dist/derivatives-sharp/feature.d.ts +0 -4
- package/dist/derivatives-sharp/feature.js +0 -2
- package/dist/derivatives-sharp/index.d.ts +2 -2
- package/dist/derivatives-sharp/index.js +1 -1
- package/dist/document-ingest-foundation/feature.d.ts +0 -7
- package/dist/document-ingest-foundation/feature.js +0 -2
- package/dist/document-ingest-foundation/index.d.ts +7 -7
- package/dist/document-ingest-foundation/index.js +1 -1
- package/dist/document-ingest-foundation/pages.d.ts +1 -1
- package/dist/document-ingest-foundation/providers.d.ts +1 -1
- package/dist/document-ingest-foundation/write-document-extract.d.ts +1 -1
- package/dist/feature-toggles/compose-tier-resolver.d.ts +1 -1
- package/dist/feature-toggles/feature.d.ts +5 -5
- package/dist/feature-toggles/handlers/set.write.d.ts +1 -1
- package/dist/feature-toggles/index.d.ts +3 -3
- package/dist/feature-toggles/toggle-sync-signal.d.ts +1 -1
- package/dist/feature-toggles/web/index.d.ts +1 -1
- package/dist/file-derivatives/feature.d.ts +0 -2
- package/dist/file-derivatives/feature.js +0 -2
- package/dist/file-derivatives/index.d.ts +4 -4
- package/dist/file-derivatives/index.js +1 -1
- package/dist/file-foundation/feature.d.ts +0 -6
- package/dist/file-foundation/feature.js +0 -2
- package/dist/file-foundation/index.d.ts +2 -2
- package/dist/file-foundation/index.js +1 -1
- package/dist/file-provider-inmemory/feature.d.ts +0 -4
- package/dist/file-provider-inmemory/feature.js +0 -2
- package/dist/file-provider-inmemory/index.d.ts +1 -1
- package/dist/file-provider-inmemory/index.js +1 -1
- package/dist/file-provider-s3/env-feature.d.ts +12 -2
- package/dist/file-provider-s3/env-feature.js +9 -6
- package/dist/file-provider-s3/env-schema.d.ts +38 -0
- package/dist/file-provider-s3/env-schema.js +51 -0
- package/dist/file-provider-s3/feature.d.ts +1 -14
- package/dist/file-provider-s3/feature.js +0 -2
- package/dist/file-provider-s3/index.d.ts +2 -1
- package/dist/file-provider-s3/index.js +2 -1
- package/dist/file-provider-s3/lib/env-helper.d.ts +1 -1
- package/dist/file-provider-s3/lib/index.d.ts +3 -3
- package/dist/files/index.d.ts +1 -1
- package/dist/files-tenant-data/index.d.ts +2 -2
- package/dist/folders/feature.d.ts +0 -4
- package/dist/folders/feature.js +0 -2
- package/dist/folders/index.d.ts +7 -7
- package/dist/folders/index.js +1 -1
- package/dist/folders/web/folder-manager.d.ts +1 -1
- package/dist/folders/web/index.d.ts +5 -5
- package/dist/folders-user-data/index.d.ts +0 -4
- package/dist/folders-user-data/index.js +0 -2
- package/dist/form-draft/db/queries/cleanup.d.ts +1 -1
- package/dist/form-draft/feature.d.ts +0 -4
- package/dist/form-draft/feature.js +0 -2
- package/dist/form-draft/handlers/cleanup.job.d.ts +1 -1
- package/dist/form-draft/handlers/get.query.d.ts +1 -1
- package/dist/form-draft/index.d.ts +10 -10
- package/dist/form-draft/index.js +1 -1
- package/dist/form-draft/lookup.d.ts +1 -1
- package/dist/form-draft/release-file-refs.d.ts +1 -1
- package/dist/form-draft-user-data/index.d.ts +0 -4
- package/dist/form-draft-user-data/index.js +0 -2
- package/dist/foundation-shared/build-info-env.d.ts +7 -0
- package/dist/foundation-shared/build-info-env.js +15 -0
- package/dist/foundation-shared/demo-admin-env.d.ts +12 -0
- package/dist/foundation-shared/demo-admin-env.js +21 -0
- package/dist/foundation-shared/index.d.ts +5 -3
- package/dist/foundation-shared/index.js +2 -0
- package/dist/host-routing/constants.d.ts +8 -0
- package/dist/host-routing/constants.js +19 -0
- package/dist/host-routing/dispatch.d.ts +24 -0
- package/dist/host-routing/dispatch.js +102 -0
- package/dist/host-routing/feature.d.ts +3 -0
- package/dist/host-routing/feature.js +102 -0
- package/dist/host-routing/host.d.ts +14 -0
- package/dist/host-routing/host.js +37 -0
- package/dist/host-routing/index.d.ts +5 -0
- package/dist/host-routing/index.js +4 -0
- package/dist/host-routing/options.d.ts +27 -0
- package/dist/host-routing/options.js +1 -0
- package/dist/host-routing/validate-options.d.ts +2 -0
- package/dist/host-routing/validate-options.js +29 -0
- package/dist/inbound-mail-foundation/connect-routes.d.ts +2 -2
- package/dist/inbound-mail-foundation/feature.d.ts +0 -4
- package/dist/inbound-mail-foundation/feature.js +0 -2
- package/dist/inbound-mail-foundation/handlers/account-state.d.ts +1 -1
- package/dist/inbound-mail-foundation/index.d.ts +12 -12
- package/dist/inbound-mail-foundation/index.js +1 -1
- package/dist/inbound-mail-foundation/oauth-access-token.d.ts +1 -1
- package/dist/inbound-mail-foundation/provider-factory.d.ts +1 -1
- package/dist/inbound-mail-foundation/types.d.ts +1 -1
- package/dist/inbound-mail-foundation/watch-supervisor.d.ts +2 -2
- package/dist/inbound-provider-imap/feature.d.ts +1 -5
- package/dist/inbound-provider-imap/feature.js +0 -2
- package/dist/inbound-provider-imap/imap-client.d.ts +1 -1
- package/dist/inbound-provider-imap/index.d.ts +3 -3
- package/dist/inbound-provider-imap/index.js +1 -1
- package/dist/inbound-provider-inmemory/feature.d.ts +0 -4
- package/dist/inbound-provider-inmemory/feature.js +0 -2
- package/dist/inbound-provider-inmemory/index.d.ts +1 -1
- package/dist/inbound-provider-inmemory/index.js +1 -1
- package/dist/jobs/handlers/tenant-runs.query.d.ts +1 -1
- package/dist/jobs/index.d.ts +9 -9
- package/dist/jobs/web/index.d.ts +1 -1
- package/dist/ledger/feature.d.ts +0 -4
- package/dist/ledger/feature.js +0 -2
- package/dist/ledger/index.d.ts +10 -10
- package/dist/ledger/index.js +1 -1
- package/dist/ledger/recurring.d.ts +2 -2
- package/dist/ledger/reports.d.ts +2 -2
- package/dist/ledger/web/index.d.ts +3 -3
- package/dist/legal-pages/constants.d.ts +12 -0
- package/dist/legal-pages/constants.js +16 -0
- package/dist/legal-pages/feature.d.ts +6 -3
- package/dist/legal-pages/feature.js +5 -2
- package/dist/legal-pages/index.d.ts +5 -3
- package/dist/legal-pages/index.js +3 -1
- package/dist/legal-pages/layout.d.ts +10 -0
- package/dist/legal-pages/layout.js +32 -0
- package/dist/legal-pages/lib/boot-check.d.ts +1 -1
- package/dist/legal-pages/lib/validate-routes.d.ts +1 -1
- package/dist/legal-pages/markdown.d.ts +2 -2
- package/dist/legal-pages/seed.d.ts +12 -0
- package/dist/legal-pages/seed.js +38 -0
- package/dist/legal-pages/web/index.d.ts +1 -1
- package/dist/mail-foundation/feature.d.ts +0 -7
- package/dist/mail-foundation/feature.js +0 -2
- package/dist/mail-foundation/index.d.ts +1 -1
- package/dist/mail-foundation/index.js +1 -1
- package/dist/mail-transport-inmemory/feature.d.ts +0 -4
- package/dist/mail-transport-inmemory/feature.js +0 -2
- package/dist/mail-transport-inmemory/index.d.ts +1 -1
- package/dist/mail-transport-inmemory/index.js +1 -1
- package/dist/mail-transport-smtp/feature.d.ts +0 -16
- package/dist/mail-transport-smtp/feature.js +0 -2
- package/dist/mail-transport-smtp/index.d.ts +1 -1
- package/dist/mail-transport-smtp/index.js +1 -1
- package/dist/managed-pages/branding.d.ts +1 -1
- package/dist/managed-pages/feature.d.ts +1 -1
- package/dist/managed-pages/handlers/branding.query.d.ts +1 -1
- package/dist/managed-pages/index.d.ts +5 -5
- package/dist/managed-pages/web/index.d.ts +2 -2
- package/dist/metrics/compute.d.ts +2 -2
- package/dist/metrics/default-metrics.d.ts +9 -9
- package/dist/metrics/feature.d.ts +1 -1
- package/dist/metrics/filters.d.ts +1 -1
- package/dist/metrics/index.d.ts +5 -5
- package/dist/metrics/types.d.ts +1 -1
- package/dist/metrics/validate.d.ts +1 -1
- package/dist/metrics/window.d.ts +2 -2
- package/dist/notes-history/feature.d.ts +0 -4
- package/dist/notes-history/feature.js +0 -2
- package/dist/notes-history/handlers/add-note.write.d.ts +1 -1
- package/dist/notes-history/index.d.ts +6 -6
- package/dist/notes-history/index.js +1 -1
- package/dist/notes-history/web/index.d.ts +3 -3
- package/dist/notes-history-user-data/index.d.ts +1 -5
- package/dist/notes-history-user-data/index.js +0 -2
- package/dist/page-render/index.d.ts +7 -7
- package/dist/page-render/layout.d.ts +1 -1
- package/dist/page-render/web.d.ts +5 -5
- package/dist/personal-access-tokens/feature.d.ts +3 -3
- package/dist/personal-access-tokens/handlers/available-scopes.query.d.ts +1 -1
- package/dist/personal-access-tokens/i18n.d.ts +1 -1
- package/dist/personal-access-tokens/index.d.ts +13 -13
- package/dist/personal-access-tokens/resolver.d.ts +1 -1
- package/dist/personal-access-tokens/screens.d.ts +1 -1
- package/dist/presets/dsgvo-self-service.d.ts +3 -1
- package/dist/presets/dsgvo-self-service.js +2 -0
- package/dist/presets/index.d.ts +2 -2
- package/dist/presets/security-baseline.d.ts +2 -0
- package/dist/presets/security-baseline.js +2 -0
- package/dist/rate-limiting/index.d.ts +2 -2
- package/dist/readiness/feature.d.ts +0 -8
- package/dist/readiness/feature.js +0 -2
- package/dist/readiness/index.d.ts +3 -3
- package/dist/readiness/index.js +1 -1
- package/dist/renderer-foundation/api.d.ts +2 -2
- package/dist/renderer-foundation/constants.d.ts +2 -2
- package/dist/renderer-foundation/feature.d.ts +1 -1
- package/dist/renderer-foundation/index.d.ts +5 -5
- package/dist/renderer-foundation/types.d.ts +24 -2
- package/dist/renderer-pdf/feature.d.ts +1 -1
- package/dist/renderer-pdf/index.d.ts +2 -2
- package/dist/renderer-pdf/render-table-pdf.d.ts +1 -1
- package/dist/secrets/constants.d.ts +7 -0
- package/dist/secrets/constants.js +7 -0
- package/dist/secrets/db/queries/read.d.ts +1 -1
- package/dist/secrets/feature.d.ts +4 -3
- package/dist/secrets/feature.js +4 -2
- package/dist/secrets/handlers/delete.write.js +2 -2
- package/dist/secrets/handlers/rotate.job.d.ts +1 -1
- package/dist/secrets/handlers/set.write.js +2 -2
- package/dist/secrets/index.d.ts +7 -7
- package/dist/secrets/index.js +1 -1
- package/dist/secrets/secrets-context.d.ts +1 -1
- package/dist/seo/feature.d.ts +3 -3
- package/dist/seo/index.d.ts +6 -6
- package/dist/sessions/feature.d.ts +1 -1
- package/dist/sessions/index.d.ts +8 -8
- package/dist/sessions/session-callbacks.d.ts +1 -1
- package/dist/sessions/testing.d.ts +1 -1
- package/dist/shared/index.d.ts +31 -31
- package/dist/step-dispatcher/dispatch-payload.d.ts +2 -2
- package/dist/step-dispatcher/index.d.ts +3 -3
- package/dist/subscription-mollie/feature.d.ts +2 -2
- package/dist/subscription-mollie/index.d.ts +3 -3
- package/dist/subscription-mollie/verify-webhook.d.ts +1 -1
- package/dist/subscription-stripe/feature.d.ts +17 -1
- package/dist/subscription-stripe/feature.js +19 -1
- package/dist/subscription-stripe/index.d.ts +2 -2
- package/dist/subscription-stripe/index.js +1 -1
- package/dist/subscription-stripe/plugin-methods.d.ts +1 -1
- package/dist/subscription-stripe/verify-webhook.d.ts +1 -1
- package/dist/tags/feature.d.ts +0 -4
- package/dist/tags/feature.js +0 -2
- package/dist/tags/handlers/assign-tag.write.d.ts +1 -1
- package/dist/tags/handlers/remove-tag.write.d.ts +1 -1
- package/dist/tags/index.d.ts +11 -11
- package/dist/tags/index.js +1 -1
- package/dist/tags/web/index.d.ts +9 -9
- package/dist/template-resolver/api.d.ts +4 -4
- package/dist/template-resolver/constants.d.ts +1 -1
- package/dist/template-resolver/document-sanitizer.d.ts +1 -1
- package/dist/template-resolver/handlers/bundle-import.d.ts +3 -3
- package/dist/template-resolver/handlers/collection-shared.d.ts +2 -2
- package/dist/template-resolver/handlers/copy-locale.write.d.ts +1 -1
- package/dist/template-resolver/handlers/diff-to-system.query.d.ts +1 -1
- package/dist/template-resolver/handlers/find-by-id.query.d.ts +1 -1
- package/dist/template-resolver/handlers/import-bundle-system.write.d.ts +1 -1
- package/dist/template-resolver/handlers/import-bundle.write.d.ts +1 -1
- package/dist/template-resolver/handlers/layout-source.query.d.ts +3 -3
- package/dist/template-resolver/handlers/override-diff.d.ts +2 -2
- package/dist/template-resolver/handlers/overview.query.d.ts +3 -3
- package/dist/template-resolver/handlers/preview.query.d.ts +1 -1
- package/dist/template-resolver/handlers/resource-link-pdf.write.d.ts +1 -1
- package/dist/template-resolver/handlers/resource-upload.write.d.ts +1 -1
- package/dist/template-resolver/handlers/send-test.write.d.ts +1 -1
- package/dist/template-resolver/handlers/shared.d.ts +1 -1
- package/dist/template-resolver/handlers/template-gates.d.ts +4 -4
- package/dist/template-resolver/handlers/template-write.d.ts +4 -4
- package/dist/template-resolver/handlers/tenant-overrides.query.d.ts +1 -1
- package/dist/template-resolver/handlers/toggle-status.write.d.ts +1 -1
- package/dist/template-resolver/handlers/upsert-system.write.d.ts +1 -1
- package/dist/template-resolver/handlers/upsert-tenant.write.d.ts +1 -1
- package/dist/template-resolver/handlers/usage.query.d.ts +1 -1
- package/dist/template-resolver/handlers/validate.query.d.ts +3 -3
- package/dist/template-resolver/index.d.ts +25 -25
- package/dist/template-resolver/layout-appearance.d.ts +1 -1
- package/dist/template-resolver/layout-regions.d.ts +2 -2
- package/dist/template-resolver/linked-resources.d.ts +1 -1
- package/dist/template-resolver/preview-display-html.d.ts +1 -1
- package/dist/template-resolver/resource-image.d.ts +1 -1
- package/dist/template-resolver/seeding.d.ts +2 -2
- package/dist/template-resolver/store-template-resource.d.ts +1 -1
- package/dist/template-resolver/template-draft.d.ts +2 -2
- package/dist/template-resolver/template-meta.d.ts +2 -2
- package/dist/template-resolver/template-preview.d.ts +7 -6
- package/dist/template-resolver/template-preview.js +19 -12
- package/dist/template-resolver/template-resources.d.ts +1 -1
- package/dist/template-resolver/template-usage.d.ts +3 -1
- package/dist/template-resolver/template-usage.js +1 -0
- package/dist/template-resolver/template-validation.d.ts +1 -1
- package/dist/template-resolver/testing.d.ts +1 -1
- package/dist/template-resolver/user-content-table.d.ts +1 -1
- package/dist/template-resolver/web/document-editor-extensions.d.ts +1 -1
- package/dist/template-resolver/web/document-editor-extensions.js +6 -2
- package/dist/template-resolver/web/document-editor.d.ts +1 -1
- package/dist/template-resolver/web/document-tiptap-editor.d.ts +1 -1
- package/dist/template-resolver/web/document-tiptap-editor.js +13 -10
- package/dist/template-resolver/web/editor-handle.d.ts +1 -1
- package/dist/template-resolver/web/index.d.ts +7 -7
- package/dist/template-resolver/web/placeholder-line-editor-lazy.d.ts +2 -2
- package/dist/template-resolver/web/placeholder-line-editor.d.ts +1 -1
- package/dist/template-resolver-user-data/index.d.ts +0 -4
- package/dist/template-resolver-user-data/index.js +0 -2
- package/dist/tenant/feature.d.ts +1 -1
- package/dist/tenant/index.d.ts +10 -10
- package/dist/tenant/is-tenant-serving-public-content.d.ts +1 -1
- package/dist/tenant/testing.d.ts +1 -1
- package/dist/tenant/web/index.d.ts +3 -3
- package/dist/tenant-handover/feature.d.ts +1 -1
- package/dist/tenant-handover/index.d.ts +3 -3
- package/dist/tenant-handover/signup-handover-provider.d.ts +1 -1
- package/dist/tenant-lifecycle/feature.d.ts +2 -2
- package/dist/tenant-lifecycle/index.d.ts +3 -3
- package/dist/tenant-lifecycle/run-tenant-destroy.d.ts +1 -1
- package/dist/tenant-lifecycle/stages.d.ts +1 -1
- package/dist/tenant-lifecycle/testing.d.ts +1 -1
- package/dist/tenant-settings/feature.d.ts +1 -3
- package/dist/tenant-settings/feature.js +0 -2
- package/dist/tenant-settings/index.d.ts +4 -4
- package/dist/tenant-settings/index.js +1 -1
- package/dist/tier-engine/entity.d.ts +1 -1
- package/dist/tier-engine/feature.d.ts +2 -4
- package/dist/tier-engine/feature.js +0 -2
- package/dist/tier-engine/handlers/get-tenant-tier.query.d.ts +1 -1
- package/dist/tier-engine/i18n.d.ts +0 -2
- package/dist/tier-engine/i18n.js +4 -4
- package/dist/tier-engine/index.d.ts +8 -8
- package/dist/tier-engine/index.js +1 -1
- package/dist/tier-engine/tier-option-gate.d.ts +1 -1
- package/dist/tier-engine/tier-resolver.d.ts +1 -1
- package/dist/tier-engine/web/client-plugin.js +3 -2
- package/dist/tier-engine/web/index.d.ts +1 -1
- package/dist/user/index.d.ts +8 -8
- package/dist/user/invited-global-roles.d.ts +1 -1
- package/dist/user/principal-status.d.ts +1 -1
- package/dist/user/seeding.d.ts +1 -1
- package/dist/user/testing.d.ts +1 -1
- package/dist/user-data-rights/deletion-token.d.ts +1 -1
- package/dist/user-data-rights/feature.d.ts +5 -5
- package/dist/user-data-rights/handlers/request-deletion.write.d.ts +1 -1
- package/dist/user-data-rights/handlers/run-forget-cleanup.write.d.ts +3 -3
- package/dist/user-data-rights/index.d.ts +13 -13
- package/dist/user-data-rights/lib/default-mailers.d.ts +4 -4
- package/dist/user-data-rights/web/client-plugin.d.ts +1 -1
- package/dist/user-data-rights/web/index.d.ts +8 -8
- package/dist/user-data-rights-defaults/index.d.ts +11 -11
- package/dist/user-profile/index.d.ts +2 -2
- package/dist/user-profile/web/index.d.ts +2 -2
- package/dist/waitlist/constants.d.ts +9 -0
- package/dist/waitlist/constants.js +11 -0
- package/dist/waitlist/entity.d.ts +38 -6
- package/dist/waitlist/entity.js +4 -2
- package/dist/waitlist/entries-admin.d.ts +4 -0
- package/dist/waitlist/entries-admin.js +42 -0
- package/dist/waitlist/feature.d.ts +1 -1
- package/dist/waitlist/feature.js +16 -1
- package/dist/waitlist/handlers/export-purge.write.d.ts +12 -0
- package/dist/waitlist/handlers/export-purge.write.js +61 -0
- package/dist/waitlist/handlers/invite.write.d.ts +1 -1
- package/dist/waitlist/handlers/submit.write.d.ts +1 -1
- package/dist/waitlist/i18n.js +4 -0
- package/dist/waitlist/import.d.ts +24 -0
- package/dist/waitlist/import.js +51 -0
- package/dist/waitlist/index.d.ts +7 -5
- package/dist/waitlist/index.js +2 -0
- package/dist/waitlist/legacy-migrate.d.ts +27 -0
- package/dist/waitlist/legacy-migrate.js +173 -0
- package/dist/waitlist/lib.d.ts +2 -2
- package/dist/waitlist/link-on-signup.d.ts +3 -0
- package/dist/waitlist/link-on-signup.js +83 -0
- package/dist/waitlist/options.d.ts +11 -3
- package/dist/waitlist/payloads.d.ts +3 -0
- package/dist/waitlist/payloads.js +1 -0
- package/dist/workflow-runner/feature.d.ts +0 -4
- package/dist/workflow-runner/feature.js +0 -2
- package/dist/workflow-runner/index.d.ts +4 -4
- package/dist/workflow-runner/index.js +1 -1
- package/package.json +43 -27
- package/src/account-security/changes.json +8 -0
- package/src/auth-email-password/changes.json +6 -0
- package/src/auth-foundation/changes.json +8 -0
- package/src/auth-mfa/changes.json +6 -0
- package/src/auth-mfa-user-data/changes.json +10 -1
- package/src/billing-foundation/changes.json +8 -0
- package/src/cap-counter/changes.json +8 -0
- package/src/channel-email/changes.json +6 -0
- package/src/compliance-profiles-ops/changes.json +10 -0
- package/src/crypto-shredding/changes.json +6 -0
- package/src/custom-fields/changes.json +8 -0
- package/src/delivery/changes.json +6 -0
- package/src/derivatives-sharp/changes.json +8 -0
- package/src/document-ingest-foundation/changes.json +8 -0
- package/src/file-derivatives/changes.json +8 -0
- package/src/file-foundation/changes.json +8 -0
- package/src/file-provider-inmemory/changes.json +10 -1
- package/src/file-provider-s3/changes.json +22 -0
- package/src/folders/changes.json +8 -0
- package/src/folders-user-data/changes.json +10 -1
- package/src/form-draft/changes.json +8 -0
- package/src/form-draft-user-data/changes.json +10 -1
- package/src/foundation-shared/changes.json +8 -1
- package/src/host-routing/changes.json +8 -0
- package/src/inbound-mail-foundation/changes.json +8 -0
- package/src/inbound-provider-imap/changes.json +8 -0
- package/src/inbound-provider-inmemory/changes.json +10 -1
- package/src/ledger/changes.json +8 -0
- package/src/legal-pages/changes.json +6 -0
- package/src/mail-foundation/changes.json +10 -1
- package/src/mail-transport-inmemory/changes.json +10 -1
- package/src/mail-transport-smtp/changes.json +8 -0
- package/src/notes-history/changes.json +8 -0
- package/src/notes-history-user-data/changes.json +8 -0
- package/src/presets/changes.json +6 -0
- package/src/readiness/changes.json +10 -1
- package/src/secrets/changes.json +12 -0
- package/src/subscription-stripe/changes.json +6 -0
- package/src/tags/changes.json +8 -0
- package/src/template-resolver/changes.json +6 -0
- package/src/template-resolver-user-data/changes.json +10 -0
- package/src/tenant-settings/changes.json +10 -1
- package/src/tier-engine/changes.json +8 -0
- package/src/waitlist/changes.json +7 -0
- package/src/workflow-runner/changes.json +8 -0
- package/dist/file-provider-s3-env/index.d.ts +0 -8
- package/dist/file-provider-s3-env/index.js +0 -7
- package/dist/files-provider-s3/index.d.ts +0 -5
- package/dist/files-provider-s3/index.js +0 -5
- package/src/file-provider-s3-env/changes.json +0 -1
- package/src/files-provider-s3/changes.json +0 -1
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
// scoped SecretsContext als 3. Arg durch, aus dem der Plugin api-key +
|
|
32
32
|
// webhook-secret un-audited liest (sanctioned framework-internal read).
|
|
33
33
|
import { access, createSystemConfig, defineFeature, } from "@cosmicdrift/kumiko-framework/engine";
|
|
34
|
+
import { featureWithEnvSchema } from "@cosmicdrift/kumiko-framework/env";
|
|
34
35
|
import * as z from "zod";
|
|
35
36
|
import { STRIPE_API_KEY_CONFIG, STRIPE_BILLING_LIVE_CONFIG, STRIPE_PROVIDER_NAME, STRIPE_WEBHOOK_SECRET_CONFIG, SUBSCRIPTION_STRIPE_FEATURE, } from "./constants.js";
|
|
36
37
|
import { createStripeCancelSubscription, createStripeCheckoutSession, createStripePlanSwitchSession, createStripePortalSession, createStripePriceCache, createStripeRetrievePrices, createStripeRetrieveSubscription, } from "./plugin-methods.js";
|
|
@@ -58,6 +59,22 @@ export const subscriptionStripeEnvSchema = z.object({
|
|
|
58
59
|
.meta({ kumiko: { pulumi: { secret: true } } })
|
|
59
60
|
.optional(),
|
|
60
61
|
});
|
|
62
|
+
/** Stripe env block plus one `STRIPE_PRICE_<NAME>` slot per price the app
|
|
63
|
+
* maps to a tier, e.g. `stripeEnvSchema({ prices: ["PRO", "TEAM"] })`.
|
|
64
|
+
* Shares its bridge fields with `subscriptionStripeEnvSchema`, so spreading
|
|
65
|
+
* it into `composeEnvSchema({ extend })` next to the mounted feature is no
|
|
66
|
+
* key clash. */
|
|
67
|
+
export function stripeEnvSchema(options) {
|
|
68
|
+
const priceShape = Object.fromEntries(options.prices.map((price) => [
|
|
69
|
+
`STRIPE_PRICE_${price}`,
|
|
70
|
+
z
|
|
71
|
+
.string()
|
|
72
|
+
.regex(/^price_/, `STRIPE_PRICE_${price} must start with 'price_'`)
|
|
73
|
+
.optional()
|
|
74
|
+
.describe(`Stripe price id (\`price_...\`) of the ${price} plan.`),
|
|
75
|
+
]));
|
|
76
|
+
return z.object({ ...subscriptionStripeEnvSchema.shape, ...priceShape });
|
|
77
|
+
}
|
|
61
78
|
// Validated once at feature-build time (not per-request) so a config typo
|
|
62
79
|
// (a pasted-twice priceId, a blank string from a bad env-join) fails app
|
|
63
80
|
// startup instead of silently widening — or narrowing — the one-off
|
|
@@ -83,7 +100,7 @@ function validateOneOffPriceIds(priceIds) {
|
|
|
83
100
|
*/
|
|
84
101
|
export function createSubscriptionStripeFeature(options = {}) {
|
|
85
102
|
validateOneOffPriceIds(options.oneOffPriceIds ?? []);
|
|
86
|
-
|
|
103
|
+
const feature = defineFeature(SUBSCRIPTION_STRIPE_FEATURE, (r) => {
|
|
87
104
|
r.describe('Stripe payment provider plugin for `billing-foundation`. Reads its Stripe API key + webhook secret from system config keys with `backing:"secrets"` (envelope-encrypted in the secrets store under the system tenant) and a `billingLive` **system config** flag — all at runtime, so keys rotate and prod goes live without a redeploy. The `mask` on each key derives the sysadmin settings screen + nav, so no app wires a hand-written config UI. Mount via `createSubscriptionStripeFeature({ priceToTier })`; the optional `apiKey`/`webhookSecret` options are env→secrets bridge fallbacks. The plugin always mounts — `createCheckoutSession` throws `feature_disabled` unless `billingLive` is true, so sk_test_ keys in prod never produce a live checkout. Implements webhook verify, checkout, portal, cancel, `retrievePrices` (10-minute TTL-cached price lookup for the billing-plans catalog), `createPlanSwitchSession` (auto-provisions a Customer-Portal configuration for switching an existing subscription to another plan tier — each tier needs its own Stripe product), `retrieveSubscription` (live provider-side snapshot for the `sync-subscriptions` backfill job, mapped identically to the webhook path), plus `isBillingEnabled` (billingLive + an api-key existence probe, no secret read).');
|
|
88
105
|
r.uiHints({
|
|
89
106
|
displayLabel: "Billing · Stripe",
|
|
@@ -176,4 +193,5 @@ export function createSubscriptionStripeFeature(options = {}) {
|
|
|
176
193
|
r.useExtension("subscriptionProvider", STRIPE_PROVIDER_NAME, plugin);
|
|
177
194
|
return { configKeys };
|
|
178
195
|
});
|
|
196
|
+
return featureWithEnvSchema(feature, subscriptionStripeEnvSchema);
|
|
179
197
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { STRIPE_PROVIDER_NAME, StripeEventTypes, SUBSCRIPTION_STRIPE_FEATURE, } from "./constants.
|
|
2
|
-
export { createSubscriptionStripeFeature, type SubscriptionStripeOptions, subscriptionStripeEnvSchema, } from "./feature.
|
|
1
|
+
export { STRIPE_PROVIDER_NAME, StripeEventTypes, SUBSCRIPTION_STRIPE_FEATURE, } from "./constants.ts";
|
|
2
|
+
export { createSubscriptionStripeFeature, type SubscriptionStripeOptions, stripeEnvSchema, subscriptionStripeEnvSchema, } from "./feature.ts";
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
// - mapStripeEventType / mapStripeStatus (pure helpers, test-only;
|
|
7
7
|
// direct-import aus dem File wenn echt mal extern gebraucht)
|
|
8
8
|
export { STRIPE_PROVIDER_NAME, StripeEventTypes, SUBSCRIPTION_STRIPE_FEATURE, } from "./constants.js";
|
|
9
|
-
export { createSubscriptionStripeFeature, subscriptionStripeEnvSchema, } from "./feature.js";
|
|
9
|
+
export { createSubscriptionStripeFeature, stripeEnvSchema, subscriptionStripeEnvSchema, } from "./feature.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ProviderPrice, type ProviderSubscriptionSnapshot, type SubscriptionProviderPlugin } from "@cosmicdrift/kumiko-bundled-features/billing-foundation";
|
|
2
2
|
import type { HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import Stripe from "stripe";
|
|
4
|
-
import type { StripeCtxRuntime } from "./runtime.
|
|
4
|
+
import type { StripeCtxRuntime } from "./runtime.ts";
|
|
5
5
|
export type StripeCheckoutOptions = Parameters<NonNullable<SubscriptionProviderPlugin["createCheckoutSession"]>>[1];
|
|
6
6
|
export type StripeCheckoutSessionRuntimeOptions = {
|
|
7
7
|
/** Whether a mode:"payment" checkout gets a Stripe invoice. Default true.
|
|
@@ -2,7 +2,7 @@ import type { PaymentEvent, SubscriptionEvent } from "@cosmicdrift/kumiko-bundle
|
|
|
2
2
|
import { type SubscriptionEventType, type SubscriptionStatus } from "@cosmicdrift/kumiko-bundled-features/billing-foundation";
|
|
3
3
|
import type { SecretsContext } from "@cosmicdrift/kumiko-framework/secrets";
|
|
4
4
|
import Stripe from "stripe";
|
|
5
|
-
import type { StripeWebhookRuntime } from "./runtime.
|
|
5
|
+
import type { StripeWebhookRuntime } from "./runtime.ts";
|
|
6
6
|
export declare function isResourceMissingStripeError(error: unknown): error is Stripe.errors.StripeInvalidRequestError;
|
|
7
7
|
export type StripeWebhookOptions = {
|
|
8
8
|
/** Price-to-tier-Map. Plugin liest die price-id aus dem event und
|
package/dist/tags/feature.d.ts
CHANGED
|
@@ -45,8 +45,4 @@ export type TagsFeatureOptions = {
|
|
|
45
45
|
readonly parents?: readonly string[];
|
|
46
46
|
};
|
|
47
47
|
export declare function createTagsFeature(opts?: TagsFeatureOptions): typeof defaultTagsFeature;
|
|
48
|
-
/** @deprecated Use createTagsFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
49
|
-
export declare const tagsFeature: import("@cosmicdrift/kumiko-types/feature").FeatureDefinition & {
|
|
50
|
-
readonly exports: void;
|
|
51
|
-
};
|
|
52
48
|
export {};
|
package/dist/tags/feature.js
CHANGED
|
@@ -113,5 +113,3 @@ export function createTagsFeature(opts = {}) {
|
|
|
113
113
|
const access = resolveAccess(opts);
|
|
114
114
|
return defineFeature(TAGS_FEATURE_NAME, (r) => registerTags(r, access, opts.toggleable, opts.ownership, opts.parents));
|
|
115
115
|
}
|
|
116
|
-
/** @deprecated Use createTagsFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
|
|
117
|
-
export const tagsFeature = createTagsFeature();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { tagAssignmentExecutor } from "../executor.
|
|
2
|
+
import { tagAssignmentExecutor } from "../executor.ts";
|
|
3
3
|
export declare function createAssignTagHandler(access?: AccessRule, assignmentExecutor?: typeof tagAssignmentExecutor): WriteHandlerDef;
|
|
4
4
|
export declare const assignTagHandler: WriteHandlerDef;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { tagAssignmentExecutor } from "../executor.
|
|
2
|
+
import { tagAssignmentExecutor } from "../executor.ts";
|
|
3
3
|
export declare function createRemoveTagHandler(access?: AccessRule, assignmentExecutor?: typeof tagAssignmentExecutor): WriteHandlerDef;
|
|
4
4
|
export declare const removeTagHandler: WriteHandlerDef;
|
package/dist/tags/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { tagAssignmentAggregateId } from "./aggregate-id.
|
|
2
|
-
export { DEFAULT_TAG_ACCESS, DEFAULT_TAG_ROLES, TAGS_COLUMN_RENDERER_NAME, TAGS_EDIT_SCREEN_ID, TAGS_FEATURE_NAME, TAGS_FILTER_EXTENSION_NAME, TAGS_SCREEN_ID, TAGS_SECTION_EXTENSION_NAME, TagsHandlers, TagsQueries, } from "./constants.
|
|
3
|
-
export { tagAssignmentEntity, tagEntity } from "./entity.
|
|
4
|
-
export { createTagsFeature, type TagsFeatureOptions
|
|
5
|
-
export { assignTagHandler, createAssignTagHandler, } from "./handlers/assign-tag.write.
|
|
6
|
-
export { createCreateTagHandler, createTagHandler, } from "./handlers/create-tag.write.
|
|
7
|
-
export { createDeleteTagHandler, deleteTagHandler, } from "./handlers/delete-tag.write.
|
|
8
|
-
export { createRemoveTagHandler, removeTagHandler, } from "./handlers/remove-tag.write.
|
|
9
|
-
export { createUpdateTagHandler, updateTagHandler, } from "./handlers/update-tag.write.
|
|
10
|
-
export { type AssignTagPayload, assignTagPayloadSchema, type CreateTagPayload, createTagPayloadSchema, type DeleteTagPayload, deleteTagPayloadSchema, type RemoveTagPayload, removeTagPayloadSchema, type UpdateTagPayload, updateTagPayloadSchema, } from "./schemas.
|
|
11
|
-
export { createTagEditScreen, createTagListScreen } from "./screens.
|
|
1
|
+
export { tagAssignmentAggregateId } from "./aggregate-id.ts";
|
|
2
|
+
export { DEFAULT_TAG_ACCESS, DEFAULT_TAG_ROLES, TAGS_COLUMN_RENDERER_NAME, TAGS_EDIT_SCREEN_ID, TAGS_FEATURE_NAME, TAGS_FILTER_EXTENSION_NAME, TAGS_SCREEN_ID, TAGS_SECTION_EXTENSION_NAME, TagsHandlers, TagsQueries, } from "./constants.ts";
|
|
3
|
+
export { tagAssignmentEntity, tagEntity } from "./entity.ts";
|
|
4
|
+
export { createTagsFeature, type TagsFeatureOptions } from "./feature.ts";
|
|
5
|
+
export { assignTagHandler, createAssignTagHandler, } from "./handlers/assign-tag.write.ts";
|
|
6
|
+
export { createCreateTagHandler, createTagHandler, } from "./handlers/create-tag.write.ts";
|
|
7
|
+
export { createDeleteTagHandler, deleteTagHandler, } from "./handlers/delete-tag.write.ts";
|
|
8
|
+
export { createRemoveTagHandler, removeTagHandler, } from "./handlers/remove-tag.write.ts";
|
|
9
|
+
export { createUpdateTagHandler, updateTagHandler, } from "./handlers/update-tag.write.ts";
|
|
10
|
+
export { type AssignTagPayload, assignTagPayloadSchema, type CreateTagPayload, createTagPayloadSchema, type DeleteTagPayload, deleteTagPayloadSchema, type RemoveTagPayload, removeTagPayloadSchema, type UpdateTagPayload, updateTagPayloadSchema, } from "./schemas.ts";
|
|
11
|
+
export { createTagEditScreen, createTagListScreen } from "./screens.ts";
|
package/dist/tags/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { tagAssignmentAggregateId } from "./aggregate-id.js";
|
|
2
2
|
export { DEFAULT_TAG_ACCESS, DEFAULT_TAG_ROLES, TAGS_COLUMN_RENDERER_NAME, TAGS_EDIT_SCREEN_ID, TAGS_FEATURE_NAME, TAGS_FILTER_EXTENSION_NAME, TAGS_SCREEN_ID, TAGS_SECTION_EXTENSION_NAME, TagsHandlers, TagsQueries, } from "./constants.js";
|
|
3
3
|
export { tagAssignmentEntity, tagEntity } from "./entity.js";
|
|
4
|
-
export { createTagsFeature
|
|
4
|
+
export { createTagsFeature } from "./feature.js";
|
|
5
5
|
export { assignTagHandler, createAssignTagHandler, } from "./handlers/assign-tag.write.js";
|
|
6
6
|
export { createCreateTagHandler, createTagHandler, } from "./handlers/create-tag.write.js";
|
|
7
7
|
export { createDeleteTagHandler, deleteTagHandler, } from "./handlers/delete-tag.write.js";
|
package/dist/tags/web/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { TAGS_COLUMN_RENDERER_NAME, TAGS_EDIT_SCREEN_ID, TAGS_FILTER_EXTENSION_NAME, TAGS_SCREEN_ID, TAGS_SECTION_EXTENSION_NAME, TagsHandlers, TagsQueries, } from "../constants.
|
|
2
|
-
export { tagsClient } from "./client-plugin.
|
|
3
|
-
export { EntityTags } from "./entity-tags.
|
|
4
|
-
export { contrastText, TagChip } from "./tag-chip.
|
|
5
|
-
export { TagFilter } from "./tag-filter.
|
|
6
|
-
export { TagManager } from "./tag-manager.
|
|
7
|
-
export { TagPicker } from "./tag-picker.
|
|
8
|
-
export { TagSection } from "./tag-section.
|
|
9
|
-
export { TagsCell } from "./tags-cell.
|
|
1
|
+
export { TAGS_COLUMN_RENDERER_NAME, TAGS_EDIT_SCREEN_ID, TAGS_FILTER_EXTENSION_NAME, TAGS_SCREEN_ID, TAGS_SECTION_EXTENSION_NAME, TagsHandlers, TagsQueries, } from "../constants.ts";
|
|
2
|
+
export { tagsClient } from "./client-plugin.tsx";
|
|
3
|
+
export { EntityTags } from "./entity-tags.tsx";
|
|
4
|
+
export { contrastText, TagChip } from "./tag-chip.tsx";
|
|
5
|
+
export { TagFilter } from "./tag-filter.tsx";
|
|
6
|
+
export { TagManager } from "./tag-manager.tsx";
|
|
7
|
+
export { TagPicker } from "./tag-picker.tsx";
|
|
8
|
+
export { TagSection } from "./tag-section.tsx";
|
|
9
|
+
export { TagsCell } from "./tags-cell.tsx";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DbRunner, TenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { SessionUser, TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
4
|
-
import type { FileAttachmentRef } from "../renderer-foundation/index.
|
|
5
|
-
import type { ContentFormat, TemplateKind } from "./constants.
|
|
6
|
-
import { type TemplatePdfAttachmentLink } from "./linked-resources.
|
|
7
|
-
import { type TemplateMeta } from "./template-meta.
|
|
4
|
+
import type { FileAttachmentRef } from "../renderer-foundation/index.ts";
|
|
5
|
+
import type { ContentFormat, TemplateKind } from "./constants.ts";
|
|
6
|
+
import { type TemplatePdfAttachmentLink } from "./linked-resources.ts";
|
|
7
|
+
import { type TemplateMeta } from "./template-meta.ts";
|
|
8
8
|
export type TemplateResource = {
|
|
9
9
|
readonly id: string;
|
|
10
10
|
readonly version: number;
|
|
@@ -18,7 +18,7 @@ export type TemplateScope = (typeof TEMPLATE_SCOPES)[number];
|
|
|
18
18
|
export declare const TEMPLATE_STATUSES: readonly ["draft", "active", "archived"];
|
|
19
19
|
export type TemplateStatus = (typeof TEMPLATE_STATUSES)[number];
|
|
20
20
|
export declare const ACTIVE_TEMPLATE_STATUS = "active";
|
|
21
|
-
export { PDF_DEFAULT_MARGIN_MM, PDF_FOOTER_MARGIN_MM, PDF_HEADER_MARGIN_MM, PDF_ORIENTATIONS, PDF_PAGE_FORMATS, type PdfOrientation, type PdfPageFormat, } from "./pdf-constants.
|
|
21
|
+
export { PDF_DEFAULT_MARGIN_MM, PDF_FOOTER_MARGIN_MM, PDF_HEADER_MARGIN_MM, PDF_ORIENTATIONS, PDF_PAGE_FORMATS, type PdfOrientation, type PdfPageFormat, } from "./pdf-constants.ts";
|
|
22
22
|
export declare const HEX_COLOR_PATTERN: RegExp;
|
|
23
23
|
export declare const DEFAULT_MAIL_LAYOUT_SLUG = "default";
|
|
24
24
|
export declare const DEFAULT_PDF_LAYOUT_SLUG = "default";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FieldIssue } from "@cosmicdrift/kumiko-framework/errors";
|
|
2
2
|
import { type Element as ScanElement } from "happy-dom";
|
|
3
|
-
import type { ContentFormat } from "./constants.
|
|
3
|
+
import type { ContentFormat } from "./constants.ts";
|
|
4
4
|
export type DocumentViolationCode = "script_element" | "event_handler_attribute" | "disallowed_link_href" | "external_image_source" | "image_without_resource" | "invalid_reference_name" | "embedded_content" | "unsafe_attribute_value" | "button_href_not_placeholder" | "document_requires_html_format" | "layout_requires_mjml_format" | "layout_invalid_structure" | "layout_missing_content_slot" | "layout_source_system_only";
|
|
5
5
|
export type DocumentViolation = {
|
|
6
6
|
readonly code: DocumentViolationCode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BeforeTransactionResult, HandlerContext, SessionUser, TenantId, WriteResult } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { type FieldIssue } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
|
-
import type { TemplateWriteScope } from "../layout-regions.
|
|
4
|
-
import { type PreparedTemplateFile } from "../store-template-resource.
|
|
5
|
-
import type { TemplateBundle } from "../template-bundle.
|
|
3
|
+
import type { TemplateWriteScope } from "../layout-regions.ts";
|
|
4
|
+
import { type PreparedTemplateFile } from "../store-template-resource.ts";
|
|
5
|
+
import type { TemplateBundle } from "../template-bundle.ts";
|
|
6
6
|
export declare function targetExistsIssue(locale: string): FieldIssue;
|
|
7
7
|
type BundleImport = {
|
|
8
8
|
readonly ctx: HandlerContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import type { AccessRule, ContentCollectionDefinition, SessionUser, TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
4
|
-
import { templateResourcesTable } from "../table.
|
|
5
|
-
import { userContentEntriesTable } from "../user-content-table.
|
|
4
|
+
import { templateResourcesTable } from "../table.ts";
|
|
5
|
+
import { userContentEntriesTable } from "../user-content-table.ts";
|
|
6
6
|
export declare const DEFAULT_COLLECTION_ACCESS: AccessRule;
|
|
7
7
|
export type CollectionEntryRow = {
|
|
8
8
|
readonly id: string | number;
|
|
@@ -16,4 +16,4 @@ export declare const copyLocaleWrite: import("@cosmicdrift/kumiko-types/define-h
|
|
|
16
16
|
system: "system";
|
|
17
17
|
tenant: "tenant";
|
|
18
18
|
}>>;
|
|
19
|
-
}, z.core.$strip>, import("./template-write.
|
|
19
|
+
}, z.core.$strip>, import("./template-write.ts").WrittenTemplateRow, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, readonly import("../store-template-resource.ts").PreparedLinkedResourceCopy[]>;
|
|
@@ -13,7 +13,7 @@ export declare const diffToSystemQuery: import("@cosmicdrift/kumiko-types/define
|
|
|
13
13
|
contentFormat: string;
|
|
14
14
|
};
|
|
15
15
|
identical: boolean;
|
|
16
|
-
blocks: import("../template-diff.
|
|
16
|
+
blocks: import("../template-diff.ts").TemplateDiffBlock[];
|
|
17
17
|
meta: {
|
|
18
18
|
key: string;
|
|
19
19
|
tenant: unknown;
|
|
@@ -17,5 +17,5 @@ export declare const findByIdQuery: import("@cosmicdrift/kumiko-types/define-han
|
|
|
17
17
|
parentTemplateId: string | null;
|
|
18
18
|
status: string;
|
|
19
19
|
modifiedAt: Temporal.Instant | null;
|
|
20
|
-
active: import("../template-draft.
|
|
20
|
+
active: import("../template-draft.ts").ActiveInfo | null;
|
|
21
21
|
} | null, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap>;
|
|
@@ -36,4 +36,4 @@ export declare const importBundleSystemWrite: import("@cosmicdrift/kumiko-types/
|
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
}, z.core.$strip>, {
|
|
38
38
|
ids: Record<string, string>;
|
|
39
|
-
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, import("./bundle-import.
|
|
39
|
+
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, import("./bundle-import.ts").PreparedBundleResources>;
|
|
@@ -37,4 +37,4 @@ export declare const importBundleWrite: import("@cosmicdrift/kumiko-types/define
|
|
|
37
37
|
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
38
38
|
}, z.core.$strip>, {
|
|
39
39
|
ids: Record<string, string>;
|
|
40
|
-
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, import("./bundle-import.
|
|
40
|
+
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, import("./bundle-import.ts").PreparedBundleResources>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { type LayoutRegions } from "../layout-regions.
|
|
3
|
-
import { type ActiveInfo } from "../template-draft.
|
|
4
|
-
import { type MailLayoutMeta } from "../template-meta.
|
|
2
|
+
import { type LayoutRegions } from "../layout-regions.ts";
|
|
3
|
+
import { type ActiveInfo } from "../template-draft.ts";
|
|
4
|
+
import { type MailLayoutMeta } from "../template-meta.ts";
|
|
5
5
|
export type LayoutSourceRow = {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly version: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TemplateResourceRow } from "../table.
|
|
1
|
+
import type { TemplateResourceRow } from "../table.ts";
|
|
2
2
|
export declare function buildOverrideDiff(tenantRow: TemplateResourceRow, systemRow: TemplateResourceRow): {
|
|
3
3
|
tenant: {
|
|
4
4
|
templateId: string;
|
|
@@ -11,7 +11,7 @@ export declare function buildOverrideDiff(tenantRow: TemplateResourceRow, system
|
|
|
11
11
|
contentFormat: string;
|
|
12
12
|
};
|
|
13
13
|
identical: boolean;
|
|
14
|
-
blocks: import("../template-diff.
|
|
14
|
+
blocks: import("../template-diff.ts").TemplateDiffBlock[];
|
|
15
15
|
meta: {
|
|
16
16
|
key: string;
|
|
17
17
|
tenant: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { type TemplateStatus } from "../constants.
|
|
3
|
-
import { type TemplateResourceRow } from "../table.
|
|
4
|
-
import { type EffectiveMailLayoutSlugs } from "../template-usage.
|
|
2
|
+
import { type TemplateStatus } from "../constants.ts";
|
|
3
|
+
import { type TemplateResourceRow } from "../table.ts";
|
|
4
|
+
import { type EffectiveMailLayoutSlugs } from "../template-usage.ts";
|
|
5
5
|
declare const OVERVIEW_KINDS: readonly ["mail", "document-pdf", "mail-layout", "pdf-layout"];
|
|
6
6
|
type OverviewKind = (typeof OVERVIEW_KINDS)[number];
|
|
7
7
|
export type OverviewOrigin = "tenant" | "system";
|
|
@@ -9,4 +9,4 @@ export declare const previewQuery: import("@cosmicdrift/kumiko-types/define-hand
|
|
|
9
9
|
content: z.ZodOptional<z.ZodString>;
|
|
10
10
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
11
11
|
variableSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
-
}, z.core.$strip>, import("../template-preview.
|
|
12
|
+
}, z.core.$strip>, import("../template-preview.ts").TemplatePreview, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap>;
|
|
@@ -5,4 +5,4 @@ export declare const resourceLinkPdfWrite: import("@cosmicdrift/kumiko-types/def
|
|
|
5
5
|
templateSlug: z.ZodString;
|
|
6
6
|
fileName: z.ZodString;
|
|
7
7
|
tenantIdOverride: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>, import("../store-template-resource.
|
|
8
|
+
}, z.core.$strip>, import("../store-template-resource.ts").LinkedTemplatePdfAttachment, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { type PreparedTemplateFile, type StoredTemplateAttachment, type StoredTemplateResource } from "../store-template-resource.
|
|
2
|
+
import { type PreparedTemplateFile, type StoredTemplateAttachment, type StoredTemplateResource } from "../store-template-resource.ts";
|
|
3
3
|
export declare const resourceUploadWrite: import("@cosmicdrift/kumiko-types/define-handler").WriteHandlerDefinition<"resource-upload", z.ZodObject<{
|
|
4
4
|
templateId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -9,5 +9,5 @@ export declare const sendTestWrite: import("@cosmicdrift/kumiko-types/define-han
|
|
|
9
9
|
prefixSubject: z.ZodDefault<z.ZodBoolean>;
|
|
10
10
|
}, z.core.$strip>, {
|
|
11
11
|
subject: string;
|
|
12
|
-
checks: readonly import("../template-preview.
|
|
12
|
+
checks: readonly import("../template-preview.ts").PreviewCheck[];
|
|
13
13
|
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { templateSlugSchema } from "../template-meta.
|
|
2
|
+
import { templateSlugSchema } from "../template-meta.ts";
|
|
3
3
|
export declare const executor: import("@cosmicdrift/kumiko-types/event-store-executor-types").EventStoreExecutor;
|
|
4
4
|
export declare const slugSchema: z.ZodString;
|
|
5
5
|
export { templateSlugSchema };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Registry, TemplateVariables } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import type { FieldIssue } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
|
-
import { type ContentFormat, type TemplateKind } from "../constants.
|
|
4
|
-
import { type TemplateWriteScope } from "../layout-regions.
|
|
5
|
-
import type { TemplateResourceRow } from "../table.
|
|
6
|
-
import { type TemplateValidation } from "../template-validation.
|
|
3
|
+
import { type ContentFormat, type TemplateKind } from "../constants.ts";
|
|
4
|
+
import { type TemplateWriteScope } from "../layout-regions.ts";
|
|
5
|
+
import type { TemplateResourceRow } from "../table.ts";
|
|
6
|
+
import { type TemplateValidation } from "../template-validation.ts";
|
|
7
7
|
export declare function placeholderIssues(validation: TemplateValidation, opts: {
|
|
8
8
|
readonly requireAllRequired: boolean;
|
|
9
9
|
}): FieldIssue[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type HandlerContext, type Registry, type SessionUser, type TemplateVariables, type TenantId, type WriteResult } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { type WriteFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
|
-
import type { ContentFormat, TemplateKind } from "../constants.
|
|
4
|
-
import type { TemplateWriteScope } from "../layout-regions.
|
|
5
|
-
import type { TemplateValidation } from "../template-validation.
|
|
6
|
-
import { type TemplateWriteInput, type TemplateWriteResult } from "./template-gates.
|
|
3
|
+
import type { ContentFormat, TemplateKind } from "../constants.ts";
|
|
4
|
+
import type { TemplateWriteScope } from "../layout-regions.ts";
|
|
5
|
+
import type { TemplateValidation } from "../template-validation.ts";
|
|
6
|
+
import { type TemplateWriteInput, type TemplateWriteResult } from "./template-gates.ts";
|
|
7
7
|
export type TemplateRowPayload = {
|
|
8
8
|
readonly slug: string;
|
|
9
9
|
readonly kind: TemplateKind;
|
|
@@ -38,7 +38,7 @@ export declare const tenantOverridesQuery: import("@cosmicdrift/kumiko-types/def
|
|
|
38
38
|
contentFormat: string;
|
|
39
39
|
};
|
|
40
40
|
identical: boolean;
|
|
41
|
-
blocks: import("../template-diff.
|
|
41
|
+
blocks: import("../template-diff.ts").TemplateDiffBlock[];
|
|
42
42
|
meta: {
|
|
43
43
|
key: string;
|
|
44
44
|
tenant: unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import type { TemplateResourceRow } from "../table.
|
|
3
|
+
import type { TemplateResourceRow } from "../table.ts";
|
|
4
4
|
type TemplateStatus = "active" | "archived";
|
|
5
5
|
export type StatusTarget = "own" | "system";
|
|
6
6
|
export declare function writeAccessFor(target: StatusTarget): {
|
|
@@ -21,4 +21,4 @@ export declare const upsertSystemWrite: import("@cosmicdrift/kumiko-types/define
|
|
|
21
21
|
parentTemplateId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
22
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
23
23
|
folder: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
24
|
-
}, import("zod/v4/core").$strip>, import("./template-write.
|
|
24
|
+
}, import("zod/v4/core").$strip>, import("./template-write.ts").WrittenTemplateRow, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, undefined>;
|
|
@@ -27,4 +27,4 @@ export declare const upsertTenantWrite: import("@cosmicdrift/kumiko-types/define
|
|
|
27
27
|
active: "active";
|
|
28
28
|
draft: "draft";
|
|
29
29
|
}>>;
|
|
30
|
-
}, z.core.$strip>, import("./template-write.
|
|
30
|
+
}, z.core.$strip>, import("./template-write.ts").WrittenTemplateRow, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap, undefined>;
|
|
@@ -13,5 +13,5 @@ export declare const usageQuery: import("@cosmicdrift/kumiko-types/define-handle
|
|
|
13
13
|
"text-block": "text-block";
|
|
14
14
|
}>;
|
|
15
15
|
}, z.core.$strip>, {
|
|
16
|
-
usedBy: import("../template-usage.
|
|
16
|
+
usedBy: import("../template-usage.ts").TemplateUsageEntry[];
|
|
17
17
|
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HandlerContext, type SessionUser } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import type { ContentFormat, UpsertKind } from "../constants.
|
|
4
|
-
import type { TemplateWriteScope } from "../layout-regions.
|
|
3
|
+
import type { ContentFormat, UpsertKind } from "../constants.ts";
|
|
4
|
+
import type { TemplateWriteScope } from "../layout-regions.ts";
|
|
5
5
|
type TemplateDraftInput = {
|
|
6
6
|
readonly slug: string;
|
|
7
7
|
readonly kind: UpsertKind;
|
|
@@ -29,7 +29,7 @@ export declare function validateTemplateDraft(ctx: HandlerContext, user: Session
|
|
|
29
29
|
variables: Readonly<Record<string, import("@cosmicdrift/kumiko-types/config").TemplateVariableDef>>;
|
|
30
30
|
systemPlaceholders: string[];
|
|
31
31
|
};
|
|
32
|
-
evaluation: import("./template-gates.
|
|
32
|
+
evaluation: import("./template-gates.ts").TemplateWriteResult;
|
|
33
33
|
}>;
|
|
34
34
|
export declare const validateQuery: import("@cosmicdrift/kumiko-types/define-handler").QueryHandlerDefinition<"validate", z.ZodObject<{
|
|
35
35
|
slug: z.ZodString;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { createTemplateResolverApi, type ResolveRequest, requireTemplateResolver, TemplateNotFoundError, type TemplateResolverApi, type TemplateResource, } from "./api.
|
|
2
|
-
export { type CompileDocumentBodyOptions, collectDocumentResourceKeys, compileDocumentBodyToHandlebars, toResourceDataUri, } from "./compile-document-body.
|
|
3
|
-
export { CONTENT_FORMATS, type ContentFormat, DEFAULT_MAIL_LAYOUT_SLUG, DEFAULT_PDF_LAYOUT_SLUG, DOCUMENT_HTML_KINDS, type DocumentHtmlKind, FALLBACK_LOCALE, NON_RENDER_KINDS, type NonRenderKind, PDF_DEFAULT_MARGIN_MM, PDF_FOOTER_MARGIN_MM, PDF_HEADER_MARGIN_MM, PDF_ORIENTATIONS, PDF_PAGE_FORMATS, type PdfOrientation, type PdfPageFormat, RENDER_KINDS, type RenderKind, SYSTEM_TENANT_ID, TEMPLATE_KINDS, TEMPLATE_SCOPES, TEMPLATE_STATUSES, TEXT_BLOCK_KIND, type TemplateKind, type TemplateScope, type TemplateStatus, UPSERT_KINDS, type UpsertKind, } from "./constants.
|
|
4
|
-
export { type DocumentViolation, type DocumentViolationCode, documentViolationsToFieldIssues, flattenParagraphsToLineBreaks, type SanitizeBodyResult, type SanitizeHtmlResult, sanitizeDocumentHtml, sanitizeTemplateBody, } from "./document-sanitizer.
|
|
5
|
-
export { DOCUMENT_CONDITION_ATTRIBUTE, DOCUMENT_NODE_NAMES, DOCUMENT_TEXT_ALIGNMENTS, DocumentButton, DocumentCondition, DocumentDivider, DocumentLink, DocumentPageBreak, DocumentResource, DocumentTable, DocumentTableCell, DocumentTableHeader, DocumentTableRow, DocumentTextAlign, type DocumentTextAlignment, DocumentVariable, documentExtensions, isAllowedDocumentLinkHref, isDocumentPlaceholderHref, isDocumentReferenceName, isDocumentResourceKey, } from "./document-schema.
|
|
6
|
-
export { createTemplateResolverFeature } from "./feature.
|
|
7
|
-
export type { LayoutSourceResponse, LayoutSourceRow } from "./handlers/layout-source.query.
|
|
8
|
-
export type { OverviewKindGroup, OverviewOrigin, OverviewResponse, OverviewRow, OverviewUsage, } from "./handlers/overview.query.
|
|
9
|
-
export { localeSchema } from "./handlers/shared.
|
|
10
|
-
export { isHexColor, type MailLayoutAppearance, mailLayoutAppearance, } from "./layout-appearance.
|
|
11
|
-
export { type LayoutRegions, readLayoutRegions, type SanitizeLayoutResult, sanitizeLayoutHtml, } from "./layout-regions.
|
|
12
|
-
export { fileAttachmentsOf, imageLinksOf, type LinkedResourceEntry, parseLinkedResourceEntries, pdfAttachmentLinksOf, type TemplatePdfAttachmentLink, templatePdfAttachmentLinkSchema, } from "./linked-resources.
|
|
13
|
-
export { prepareDocumentForPrint } from "./print-document.
|
|
14
|
-
export { TEMPLATE_RESOLVER_FEATURE, TemplateResolverErrors, TemplateResolverHandlers, TemplateResolverQueries, } from "./qualified-names.
|
|
15
|
-
export { mapRecordToVariables } from "./record-mapping.
|
|
16
|
-
export { type PreparedTemplateImage, prepareTemplateResourceBeforeTransaction, readTemplateResourceMaxBytes, type StoredTemplateResource, storePreparedTemplateResource, } from "./store-template-resource.
|
|
17
|
-
export { type TemplateResourceRow, templateResourceEntity, templateResourcesTable, } from "./table.
|
|
18
|
-
export { type TemplateBundle, templateBundleSchema } from "./template-bundle.
|
|
19
|
-
export { isMailTemplateMeta, type LayoutTemplateMeta, MAIL_CATEGORIES, MAIL_TONES, type MailCategory, type MailLayoutMeta, type MailTemplateMeta, type MailTone, type PdfTemplateMeta, parseTemplateMeta, pdfAttachmentFileNamePatternSchema, readMailLayoutMeta, readPdfTemplateMeta, type TemplateMeta, type TemplateMetaIssue, type TemplateMetaResult, templateSlugSchema, } from "./template-meta.
|
|
20
|
-
export { type DocumentDraftOutcome, evaluateDocumentDraft } from "./template-preview.
|
|
21
|
-
export { readTemplateResource, type TemplateResourceFile } from "./template-resources.
|
|
22
|
-
export { isSystemOnlyTemplate } from "./template-system-only.
|
|
23
|
-
export { collectTemplateUsage, type TemplateUsageEntry } from "./template-usage.
|
|
24
|
-
export { hasPlaceholderProblems, resolveTemplateVariables, SYSTEM_PLACEHOLDERS, systemPlaceholdersFor, type TemplateValidation, validateTemplatePlaceholders, } from "./template-validation.
|
|
25
|
-
export { type UserContentEntryRow, userContentEntriesTable, userContentEntryEntity, } from "./user-content-table.
|
|
1
|
+
export { createTemplateResolverApi, type ResolveRequest, requireTemplateResolver, TemplateNotFoundError, type TemplateResolverApi, type TemplateResource, } from "./api.ts";
|
|
2
|
+
export { type CompileDocumentBodyOptions, collectDocumentResourceKeys, compileDocumentBodyToHandlebars, toResourceDataUri, } from "./compile-document-body.ts";
|
|
3
|
+
export { CONTENT_FORMATS, type ContentFormat, DEFAULT_MAIL_LAYOUT_SLUG, DEFAULT_PDF_LAYOUT_SLUG, DOCUMENT_HTML_KINDS, type DocumentHtmlKind, FALLBACK_LOCALE, NON_RENDER_KINDS, type NonRenderKind, PDF_DEFAULT_MARGIN_MM, PDF_FOOTER_MARGIN_MM, PDF_HEADER_MARGIN_MM, PDF_ORIENTATIONS, PDF_PAGE_FORMATS, type PdfOrientation, type PdfPageFormat, RENDER_KINDS, type RenderKind, SYSTEM_TENANT_ID, TEMPLATE_KINDS, TEMPLATE_SCOPES, TEMPLATE_STATUSES, TEXT_BLOCK_KIND, type TemplateKind, type TemplateScope, type TemplateStatus, UPSERT_KINDS, type UpsertKind, } from "./constants.ts";
|
|
4
|
+
export { type DocumentViolation, type DocumentViolationCode, documentViolationsToFieldIssues, flattenParagraphsToLineBreaks, type SanitizeBodyResult, type SanitizeHtmlResult, sanitizeDocumentHtml, sanitizeTemplateBody, } from "./document-sanitizer.ts";
|
|
5
|
+
export { DOCUMENT_CONDITION_ATTRIBUTE, DOCUMENT_NODE_NAMES, DOCUMENT_TEXT_ALIGNMENTS, DocumentButton, DocumentCondition, DocumentDivider, DocumentLink, DocumentPageBreak, DocumentResource, DocumentTable, DocumentTableCell, DocumentTableHeader, DocumentTableRow, DocumentTextAlign, type DocumentTextAlignment, DocumentVariable, documentExtensions, isAllowedDocumentLinkHref, isDocumentPlaceholderHref, isDocumentReferenceName, isDocumentResourceKey, } from "./document-schema.ts";
|
|
6
|
+
export { createTemplateResolverFeature } from "./feature.ts";
|
|
7
|
+
export type { LayoutSourceResponse, LayoutSourceRow } from "./handlers/layout-source.query.ts";
|
|
8
|
+
export type { OverviewKindGroup, OverviewOrigin, OverviewResponse, OverviewRow, OverviewUsage, } from "./handlers/overview.query.ts";
|
|
9
|
+
export { localeSchema } from "./handlers/shared.ts";
|
|
10
|
+
export { isHexColor, type MailLayoutAppearance, mailLayoutAppearance, } from "./layout-appearance.ts";
|
|
11
|
+
export { type LayoutRegions, readLayoutRegions, type SanitizeLayoutResult, sanitizeLayoutHtml, } from "./layout-regions.ts";
|
|
12
|
+
export { fileAttachmentsOf, imageLinksOf, type LinkedResourceEntry, parseLinkedResourceEntries, pdfAttachmentLinksOf, type TemplatePdfAttachmentLink, templatePdfAttachmentLinkSchema, } from "./linked-resources.ts";
|
|
13
|
+
export { prepareDocumentForPrint } from "./print-document.ts";
|
|
14
|
+
export { TEMPLATE_RESOLVER_FEATURE, TemplateResolverErrors, TemplateResolverHandlers, TemplateResolverQueries, } from "./qualified-names.ts";
|
|
15
|
+
export { mapRecordToVariables } from "./record-mapping.ts";
|
|
16
|
+
export { type PreparedTemplateImage, prepareTemplateResourceBeforeTransaction, readTemplateResourceMaxBytes, type StoredTemplateResource, storePreparedTemplateResource, } from "./store-template-resource.ts";
|
|
17
|
+
export { type TemplateResourceRow, templateResourceEntity, templateResourcesTable, } from "./table.ts";
|
|
18
|
+
export { type TemplateBundle, templateBundleSchema } from "./template-bundle.ts";
|
|
19
|
+
export { isMailTemplateMeta, type LayoutTemplateMeta, MAIL_CATEGORIES, MAIL_TONES, type MailCategory, type MailLayoutMeta, type MailTemplateMeta, type MailTone, type PdfTemplateMeta, parseTemplateMeta, pdfAttachmentFileNamePatternSchema, readMailLayoutMeta, readPdfTemplateMeta, type TemplateMeta, type TemplateMetaIssue, type TemplateMetaResult, templateSlugSchema, } from "./template-meta.ts";
|
|
20
|
+
export { type DocumentDraftOutcome, evaluateDocumentDraft } from "./template-preview.ts";
|
|
21
|
+
export { readTemplateResource, type TemplateResourceFile } from "./template-resources.ts";
|
|
22
|
+
export { isSystemOnlyTemplate } from "./template-system-only.ts";
|
|
23
|
+
export { collectTemplateUsage, type TemplateUsageEntry } from "./template-usage.ts";
|
|
24
|
+
export { hasPlaceholderProblems, resolveTemplateVariables, SYSTEM_PLACEHOLDERS, systemPlaceholdersFor, type TemplateValidation, validateTemplatePlaceholders, } from "./template-validation.ts";
|
|
25
|
+
export { type UserContentEntryRow, userContentEntriesTable, userContentEntryEntity, } from "./user-content-table.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContentFormat } from "./constants.
|
|
2
|
-
import { type DocumentViolation, type SanitizeBodyResult } from "./document-sanitizer.
|
|
1
|
+
import type { ContentFormat } from "./constants.ts";
|
|
2
|
+
import { type DocumentViolation, type SanitizeBodyResult } from "./document-sanitizer.ts";
|
|
3
3
|
export type LayoutRegions = {
|
|
4
4
|
readonly header: string;
|
|
5
5
|
readonly signature: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import type { FileAttachmentRef } from "../renderer-foundation/index.
|
|
2
|
+
import type { FileAttachmentRef } from "../renderer-foundation/index.ts";
|
|
3
3
|
export declare const templatePdfAttachmentLinkSchema: z.ZodObject<{
|
|
4
4
|
kind: z.ZodLiteral<"rendered-pdf">;
|
|
5
5
|
templateSlug: z.ZodString;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InlineAttachmentRef } from "../renderer-foundation/index.
|
|
1
|
+
import type { InlineAttachmentRef } from "../renderer-foundation/index.ts";
|
|
2
2
|
export declare const PREVIEW_IMAGE_BUDGET_BYTES: number;
|
|
3
3
|
export type PreviewAttachmentReader = (ref: InlineAttachmentRef) => Promise<{
|
|
4
4
|
readonly content: Uint8Array;
|
|
@@ -2,8 +2,8 @@ import { type DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
|
2
2
|
import { type Registry, type SessionUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import type { Dispatcher } from "@cosmicdrift/kumiko-framework/pipeline";
|
|
4
4
|
import { type SeedIfExists } from "@cosmicdrift/kumiko-framework/seeding";
|
|
5
|
-
import { type ContentFormat, type UpsertKind } from "./constants.
|
|
6
|
-
import type { TemplateBundle } from "./template-bundle.
|
|
5
|
+
import { type ContentFormat, type UpsertKind } from "./constants.ts";
|
|
6
|
+
import type { TemplateBundle } from "./template-bundle.ts";
|
|
7
7
|
export type SeedSystemTemplateOptions = {
|
|
8
8
|
readonly slug: string;
|
|
9
9
|
readonly kind: UpsertKind;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BeforeTransactionResult, ConfigAccessor, HandlerContext, Registry, SessionUser, TenantId, WriteResult } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
import { type UploadedFileBytes } from "@cosmicdrift/kumiko-framework/files";
|
|
3
|
-
import { type LinkedResourceEntry } from "./linked-resources.
|
|
3
|
+
import { type LinkedResourceEntry } from "./linked-resources.ts";
|
|
4
4
|
export declare function readTemplateResourceMaxBytes(config: ConfigAccessor | undefined, registry: Registry): Promise<number>;
|
|
5
5
|
export type StoredTemplateResource = {
|
|
6
6
|
readonly fileRefId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
2
|
-
import { type ContentFormat } from "./constants.
|
|
3
|
-
import type { TemplateResourceRow } from "./table.
|
|
2
|
+
import { type ContentFormat } from "./constants.ts";
|
|
3
|
+
import type { TemplateResourceRow } from "./table.ts";
|
|
4
4
|
export type TemplateDraft = {
|
|
5
5
|
readonly content: string | null;
|
|
6
6
|
readonly contentFormat: ContentFormat;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { type TemplateKind } from "./constants.
|
|
3
|
-
import { MAIL_TONES, type MailTone } from "./mail-constants.
|
|
2
|
+
import { type TemplateKind } from "./constants.ts";
|
|
3
|
+
import { MAIL_TONES, type MailTone } from "./mail-constants.ts";
|
|
4
4
|
export declare const templateSlugSchema: z.ZodString;
|
|
5
5
|
export declare const MAIL_CATEGORIES: readonly ["transactional", "marketing"];
|
|
6
6
|
export type MailCategory = (typeof MAIL_CATEGORIES)[number];
|