@cosmicdrift/kumiko-bundled-features 0.349.0 → 0.351.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.
Files changed (98) hide show
  1. package/dist/audit/handlers/list.query.js +1 -1
  2. package/dist/auth-email-password/email-templates.js +1 -1
  3. package/dist/auth-email-password/handlers/invite-create.write.js +1 -1
  4. package/dist/auth-email-password/handlers/signup-request.write.js +1 -1
  5. package/dist/auth-email-password/handlers/token-request-handler.d.ts +1 -1
  6. package/dist/auth-email-password/reset-token.d.ts +1 -1
  7. package/dist/auth-email-password/unlock-token.d.ts +1 -1
  8. package/dist/auth-email-password/verification-token.d.ts +1 -1
  9. package/dist/auth-mfa/handlers/enable-confirm-preauth.write.js +1 -1
  10. package/dist/auth-mfa/handlers/enable-confirm.write.js +1 -1
  11. package/dist/auth-mfa/hmac-token-codec.d.ts +1 -1
  12. package/dist/auth-mfa/hmac-token-codec.js +1 -1
  13. package/dist/auth-mfa/mfa-challenge-token.d.ts +1 -1
  14. package/dist/auth-mfa/mfa-challenge-token.js +1 -1
  15. package/dist/auth-mfa/mfa-preauth-setup-token.d.ts +1 -1
  16. package/dist/auth-mfa/mfa-preauth-setup-token.js +1 -1
  17. package/dist/auth-mfa/mfa-setup-token.d.ts +1 -1
  18. package/dist/auth-mfa/mfa-setup-token.js +1 -1
  19. package/dist/billing-foundation/constants.d.ts +2 -2
  20. package/dist/billing-foundation/constants.js +3 -12
  21. package/dist/billing-foundation/consumer-protection/confirmation-mail.js +1 -1
  22. package/dist/billing-foundation/consumer-protection/termination-mail.js +1 -1
  23. package/dist/billing-foundation/feature.js +2 -9
  24. package/dist/billing-foundation/handlers/sync-subscription.write.js +3 -6
  25. package/dist/cap-counter/book-cap-usage.js +1 -1
  26. package/dist/cap-counter/enforce-cap.d.ts +1 -1
  27. package/dist/cap-counter/enforce-cap.js +1 -8
  28. package/dist/channel-email/email-channel.js +13 -5
  29. package/dist/channel-email/pii-guard.js +6 -1
  30. package/dist/channel-email/smtp-transport.js +1 -0
  31. package/dist/channel-email/types.d.ts +1 -0
  32. package/dist/delivery/handlers/log.query.d.ts +1 -2
  33. package/dist/delivery/handlers/log.query.js +1 -1
  34. package/dist/delivery/jobs.js +3 -1
  35. package/dist/delivery/types.d.ts +3 -0
  36. package/dist/feature-toggles/handlers/set.write.js +1 -1
  37. package/dist/form-draft/db/queries/cleanup.d.ts +1 -1
  38. package/dist/form-draft/db/queries/cleanup.js +1 -1
  39. package/dist/form-draft/db/queries/owned-file-refs.d.ts +1 -1
  40. package/dist/form-draft/lookup.d.ts +1 -1
  41. package/dist/inbound-mail-foundation/handlers/ingest-message.write.js +1 -1
  42. package/dist/inbound-mail-foundation/oauth-access-token.d.ts +1 -1
  43. package/dist/inbound-mail-foundation/oauth-access-token.js +1 -1
  44. package/dist/inbound-mail-foundation/oauth-state.d.ts +1 -1
  45. package/dist/inbound-mail-foundation/oauth-state.js +1 -1
  46. package/dist/inbound-mail-foundation/watch-supervisor.js +1 -1
  47. package/dist/inbound-provider-imap/feature.js +1 -1
  48. package/dist/inbound-provider-imap/imap-client.js +1 -1
  49. package/dist/jobs/job-instant.d.ts +1 -1
  50. package/dist/jobs/job-instant.js +1 -1
  51. package/dist/metrics/compute.d.ts +1 -1
  52. package/dist/metrics/feature.js +1 -1
  53. package/dist/metrics/types.d.ts +1 -1
  54. package/dist/metrics/window.d.ts +1 -1
  55. package/dist/metrics/window.js +1 -1
  56. package/dist/personal-access-tokens/expiry.js +1 -1
  57. package/dist/personal-access-tokens/handlers/create.write.js +1 -1
  58. package/dist/personal-access-tokens/handlers/revoke.write.js +1 -1
  59. package/dist/personal-access-tokens/revoke-for-user.js +1 -1
  60. package/dist/renderer-simple/simple-renderer.js +49 -13
  61. package/dist/sessions/handlers/revoke-all-for-user.write.js +1 -1
  62. package/dist/sessions/handlers/revoke-all-others.write.js +1 -1
  63. package/dist/sessions/handlers/revoke.write.js +1 -1
  64. package/dist/sessions/session-callbacks.js +1 -1
  65. package/dist/shared/grace-period.d.ts +2 -1
  66. package/dist/shared/grace-period.js +3 -7
  67. package/dist/shared/row-bound-grant.d.ts +1 -1
  68. package/dist/shared/signed-token.d.ts +1 -1
  69. package/dist/shared/signed-token.js +1 -1
  70. package/dist/subscription-mollie/verify-webhook.js +1 -1
  71. package/dist/subscription-stripe/verify-webhook.js +1 -1
  72. package/dist/template-resolver/api.d.ts +1 -1
  73. package/dist/template-resolver/handlers/by-slug.query.d.ts +1 -1
  74. package/dist/template-resolver/handlers/by-tenant.query.d.ts +2 -2
  75. package/dist/template-resolver/handlers/collection-item.query.d.ts +1 -1
  76. package/dist/template-resolver/handlers/collection-list.query.d.ts +1 -1
  77. package/dist/template-resolver/handlers/collection-shared.d.ts +2 -2
  78. package/dist/template-resolver/handlers/find-by-id.query.d.ts +1 -1
  79. package/dist/template-resolver/handlers/list.query.d.ts +1 -1
  80. package/dist/template-resolver/table.d.ts +1 -1
  81. package/dist/tenant/handlers/team-list.query.d.ts +1 -1
  82. package/dist/tenant/handlers/team-list.query.js +1 -1
  83. package/dist/tenant/invited-membership.d.ts +1 -1
  84. package/dist/tenant/invited-membership.js +1 -1
  85. package/dist/tenant-handover/grant.d.ts +1 -1
  86. package/dist/user-data-rights/db/queries/export-jobs.d.ts +1 -1
  87. package/dist/user-data-rights/db/queries/forget-cleanup.d.ts +2 -2
  88. package/dist/user-data-rights/db/queries/forget-cleanup.js +2 -8
  89. package/dist/user-data-rights/deletion-token.d.ts +1 -1
  90. package/dist/user-data-rights/email-templates.d.ts +1 -0
  91. package/dist/user-data-rights/email-templates.js +27 -5
  92. package/dist/user-data-rights/handlers/list-download-attempts.query.js +1 -1
  93. package/dist/user-data-rights/handlers/my-audit-log.query.js +1 -1
  94. package/dist/user-data-rights/lib/default-mailers.js +8 -8
  95. package/dist/waitlist/handlers/invite.write.js +1 -1
  96. package/dist/waitlist/handlers/submit.write.js +1 -1
  97. package/package.json +9 -9
  98. package/src/channel-email/changes.json +6 -0
@@ -1,7 +1,7 @@
1
1
  import { fetchOne } from "@cosmicdrift/kumiko-framework/bun-db";
2
2
  import { createSystemUser, defineWriteHandler, parseTenantId, } from "@cosmicdrift/kumiko-framework/engine";
3
3
  import { InternalError, NotFoundError, UnprocessableError, writeFailure, } from "@cosmicdrift/kumiko-framework/errors";
4
- import { Temporal } from "temporal-polyfill";
4
+ import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
5
5
  import { AuthErrors, AuthHandlers } from "../../auth-email-password/index.js";
6
6
  import { TenantHandlers, tenantTable } from "../../tenant/index.js";
7
7
  import { DEFAULT_OWN_TENANT_INVITE_ROLE, WAITLIST_STATUS, WaitlistErrors } from "../constants.js";
@@ -1,7 +1,7 @@
1
1
  import { acquireNamespacedAdvisoryLock } from "@cosmicdrift/kumiko-framework/db";
2
2
  import { access, defineWriteHandler, } from "@cosmicdrift/kumiko-framework/engine";
3
3
  import { InternalError } from "@cosmicdrift/kumiko-framework/errors";
4
- import { Temporal } from "temporal-polyfill";
4
+ import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
5
5
  import { WAITLIST_NOTIFICATION_TYPES, WAITLIST_STATUS } from "../constants.js";
6
6
  import { normalizeEmail, platformActor, waitlistDb, waitlistExecutor } from "../lib.js";
7
7
  import { renderWaitlistAdminNoticeEmail, renderWaitlistConfirmationEmail, resolveWaitlistAdminMailLocale, resolveWaitlistMailLocale, } from "../mail.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-bundled-features",
3
- "version": "0.349.0",
3
+ "version": "0.351.0",
4
4
  "description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -503,12 +503,12 @@
503
503
  }
504
504
  },
505
505
  "dependencies": {
506
- "@cosmicdrift/kumiko-dispatcher-live": "0.349.0",
507
- "@cosmicdrift/kumiko-framework": "0.349.0",
508
- "@cosmicdrift/kumiko-headless": "0.349.0",
509
- "@cosmicdrift/kumiko-renderer": "0.349.0",
510
- "@cosmicdrift/kumiko-renderer-web": "0.349.0",
511
- "@cosmicdrift/kumiko-types": "0.349.0",
506
+ "@cosmicdrift/kumiko-dispatcher-live": "0.351.0",
507
+ "@cosmicdrift/kumiko-framework": "0.351.0",
508
+ "@cosmicdrift/kumiko-headless": "0.351.0",
509
+ "@cosmicdrift/kumiko-renderer": "0.351.0",
510
+ "@cosmicdrift/kumiko-renderer-web": "0.351.0",
511
+ "@cosmicdrift/kumiko-types": "0.351.0",
512
512
  "@mollie/api-client": "^4.5.0",
513
513
  "@node-rs/argon2": "^2.0.2",
514
514
  "@types/mailparser": "^3.4.6",
@@ -1025,8 +1025,8 @@
1025
1025
  ],
1026
1026
  "devDependencies": {
1027
1027
  "@testing-library/user-event": "^14.6.1",
1028
- "@cosmicdrift/kumiko-locale-de": "0.349.0",
1029
- "@cosmicdrift/kumiko-locale-es": "0.349.0",
1028
+ "@cosmicdrift/kumiko-locale-de": "0.351.0",
1029
+ "@cosmicdrift/kumiko-locale-es": "0.351.0",
1030
1030
  "jsqr": "^1.4.0"
1031
1031
  }
1032
1032
  }
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.350.0",
4
+ "type": "improvement",
5
+ "title": "Mails get a plain-text part (EmailMessage.text, NotificationRenderer.renderText, simple renderer and GDPR mails fill it)",
6
+ "detail": "Email text part\n`EmailMessage` gets an optional `text`. With it the SMTP transport sends `multipart/alternative` with a plain-text part. `NotificationRenderer` gets an optional `renderText`, which the email channel sends next to the HTML through the queued render and send jobs. `createSimpleRenderer` implements it from the template data (header, sections, footer, branding footer; buttons as `label: url`). The GDPR default mails return and send `text` as well. The PII guard checks and redacts `text` like the body."
7
+ },
2
8
  {
3
9
  "version": "0.348.1",
4
10
  "type": "fix",