@cosmicdrift/kumiko-bundled-features 0.406.0 → 0.409.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/feature.js +9 -1
- package/dist/admin-shell/feature.d.ts +3 -0
- package/dist/admin-shell/feature.js +1 -1
- package/dist/agent-tools/agent-manifest.js +1 -0
- package/dist/agent-tools/tool-catalog.js +1 -0
- package/dist/agent-tools/types.d.ts +4 -1
- package/dist/audit/event-classification.js +1 -0
- package/dist/auth-email-password/bootstrap.js +1 -0
- package/dist/auth-email-password/errors.js +16 -41
- package/dist/auth-email-password/web/auth-client.d.ts +8 -32
- package/dist/auth-email-password/web/auth-client.js +18 -52
- package/dist/auth-email-password/web/auth-redirect.js +2 -2
- package/dist/auth-email-password/web/confirm-account-unlock-screen.d.ts +2 -2
- package/dist/auth-email-password/web/confirm-account-unlock-screen.js +14 -35
- package/dist/auth-email-password/web/index.d.ts +1 -0
- package/dist/auth-email-password/web/index.js +1 -0
- package/dist/auth-email-password/web/read-path-param.d.ts +1 -0
- package/dist/auth-email-password/web/read-path-param.js +4 -0
- package/dist/auth-email-password/web/return-path.js +2 -2
- package/dist/auth-email-password/web/token-confirm-screen.d.ts +20 -0
- package/dist/auth-email-password/web/token-confirm-screen.js +38 -0
- package/dist/auth-email-password/web/verify-email-screen.d.ts +2 -2
- package/dist/auth-email-password/web/verify-email-screen.js +14 -37
- package/dist/auth-foundation/boot-checks.js +24 -12
- package/dist/auth-foundation/boot-rules.d.ts +27 -0
- package/dist/auth-foundation/boot-rules.js +27 -0
- package/dist/auth-mfa/errors.d.ts +1 -1
- package/dist/auth-mfa/errors.js +11 -24
- package/dist/auth-mfa/feature-exports.js +6 -45
- package/dist/auth-mfa/feature.js +7 -18
- package/dist/auth-mfa/web/mfa-client.js +11 -25
- package/dist/billing-foundation/consumer-protection/termination-notify.js +1 -0
- package/dist/billing-foundation/web/plan-price.js +7 -8
- package/dist/cap-counter/stock-cap-guard.js +1 -0
- package/dist/channel-in-app/constants.d.ts +1 -0
- package/dist/channel-in-app/feature.js +2 -0
- package/dist/channel-in-app/handlers/read-state-by-keys.query.d.ts +9 -0
- package/dist/channel-in-app/handlers/read-state-by-keys.query.js +21 -0
- package/dist/channel-in-app/in-app-channel.js +1 -0
- package/dist/channel-in-app/tables.js +5 -1
- package/dist/contact/challenge.d.ts +14 -0
- package/dist/contact/challenge.js +30 -0
- package/dist/contact/client/contact-client-source.d.ts +1 -0
- package/dist/contact/client/contact-client-source.js +203 -0
- package/dist/contact/entity.d.ts +777 -0
- package/dist/contact/entity.js +145 -0
- package/dist/contact/feature.d.ts +3 -0
- package/dist/contact/feature.js +130 -0
- package/dist/contact/handlers/access.d.ts +7 -0
- package/dist/contact/handlers/access.js +9 -0
- package/dist/contact/handlers/attempts.d.ts +14 -0
- package/dist/contact/handlers/attempts.js +54 -0
- package/dist/contact/handlers/challenge.query.d.ts +9 -0
- package/dist/contact/handlers/challenge.query.js +35 -0
- package/dist/contact/handlers/forward-request.write.d.ts +9 -0
- package/dist/contact/handlers/forward-request.write.js +61 -0
- package/dist/contact/handlers/mark-done.write.d.ts +7 -0
- package/dist/contact/handlers/mark-done.write.js +30 -0
- package/dist/contact/handlers/notify-reporter-in-app.write.d.ts +10 -0
- package/dist/contact/handlers/notify-reporter-in-app.write.js +36 -0
- package/dist/contact/handlers/open-count.d.ts +2 -0
- package/dist/contact/handlers/open-count.js +11 -0
- package/dist/contact/handlers/open-count.query.d.ts +3 -0
- package/dist/contact/handlers/open-count.query.js +13 -0
- package/dist/contact/handlers/replies.query.d.ts +11 -0
- package/dist/contact/handlers/replies.query.js +28 -0
- package/dist/contact/handlers/reply.write.d.ts +12 -0
- package/dist/contact/handlers/reply.write.js +118 -0
- package/dist/contact/handlers/report.write.d.ts +16 -0
- package/dist/contact/handlers/report.write.js +90 -0
- package/dist/contact/handlers/request-delivery.query.d.ts +16 -0
- package/dist/contact/handlers/request-delivery.query.js +85 -0
- package/dist/contact/handlers/request-detail.query.d.ts +41 -0
- package/dist/contact/handlers/request-detail.query.js +32 -0
- package/dist/contact/handlers/request-list.query.d.ts +2 -0
- package/dist/contact/handlers/request-list.query.js +9 -0
- package/dist/contact/handlers/send-reply-mail.write.d.ts +8 -0
- package/dist/contact/handlers/send-reply-mail.write.js +82 -0
- package/dist/contact/handlers/send-test.write.d.ts +5 -0
- package/dist/contact/handlers/send-test.write.js +36 -0
- package/dist/contact/handlers/submit.write.d.ts +20 -0
- package/dist/contact/handlers/submit.write.js +137 -0
- package/dist/contact/handlers/take-over-uploads.d.ts +9 -0
- package/dist/contact/handlers/take-over-uploads.js +33 -0
- package/dist/contact/i18n.d.ts +6 -0
- package/dist/contact/i18n.js +186 -0
- package/dist/contact/index.d.ts +5 -0
- package/dist/contact/index.js +4 -0
- package/dist/contact/lib.d.ts +101 -0
- package/dist/contact/lib.js +109 -0
- package/dist/contact/mail.d.ts +91 -0
- package/dist/contact/mail.js +279 -0
- package/dist/contact/options.d.ts +51 -0
- package/dist/contact/options.js +32 -0
- package/dist/contact/panels.d.ts +2 -0
- package/dist/contact/panels.js +21 -0
- package/dist/contact/payloads.d.ts +56 -0
- package/dist/contact/payloads.js +82 -0
- package/dist/contact/pow.d.ts +6 -0
- package/dist/contact/pow.js +19 -0
- package/dist/contact/screens.d.ts +5 -0
- package/dist/contact/screens.js +464 -0
- package/dist/contact/subject.d.ts +1 -0
- package/dist/contact/subject.js +13 -0
- package/dist/contact/user-agent.d.ts +1 -0
- package/dist/contact/user-agent.js +35 -0
- package/dist/contact/user-data-hooks.d.ts +3 -0
- package/dist/contact/user-data-hooks.js +129 -0
- package/dist/contact/web/constants.d.ts +127 -0
- package/dist/contact/web/constants.js +126 -0
- package/dist/contact/web/index.d.ts +1 -0
- package/dist/contact/web/index.js +1 -0
- package/dist/crypto-shredding/handlers/forget-subject.write.js +5 -13
- package/dist/data-retention/feature.js +16 -2
- package/dist/data-retention/index.d.ts +1 -0
- package/dist/data-retention/index.js +1 -0
- package/dist/data-retention/run-retention-cleanup.d.ts +14 -2
- package/dist/data-retention/run-retention-cleanup.js +102 -36
- package/dist/data-retention/tenant-destruction-hold.d.ts +23 -0
- package/dist/data-retention/tenant-destruction-hold.js +132 -0
- package/dist/delivery/address-opt-out.js +1 -0
- package/dist/delivery/channel-context.d.ts +1 -1
- package/dist/delivery/channel-context.js +2 -1
- package/dist/delivery/delivery-service.js +18 -8
- package/dist/delivery/events.d.ts +1 -0
- package/dist/delivery/events.js +2 -0
- package/dist/delivery/feature.js +3 -0
- package/dist/delivery/handlers/attempts-by-keys.query.d.ts +15 -0
- package/dist/delivery/handlers/attempts-by-keys.query.js +35 -0
- package/dist/delivery/handlers/log.query.d.ts +1 -0
- package/dist/delivery/handlers/log.query.js +1 -1
- package/dist/delivery/jobs.js +5 -2
- package/dist/delivery/tables.js +12 -2
- package/dist/delivery/types.d.ts +2 -0
- package/dist/delivery/unsubscribe-page.js +2 -0
- package/dist/delivery/web/delivery-channel-cell.js +1 -1
- package/dist/delivery/web/delivery-error-cell.js +1 -1
- package/dist/delivery/web/delivery-status-cell.js +1 -1
- package/dist/delivery/web/delivery-time-cell.js +3 -2
- package/dist/delivery/web/delivery-type-cell.js +1 -1
- package/dist/delivery/web/public-names.d.ts +1 -0
- package/dist/delivery/web/public-names.js +1 -0
- package/dist/document-ingest-foundation/boot-checks.js +19 -11
- package/dist/document-ingest-foundation/boot-rules.d.ts +17 -0
- package/dist/document-ingest-foundation/boot-rules.js +17 -0
- package/dist/document-ingest-foundation/events.d.ts +8 -0
- package/dist/document-ingest-foundation/events.js +12 -0
- package/dist/document-ingest-foundation/feature.js +30 -2
- package/dist/document-ingest-foundation/index.d.ts +3 -1
- package/dist/document-ingest-foundation/index.js +3 -1
- package/dist/document-ingest-foundation/report-ingest-progress.d.ts +14 -0
- package/dist/document-ingest-foundation/report-ingest-progress.js +20 -0
- package/dist/document-ingest-foundation/tables.d.ts +3 -0
- package/dist/document-ingest-foundation/tables.js +26 -0
- package/dist/files-tenant-data/hooks.js +4 -1
- package/dist/folders/web/folder-manager.js +3 -10
- package/dist/folders/web/folder-section.js +1 -1
- package/dist/form-draft-user-data/index.js +4 -1
- package/dist/inbound-mail-foundation/entities.d.ts +3 -0
- package/dist/inbound-mail-foundation/entities.js +2 -0
- package/dist/inbound-mail-foundation/events.d.ts +2 -0
- package/dist/inbound-mail-foundation/events.js +2 -0
- package/dist/inbound-mail-foundation/feature.js +6 -6
- package/dist/inbound-mail-foundation/handlers/attach-message-content.write.js +3 -1
- package/dist/inbound-mail-foundation/handlers/ingest-message.write.js +5 -0
- package/dist/inbound-mail-foundation/handlers/list-messages.query.js +4 -2
- package/dist/inbound-mail-foundation/handlers/message-content.d.ts +1 -0
- package/dist/inbound-mail-foundation/handlers/message-content.js +8 -0
- package/dist/inbound-mail-foundation/handlers/message-content.query.d.ts +2 -0
- package/dist/inbound-mail-foundation/handlers/message-content.query.js +1 -0
- package/dist/inbound-mail-foundation/projection.d.ts +3 -0
- package/dist/inbound-mail-foundation/projection.js +2 -0
- package/dist/inbound-mail-foundation/sanitize-inbound-html.d.ts +2 -0
- package/dist/inbound-mail-foundation/sanitize-inbound-html.js +135 -0
- package/dist/inbound-mail-foundation/types.js +1 -0
- package/dist/jobs/job-run-logger.js +16 -20
- package/dist/ledger/handlers/reports.query.js +25 -27
- package/dist/ledger/recurring.js +1 -0
- package/dist/notes-history/web/notes-section.js +3 -2
- package/dist/personal-access-tokens/feature.js +5 -18
- package/dist/personal-access-tokens/handlers/create.write.js +2 -5
- package/dist/secrets/handlers/delete.write.d.ts +4 -0
- package/dist/secrets/handlers/delete.write.js +9 -4
- package/dist/secrets/handlers/list.query.d.ts +6 -1
- package/dist/secrets/handlers/list.query.js +7 -3
- package/dist/secrets/handlers/set.write.d.ts +4 -0
- package/dist/secrets/handlers/set.write.js +10 -4
- package/dist/secrets/secret-scope.d.ts +17 -0
- package/dist/secrets/secret-scope.js +18 -0
- package/dist/sessions/feature.d.ts +3 -0
- package/dist/sessions/feature.js +13 -19
- package/dist/sessions/handlers/last-activity-probe.query.d.ts +7 -0
- package/dist/sessions/handlers/last-activity-probe.query.js +40 -0
- package/dist/sessions/handlers/last-activity-probe.route.d.ts +2 -0
- package/dist/sessions/handlers/last-activity-probe.route.js +30 -0
- package/dist/sessions/screens.js +1 -0
- package/dist/sessions/session-callbacks.d.ts +2 -0
- package/dist/sessions/session-callbacks.js +9 -7
- package/dist/sessions/web/i18n.js +4 -1
- package/dist/shared/assert-billing-live.d.ts +2 -0
- package/dist/shared/assert-billing-live.js +7 -0
- package/dist/shared/collect-extension-options.d.ts +1 -0
- package/dist/shared/collect-extension-options.js +8 -0
- package/dist/shared/index.d.ts +7 -1
- package/dist/shared/index.js +7 -1
- package/dist/shared/late-bound-slot.d.ts +5 -0
- package/dist/shared/late-bound-slot.js +13 -0
- package/dist/shared/mail-locale-templates.d.ts +1 -0
- package/dist/shared/mail-locale-templates.js +1 -1
- package/dist/shared/price-env-shape.d.ts +11 -0
- package/dist/shared/price-env-shape.js +15 -0
- package/dist/shared/purge-row-file-refs.d.ts +1 -0
- package/dist/shared/purge-row-file-refs.js +1 -1
- package/dist/shared/read-feature-export-fn.d.ts +2 -0
- package/dist/shared/read-feature-export-fn.js +11 -0
- package/dist/shared/signup-handover.js +3 -5
- package/dist/shared/tenant-destruction-hold.d.ts +23 -0
- package/dist/shared/tenant-destruction-hold.js +15 -0
- package/dist/shared/unprocessable.d.ts +4 -0
- package/dist/shared/unprocessable.js +4 -0
- package/dist/shared/web/index.d.ts +3 -0
- package/dist/shared/web/index.js +3 -0
- package/dist/subscription-paddle/feature.d.ts +1 -5
- package/dist/subscription-paddle/feature.js +7 -9
- package/dist/subscription-paddle/runtime.js +3 -7
- package/dist/subscription-stripe/feature.d.ts +1 -5
- package/dist/subscription-stripe/feature.js +7 -9
- package/dist/subscription-stripe/runtime.js +3 -7
- package/dist/tags/entity.js +1 -0
- package/dist/tags/web/tag-chip.d.ts +7 -0
- package/dist/tags/web/tag-chip.js +4 -0
- package/dist/tags/web/tag-filter.js +2 -5
- package/dist/tags/web/tag-manager.js +1 -1
- package/dist/tags/web/tag-section.js +3 -6
- package/dist/tags/web/tags-cell.js +2 -5
- package/dist/template-resolver/compile-document-body.js +12 -17
- package/dist/template-resolver/handlers/by-tenant.query.js +3 -1
- package/dist/template-resolver/handlers/discard-draft.write.js +1 -0
- package/dist/template-resolver/handlers/overview.query.js +3 -1
- package/dist/template-resolver/handlers/send-test.write.js +2 -4
- package/dist/template-resolver/handlers/toggle-status.write.js +3 -0
- package/dist/template-resolver/linked-resources.js +6 -5
- package/dist/template-resolver/store-template-resource.js +5 -10
- package/dist/template-resolver/web/document-images.js +6 -6
- package/dist/template-resolver/web/document-insert-fields.js +22 -4
- package/dist/template-resolver/web/document-schema.js +11 -12
- package/dist/template-resolver/web/tiptap-attribute-parse-rule.d.ts +15 -0
- package/dist/template-resolver/web/tiptap-attribute-parse-rule.js +11 -0
- package/dist/tenant/i18n.js +3 -0
- package/dist/tenant/schema/tenant.d.ts +9 -7
- package/dist/tenant/schema/tenant.js +1 -0
- package/dist/tenant/web/member-roles-cell.js +1 -1
- package/dist/tenant/web/member-status-cell.js +1 -1
- package/dist/tenant-inactivity/check-inactive-tenants.d.ts +3 -0
- package/dist/tenant-inactivity/check-inactive-tenants.js +184 -0
- package/dist/tenant-inactivity/constants.d.ts +10 -0
- package/dist/tenant-inactivity/constants.js +10 -0
- package/dist/tenant-inactivity/email-templates.d.ts +3 -0
- package/dist/tenant-inactivity/email-templates.js +16 -0
- package/dist/tenant-inactivity/feature.d.ts +8 -0
- package/dist/tenant-inactivity/feature.js +45 -0
- package/dist/tenant-inactivity/handlers/inactivity-state.query.d.ts +11 -0
- package/dist/tenant-inactivity/handlers/inactivity-state.query.js +45 -0
- package/dist/tenant-inactivity/handlers/keep-account.write.d.ts +8 -0
- package/dist/tenant-inactivity/handlers/keep-account.write.js +48 -0
- package/dist/tenant-inactivity/inactivity-plan.d.ts +51 -0
- package/dist/tenant-inactivity/inactivity-plan.js +113 -0
- package/dist/tenant-inactivity/index.d.ts +5 -0
- package/dist/tenant-inactivity/index.js +3 -0
- package/dist/tenant-inactivity/keep-token.d.ts +16 -0
- package/dist/tenant-inactivity/keep-token.js +24 -0
- package/dist/tenant-inactivity/mail-notifications.d.ts +4 -0
- package/dist/tenant-inactivity/mail-notifications.js +42 -0
- package/dist/tenant-inactivity/options.d.ts +27 -0
- package/dist/tenant-inactivity/options.js +5 -0
- package/dist/tenant-inactivity/remote-activity.d.ts +15 -0
- package/dist/tenant-inactivity/remote-activity.js +24 -0
- package/dist/tenant-inactivity/state-store.d.ts +10 -0
- package/dist/tenant-inactivity/state-store.js +50 -0
- package/dist/tenant-inactivity/state-table.d.ts +109 -0
- package/dist/tenant-inactivity/state-table.js +38 -0
- package/dist/tenant-lifecycle/boot-checks.js +8 -3
- package/dist/tenant-lifecycle/boot-rules.d.ts +12 -0
- package/dist/tenant-lifecycle/boot-rules.js +12 -0
- package/dist/tenant-lifecycle/feature.js +17 -2
- package/dist/tenant-lifecycle/handlers/request-destruction.write.js +11 -67
- package/dist/tenant-lifecycle/index.d.ts +1 -0
- package/dist/tenant-lifecycle/index.js +1 -0
- package/dist/tenant-lifecycle/request-tenant-destruction.d.ts +20 -0
- package/dist/tenant-lifecycle/request-tenant-destruction.js +66 -0
- package/dist/tenant-lifecycle/retention-config-destroy-hooks.d.ts +5 -0
- package/dist/tenant-lifecycle/retention-config-destroy-hooks.js +29 -0
- package/dist/tenant-lifecycle/run-tenant-destroy.d.ts +3 -0
- package/dist/tenant-lifecycle/run-tenant-destroy.js +43 -5
- package/dist/tenant-lifecycle/stages.d.ts +2 -0
- package/dist/tenant-lifecycle/stages.js +23 -2
- package/dist/tenant-lifecycle/testing.js +1 -1
- package/dist/tier-engine/caps-for-tier-from-map.d.ts +5 -0
- package/dist/tier-engine/caps-for-tier-from-map.js +12 -0
- package/dist/tier-engine/compose-app.d.ts +0 -22
- package/dist/tier-engine/compose-app.js +9 -16
- package/dist/tier-engine/index.d.ts +1 -0
- package/dist/tier-engine/index.js +1 -0
- package/dist/user/handlers/detail.query.d.ts +1 -1
- package/dist/user-data-rights/feature.js +2 -0
- package/dist/user-data-rights/run-forget-cleanup.js +2 -0
- package/dist/user-data-rights/web/privacy-center-screen.js +1 -1
- package/dist/user-data-rights/zip-path.js +1 -0
- package/dist/user-data-rights-defaults/hooks/config-value.userdata-hook.d.ts +1 -1
- package/dist/user-data-rights-defaults/hooks/config-value.userdata-hook.js +7 -20
- package/dist/user-data-rights-defaults/hooks/delivery-attempt.userdata-hook.js +3 -1
- package/dist/user-data-rights-defaults/hooks/forget-own-rows-delete-hook.d.ts +10 -0
- package/dist/user-data-rights-defaults/hooks/forget-own-rows-delete-hook.js +26 -0
- package/dist/user-data-rights-defaults/hooks/notification-preference.userdata-hook.d.ts +1 -1
- package/dist/user-data-rights-defaults/hooks/notification-preference.userdata-hook.js +7 -20
- package/dist/user-profile/handlers/change-email.write.js +2 -4
- package/dist/user-profile/web/profile-screen.js +2 -3
- package/kumiko-es-tables.json +12 -0
- package/package.json +46 -12
- package/src/admin-shell/changes.json +6 -0
- package/src/agent-tools/changes.json +6 -0
- package/src/channel-in-app/changes.json +7 -0
- package/src/contact/changes.json +27 -0
- package/src/data-retention/changes.json +6 -0
- package/src/delivery/changes.json +7 -0
- package/src/document-ingest-foundation/changes.json +6 -0
- package/src/files-tenant-data/changes.json +6 -0
- package/src/inbound-mail-foundation/changes.json +13 -0
- package/src/secrets/changes.json +6 -0
- package/src/sessions/changes.json +6 -0
- package/src/tenant-inactivity/changes.json +8 -0
- package/src/tenant-lifecycle/changes.json +18 -0
- package/src/tier-engine/changes.json +6 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createEventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
|
|
2
|
-
import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
2
|
import { configValueEntity, configValuesTable } from "../../config/index.js";
|
|
4
|
-
import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
|
|
5
3
|
import { featureMounted } from "./feature-mounted.js";
|
|
4
|
+
import { forgetOwnRowsDeleteHook } from "./forget-own-rows-delete-hook.js";
|
|
6
5
|
// userData-Hooks for config's USER-scoped rows (userId set). Tenant-/system-
|
|
7
6
|
// scope rows carry no per-user subject and stay untouched. Event-sourced
|
|
8
7
|
// entity → forget goes through the executor (rebuild replays the erasure).
|
|
@@ -28,21 +27,9 @@ export const configValueExportHook = async (ctx) => {
|
|
|
28
27
|
rows: rows.map((r) => ({ key: r["key"], value: r["value"] })),
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
|
-
export const configValueDeleteHook =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
tenantId: ctx.tenantId,
|
|
38
|
-
userId: ctx.userId,
|
|
39
|
-
});
|
|
40
|
-
const failures = [];
|
|
41
|
-
for (const row of rows) {
|
|
42
|
-
const id = row["id"]; // @cast-boundary db-row
|
|
43
|
-
if (typeof id !== "string")
|
|
44
|
-
continue;
|
|
45
|
-
collectErasureFailure(await crud.forget({ id }, systemUser, ctx.db), "config-value", id, failures);
|
|
46
|
-
}
|
|
47
|
-
throwIfErasureFailed(failures);
|
|
48
|
-
};
|
|
30
|
+
export const configValueDeleteHook = forgetOwnRowsDeleteHook({
|
|
31
|
+
featureName: "config",
|
|
32
|
+
entityName: "config-value",
|
|
33
|
+
table: configValuesTable,
|
|
34
|
+
executor: crud,
|
|
35
|
+
});
|
|
@@ -15,7 +15,9 @@ export const deliveryAttemptExportHook = async (ctx) => {
|
|
|
15
15
|
return null;
|
|
16
16
|
return {
|
|
17
17
|
entity: "delivery-attempt",
|
|
18
|
-
rows: rows.map(
|
|
18
|
+
rows: rows.map(
|
|
19
|
+
// guard:dup-ok export field selection for this entity; only the object-literal shape matches other mappers
|
|
20
|
+
(r) => ({
|
|
19
21
|
notificationType: r["notificationType"],
|
|
20
22
|
channel: r["channel"],
|
|
21
23
|
status: r["status"],
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
|
|
2
|
+
import { type UserDataDeleteHook, type UserDataHookCtx } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
|
+
type OwnRowsTable = Parameters<UserDataHookCtx["db"]["selectMany"]>[0];
|
|
4
|
+
export declare function forgetOwnRowsDeleteHook(source: {
|
|
5
|
+
readonly featureName: string;
|
|
6
|
+
readonly entityName: string;
|
|
7
|
+
readonly table: OwnRowsTable;
|
|
8
|
+
readonly executor: Pick<EventStoreExecutor, "forget">;
|
|
9
|
+
}): UserDataDeleteHook;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
|
|
3
|
+
import { featureMounted } from "./feature-mounted.js";
|
|
4
|
+
// Event-sourced rows owned by the user: forgetting goes through the executor so a rebuild replays
|
|
5
|
+
// the erasure.
|
|
6
|
+
export function forgetOwnRowsDeleteHook(source) {
|
|
7
|
+
const { featureName, entityName, table, executor } = source;
|
|
8
|
+
return async (ctx) => {
|
|
9
|
+
// skip: source feature not mounted — its table doesn't exist, nothing to erase.
|
|
10
|
+
if (!featureMounted(ctx, featureName))
|
|
11
|
+
return;
|
|
12
|
+
const systemUser = createSystemUser(ctx.tenantId);
|
|
13
|
+
const rows = await ctx.db.selectMany(table, {
|
|
14
|
+
tenantId: ctx.tenantId,
|
|
15
|
+
userId: ctx.userId,
|
|
16
|
+
});
|
|
17
|
+
const failures = [];
|
|
18
|
+
for (const row of rows) {
|
|
19
|
+
const id = row["id"]; // @cast-boundary db-row
|
|
20
|
+
if (typeof id !== "string")
|
|
21
|
+
continue;
|
|
22
|
+
collectErasureFailure(await executor.forget({ id }, systemUser, ctx.db), entityName, id, failures);
|
|
23
|
+
}
|
|
24
|
+
throwIfErasureFailed(failures);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { UserDataDeleteHook, UserDataExportHook } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
2
|
export declare const notificationPreferenceExportHook: UserDataExportHook;
|
|
3
3
|
export declare const notificationPreferenceDeleteHook: UserDataDeleteHook;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createEventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
|
|
2
|
-
import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
2
|
import { notificationPreferenceEntity, notificationPreferencesTable, } from "../../delivery/index.js";
|
|
4
|
-
import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
|
|
5
3
|
import { featureMounted } from "./feature-mounted.js";
|
|
4
|
+
import { forgetOwnRowsDeleteHook } from "./forget-own-rows-delete-hook.js";
|
|
6
5
|
// userData-Hooks for delivery's notification-preference rows. Event-sourced
|
|
7
6
|
// entity → forget goes through the executor so a rebuild replays the erasure.
|
|
8
7
|
// A preference without its user is meaningless, so both strategies purge via
|
|
@@ -31,21 +30,9 @@ export const notificationPreferenceExportHook = async (ctx) => {
|
|
|
31
30
|
})),
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
|
-
export const notificationPreferenceDeleteHook =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
tenantId: ctx.tenantId,
|
|
41
|
-
userId: ctx.userId,
|
|
42
|
-
});
|
|
43
|
-
const failures = [];
|
|
44
|
-
for (const row of rows) {
|
|
45
|
-
const id = row["id"]; // @cast-boundary db-row
|
|
46
|
-
if (typeof id !== "string")
|
|
47
|
-
continue;
|
|
48
|
-
collectErasureFailure(await crud.forget({ id }, systemUser, ctx.db), "notification-preference", id, failures);
|
|
49
|
-
}
|
|
50
|
-
throwIfErasureFailed(failures);
|
|
51
|
-
};
|
|
33
|
+
export const notificationPreferenceDeleteHook = forgetOwnRowsDeleteHook({
|
|
34
|
+
featureName: "delivery",
|
|
35
|
+
entityName: "notification-preference",
|
|
36
|
+
table: notificationPreferencesTable,
|
|
37
|
+
executor: crud,
|
|
38
|
+
});
|
|
@@ -2,7 +2,7 @@ import { createSystemUser, defineWriteHandler, SYSTEM_TENANT_ID, } from "@cosmic
|
|
|
2
2
|
import { UnprocessableError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { AuthErrors } from "../../auth-email-password/index.js";
|
|
5
|
-
import { decryptStoredPii, verifyPassword } from "../../shared/index.js";
|
|
5
|
+
import { decryptStoredPii, unprocessable, verifyPassword } from "../../shared/index.js";
|
|
6
6
|
import { UserErrors, UserHandlers, UserQueries } from "../../user/index.js";
|
|
7
7
|
import { UserProfileErrors } from "../web/constants.js";
|
|
8
8
|
// Same failure shape as auth-email-password (anti-enumeration):
|
|
@@ -10,9 +10,7 @@ import { UserProfileErrors } from "../web/constants.js";
|
|
|
10
10
|
// and i18nKey are stable public API.
|
|
11
11
|
// @wrapper-known error-helper
|
|
12
12
|
function invalidCredentials() {
|
|
13
|
-
return
|
|
14
|
-
i18nKey: "auth.errors.invalidCredentials",
|
|
15
|
-
}));
|
|
13
|
+
return unprocessable(AuthErrors.invalidCredentials, "auth.errors.invalidCredentials");
|
|
16
14
|
}
|
|
17
15
|
// Change-email — authenticated, self-only. The user confirms with their
|
|
18
16
|
// current password (re-authentication as with change-password); the new
|
|
@@ -9,9 +9,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
import { useDispatcher, usePrimitives, useTranslation, } from "@cosmicdrift/kumiko-renderer";
|
|
10
10
|
import { propertyOf } from "@cosmicdrift/kumiko-types/type-guards";
|
|
11
11
|
import { useState } from "react";
|
|
12
|
-
import { AuthHandlers } from "../../auth-email-password/web/
|
|
13
|
-
import {
|
|
14
|
-
import { StatusBanner } from "../../shared/web/status-banner.js";
|
|
12
|
+
import { AuthHandlers, requestEmailVerification } from "../../auth-email-password/web/index.js";
|
|
13
|
+
import { StatusBanner } from "../../shared/web/index.js";
|
|
15
14
|
import { UserProfileHandlers } from "./constants.js";
|
|
16
15
|
// Dispatcher failures carry an i18nKey only when the handler sets one —
|
|
17
16
|
// boundary read with a generic fallback.
|
package/kumiko-es-tables.json
CHANGED
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"module": "config/table",
|
|
20
20
|
"export": "configValuesTable"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"module": "contact/entity",
|
|
24
|
+
"export": "contactRequestTable"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"module": "contact/entity",
|
|
28
|
+
"export": "contactReplyTable"
|
|
29
|
+
},
|
|
22
30
|
{
|
|
23
31
|
"module": "data-retention/schema/tenant-retention-override",
|
|
24
32
|
"export": "tenantRetentionOverrideTable"
|
|
@@ -39,6 +47,10 @@
|
|
|
39
47
|
"module": "document-ingest-foundation/entity",
|
|
40
48
|
"export": "documentExtractsTable"
|
|
41
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"module": "document-ingest-foundation/tables",
|
|
52
|
+
"export": "documentIngestProgressTable"
|
|
53
|
+
},
|
|
42
54
|
{
|
|
43
55
|
"module": "inbound-mail-foundation/projection",
|
|
44
56
|
"export": "inboundMessagesProjectionTable"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-bundled-features",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.409.0",
|
|
4
4
|
"description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -300,6 +300,14 @@
|
|
|
300
300
|
"types": "./dist/tenant/seeding.d.ts",
|
|
301
301
|
"default": "./dist/tenant/seeding.js"
|
|
302
302
|
},
|
|
303
|
+
"./tenant-inactivity": {
|
|
304
|
+
"types": "./dist/tenant-inactivity/index.d.ts",
|
|
305
|
+
"default": "./dist/tenant-inactivity/index.js"
|
|
306
|
+
},
|
|
307
|
+
"./tenant-inactivity/email-templates": {
|
|
308
|
+
"types": "./dist/tenant-inactivity/email-templates.d.ts",
|
|
309
|
+
"default": "./dist/tenant-inactivity/email-templates.js"
|
|
310
|
+
},
|
|
303
311
|
"./tenant-lifecycle": {
|
|
304
312
|
"types": "./dist/tenant-lifecycle/index.d.ts",
|
|
305
313
|
"default": "./dist/tenant-lifecycle/index.js"
|
|
@@ -532,6 +540,14 @@
|
|
|
532
540
|
"types": "./dist/legal-pages/web/index.d.ts",
|
|
533
541
|
"default": "./dist/legal-pages/web/index.js"
|
|
534
542
|
},
|
|
543
|
+
"./contact": {
|
|
544
|
+
"types": "./dist/contact/index.d.ts",
|
|
545
|
+
"default": "./dist/contact/index.js"
|
|
546
|
+
},
|
|
547
|
+
"./contact/web": {
|
|
548
|
+
"types": "./dist/contact/web/index.d.ts",
|
|
549
|
+
"default": "./dist/contact/web/index.js"
|
|
550
|
+
},
|
|
535
551
|
"./waitlist": {
|
|
536
552
|
"types": "./dist/waitlist/index.d.ts",
|
|
537
553
|
"default": "./dist/waitlist/index.js"
|
|
@@ -570,9 +586,9 @@
|
|
|
570
586
|
}
|
|
571
587
|
},
|
|
572
588
|
"dependencies": {
|
|
573
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
574
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
575
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
589
|
+
"@cosmicdrift/kumiko-framework": "0.409.0",
|
|
590
|
+
"@cosmicdrift/kumiko-renderer": "0.409.0",
|
|
591
|
+
"@cosmicdrift/kumiko-types": "0.409.0",
|
|
576
592
|
"@mollie/api-client": "^4.6.0",
|
|
577
593
|
"@node-rs/argon2": "^2.2.2",
|
|
578
594
|
"@tiptap/core": "^3.32.2",
|
|
@@ -600,6 +616,7 @@
|
|
|
600
616
|
"qrcode": "^1.5.4",
|
|
601
617
|
"react": "^19.3.1",
|
|
602
618
|
"react-dom": "^19.3.1",
|
|
619
|
+
"sanitize-html": "^2.18.1",
|
|
603
620
|
"sharp": "^0.35.5",
|
|
604
621
|
"stripe": "^22.6.2",
|
|
605
622
|
"tailwind-merge": "^3.7.0",
|
|
@@ -887,6 +904,14 @@
|
|
|
887
904
|
"types": "./dist/tenant/seeding.d.ts",
|
|
888
905
|
"default": "./dist/tenant/seeding.js"
|
|
889
906
|
},
|
|
907
|
+
"./tenant-inactivity": {
|
|
908
|
+
"types": "./dist/tenant-inactivity/index.d.ts",
|
|
909
|
+
"default": "./dist/tenant-inactivity/index.js"
|
|
910
|
+
},
|
|
911
|
+
"./tenant-inactivity/email-templates": {
|
|
912
|
+
"types": "./dist/tenant-inactivity/email-templates.d.ts",
|
|
913
|
+
"default": "./dist/tenant-inactivity/email-templates.js"
|
|
914
|
+
},
|
|
890
915
|
"./tenant-lifecycle": {
|
|
891
916
|
"types": "./dist/tenant-lifecycle/index.d.ts",
|
|
892
917
|
"default": "./dist/tenant-lifecycle/index.js"
|
|
@@ -1119,6 +1144,14 @@
|
|
|
1119
1144
|
"types": "./dist/legal-pages/web/index.d.ts",
|
|
1120
1145
|
"default": "./dist/legal-pages/web/index.js"
|
|
1121
1146
|
},
|
|
1147
|
+
"./contact": {
|
|
1148
|
+
"types": "./dist/contact/index.d.ts",
|
|
1149
|
+
"default": "./dist/contact/index.js"
|
|
1150
|
+
},
|
|
1151
|
+
"./contact/web": {
|
|
1152
|
+
"types": "./dist/contact/web/index.d.ts",
|
|
1153
|
+
"default": "./dist/contact/web/index.js"
|
|
1154
|
+
},
|
|
1122
1155
|
"./waitlist": {
|
|
1123
1156
|
"types": "./dist/waitlist/index.d.ts",
|
|
1124
1157
|
"default": "./dist/waitlist/index.js"
|
|
@@ -1165,18 +1198,19 @@
|
|
|
1165
1198
|
"LICENSE"
|
|
1166
1199
|
],
|
|
1167
1200
|
"devDependencies": {
|
|
1201
|
+
"@cosmicdrift/kumiko-locale-de": "0.409.0",
|
|
1202
|
+
"@cosmicdrift/kumiko-locale-es": "0.409.0",
|
|
1203
|
+
"@cosmicdrift/kumiko-locale-fr": "0.409.0",
|
|
1204
|
+
"@cosmicdrift/kumiko-locale-it": "0.409.0",
|
|
1205
|
+
"@cosmicdrift/kumiko-renderer-mail-html": "0.409.0",
|
|
1206
|
+
"@cosmicdrift/kumiko-testing": "0.409.0",
|
|
1168
1207
|
"@testing-library/user-event": "^14.6.8",
|
|
1169
|
-
"@
|
|
1170
|
-
"@cosmicdrift/kumiko-locale-es": "0.406.0",
|
|
1171
|
-
"@cosmicdrift/kumiko-locale-fr": "0.406.0",
|
|
1172
|
-
"@cosmicdrift/kumiko-locale-it": "0.406.0",
|
|
1173
|
-
"@cosmicdrift/kumiko-renderer-mail-html": "0.406.0",
|
|
1208
|
+
"@types/sanitize-html": "^2.16.2",
|
|
1174
1209
|
"jsqr": "^1.4.0",
|
|
1175
|
-
"unpdf": "^1.9.1"
|
|
1176
|
-
"@cosmicdrift/kumiko-testing": "0.406.0"
|
|
1210
|
+
"unpdf": "^1.9.1"
|
|
1177
1211
|
},
|
|
1178
1212
|
"peerDependencies": {
|
|
1179
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
1213
|
+
"@cosmicdrift/kumiko-testing": "0.409.0"
|
|
1180
1214
|
},
|
|
1181
1215
|
"peerDependenciesMeta": {
|
|
1182
1216
|
"@cosmicdrift/kumiko-testing": {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "createAdminShellFeature extraPlatformPanels",
|
|
6
|
+
"detail": "`createAdminShellFeature({ extraPlatformPanels })` appends dashboard panels to the platform \"Overview\" dashboard, so a feature can put a tile (for example the open contact requests) there instead of mounting a dashboard of its own."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.392.0",
|
|
4
10
|
"type": "improvement",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Agent write handlers can be marked as proposal changes",
|
|
6
|
+
"detail": "AgentHandlerHints takes effect \"proposal\" for a write whose result is itself a suggestion that a person approves later (for example a plan step the clerk still checks). resolveAgentExposure, the agent manifest handler entry and the write ToolDispatchDescriptor carry the effect, so an agent runtime can skip its own approval step for these calls. Boot rejects effect \"proposal\" unless the handler declares risk \"low\" explicitly (the write default is mid), and rejects any effect on a query handler."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.402.0",
|
|
4
10
|
"type": "breaking",
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "In-app read state by idempotency key",
|
|
6
|
+
"detail": "Channels receive the notify `idempotencyKey` as `ChannelContext.idempotencyKey`. The in-app channel stores it in the new nullable column `in_app_messages.idempotency_key` (indexed) and the SystemAdmin query `channel-in-app:query:readStateByKeys` (`{ keys }`, 1 to 50) returns `{ key, readAt }` rows without any content, tenant-scoped. Queued delivery jobs carry the key as `notifyIdempotencyKey` in their payload.",
|
|
7
|
+
"migration": "Run `kumiko schema generate`: it adds the `idempotency_key` column and its index to `in_app_messages`. Notes sent before the migration have no key."
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"version": "0.399.0",
|
|
4
11
|
"type": "improvement",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "New bundled feature contact: public contact form with spam protection, admin replies and Telegram forwarding",
|
|
6
|
+
"detail": "`createContactFeature({ appName, telegram? })` adds a public contact form backend: the anonymous `contact:write:submit` stores a question, contact request or problem report (honeypot, single-use proof-of-work challenge from `contact:query:challenge`, minimum submit time, per-IP and per-email rate limits; spam gets the same 200 body and nothing is stored), notifies every SystemAdmin by mail and, with option `telegram: true` (default off), in a Telegram chat (adds `channel-telegram` to `requires`, the `telegramChat` config key and `contact:write:send-test`). The notification carries no personal data on any channel: only the kind, the app name and a link into the inbox, never name, address, phone, subject or message, because mail and Telegram cannot be shredded. A website sender gets a fixed acknowledgement that repeats nothing they typed (the form is no mail relay); a signed-in admin report gets a copy. The per-email limit counts only submits that passed the spam checks, `contact:write:report` is limited to 10 per hour and user, and the stored `page` loses its query string and fragment. Phone is off by default (`fields.phone`). Logged-in users file reports with `contact:write:report`; SystemAdmins answer with `contact:write:reply` (mail with Reply-To, optional in-app notice for logged-in reporters), mark requests done, and read `contact:query:request-detail`, `contact:query:replies` and `contact:query:request-delivery` (one row per channel with recipient, time and status email|telegram|reply-email|reply-in-app: pending|delivered|failed|skipped|read). Open means no answer yet: only status `open` counts. The browser client is served at `GET /contact/client.js` (`window.KumikoContact`). Requests are crypto-shredding-ready PII with EXT_USER_DATA export and erasure and a 365 day retention. The feature requires `config`, `delivery`, `user-data-rights` and `files` (a file provider must be mounted).",
|
|
7
|
+
"migration": "Run `kumiko schema generate`: it adds the `contact-request` and `contact-reply` tables. Apps mounting contact also need the delivery and channel-in-app migrations (`idempotency_key` columns) and a mounted file provider."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"version": "0.409.0",
|
|
11
|
+
"type": "improvement",
|
|
12
|
+
"title": "contact option reportCancelTarget",
|
|
13
|
+
"detail": "`createContactFeature({ reportCancelTarget })` sets the screen the Cancel button of the report form navigates to; without it the form shows no Cancel button."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"version": "0.409.0",
|
|
17
|
+
"type": "improvement",
|
|
18
|
+
"title": "contact option detailLinks; every signed-in user may report a problem",
|
|
19
|
+
"detail": "`createContactFeature({ detailLinks: { user, tenant } })` sets the screens the sender and tenant links in the request detail header open (short id or `<feature>:screen:<id>`); defaults stay `user-edit` and `tenant-edit`, `false` removes a link. `contact:write:report` and the report screen are now open to every signed-in user (`openToAll`), not only TenantAdmin and Member. The detail layout drops the phone row while `fields.phone` is off and hides it for an empty value, and the contact feature now requires `notes-history` (the detail notes section needs it)."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"version": "0.409.0",
|
|
23
|
+
"type": "fix",
|
|
24
|
+
"title": "The contact website client sends without credentials",
|
|
25
|
+
"detail": "`GET /contact/client.js` now sends the challenge and submit requests with `credentials: \"omit\"`, so a visitor who is signed in on the same domain with any role (including app roles) still submits as an anonymous caller instead of getting 403. Name and email come from the form, never from the session."
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.407.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "Anonymize no longer emits one event per run for encrypted fields",
|
|
6
|
+
"detail": "The retention cleanup compared the encrypted ciphertext with the anonymized value and treated every row with encrypted fields as still needing anonymization, so each run appended another anonymize event. The check now looks at the decrypted value, so already anonymized rows are left alone."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.372.0",
|
|
4
10
|
"type": "improvement",
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Delivery attempts remember the notify idempotencyKey; new attempts-by-keys query",
|
|
6
|
+
"detail": "`store_delivery_attempts` gets a nullable text column `idempotency_key` plus the non-unique index `(tenant_id, idempotency_key)`. Every attempt a `ctx.notify` call logs carries the call's `idempotencyKey` (the first event of an attempt stores it; later sent/failed events keep the row's value). The new SystemAdmin query `delivery:query:attempts-by-keys` (`{ keys: string[] }`, 1 to 50) returns channel, status, error code, time and recipient id of those attempts across tenants, never an address. Attempts logged before this version keep `idempotency_key = null`.",
|
|
7
|
+
"migration": "Run `kumiko schema generate`. It adds the nullable column `idempotency_key` to `store_delivery_attempts` and the index `store_delivery_attempts_tenant_id_idempotency_key_idx`. No backfill is needed; do not write the column with SQL. Every app that mounts delivery needs this migration when it bumps."
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"version": "0.389.0",
|
|
4
11
|
"type": "fix",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Ingest progress per file via reportIngestProgress",
|
|
6
|
+
"detail": "reportIngestProgress(deps, { fileRefId, pagesDone, pagesTotal }) appends a documentIngest.progress event to the file's ingest stream and runs the ingest-progress projection, which keeps one row per file in store_document_ingest_progress (documentIngestProgressTable, read by tenantId and fileRefId). The payload is validated by documentIngestProgressPayloadSchema (pagesTotal at least 1, pagesDone not above pagesTotal). Provider jobs still trigger only on documentIngest.requested. Apps need a migration for the new table."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.389.0",
|
|
4
10
|
"type": "improvement",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.407.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Tenant destruction keeps files of held rows",
|
|
6
|
+
"detail": "The fileRef destroy hook skips the fileRefs listed in heldFileRefIds, and the files prefix sweep keeps their bytes. Without a configured file provider, the retention cleanup still removes the held fileRef rows after keepFor and logs that no bytes could be deleted, so the tenant does not stay in destroyHeld forever."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.364.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "Inbound HTML sanitizer keeps quote markers so the reader can fold quoted text",
|
|
6
|
+
"detail": "The sanitizer stripped class and type attributes, so the reader never found the quote of Gmail, Apple Mail, Thunderbird, Yahoo or Outlook mails. It now keeps blockquote type=\"cite\", the classes gmail_quote, moz-cite-prefix and yahoo_quoted on div and blockquote, and the ids appendonsend and divRplyFwdMsg on div; every other class, id and type is still removed. The reader's HTML quote detection also folds moz-cite-prefix and yahoo_quoted."
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"version": "0.409.0",
|
|
10
|
+
"type": "improvement",
|
|
11
|
+
"title": "Sanitized HTML body on inbound messages (message.bodyHtml, event version 4)",
|
|
12
|
+
"detail": "ingest-message and attach-message-content run the HTML part of a mail through sanitizeInboundHtml (sanitize-html allowlist for tags, attributes, schemes and style properties; no scripts, forms, on* attributes, cid: or data: images; img src only absolute http(s), a href only absolute http(s), mailto or tel, so nothing resolves against the app origin; links open in a new tab with rel=\"noopener noreferrer\"; empty or over 500,000 bytes of UTF-8 becomes null instead of a cut-off body). Only the sanitized result reaches the event and the projection, PII-encrypted for the tenant like bodyText; the unsanitized original stays in file storage. inbound-message-received and inbound-message-content-fetched are version 4 with bodyHtml (older events upcast to null), the entity message has the new field bodyHtml, and message:content returns bodyHtml (string or null); the message list leaves bodyHtml out like bodyText.",
|
|
13
|
+
"migration": "Run `kumiko-schema generate <name>` in each app that mounts inbound-mail-foundation to get the migration for the new column read_inbound_messages.body_html. Existing messages keep bodyHtml null and show their plain text; nothing else to do."
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"version": "0.402.0",
|
|
4
17
|
"type": "breaking",
|
package/src/secrets/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "configEdit screens with scope system may map secretKeys",
|
|
6
|
+
"detail": "`secrets:write:set`, `secrets:write:delete` and `secrets:query:list` accept `scope: \"system\"`. The target is always the system tenant, chosen on the server, and only a SystemAdmin may use it (everyone else gets 403). The configEdit body sends the scope for system-scope screens; the boot validator now only rejects secretKeys on user-scope screens. The secrets access rule must include `SystemAdmin` for such a screen to work, for example `createSecretsFeature({ roles: [\"TenantAdmin\", \"SystemAdmin\"] })`. Values never go to the client."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.389.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.407.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "clock option and lastActivityProbeSecret",
|
|
6
|
+
"detail": "createSessionsFeature and createSessionCallbacks accept a clock option for deterministic tests. With lastActivityProbeSecret set, the sessions feature serves GET /sessions/last-activity for other apps of the same account (Bearer secret, constant-time compare, rate limited, 401 otherwise); the secret must be at least 32 characters, shorter ones fail at boot; without the option no route exists. fetchRemoteAppLastActivity({ url, secret }) from tenant-inactivity reads it as an activity source and uses internal egress restricted to the origin of the URL."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.390.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.407.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Warn and delete inactive free accounts",
|
|
6
|
+
"detail": "createTenantInactivityFeature({ rule } or { resolveTier, rulesByTier }, keepAccountUrl, keepAccountTokenSecret?, activitySources?) mounts a daily maintenance job that warns the tenant owners by mail before the deadline (rule.warnings, for example 30 and 7 days) and then files the normal tenant-lifecycle deletion request, with the wait period of the compliance profile. A new session, an activity source or the keep-account link in the mail restarts the period; a tier whose rule is null is exempt. The query tenant-inactivity:query:state (optional field tenantIdOverride, only for a SystemAdmin, to read another tenant) shows exempt, lastActivityAt, warningsSent, nextStep and nextStepAt. The feature requires sessions, tenant, tenant-lifecycle and delivery, and erases its state with the tenant data. Mail texts exist in en, de, es, fr and it."
|
|
7
|
+
}
|
|
8
|
+
]
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.408.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Shared lookup for single-provider extension points",
|
|
6
|
+
"detail": "findSignupHandoverProvider and findTenantDestructionHoldProvider now go through one internal helper that returns the first registered usage whose options match the provider shape. Usages with other options are still skipped, and the result is undefined when none matches."
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"version": "0.407.0",
|
|
10
|
+
"type": "improvement",
|
|
11
|
+
"title": "Tenants with blockDelete rows park in destroyHeld",
|
|
12
|
+
"detail": "When a destroying tenant owns rows of an entity with strategy blockDelete (entity default, preset, profile or per-tenant override), the destruction pauses before the tenant row in the new tenant status destroyHeld instead of deleting those rows. The sweep ignores destroyHeld tenants and hasTenantDestructionWork does not count them. The daily data-retention cleanup hard-deletes the held rows once their keepFor has passed, including their files, and then moves the tenant back to destroying in the same run. Code that switches exhaustively over the tenant status must handle destroyHeld; it is a transient state between destroying and destroyed and never the final one. The tenant's compliance profile and retention overrides are erased in the tenant-row phase through EXT_TENANT_DATA hooks, so they survive while the tenant is held."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"version": "0.407.0",
|
|
16
|
+
"type": "improvement",
|
|
17
|
+
"title": "requestTenantDestruction extracted",
|
|
18
|
+
"detail": "The core of the request-destruction handler is exported as requestTenantDestruction({ tenantId, actor, now, db, runner, registry, revokeSessions }) so other features, such as tenant-inactivity, file the same deletion request. The handler behavior is unchanged."
|
|
19
|
+
},
|
|
2
20
|
{
|
|
3
21
|
"version": "0.406.0",
|
|
4
22
|
"type": "improvement",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.408.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "capsForTierFromMap",
|
|
6
|
+
"detail": "capsForTierFromMap(tierMap, isTierName, defaultTier) returns a capsForTier function for createTierResolver. An unknown tier name falls back to defaultTier; if the map has no entry for the resolved name it throws. Apps with a hand-written capsForTier over their tier map can switch to it."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.395.0",
|
|
4
10
|
"type": "fix",
|