@cosmicdrift/kumiko-samples 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.
Files changed (922) hide show
  1. package/package.json +1 -1
  2. package/packages/bundled-features/package.json +21 -11
  3. package/packages/bundled-features/src/account-security/README.md +31 -0
  4. package/packages/bundled-features/src/account-security/changes.json +8 -0
  5. package/packages/bundled-features/src/account-security/constants.ts +6 -0
  6. package/packages/bundled-features/src/account-security/feature.ts +100 -0
  7. package/packages/bundled-features/src/account-security/i18n.ts +9 -0
  8. package/packages/bundled-features/src/account-security/index.ts +13 -0
  9. package/packages/bundled-features/src/admin-shell/feature.ts +4 -4
  10. package/packages/bundled-features/src/admin-shell/index.ts +4 -4
  11. package/packages/bundled-features/src/admin-shell/overview-allowlist.ts +3 -3
  12. package/packages/bundled-features/src/admin-shell/overview-panels.ts +3 -3
  13. package/packages/bundled-features/src/admin-shell/web/client-plugin.tsx +2 -2
  14. package/packages/bundled-features/src/admin-shell/web/i18n.ts +1 -1
  15. package/packages/bundled-features/src/admin-shell/web/index.ts +1 -1
  16. package/packages/bundled-features/src/agent-tools/agent-doc-lint.ts +1 -1
  17. package/packages/bundled-features/src/agent-tools/agent-manifest.ts +2 -2
  18. package/packages/bundled-features/src/agent-tools/feature.ts +1 -1
  19. package/packages/bundled-features/src/agent-tools/index.ts +8 -8
  20. package/packages/bundled-features/src/agent-tools/manifest-deny-qns.ts +1 -1
  21. package/packages/bundled-features/src/agent-tools/tool-catalog.ts +3 -3
  22. package/packages/bundled-features/src/agent-tools/tool-dispatch.ts +2 -2
  23. package/packages/bundled-features/src/audit/feature.ts +6 -6
  24. package/packages/bundled-features/src/audit/handlers/details.query.ts +3 -3
  25. package/packages/bundled-features/src/audit/handlers/list.query.ts +3 -3
  26. package/packages/bundled-features/src/audit/handlers/resolve-audit-tenant.ts +1 -1
  27. package/packages/bundled-features/src/audit/index.ts +3 -3
  28. package/packages/bundled-features/src/audit/run-escape-hatch-retention.ts +4 -4
  29. package/packages/bundled-features/src/audit/web/client-plugin.tsx +2 -2
  30. package/packages/bundled-features/src/audit/web/i18n.ts +1 -1
  31. package/packages/bundled-features/src/audit/web/index.ts +1 -1
  32. package/packages/bundled-features/src/auth-email-password/bootstrap.ts +10 -10
  33. package/packages/bundled-features/src/auth-email-password/changes.json +6 -0
  34. package/packages/bundled-features/src/auth-email-password/errors.ts +1 -1
  35. package/packages/bundled-features/src/auth-email-password/feature.ts +26 -24
  36. package/packages/bundled-features/src/auth-email-password/handlers/change-password.write.ts +4 -4
  37. package/packages/bundled-features/src/auth-email-password/handlers/confirm-account-unlock.write.ts +4 -4
  38. package/packages/bundled-features/src/auth-email-password/handlers/confirm-token-flow.ts +4 -4
  39. package/packages/bundled-features/src/auth-email-password/handlers/invite-accept-with-login.write.ts +10 -10
  40. package/packages/bundled-features/src/auth-email-password/handlers/invite-accept.write.ts +7 -7
  41. package/packages/bundled-features/src/auth-email-password/handlers/invite-create.write.ts +11 -11
  42. package/packages/bundled-features/src/auth-email-password/handlers/invite-info.query.ts +5 -5
  43. package/packages/bundled-features/src/auth-email-password/handlers/invite-signup-complete.write.ts +11 -11
  44. package/packages/bundled-features/src/auth-email-password/handlers/login.write.ts +6 -6
  45. package/packages/bundled-features/src/auth-email-password/handlers/request-account-unlock.write.ts +4 -4
  46. package/packages/bundled-features/src/auth-email-password/handlers/request-email-verification.write.ts +4 -4
  47. package/packages/bundled-features/src/auth-email-password/handlers/request-password-reset.write.ts +4 -4
  48. package/packages/bundled-features/src/auth-email-password/handlers/reset-password.write.ts +6 -6
  49. package/packages/bundled-features/src/auth-email-password/handlers/self-registration-status.query.ts +1 -1
  50. package/packages/bundled-features/src/auth-email-password/handlers/signup-confirm.write.ts +7 -7
  51. package/packages/bundled-features/src/auth-email-password/handlers/signup-request.write.ts +7 -7
  52. package/packages/bundled-features/src/auth-email-password/handlers/switch-tenant-mfa-gate.write.ts +4 -4
  53. package/packages/bundled-features/src/auth-email-password/handlers/token-request-handler.ts +5 -5
  54. package/packages/bundled-features/src/auth-email-password/handlers/verify-email.write.ts +4 -4
  55. package/packages/bundled-features/src/auth-email-password/index.ts +13 -13
  56. package/packages/bundled-features/src/auth-email-password/invite-token-store.ts +1 -1
  57. package/packages/bundled-features/src/auth-email-password/lockout-store.ts +1 -1
  58. package/packages/bundled-features/src/auth-email-password/magic-link-mail.ts +2 -2
  59. package/packages/bundled-features/src/auth-email-password/mail-notifications.ts +1 -1
  60. package/packages/bundled-features/src/auth-email-password/reset-token.ts +1 -1
  61. package/packages/bundled-features/src/auth-email-password/seeding.ts +6 -6
  62. package/packages/bundled-features/src/auth-email-password/signed-token.ts +1 -1
  63. package/packages/bundled-features/src/auth-email-password/signup-activation.ts +4 -4
  64. package/packages/bundled-features/src/auth-email-password/signup-token-store.ts +1 -1
  65. package/packages/bundled-features/src/auth-email-password/testing.ts +1 -1
  66. package/packages/bundled-features/src/auth-email-password/unlock-token.ts +1 -1
  67. package/packages/bundled-features/src/auth-email-password/verification-token.ts +1 -1
  68. package/packages/bundled-features/src/auth-email-password/web/auth-gate.tsx +4 -4
  69. package/packages/bundled-features/src/auth-email-password/web/client-plugin.ts +3 -3
  70. package/packages/bundled-features/src/auth-email-password/web/confirm-account-unlock-screen.tsx +2 -2
  71. package/packages/bundled-features/src/auth-email-password/web/default-topbar-actions.tsx +2 -2
  72. package/packages/bundled-features/src/auth-email-password/web/forgot-password-screen.tsx +2 -2
  73. package/packages/bundled-features/src/auth-email-password/web/index.ts +42 -42
  74. package/packages/bundled-features/src/auth-email-password/web/invite-accept-screen.tsx +4 -4
  75. package/packages/bundled-features/src/auth-email-password/web/login-screen.tsx +4 -4
  76. package/packages/bundled-features/src/auth-email-password/web/request-account-unlock-screen.tsx +2 -2
  77. package/packages/bundled-features/src/auth-email-password/web/reset-password-screen.tsx +3 -3
  78. package/packages/bundled-features/src/auth-email-password/web/session-bootstrap-error.tsx +2 -2
  79. package/packages/bundled-features/src/auth-email-password/web/session.tsx +1 -1
  80. package/packages/bundled-features/src/auth-email-password/web/signup-complete-screen.tsx +4 -4
  81. package/packages/bundled-features/src/auth-email-password/web/signup-screen.tsx +3 -3
  82. package/packages/bundled-features/src/auth-email-password/web/tenant-menu-items.tsx +1 -1
  83. package/packages/bundled-features/src/auth-email-password/web/tenant-switcher.tsx +1 -1
  84. package/packages/bundled-features/src/auth-email-password/web/use-shell-user.ts +1 -1
  85. package/packages/bundled-features/src/auth-email-password/web/user-menu.tsx +1 -1
  86. package/packages/bundled-features/src/auth-email-password/web/verify-email-screen.tsx +2 -2
  87. package/packages/bundled-features/src/auth-foundation/boot-checks.ts +1 -1
  88. package/packages/bundled-features/src/auth-foundation/changes.json +8 -0
  89. package/packages/bundled-features/src/auth-foundation/feature.ts +3 -6
  90. package/packages/bundled-features/src/auth-foundation/index.ts +3 -4
  91. package/packages/bundled-features/src/auth-foundation/resolve-anonymous-access.ts +2 -2
  92. package/packages/bundled-features/src/auth-mfa/changes.json +6 -0
  93. package/packages/bundled-features/src/auth-mfa/db/queries.ts +1 -1
  94. package/packages/bundled-features/src/auth-mfa/env.ts +28 -0
  95. package/packages/bundled-features/src/auth-mfa/errors.ts +2 -2
  96. package/packages/bundled-features/src/auth-mfa/feature-exports.ts +100 -0
  97. package/packages/bundled-features/src/auth-mfa/feature.ts +86 -105
  98. package/packages/bundled-features/src/auth-mfa/handlers/disable.write.ts +4 -4
  99. package/packages/bundled-features/src/auth-mfa/handlers/enable-confirm-preauth.write.ts +10 -10
  100. package/packages/bundled-features/src/auth-mfa/handlers/enable-confirm.write.ts +7 -7
  101. package/packages/bundled-features/src/auth-mfa/handlers/enable-start-preauth.write.ts +9 -9
  102. package/packages/bundled-features/src/auth-mfa/handlers/enable-start.write.ts +9 -9
  103. package/packages/bundled-features/src/auth-mfa/handlers/reencrypt.job.ts +2 -2
  104. package/packages/bundled-features/src/auth-mfa/handlers/regenerate-recovery.write.ts +5 -5
  105. package/packages/bundled-features/src/auth-mfa/handlers/status.query.ts +1 -1
  106. package/packages/bundled-features/src/auth-mfa/handlers/verify.write.ts +9 -9
  107. package/packages/bundled-features/src/auth-mfa/index.ts +16 -11
  108. package/packages/bundled-features/src/auth-mfa/mfa-challenge-token.ts +1 -1
  109. package/packages/bundled-features/src/auth-mfa/mfa-code-verifier.ts +2 -2
  110. package/packages/bundled-features/src/auth-mfa/mfa-preauth-setup-token.ts +1 -1
  111. package/packages/bundled-features/src/auth-mfa/mfa-status-checker.ts +5 -5
  112. package/packages/bundled-features/src/auth-mfa/mfa-verify-attempts.ts +1 -1
  113. package/packages/bundled-features/src/auth-mfa/otpauth-uri.ts +1 -1
  114. package/packages/bundled-features/src/auth-mfa/recovery-codes.ts +1 -1
  115. package/packages/bundled-features/src/auth-mfa/screens.ts +1 -1
  116. package/packages/bundled-features/src/auth-mfa/testing.ts +1 -1
  117. package/packages/bundled-features/src/auth-mfa/token-secrets.ts +26 -0
  118. package/packages/bundled-features/src/auth-mfa/verify-factor.ts +5 -5
  119. package/packages/bundled-features/src/auth-mfa/web/client-plugin.ts +1 -1
  120. package/packages/bundled-features/src/auth-mfa/web/index.ts +15 -15
  121. package/packages/bundled-features/src/auth-mfa/web/mfa-client.ts +1 -1
  122. package/packages/bundled-features/src/auth-mfa/web/mfa-disable-dialog.tsx +1 -1
  123. package/packages/bundled-features/src/auth-mfa/web/mfa-regenerate-recovery-dialog.tsx +1 -1
  124. package/packages/bundled-features/src/auth-mfa/web/mfa-setup-preauth-screen.tsx +2 -2
  125. package/packages/bundled-features/src/auth-mfa/web/mfa-verify-screen.tsx +2 -2
  126. package/packages/bundled-features/src/auth-mfa-user-data/changes.json +10 -1
  127. package/packages/bundled-features/src/auth-mfa-user-data/hooks.ts +2 -2
  128. package/packages/bundled-features/src/auth-mfa-user-data/index.ts +1 -4
  129. package/packages/bundled-features/src/billing-foundation/billing-info-query.ts +3 -3
  130. package/packages/bundled-features/src/billing-foundation/changes.json +8 -0
  131. package/packages/bundled-features/src/billing-foundation/checkout-core.ts +3 -3
  132. package/packages/bundled-features/src/billing-foundation/consumer-protection/confirmation-mail.ts +3 -3
  133. package/packages/bundled-features/src/billing-foundation/consumer-protection/consent-gate.ts +5 -5
  134. package/packages/bundled-features/src/billing-foundation/consumer-protection/consent-text.ts +2 -2
  135. package/packages/bundled-features/src/billing-foundation/consumer-protection/issue-confirmation.ts +8 -8
  136. package/packages/bundled-features/src/billing-foundation/consumer-protection/mail-notifications.ts +4 -4
  137. package/packages/bundled-features/src/billing-foundation/consumer-protection/register-consent.ts +7 -7
  138. package/packages/bundled-features/src/billing-foundation/consumer-protection/register-termination.ts +5 -5
  139. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-mail.ts +3 -3
  140. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-notify.ts +6 -6
  141. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-pages.ts +7 -7
  142. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-record.ts +10 -10
  143. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-request.ts +12 -12
  144. package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-texts.ts +2 -2
  145. package/packages/bundled-features/src/billing-foundation/consumer-protection/withdrawal-period.ts +1 -1
  146. package/packages/bundled-features/src/billing-foundation/events.ts +2 -2
  147. package/packages/bundled-features/src/billing-foundation/feature.ts +19 -22
  148. package/packages/bundled-features/src/billing-foundation/get-subscription-for-tenant.ts +3 -3
  149. package/packages/bundled-features/src/billing-foundation/handlers/billing-plans.query.ts +4 -4
  150. package/packages/bundled-features/src/billing-foundation/handlers/create-checkout-session.write.ts +3 -3
  151. package/packages/bundled-features/src/billing-foundation/handlers/create-portal-session.write.ts +6 -6
  152. package/packages/bundled-features/src/billing-foundation/handlers/list-subscriptions.query.ts +2 -2
  153. package/packages/bundled-features/src/billing-foundation/handlers/process-event.write.ts +5 -5
  154. package/packages/bundled-features/src/billing-foundation/handlers/process-payment-event.write.ts +3 -3
  155. package/packages/bundled-features/src/billing-foundation/handlers/start-plan-checkout.write.ts +4 -4
  156. package/packages/bundled-features/src/billing-foundation/handlers/switch-plan.write.ts +5 -5
  157. package/packages/bundled-features/src/billing-foundation/handlers/sync-subscription.write.ts +4 -4
  158. package/packages/bundled-features/src/billing-foundation/index.ts +16 -16
  159. package/packages/bundled-features/src/billing-foundation/plan-catalog.ts +4 -4
  160. package/packages/bundled-features/src/billing-foundation/projection.ts +3 -3
  161. package/packages/bundled-features/src/billing-foundation/screens.ts +1 -1
  162. package/packages/bundled-features/src/billing-foundation/subscription-tier-sync.ts +6 -5
  163. package/packages/bundled-features/src/billing-foundation/tenant-destroy-hook.ts +4 -4
  164. package/packages/bundled-features/src/billing-foundation/types.ts +3 -3
  165. package/packages/bundled-features/src/billing-foundation/validate-options.ts +3 -3
  166. package/packages/bundled-features/src/billing-foundation/web/billing-plans-panel.tsx +4 -4
  167. package/packages/bundled-features/src/billing-foundation/web/cancel-contract-dialog.tsx +2 -2
  168. package/packages/bundled-features/src/billing-foundation/web/checkout-consent-dialog.tsx +2 -2
  169. package/packages/bundled-features/src/billing-foundation/web/client-plugin.tsx +2 -2
  170. package/packages/bundled-features/src/billing-foundation/web/index.ts +6 -6
  171. package/packages/bundled-features/src/billing-foundation/webhook-handler.ts +2 -2
  172. package/packages/bundled-features/src/cap-counter/book-cap-usage.ts +3 -3
  173. package/packages/bundled-features/src/cap-counter/calendar-cap-usage-reservation.ts +4 -4
  174. package/packages/bundled-features/src/cap-counter/cap-reservation.ts +4 -4
  175. package/packages/bundled-features/src/cap-counter/changes.json +8 -0
  176. package/packages/bundled-features/src/cap-counter/enforce-cap.ts +2 -2
  177. package/packages/bundled-features/src/cap-counter/feature.ts +8 -11
  178. package/packages/bundled-features/src/cap-counter/handlers/get-counter.query.ts +1 -1
  179. package/packages/bundled-features/src/cap-counter/handlers/increment-rolling.write.ts +2 -2
  180. package/packages/bundled-features/src/cap-counter/handlers/increment.write.ts +1 -1
  181. package/packages/bundled-features/src/cap-counter/handlers/mark-soft-warned.write.ts +1 -1
  182. package/packages/bundled-features/src/cap-counter/index.ts +13 -13
  183. package/packages/bundled-features/src/cap-counter/stock-cap-guard.ts +1 -1
  184. package/packages/bundled-features/src/cap-counter/value-cap-guard.ts +2 -2
  185. package/packages/bundled-features/src/cap-counter/with-cap-enforcement.ts +4 -4
  186. package/packages/bundled-features/src/cap-overview/feature.ts +8 -8
  187. package/packages/bundled-features/src/cap-overview/handlers/caps-usage.query.ts +3 -3
  188. package/packages/bundled-features/src/cap-overview/handlers/tenant-caps-list.query.ts +7 -7
  189. package/packages/bundled-features/src/cap-overview/handlers/tenant-options.query.ts +1 -1
  190. package/packages/bundled-features/src/cap-overview/index.ts +6 -6
  191. package/packages/bundled-features/src/cap-overview/screens.ts +2 -2
  192. package/packages/bundled-features/src/cap-overview/types.ts +1 -1
  193. package/packages/bundled-features/src/cap-overview/usage-math.ts +1 -1
  194. package/packages/bundled-features/src/cap-overview/web/cap-cards-panel.tsx +3 -3
  195. package/packages/bundled-features/src/cap-overview/web/cap-usage-bar.tsx +2 -2
  196. package/packages/bundled-features/src/cap-overview/web/cap-usage-cell.tsx +2 -2
  197. package/packages/bundled-features/src/cap-overview/web/client-plugin.tsx +3 -3
  198. package/packages/bundled-features/src/cap-overview/web/index.ts +4 -4
  199. package/packages/bundled-features/src/channel-discord/discord-channel.ts +1 -1
  200. package/packages/bundled-features/src/channel-discord/feature.ts +1 -1
  201. package/packages/bundled-features/src/channel-discord/index.ts +2 -2
  202. package/packages/bundled-features/src/channel-email/changes.json +6 -0
  203. package/packages/bundled-features/src/channel-email/email-channel.ts +4 -4
  204. package/packages/bundled-features/src/channel-email/env.ts +28 -0
  205. package/packages/bundled-features/src/channel-email/feature.ts +8 -4
  206. package/packages/bundled-features/src/channel-email/index.ts +6 -5
  207. package/packages/bundled-features/src/channel-email/pii-guard.ts +1 -1
  208. package/packages/bundled-features/src/channel-email/smtp-transport.ts +1 -1
  209. package/packages/bundled-features/src/channel-email/types.ts +1 -1
  210. package/packages/bundled-features/src/channel-in-app/feature.ts +6 -6
  211. package/packages/bundled-features/src/channel-in-app/handlers/inbox.query.ts +1 -1
  212. package/packages/bundled-features/src/channel-in-app/handlers/mark-all-read.write.ts +1 -1
  213. package/packages/bundled-features/src/channel-in-app/handlers/mark-read.write.ts +1 -1
  214. package/packages/bundled-features/src/channel-in-app/handlers/unread-count.query.ts +1 -1
  215. package/packages/bundled-features/src/channel-in-app/in-app-channel.ts +2 -2
  216. package/packages/bundled-features/src/channel-in-app/index.ts +4 -4
  217. package/packages/bundled-features/src/channel-push/feature.ts +1 -1
  218. package/packages/bundled-features/src/channel-push/index.ts +3 -3
  219. package/packages/bundled-features/src/channel-push/push-channel.ts +2 -2
  220. package/packages/bundled-features/src/channel-slack/feature.ts +1 -1
  221. package/packages/bundled-features/src/channel-slack/index.ts +2 -2
  222. package/packages/bundled-features/src/channel-slack/slack-channel.ts +1 -1
  223. package/packages/bundled-features/src/channel-teams/feature.ts +1 -1
  224. package/packages/bundled-features/src/channel-teams/index.ts +2 -2
  225. package/packages/bundled-features/src/channel-teams/teams-channel.ts +1 -1
  226. package/packages/bundled-features/src/channel-telegram/feature.ts +1 -1
  227. package/packages/bundled-features/src/channel-telegram/index.ts +2 -2
  228. package/packages/bundled-features/src/channel-telegram/telegram-channel.ts +1 -1
  229. package/packages/bundled-features/src/compliance-profiles/feature.ts +9 -9
  230. package/packages/bundled-features/src/compliance-profiles/handlers/for-tenant.query.ts +2 -2
  231. package/packages/bundled-features/src/compliance-profiles/handlers/needs-profile.query.ts +1 -1
  232. package/packages/bundled-features/src/compliance-profiles/handlers/set-profile.write.ts +2 -2
  233. package/packages/bundled-features/src/compliance-profiles/index.ts +3 -3
  234. package/packages/bundled-features/src/compliance-profiles/resolve-for-tenant.ts +3 -3
  235. package/packages/bundled-features/src/compliance-profiles/seeding.ts +1 -1
  236. package/packages/bundled-features/src/compliance-profiles/web/client-plugin.tsx +3 -3
  237. package/packages/bundled-features/src/compliance-profiles/web/compliance-profile-catalog.tsx +1 -1
  238. package/packages/bundled-features/src/compliance-profiles/web/index.ts +2 -2
  239. package/packages/bundled-features/src/compliance-profiles-ops/changes.json +10 -0
  240. package/packages/bundled-features/src/compliance-profiles-ops/handlers/tenants-missing-profile.query.ts +2 -2
  241. package/packages/bundled-features/src/compliance-profiles-ops/index.ts +1 -4
  242. package/packages/bundled-features/src/config/db/queries/resolver.ts +1 -1
  243. package/packages/bundled-features/src/config/feature.ts +11 -11
  244. package/packages/bundled-features/src/config/handlers/cascade.query.ts +3 -3
  245. package/packages/bundled-features/src/config/handlers/readiness.query.ts +2 -2
  246. package/packages/bundled-features/src/config/handlers/reencrypt.job.ts +2 -2
  247. package/packages/bundled-features/src/config/handlers/reset.write.ts +3 -3
  248. package/packages/bundled-features/src/config/handlers/schema.query.ts +1 -1
  249. package/packages/bundled-features/src/config/handlers/selected-extensions.query.ts +3 -3
  250. package/packages/bundled-features/src/config/handlers/set.write.ts +4 -4
  251. package/packages/bundled-features/src/config/handlers/values.query.ts +3 -3
  252. package/packages/bundled-features/src/config/index.ts +9 -9
  253. package/packages/bundled-features/src/config/resolver.ts +2 -2
  254. package/packages/bundled-features/src/config/web/client-plugin.ts +2 -2
  255. package/packages/bundled-features/src/config/web/index.ts +2 -2
  256. package/packages/bundled-features/src/config/write-helpers.ts +3 -3
  257. package/packages/bundled-features/src/crypto-shredding/changes.json +6 -0
  258. package/packages/bundled-features/src/crypto-shredding/env/index.ts +94 -0
  259. package/packages/bundled-features/src/crypto-shredding/feature.ts +9 -5
  260. package/packages/bundled-features/src/crypto-shredding/handlers/forget-subject.write.ts +6 -6
  261. package/packages/bundled-features/src/crypto-shredding/index.ts +4 -3
  262. package/packages/bundled-features/src/custom-fields/changes.json +8 -0
  263. package/packages/bundled-features/src/custom-fields/executor.ts +1 -1
  264. package/packages/bundled-features/src/custom-fields/feature.ts +10 -13
  265. package/packages/bundled-features/src/custom-fields/handlers/clear-custom-field.write.ts +3 -3
  266. package/packages/bundled-features/src/custom-fields/handlers/define-system-field.write.ts +5 -5
  267. package/packages/bundled-features/src/custom-fields/handlers/define-tenant-field.write.ts +6 -6
  268. package/packages/bundled-features/src/custom-fields/handlers/delete-system-field.write.ts +6 -6
  269. package/packages/bundled-features/src/custom-fields/handlers/delete-tenant-field.write.ts +5 -5
  270. package/packages/bundled-features/src/custom-fields/handlers/set-custom-field.write.ts +4 -4
  271. package/packages/bundled-features/src/custom-fields/handlers/update-tenant-field.write.ts +5 -5
  272. package/packages/bundled-features/src/custom-fields/index.ts +10 -11
  273. package/packages/bundled-features/src/custom-fields/lib/define-or-resurrect.ts +2 -2
  274. package/packages/bundled-features/src/custom-fields/lib/field-access.ts +2 -2
  275. package/packages/bundled-features/src/custom-fields/lib/field-definition-row.ts +1 -1
  276. package/packages/bundled-features/src/custom-fields/lib/quota.ts +1 -1
  277. package/packages/bundled-features/src/custom-fields/lib/value-schema.ts +1 -1
  278. package/packages/bundled-features/src/custom-fields/run-retention.ts +3 -3
  279. package/packages/bundled-features/src/custom-fields/schemas.ts +1 -1
  280. package/packages/bundled-features/src/custom-fields/web/client-plugin.tsx +3 -3
  281. package/packages/bundled-features/src/custom-fields/web/custom-fields-form-section.tsx +1 -1
  282. package/packages/bundled-features/src/custom-fields/web/index.ts +3 -3
  283. package/packages/bundled-features/src/custom-fields/wire-for-entity.ts +4 -4
  284. package/packages/bundled-features/src/custom-fields/wire-user-data-rights.ts +1 -1
  285. package/packages/bundled-features/src/data-retention/_internal/parse-override.ts +2 -2
  286. package/packages/bundled-features/src/data-retention/feature.ts +11 -11
  287. package/packages/bundled-features/src/data-retention/handlers/policy-for.query.ts +2 -2
  288. package/packages/bundled-features/src/data-retention/index.ts +3 -3
  289. package/packages/bundled-features/src/data-retention/resolve-for-tenant.ts +6 -6
  290. package/packages/bundled-features/src/data-retention/resolve-tenant-preset.ts +2 -2
  291. package/packages/bundled-features/src/data-retention/resolver.ts +1 -1
  292. package/packages/bundled-features/src/data-retention/run-retention-cleanup.ts +5 -5
  293. package/packages/bundled-features/src/delivery/address-opt-out.ts +2 -2
  294. package/packages/bundled-features/src/delivery/attachment-ref.ts +3 -3
  295. package/packages/bundled-features/src/delivery/attempt-log-retention.ts +1 -1
  296. package/packages/bundled-features/src/delivery/attempt-log.ts +4 -4
  297. package/packages/bundled-features/src/delivery/changes.json +6 -0
  298. package/packages/bundled-features/src/delivery/channel-context.ts +5 -5
  299. package/packages/bundled-features/src/delivery/chat-webhook-channel.ts +2 -2
  300. package/packages/bundled-features/src/delivery/constants.ts +2 -2
  301. package/packages/bundled-features/src/delivery/db/queries/address-opt-outs.ts +1 -1
  302. package/packages/bundled-features/src/delivery/delivery-service.ts +11 -11
  303. package/packages/bundled-features/src/delivery/events.ts +1 -1
  304. package/packages/bundled-features/src/delivery/feature.ts +15 -13
  305. package/packages/bundled-features/src/delivery/handlers/log.query.ts +4 -4
  306. package/packages/bundled-features/src/delivery/handlers/preferences.query.ts +1 -1
  307. package/packages/bundled-features/src/delivery/handlers/resubscribe-address.write.ts +2 -2
  308. package/packages/bundled-features/src/delivery/handlers/resubscribe-user.write.ts +2 -2
  309. package/packages/bundled-features/src/delivery/handlers/set-preference.write.ts +2 -2
  310. package/packages/bundled-features/src/delivery/handlers/unsubscribe-address.write.ts +2 -2
  311. package/packages/bundled-features/src/delivery/handlers/unsubscribe-page-chrome.query.ts +56 -0
  312. package/packages/bundled-features/src/delivery/handlers/unsubscribe-user.write.ts +2 -2
  313. package/packages/bundled-features/src/delivery/i18n.ts +1 -1
  314. package/packages/bundled-features/src/delivery/index.ts +20 -20
  315. package/packages/bundled-features/src/delivery/jobs.ts +7 -7
  316. package/packages/bundled-features/src/delivery/notify-factory.ts +1 -1
  317. package/packages/bundled-features/src/delivery/public-names.ts +1 -0
  318. package/packages/bundled-features/src/delivery/testing.ts +5 -5
  319. package/packages/bundled-features/src/delivery/types.ts +3 -3
  320. package/packages/bundled-features/src/delivery/unsubscribe-link.ts +4 -4
  321. package/packages/bundled-features/src/delivery/unsubscribe-page-strings.ts +5 -0
  322. package/packages/bundled-features/src/delivery/unsubscribe-page.ts +226 -0
  323. package/packages/bundled-features/src/delivery/unsubscribe.ts +204 -108
  324. package/packages/bundled-features/src/delivery/upsert-preference.ts +1 -1
  325. package/packages/bundled-features/src/delivery/web/client-plugin.tsx +6 -6
  326. package/packages/bundled-features/src/delivery/web/delivery-channel-cell.tsx +1 -1
  327. package/packages/bundled-features/src/delivery/web/delivery-error-cell.tsx +1 -1
  328. package/packages/bundled-features/src/delivery/web/delivery-status-cell.tsx +2 -2
  329. package/packages/bundled-features/src/delivery/web/delivery-type-cell.tsx +1 -1
  330. package/packages/bundled-features/src/delivery/web/index.ts +2 -2
  331. package/packages/bundled-features/src/derivatives-sharp/changes.json +8 -0
  332. package/packages/bundled-features/src/derivatives-sharp/feature.ts +1 -4
  333. package/packages/bundled-features/src/derivatives-sharp/index.ts +2 -2
  334. package/packages/bundled-features/src/derivatives-sharp/render.ts +1 -1
  335. package/packages/bundled-features/src/document-ingest-foundation/boot-checks.ts +2 -2
  336. package/packages/bundled-features/src/document-ingest-foundation/changes.json +8 -0
  337. package/packages/bundled-features/src/document-ingest-foundation/executor.ts +1 -1
  338. package/packages/bundled-features/src/document-ingest-foundation/feature.ts +7 -10
  339. package/packages/bundled-features/src/document-ingest-foundation/forget-extract-with-file-ref.ts +3 -3
  340. package/packages/bundled-features/src/document-ingest-foundation/index.ts +7 -10
  341. package/packages/bundled-features/src/document-ingest-foundation/pages.ts +1 -1
  342. package/packages/bundled-features/src/document-ingest-foundation/providers.ts +1 -1
  343. package/packages/bundled-features/src/document-ingest-foundation/tenant-destroy-hook.ts +2 -2
  344. package/packages/bundled-features/src/document-ingest-foundation/write-document-extract.ts +4 -4
  345. package/packages/bundled-features/src/feature-toggles/compose-tier-resolver.ts +1 -1
  346. package/packages/bundled-features/src/feature-toggles/feature.ts +12 -12
  347. package/packages/bundled-features/src/feature-toggles/handlers/list.query.ts +2 -2
  348. package/packages/bundled-features/src/feature-toggles/handlers/registered.query.ts +2 -2
  349. package/packages/bundled-features/src/feature-toggles/handlers/set.write.ts +3 -3
  350. package/packages/bundled-features/src/feature-toggles/index.ts +3 -3
  351. package/packages/bundled-features/src/feature-toggles/toggle-runtime.ts +2 -2
  352. package/packages/bundled-features/src/feature-toggles/toggle-sync-signal.ts +1 -1
  353. package/packages/bundled-features/src/feature-toggles/web/client-plugin.tsx +2 -2
  354. package/packages/bundled-features/src/feature-toggles/web/index.ts +1 -1
  355. package/packages/bundled-features/src/file-derivatives/changes.json +8 -0
  356. package/packages/bundled-features/src/file-derivatives/feature.ts +2 -5
  357. package/packages/bundled-features/src/file-derivatives/handlers/public-variant-by-file-ref.query.ts +2 -2
  358. package/packages/bundled-features/src/file-derivatives/index.ts +4 -4
  359. package/packages/bundled-features/src/file-foundation/changes.json +8 -0
  360. package/packages/bundled-features/src/file-foundation/feature.ts +0 -3
  361. package/packages/bundled-features/src/file-foundation/index.ts +2 -3
  362. package/packages/bundled-features/src/file-provider-inmemory/changes.json +10 -1
  363. package/packages/bundled-features/src/file-provider-inmemory/feature.ts +0 -3
  364. package/packages/bundled-features/src/file-provider-inmemory/index.ts +1 -2
  365. package/packages/bundled-features/src/file-provider-s3/changes.json +22 -0
  366. package/packages/bundled-features/src/file-provider-s3/env-feature.ts +10 -7
  367. package/packages/bundled-features/src/file-provider-s3/env-schema.ts +71 -0
  368. package/packages/bundled-features/src/file-provider-s3/feature.ts +2 -5
  369. package/packages/bundled-features/src/file-provider-s3/index.ts +2 -2
  370. package/packages/bundled-features/src/file-provider-s3/lib/env-helper.ts +1 -1
  371. package/packages/bundled-features/src/file-provider-s3/lib/index.ts +3 -3
  372. package/packages/bundled-features/src/files/index.ts +1 -1
  373. package/packages/bundled-features/src/files-tenant-data/handlers/sweep-orphaned-derivatives.job.ts +2 -2
  374. package/packages/bundled-features/src/files-tenant-data/hooks.ts +1 -1
  375. package/packages/bundled-features/src/files-tenant-data/index.ts +4 -4
  376. package/packages/bundled-features/src/folders/changes.json +8 -0
  377. package/packages/bundled-features/src/folders/executor.ts +1 -1
  378. package/packages/bundled-features/src/folders/feature.ts +6 -9
  379. package/packages/bundled-features/src/folders/handlers/clear-folder.write.ts +5 -5
  380. package/packages/bundled-features/src/folders/handlers/delete-folder.write.ts +3 -3
  381. package/packages/bundled-features/src/folders/handlers/set-folder.write.ts +5 -5
  382. package/packages/bundled-features/src/folders/index.ts +7 -8
  383. package/packages/bundled-features/src/folders/web/client-plugin.tsx +3 -3
  384. package/packages/bundled-features/src/folders/web/folder-manager.tsx +2 -2
  385. package/packages/bundled-features/src/folders/web/folder-section.tsx +2 -2
  386. package/packages/bundled-features/src/folders/web/index.ts +5 -5
  387. package/packages/bundled-features/src/folders-user-data/changes.json +10 -1
  388. package/packages/bundled-features/src/folders-user-data/hooks.ts +1 -1
  389. package/packages/bundled-features/src/folders-user-data/index.ts +1 -4
  390. package/packages/bundled-features/src/form-draft/changes.json +8 -0
  391. package/packages/bundled-features/src/form-draft/db/queries/cleanup.ts +1 -1
  392. package/packages/bundled-features/src/form-draft/entity.ts +1 -1
  393. package/packages/bundled-features/src/form-draft/executor.ts +1 -1
  394. package/packages/bundled-features/src/form-draft/feature.ts +7 -10
  395. package/packages/bundled-features/src/form-draft/handlers/cleanup.job.ts +4 -4
  396. package/packages/bundled-features/src/form-draft/handlers/discard.write.ts +6 -6
  397. package/packages/bundled-features/src/form-draft/handlers/get.query.ts +4 -4
  398. package/packages/bundled-features/src/form-draft/handlers/list.query.ts +3 -3
  399. package/packages/bundled-features/src/form-draft/handlers/save.write.ts +5 -5
  400. package/packages/bundled-features/src/form-draft/index.ts +10 -10
  401. package/packages/bundled-features/src/form-draft/lookup.ts +2 -2
  402. package/packages/bundled-features/src/form-draft/release-file-refs.ts +1 -1
  403. package/packages/bundled-features/src/form-draft/schemas.ts +1 -1
  404. package/packages/bundled-features/src/form-draft-user-data/changes.json +10 -1
  405. package/packages/bundled-features/src/form-draft-user-data/hooks.ts +1 -1
  406. package/packages/bundled-features/src/form-draft-user-data/index.ts +1 -4
  407. package/packages/bundled-features/src/foundation-shared/build-info-env.ts +16 -0
  408. package/packages/bundled-features/src/foundation-shared/changes.json +8 -1
  409. package/packages/bundled-features/src/foundation-shared/demo-admin-env.ts +24 -0
  410. package/packages/bundled-features/src/foundation-shared/index.ts +5 -3
  411. package/packages/bundled-features/src/foundation-shared/mail-host-policy.ts +1 -1
  412. package/packages/bundled-features/src/host-routing/README.md +89 -0
  413. package/packages/bundled-features/src/host-routing/changes.json +8 -0
  414. package/packages/bundled-features/src/host-routing/constants.ts +24 -0
  415. package/packages/bundled-features/src/host-routing/dispatch.ts +130 -0
  416. package/packages/bundled-features/src/host-routing/feature.ts +146 -0
  417. package/packages/bundled-features/src/host-routing/host.ts +42 -0
  418. package/packages/bundled-features/src/host-routing/index.ts +21 -0
  419. package/packages/bundled-features/src/host-routing/options.ts +43 -0
  420. package/packages/bundled-features/src/host-routing/validate-options.ts +38 -0
  421. package/packages/bundled-features/src/inbound-mail-foundation/changes.json +8 -0
  422. package/packages/bundled-features/src/inbound-mail-foundation/connect-routes.ts +5 -5
  423. package/packages/bundled-features/src/inbound-mail-foundation/events.ts +1 -1
  424. package/packages/bundled-features/src/inbound-mail-foundation/feature.ts +12 -15
  425. package/packages/bundled-features/src/inbound-mail-foundation/handlers/account-state.ts +1 -1
  426. package/packages/bundled-features/src/inbound-mail-foundation/handlers/connect-account.write.ts +3 -3
  427. package/packages/bundled-features/src/inbound-mail-foundation/handlers/disconnect-account.write.ts +3 -3
  428. package/packages/bundled-features/src/inbound-mail-foundation/handlers/ingest-message.write.ts +4 -4
  429. package/packages/bundled-features/src/inbound-mail-foundation/handlers/list-accounts.query.ts +3 -3
  430. package/packages/bundled-features/src/inbound-mail-foundation/handlers/list-messages.query.ts +3 -3
  431. package/packages/bundled-features/src/inbound-mail-foundation/handlers/update-account.write.ts +3 -3
  432. package/packages/bundled-features/src/inbound-mail-foundation/index.ts +12 -12
  433. package/packages/bundled-features/src/inbound-mail-foundation/oauth-access-token.ts +2 -2
  434. package/packages/bundled-features/src/inbound-mail-foundation/projection.ts +2 -2
  435. package/packages/bundled-features/src/inbound-mail-foundation/provider-factory.ts +2 -2
  436. package/packages/bundled-features/src/inbound-mail-foundation/retention-sweep.ts +3 -3
  437. package/packages/bundled-features/src/inbound-mail-foundation/tenant-destroy-hook.ts +3 -3
  438. package/packages/bundled-features/src/inbound-mail-foundation/types.ts +1 -1
  439. package/packages/bundled-features/src/inbound-mail-foundation/watch-supervisor.ts +6 -6
  440. package/packages/bundled-features/src/inbound-provider-imap/changes.json +8 -0
  441. package/packages/bundled-features/src/inbound-provider-imap/feature.ts +3 -6
  442. package/packages/bundled-features/src/inbound-provider-imap/imap-client.ts +1 -1
  443. package/packages/bundled-features/src/inbound-provider-imap/index.ts +3 -4
  444. package/packages/bundled-features/src/inbound-provider-inmemory/changes.json +10 -1
  445. package/packages/bundled-features/src/inbound-provider-inmemory/feature.ts +0 -3
  446. package/packages/bundled-features/src/inbound-provider-inmemory/index.ts +1 -2
  447. package/packages/bundled-features/src/jobs/db/queries/retention.ts +3 -3
  448. package/packages/bundled-features/src/jobs/db/queries/stale-run-sweep.ts +5 -5
  449. package/packages/bundled-features/src/jobs/feature.ts +16 -16
  450. package/packages/bundled-features/src/jobs/handlers/catalog.query.ts +1 -1
  451. package/packages/bundled-features/src/jobs/handlers/detail.query.ts +2 -2
  452. package/packages/bundled-features/src/jobs/handlers/list.query.ts +2 -2
  453. package/packages/bundled-features/src/jobs/handlers/retention-cleanup.job.ts +1 -1
  454. package/packages/bundled-features/src/jobs/handlers/retry.write.ts +3 -3
  455. package/packages/bundled-features/src/jobs/handlers/stale-run-sweep.job.ts +1 -1
  456. package/packages/bundled-features/src/jobs/handlers/tenant-failures.query.ts +1 -1
  457. package/packages/bundled-features/src/jobs/handlers/tenant-runs.query.ts +1 -1
  458. package/packages/bundled-features/src/jobs/handlers/trigger.write.ts +2 -2
  459. package/packages/bundled-features/src/jobs/index.ts +9 -9
  460. package/packages/bundled-features/src/jobs/job-run-logger.ts +6 -6
  461. package/packages/bundled-features/src/jobs/web/client-plugin.tsx +2 -2
  462. package/packages/bundled-features/src/jobs/web/i18n.ts +1 -1
  463. package/packages/bundled-features/src/jobs/web/index.ts +1 -1
  464. package/packages/bundled-features/src/ledger/changes.json +8 -0
  465. package/packages/bundled-features/src/ledger/entity.ts +1 -1
  466. package/packages/bundled-features/src/ledger/executor.ts +1 -1
  467. package/packages/bundled-features/src/ledger/feature.ts +7 -10
  468. package/packages/bundled-features/src/ledger/handlers/confirm-schedule-period.write.ts +5 -5
  469. package/packages/bundled-features/src/ledger/handlers/create-transaction.write.ts +3 -3
  470. package/packages/bundled-features/src/ledger/handlers/reports.query.ts +3 -3
  471. package/packages/bundled-features/src/ledger/handlers/reverse-transaction.write.ts +5 -5
  472. package/packages/bundled-features/src/ledger/index.ts +10 -11
  473. package/packages/bundled-features/src/ledger/recurring.ts +2 -2
  474. package/packages/bundled-features/src/ledger/reports.ts +2 -2
  475. package/packages/bundled-features/src/ledger/schemas.ts +1 -1
  476. package/packages/bundled-features/src/ledger/web/index.ts +3 -3
  477. package/packages/bundled-features/src/legal-pages/README.md +39 -0
  478. package/packages/bundled-features/src/legal-pages/changes.json +6 -0
  479. package/packages/bundled-features/src/legal-pages/constants.ts +22 -0
  480. package/packages/bundled-features/src/legal-pages/feature.ts +14 -7
  481. package/packages/bundled-features/src/legal-pages/index.ts +12 -3
  482. package/packages/bundled-features/src/legal-pages/layout.ts +45 -0
  483. package/packages/bundled-features/src/legal-pages/lib/boot-check.ts +1 -1
  484. package/packages/bundled-features/src/legal-pages/lib/validate-routes.ts +1 -1
  485. package/packages/bundled-features/src/legal-pages/markdown.ts +2 -2
  486. package/packages/bundled-features/src/legal-pages/seed.ts +53 -0
  487. package/packages/bundled-features/src/legal-pages/web/client-plugin.ts +1 -1
  488. package/packages/bundled-features/src/legal-pages/web/index.ts +1 -1
  489. package/packages/bundled-features/src/mail-foundation/changes.json +10 -1
  490. package/packages/bundled-features/src/mail-foundation/feature.ts +1 -4
  491. package/packages/bundled-features/src/mail-foundation/index.ts +1 -2
  492. package/packages/bundled-features/src/mail-transport-inmemory/changes.json +10 -1
  493. package/packages/bundled-features/src/mail-transport-inmemory/feature.ts +0 -3
  494. package/packages/bundled-features/src/mail-transport-inmemory/index.ts +1 -2
  495. package/packages/bundled-features/src/mail-transport-smtp/changes.json +8 -0
  496. package/packages/bundled-features/src/mail-transport-smtp/feature.ts +2 -5
  497. package/packages/bundled-features/src/mail-transport-smtp/index.ts +1 -2
  498. package/packages/bundled-features/src/managed-pages/branding.ts +1 -1
  499. package/packages/bundled-features/src/managed-pages/css-gate.ts +1 -1
  500. package/packages/bundled-features/src/managed-pages/feature.ts +12 -12
  501. package/packages/bundled-features/src/managed-pages/handlers/branding.query.ts +1 -1
  502. package/packages/bundled-features/src/managed-pages/handlers/by-slug.query.ts +1 -1
  503. package/packages/bundled-features/src/managed-pages/handlers/by-tenant-published.query.ts +1 -1
  504. package/packages/bundled-features/src/managed-pages/handlers/page-crud.ts +1 -1
  505. package/packages/bundled-features/src/managed-pages/handlers/set.write.ts +2 -2
  506. package/packages/bundled-features/src/managed-pages/index.ts +5 -5
  507. package/packages/bundled-features/src/managed-pages/screens/branding-screen.ts +1 -1
  508. package/packages/bundled-features/src/managed-pages/seeding.ts +1 -1
  509. package/packages/bundled-features/src/managed-pages/web/client-plugin.tsx +1 -1
  510. package/packages/bundled-features/src/managed-pages/web/i18n.ts +1 -1
  511. package/packages/bundled-features/src/managed-pages/web/index.ts +2 -2
  512. package/packages/bundled-features/src/metrics/compute.ts +3 -3
  513. package/packages/bundled-features/src/metrics/default-metrics.ts +5 -5
  514. package/packages/bundled-features/src/metrics/feature.ts +7 -7
  515. package/packages/bundled-features/src/metrics/filters.ts +1 -1
  516. package/packages/bundled-features/src/metrics/index.ts +5 -5
  517. package/packages/bundled-features/src/metrics/types.ts +1 -1
  518. package/packages/bundled-features/src/metrics/validate.ts +3 -3
  519. package/packages/bundled-features/src/metrics/window.ts +2 -2
  520. package/packages/bundled-features/src/notes-history/changes.json +8 -0
  521. package/packages/bundled-features/src/notes-history/executor.ts +1 -1
  522. package/packages/bundled-features/src/notes-history/feature.ts +6 -9
  523. package/packages/bundled-features/src/notes-history/handlers/add-note.write.ts +6 -6
  524. package/packages/bundled-features/src/notes-history/index.ts +6 -7
  525. package/packages/bundled-features/src/notes-history/web/client-plugin.tsx +3 -3
  526. package/packages/bundled-features/src/notes-history/web/index.ts +3 -3
  527. package/packages/bundled-features/src/notes-history/web/notes-section.tsx +1 -1
  528. package/packages/bundled-features/src/notes-history-user-data/changes.json +8 -0
  529. package/packages/bundled-features/src/notes-history-user-data/hooks.ts +1 -1
  530. package/packages/bundled-features/src/notes-history-user-data/index.ts +2 -5
  531. package/packages/bundled-features/src/page-render/cached-page-response.ts +1 -1
  532. package/packages/bundled-features/src/page-render/index.ts +7 -7
  533. package/packages/bundled-features/src/page-render/layout.ts +2 -2
  534. package/packages/bundled-features/src/page-render/web.ts +5 -5
  535. package/packages/bundled-features/src/personal-access-tokens/feature.ts +13 -13
  536. package/packages/bundled-features/src/personal-access-tokens/handlers/available-scopes.query.ts +1 -1
  537. package/packages/bundled-features/src/personal-access-tokens/handlers/create.write.ts +5 -5
  538. package/packages/bundled-features/src/personal-access-tokens/handlers/list.query.ts +3 -3
  539. package/packages/bundled-features/src/personal-access-tokens/handlers/revoke.write.ts +3 -3
  540. package/packages/bundled-features/src/personal-access-tokens/hash.ts +1 -1
  541. package/packages/bundled-features/src/personal-access-tokens/i18n.ts +2 -2
  542. package/packages/bundled-features/src/personal-access-tokens/index.ts +13 -13
  543. package/packages/bundled-features/src/personal-access-tokens/resolver.ts +5 -5
  544. package/packages/bundled-features/src/personal-access-tokens/revoke-for-user.ts +2 -2
  545. package/packages/bundled-features/src/personal-access-tokens/roles.ts +2 -2
  546. package/packages/bundled-features/src/personal-access-tokens/schema/api-token.ts +1 -1
  547. package/packages/bundled-features/src/personal-access-tokens/screens.ts +2 -2
  548. package/packages/bundled-features/src/presets/changes.json +6 -0
  549. package/packages/bundled-features/src/presets/dsgvo-self-service.ts +7 -5
  550. package/packages/bundled-features/src/presets/index.ts +2 -2
  551. package/packages/bundled-features/src/presets/security-baseline.ts +6 -4
  552. package/packages/bundled-features/src/rate-limiting/feature.ts +2 -2
  553. package/packages/bundled-features/src/rate-limiting/handlers/bucket-access.ts +1 -1
  554. package/packages/bundled-features/src/rate-limiting/handlers/status.query.ts +2 -2
  555. package/packages/bundled-features/src/rate-limiting/index.ts +2 -2
  556. package/packages/bundled-features/src/readiness/changes.json +10 -1
  557. package/packages/bundled-features/src/readiness/feature.ts +1 -4
  558. package/packages/bundled-features/src/readiness/handlers/status.query.ts +1 -1
  559. package/packages/bundled-features/src/readiness/index.ts +3 -3
  560. package/packages/bundled-features/src/renderer-foundation/api.ts +2 -2
  561. package/packages/bundled-features/src/renderer-foundation/constants.ts +2 -2
  562. package/packages/bundled-features/src/renderer-foundation/feature.ts +2 -2
  563. package/packages/bundled-features/src/renderer-foundation/index.ts +8 -5
  564. package/packages/bundled-features/src/renderer-foundation/types.ts +22 -2
  565. package/packages/bundled-features/src/renderer-pdf/feature.ts +2 -2
  566. package/packages/bundled-features/src/renderer-pdf/index.ts +2 -2
  567. package/packages/bundled-features/src/renderer-pdf/render-table-pdf.ts +2 -2
  568. package/packages/bundled-features/src/secrets/changes.json +12 -0
  569. package/packages/bundled-features/src/secrets/constants.ts +9 -0
  570. package/packages/bundled-features/src/secrets/db/queries/read.ts +1 -1
  571. package/packages/bundled-features/src/secrets/feature.ts +17 -13
  572. package/packages/bundled-features/src/secrets/handlers/delete.write.ts +5 -5
  573. package/packages/bundled-features/src/secrets/handlers/list.query.ts +2 -2
  574. package/packages/bundled-features/src/secrets/handlers/rotate.job.ts +2 -2
  575. package/packages/bundled-features/src/secrets/handlers/set.write.ts +5 -5
  576. package/packages/bundled-features/src/secrets/i18n.ts +1 -1
  577. package/packages/bundled-features/src/secrets/index.ts +9 -7
  578. package/packages/bundled-features/src/secrets/secrets-context.ts +3 -3
  579. package/packages/bundled-features/src/secrets/write-gate.ts +1 -1
  580. package/packages/bundled-features/src/seo/feature.ts +8 -8
  581. package/packages/bundled-features/src/seo/handlers/seo-config.query.ts +1 -1
  582. package/packages/bundled-features/src/seo/index.ts +6 -6
  583. package/packages/bundled-features/src/sessions/feature.ts +13 -13
  584. package/packages/bundled-features/src/sessions/handlers/cleanup.job.ts +1 -1
  585. package/packages/bundled-features/src/sessions/handlers/detail.query.ts +2 -2
  586. package/packages/bundled-features/src/sessions/handlers/list.query.ts +2 -2
  587. package/packages/bundled-features/src/sessions/handlers/mine.query.ts +2 -2
  588. package/packages/bundled-features/src/sessions/handlers/revoke-all-for-user.write.ts +2 -2
  589. package/packages/bundled-features/src/sessions/handlers/revoke-all-others.write.ts +3 -3
  590. package/packages/bundled-features/src/sessions/handlers/revoke.write.ts +3 -3
  591. package/packages/bundled-features/src/sessions/index.ts +8 -8
  592. package/packages/bundled-features/src/sessions/schema/user-session.ts +1 -1
  593. package/packages/bundled-features/src/sessions/screens.ts +1 -1
  594. package/packages/bundled-features/src/sessions/session-callbacks.ts +6 -6
  595. package/packages/bundled-features/src/sessions/testing.ts +1 -1
  596. package/packages/bundled-features/src/shared/index.ts +31 -31
  597. package/packages/bundled-features/src/shared/password-hashing.ts +1 -1
  598. package/packages/bundled-features/src/shared/row-bound-grant.ts +1 -1
  599. package/packages/bundled-features/src/step-dispatcher/deliver-dispatch-request.ts +4 -4
  600. package/packages/bundled-features/src/step-dispatcher/dispatch-payload.ts +2 -2
  601. package/packages/bundled-features/src/step-dispatcher/feature.ts +3 -3
  602. package/packages/bundled-features/src/step-dispatcher/index.ts +3 -3
  603. package/packages/bundled-features/src/step-dispatcher/webhook-runner.ts +1 -1
  604. package/packages/bundled-features/src/subscription-mollie/feature.ts +3 -3
  605. package/packages/bundled-features/src/subscription-mollie/index.ts +3 -3
  606. package/packages/bundled-features/src/subscription-mollie/verify-webhook.ts +2 -2
  607. package/packages/bundled-features/src/subscription-stripe/changes.json +6 -0
  608. package/packages/bundled-features/src/subscription-stripe/feature.ts +34 -6
  609. package/packages/bundled-features/src/subscription-stripe/index.ts +3 -2
  610. package/packages/bundled-features/src/subscription-stripe/plugin-methods.ts +2 -2
  611. package/packages/bundled-features/src/subscription-stripe/runtime.ts +1 -1
  612. package/packages/bundled-features/src/subscription-stripe/verify-webhook.ts +2 -2
  613. package/packages/bundled-features/src/tags/changes.json +8 -0
  614. package/packages/bundled-features/src/tags/executor.ts +1 -1
  615. package/packages/bundled-features/src/tags/feature.ts +11 -14
  616. package/packages/bundled-features/src/tags/handlers/assign-tag.write.ts +5 -5
  617. package/packages/bundled-features/src/tags/handlers/create-tag.write.ts +3 -3
  618. package/packages/bundled-features/src/tags/handlers/delete-tag.write.ts +3 -3
  619. package/packages/bundled-features/src/tags/handlers/remove-tag.write.ts +5 -5
  620. package/packages/bundled-features/src/tags/handlers/update-tag.write.ts +3 -3
  621. package/packages/bundled-features/src/tags/index.ts +11 -11
  622. package/packages/bundled-features/src/tags/screens.ts +1 -1
  623. package/packages/bundled-features/src/tags/web/client-plugin.tsx +5 -5
  624. package/packages/bundled-features/src/tags/web/entity-tags.tsx +2 -2
  625. package/packages/bundled-features/src/tags/web/index.ts +9 -9
  626. package/packages/bundled-features/src/tags/web/tag-filter.tsx +3 -3
  627. package/packages/bundled-features/src/tags/web/tag-manager.tsx +2 -2
  628. package/packages/bundled-features/src/tags/web/tag-picker.tsx +1 -1
  629. package/packages/bundled-features/src/tags/web/tag-section.tsx +3 -3
  630. package/packages/bundled-features/src/tags/web/tags-cell.tsx +2 -2
  631. package/packages/bundled-features/src/template-resolver/api.ts +7 -7
  632. package/packages/bundled-features/src/template-resolver/changes.json +6 -0
  633. package/packages/bundled-features/src/template-resolver/compile-document-body.ts +4 -4
  634. package/packages/bundled-features/src/template-resolver/compile-steps-block.ts +3 -3
  635. package/packages/bundled-features/src/template-resolver/constants.ts +1 -1
  636. package/packages/bundled-features/src/template-resolver/document-sanitizer.ts +4 -4
  637. package/packages/bundled-features/src/template-resolver/document-schema.ts +1 -1
  638. package/packages/bundled-features/src/template-resolver/feature.ts +31 -31
  639. package/packages/bundled-features/src/template-resolver/handlers/bundle-import.ts +11 -11
  640. package/packages/bundled-features/src/template-resolver/handlers/by-slug.query.ts +2 -2
  641. package/packages/bundled-features/src/template-resolver/handlers/by-tenant.query.ts +2 -2
  642. package/packages/bundled-features/src/template-resolver/handlers/collection-item.query.ts +1 -1
  643. package/packages/bundled-features/src/template-resolver/handlers/collection-list.query.ts +1 -1
  644. package/packages/bundled-features/src/template-resolver/handlers/collection-set.write.ts +5 -5
  645. package/packages/bundled-features/src/template-resolver/handlers/collection-shared.ts +2 -2
  646. package/packages/bundled-features/src/template-resolver/handlers/copy-locale.write.ts +13 -13
  647. package/packages/bundled-features/src/template-resolver/handlers/diff-to-system.query.ts +3 -3
  648. package/packages/bundled-features/src/template-resolver/handlers/discard-draft.write.ts +3 -3
  649. package/packages/bundled-features/src/template-resolver/handlers/export-bundle.query.ts +7 -7
  650. package/packages/bundled-features/src/template-resolver/handlers/find-by-id.query.ts +3 -3
  651. package/packages/bundled-features/src/template-resolver/handlers/import-bundle-system.write.ts +2 -2
  652. package/packages/bundled-features/src/template-resolver/handlers/import-bundle.write.ts +2 -2
  653. package/packages/bundled-features/src/template-resolver/handlers/layout-source.query.ts +7 -7
  654. package/packages/bundled-features/src/template-resolver/handlers/list.query.ts +4 -4
  655. package/packages/bundled-features/src/template-resolver/handlers/override-diff.ts +3 -3
  656. package/packages/bundled-features/src/template-resolver/handlers/overview.query.ts +6 -6
  657. package/packages/bundled-features/src/template-resolver/handlers/preview.query.ts +2 -2
  658. package/packages/bundled-features/src/template-resolver/handlers/reset-to-system.write.ts +3 -3
  659. package/packages/bundled-features/src/template-resolver/handlers/resource-link-pdf.write.ts +2 -2
  660. package/packages/bundled-features/src/template-resolver/handlers/resource-remove.write.ts +5 -5
  661. package/packages/bundled-features/src/template-resolver/handlers/resource-shared.ts +1 -1
  662. package/packages/bundled-features/src/template-resolver/handlers/resource-upload.write.ts +5 -5
  663. package/packages/bundled-features/src/template-resolver/handlers/send-test.write.ts +6 -6
  664. package/packages/bundled-features/src/template-resolver/handlers/set.write.ts +7 -7
  665. package/packages/bundled-features/src/template-resolver/handlers/shared.ts +3 -3
  666. package/packages/bundled-features/src/template-resolver/handlers/template-gates.ts +7 -7
  667. package/packages/bundled-features/src/template-resolver/handlers/template-write.ts +10 -10
  668. package/packages/bundled-features/src/template-resolver/handlers/tenant-overrides.query.ts +5 -5
  669. package/packages/bundled-features/src/template-resolver/handlers/toggle-status.write.ts +6 -6
  670. package/packages/bundled-features/src/template-resolver/handlers/upsert-system.write.ts +3 -3
  671. package/packages/bundled-features/src/template-resolver/handlers/upsert-tenant.write.ts +3 -3
  672. package/packages/bundled-features/src/template-resolver/handlers/usage.query.ts +5 -5
  673. package/packages/bundled-features/src/template-resolver/handlers/validate.query.ts +8 -8
  674. package/packages/bundled-features/src/template-resolver/index.ts +25 -25
  675. package/packages/bundled-features/src/template-resolver/layout-appearance.ts +2 -2
  676. package/packages/bundled-features/src/template-resolver/layout-regions.ts +2 -2
  677. package/packages/bundled-features/src/template-resolver/linked-resources.ts +2 -2
  678. package/packages/bundled-features/src/template-resolver/preview-display-html.ts +1 -1
  679. package/packages/bundled-features/src/template-resolver/print-document.ts +1 -1
  680. package/packages/bundled-features/src/template-resolver/resource-image.ts +1 -1
  681. package/packages/bundled-features/src/template-resolver/seeding.ts +10 -10
  682. package/packages/bundled-features/src/template-resolver/store-template-resource.ts +10 -10
  683. package/packages/bundled-features/src/template-resolver/table.ts +1 -1
  684. package/packages/bundled-features/src/template-resolver/template-bundle.ts +4 -4
  685. package/packages/bundled-features/src/template-resolver/template-diff.ts +1 -1
  686. package/packages/bundled-features/src/template-resolver/template-draft.ts +2 -2
  687. package/packages/bundled-features/src/template-resolver/template-meta.ts +2 -2
  688. package/packages/bundled-features/src/template-resolver/template-preview.ts +40 -25
  689. package/packages/bundled-features/src/template-resolver/template-resources.ts +4 -4
  690. package/packages/bundled-features/src/template-resolver/template-system-only.ts +1 -1
  691. package/packages/bundled-features/src/template-resolver/template-usage.ts +4 -1
  692. package/packages/bundled-features/src/template-resolver/template-validation.ts +3 -3
  693. package/packages/bundled-features/src/template-resolver/testing.ts +4 -4
  694. package/packages/bundled-features/src/template-resolver/user-content-table.ts +2 -2
  695. package/packages/bundled-features/src/template-resolver/web/client-plugin.tsx +4 -4
  696. package/packages/bundled-features/src/template-resolver/web/document-editor-extensions.ts +8 -5
  697. package/packages/bundled-features/src/template-resolver/web/document-editor.tsx +2 -2
  698. package/packages/bundled-features/src/template-resolver/web/document-tiptap-editor.tsx +30 -11
  699. package/packages/bundled-features/src/template-resolver/web/editor-handle.ts +2 -2
  700. package/packages/bundled-features/src/template-resolver/web/index.ts +7 -7
  701. package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor-lazy.tsx +3 -3
  702. package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor.tsx +6 -6
  703. package/packages/bundled-features/src/template-resolver/web/placeholder-text.ts +1 -1
  704. package/packages/bundled-features/src/template-resolver-user-data/changes.json +10 -0
  705. package/packages/bundled-features/src/template-resolver-user-data/hooks.ts +1 -1
  706. package/packages/bundled-features/src/template-resolver-user-data/index.ts +1 -4
  707. package/packages/bundled-features/src/tenant/cancel-pending-invitation.ts +2 -2
  708. package/packages/bundled-features/src/tenant/command-schemas.ts +6 -6
  709. package/packages/bundled-features/src/tenant/decrypt-tenant-names.ts +1 -1
  710. package/packages/bundled-features/src/tenant/feature.ts +24 -24
  711. package/packages/bundled-features/src/tenant/handlers/active-tenant-ids.query.ts +1 -1
  712. package/packages/bundled-features/src/tenant/handlers/add-member.write.ts +3 -3
  713. package/packages/bundled-features/src/tenant/handlers/cancel-invitation.write.ts +2 -2
  714. package/packages/bundled-features/src/tenant/handlers/create.write.ts +1 -1
  715. package/packages/bundled-features/src/tenant/handlers/invitations.query.ts +3 -3
  716. package/packages/bundled-features/src/tenant/handlers/list.query.ts +1 -1
  717. package/packages/bundled-features/src/tenant/handlers/me.query.ts +2 -2
  718. package/packages/bundled-features/src/tenant/handlers/member-directory.query.ts +4 -4
  719. package/packages/bundled-features/src/tenant/handlers/member-role-availability.query.ts +1 -1
  720. package/packages/bundled-features/src/tenant/handlers/members.query.ts +3 -3
  721. package/packages/bundled-features/src/tenant/handlers/memberships.query.ts +3 -3
  722. package/packages/bundled-features/src/tenant/handlers/remove-member.write.ts +6 -6
  723. package/packages/bundled-features/src/tenant/handlers/resolve-user-ids.query.ts +1 -1
  724. package/packages/bundled-features/src/tenant/handlers/team-list.query.ts +5 -5
  725. package/packages/bundled-features/src/tenant/handlers/tenant-directory.query.ts +3 -3
  726. package/packages/bundled-features/src/tenant/handlers/toggle-enabled.write.ts +1 -1
  727. package/packages/bundled-features/src/tenant/handlers/update-member-roles.write.ts +3 -3
  728. package/packages/bundled-features/src/tenant/handlers/update.write.ts +1 -1
  729. package/packages/bundled-features/src/tenant/index.ts +10 -10
  730. package/packages/bundled-features/src/tenant/invitation-table.ts +1 -1
  731. package/packages/bundled-features/src/tenant/invited-membership.ts +4 -4
  732. package/packages/bundled-features/src/tenant/is-tenant-serving-public-content.ts +1 -1
  733. package/packages/bundled-features/src/tenant/last-tenant-admin.ts +2 -2
  734. package/packages/bundled-features/src/tenant/member-role-options.ts +1 -1
  735. package/packages/bundled-features/src/tenant/screens.ts +2 -2
  736. package/packages/bundled-features/src/tenant/seeding.ts +3 -3
  737. package/packages/bundled-features/src/tenant/testing.ts +1 -1
  738. package/packages/bundled-features/src/tenant/web/client-plugin.tsx +3 -3
  739. package/packages/bundled-features/src/tenant/web/index.ts +3 -3
  740. package/packages/bundled-features/src/tenant/web/member-roles-cell.tsx +1 -1
  741. package/packages/bundled-features/src/tenant/web/member-status-cell.tsx +1 -1
  742. package/packages/bundled-features/src/tenant-handover/feature.ts +4 -4
  743. package/packages/bundled-features/src/tenant-handover/grant.ts +1 -1
  744. package/packages/bundled-features/src/tenant-handover/handlers/claim.write.ts +5 -5
  745. package/packages/bundled-features/src/tenant-handover/index.ts +3 -3
  746. package/packages/bundled-features/src/tenant-handover/move-entity-graph.ts +1 -1
  747. package/packages/bundled-features/src/tenant-handover/root-anchor.ts +1 -1
  748. package/packages/bundled-features/src/tenant-handover/signup-handover-provider.ts +5 -5
  749. package/packages/bundled-features/src/tenant-lifecycle/boot-checks.ts +1 -1
  750. package/packages/bundled-features/src/tenant-lifecycle/feature.ts +8 -8
  751. package/packages/bundled-features/src/tenant-lifecycle/handlers/cancel-destruction.write.ts +4 -4
  752. package/packages/bundled-features/src/tenant-lifecycle/handlers/request-destruction.write.ts +5 -5
  753. package/packages/bundled-features/src/tenant-lifecycle/index.ts +3 -3
  754. package/packages/bundled-features/src/tenant-lifecycle/lib/revoke-tenant-sessions.ts +1 -1
  755. package/packages/bundled-features/src/tenant-lifecycle/lifecycle-gate.ts +1 -1
  756. package/packages/bundled-features/src/tenant-lifecycle/run-tenant-destroy.ts +5 -5
  757. package/packages/bundled-features/src/tenant-lifecycle/stages.ts +3 -3
  758. package/packages/bundled-features/src/tenant-lifecycle/testing.ts +3 -3
  759. package/packages/bundled-features/src/tenant-settings/changes.json +10 -1
  760. package/packages/bundled-features/src/tenant-settings/feature.ts +2 -5
  761. package/packages/bundled-features/src/tenant-settings/index.ts +4 -5
  762. package/packages/bundled-features/src/tenant-settings/tenant-defaults.ts +1 -1
  763. package/packages/bundled-features/src/tier-engine/changes.json +8 -0
  764. package/packages/bundled-features/src/tier-engine/entity.ts +1 -1
  765. package/packages/bundled-features/src/tier-engine/feature.ts +10 -13
  766. package/packages/bundled-features/src/tier-engine/handlers/get-tenant-tier.query.ts +1 -1
  767. package/packages/bundled-features/src/tier-engine/handlers/set-tenant-tier.write.ts +4 -4
  768. package/packages/bundled-features/src/tier-engine/i18n.ts +4 -10
  769. package/packages/bundled-features/src/tier-engine/index.ts +8 -9
  770. package/packages/bundled-features/src/tier-engine/tier-option-gate.ts +1 -1
  771. package/packages/bundled-features/src/tier-engine/tier-resolver.ts +2 -2
  772. package/packages/bundled-features/src/tier-engine/web/client-plugin.tsx +9 -3
  773. package/packages/bundled-features/src/tier-engine/web/index.ts +1 -1
  774. package/packages/bundled-features/src/user/command-schemas.ts +2 -2
  775. package/packages/bundled-features/src/user/feature.ts +10 -10
  776. package/packages/bundled-features/src/user/handlers/create.write.ts +3 -3
  777. package/packages/bundled-features/src/user/handlers/detail.query.ts +2 -2
  778. package/packages/bundled-features/src/user/handlers/find-for-auth.query.ts +1 -1
  779. package/packages/bundled-features/src/user/handlers/list.query.ts +2 -2
  780. package/packages/bundled-features/src/user/handlers/me.query.ts +1 -1
  781. package/packages/bundled-features/src/user/handlers/update-roles.ts +2 -2
  782. package/packages/bundled-features/src/user/handlers/update.write.ts +4 -4
  783. package/packages/bundled-features/src/user/index.ts +8 -8
  784. package/packages/bundled-features/src/user/invited-global-roles.ts +2 -2
  785. package/packages/bundled-features/src/user/principal-status.ts +1 -1
  786. package/packages/bundled-features/src/user/resolve-display-names.ts +2 -2
  787. package/packages/bundled-features/src/user/schema/user.ts +1 -1
  788. package/packages/bundled-features/src/user/seeding.ts +2 -2
  789. package/packages/bundled-features/src/user/testing.ts +1 -1
  790. package/packages/bundled-features/src/user-data-rights/audit-download.ts +2 -2
  791. package/packages/bundled-features/src/user-data-rights/boot-checks.ts +1 -1
  792. package/packages/bundled-features/src/user-data-rights/db/queries/export-jobs.ts +1 -1
  793. package/packages/bundled-features/src/user-data-rights/db/queries/forget-cleanup.ts +1 -1
  794. package/packages/bundled-features/src/user-data-rights/deletion-token.ts +1 -1
  795. package/packages/bundled-features/src/user-data-rights/feature.ts +31 -31
  796. package/packages/bundled-features/src/user-data-rights/handlers/cancel-deletion.write.ts +3 -3
  797. package/packages/bundled-features/src/user-data-rights/handlers/confirm-deletion-by-token.write.ts +3 -3
  798. package/packages/bundled-features/src/user-data-rights/handlers/deletion-grace-period.ts +3 -3
  799. package/packages/bundled-features/src/user-data-rights/handlers/download-attempt-list.query.ts +1 -1
  800. package/packages/bundled-features/src/user-data-rights/handlers/download-by-job.query.ts +4 -4
  801. package/packages/bundled-features/src/user-data-rights/handlers/download-by-token.query.ts +5 -5
  802. package/packages/bundled-features/src/user-data-rights/handlers/export-job-detail.query.ts +1 -1
  803. package/packages/bundled-features/src/user-data-rights/handlers/export-job-list.query.ts +1 -1
  804. package/packages/bundled-features/src/user-data-rights/handlers/export-status.query.ts +1 -1
  805. package/packages/bundled-features/src/user-data-rights/handlers/lift-restriction.write.ts +3 -3
  806. package/packages/bundled-features/src/user-data-rights/handlers/list-download-attempts.query.ts +2 -2
  807. package/packages/bundled-features/src/user-data-rights/handlers/my-audit-log.query.ts +1 -1
  808. package/packages/bundled-features/src/user-data-rights/handlers/request-deletion-by-email.write.ts +3 -3
  809. package/packages/bundled-features/src/user-data-rights/handlers/request-deletion.write.ts +3 -3
  810. package/packages/bundled-features/src/user-data-rights/handlers/request-export.write.ts +1 -1
  811. package/packages/bundled-features/src/user-data-rights/handlers/restrict-account.write.ts +4 -4
  812. package/packages/bundled-features/src/user-data-rights/handlers/run-forget-cleanup.write.ts +3 -3
  813. package/packages/bundled-features/src/user-data-rights/index.ts +13 -13
  814. package/packages/bundled-features/src/user-data-rights/lib/default-mailers.ts +7 -7
  815. package/packages/bundled-features/src/user-data-rights/lib/deny-if-target-outside-admin-tenant.ts +2 -2
  816. package/packages/bundled-features/src/user-data-rights/lib/mail-transport-resolver.ts +1 -1
  817. package/packages/bundled-features/src/user-data-rights/lib/resolve-tenant-model.ts +2 -2
  818. package/packages/bundled-features/src/user-data-rights/lib/storage-provider-resolver.ts +2 -2
  819. package/packages/bundled-features/src/user-data-rights/lib/update-user-lifecycle.ts +1 -1
  820. package/packages/bundled-features/src/user-data-rights/mail-notifications.ts +2 -2
  821. package/packages/bundled-features/src/user-data-rights/run-export-jobs.ts +8 -8
  822. package/packages/bundled-features/src/user-data-rights/run-forget-cleanup.ts +6 -6
  823. package/packages/bundled-features/src/user-data-rights/run-user-export.ts +2 -2
  824. package/packages/bundled-features/src/user-data-rights/web/client-plugin.tsx +4 -4
  825. package/packages/bundled-features/src/user-data-rights/web/i18n.ts +1 -1
  826. package/packages/bundled-features/src/user-data-rights/web/index.ts +8 -8
  827. package/packages/bundled-features/src/user-data-rights/web/privacy-center-screen.tsx +1 -1
  828. package/packages/bundled-features/src/user-data-rights/web/public-deletion-gate.tsx +2 -2
  829. package/packages/bundled-features/src/user-data-rights-defaults/feature.ts +11 -11
  830. package/packages/bundled-features/src/user-data-rights-defaults/hooks/api-token.userdata-hook.ts +2 -2
  831. package/packages/bundled-features/src/user-data-rights-defaults/hooks/config-value.userdata-hook.ts +3 -3
  832. package/packages/bundled-features/src/user-data-rights-defaults/hooks/delivery-attempt.userdata-hook.ts +2 -2
  833. package/packages/bundled-features/src/user-data-rights-defaults/hooks/download-attempt.userdata-hook.ts +2 -2
  834. package/packages/bundled-features/src/user-data-rights-defaults/hooks/file-ref.userdata-hook.ts +1 -1
  835. package/packages/bundled-features/src/user-data-rights-defaults/hooks/in-app-message.userdata-hook.ts +2 -2
  836. package/packages/bundled-features/src/user-data-rights-defaults/hooks/job-run.userdata-hook.ts +2 -2
  837. package/packages/bundled-features/src/user-data-rights-defaults/hooks/notification-preference.userdata-hook.ts +3 -3
  838. package/packages/bundled-features/src/user-data-rights-defaults/hooks/tenant-invitation.userdata-hook.ts +4 -4
  839. package/packages/bundled-features/src/user-data-rights-defaults/hooks/user-session.userdata-hook.ts +2 -2
  840. package/packages/bundled-features/src/user-data-rights-defaults/hooks/user.userdata-hook.ts +1 -1
  841. package/packages/bundled-features/src/user-data-rights-defaults/index.ts +11 -11
  842. package/packages/bundled-features/src/user-profile/feature.ts +2 -2
  843. package/packages/bundled-features/src/user-profile/handlers/change-email.write.ts +4 -4
  844. package/packages/bundled-features/src/user-profile/index.ts +2 -2
  845. package/packages/bundled-features/src/user-profile/web/client-plugin.ts +3 -3
  846. package/packages/bundled-features/src/user-profile/web/index.ts +2 -2
  847. package/packages/bundled-features/src/user-profile/web/profile-screen.tsx +3 -3
  848. package/packages/bundled-features/src/waitlist/changes.json +7 -0
  849. package/packages/bundled-features/src/waitlist/constants.ts +12 -0
  850. package/packages/bundled-features/src/waitlist/entity.ts +5 -3
  851. package/packages/bundled-features/src/waitlist/entries-admin.ts +55 -0
  852. package/packages/bundled-features/src/waitlist/feature.ts +33 -12
  853. package/packages/bundled-features/src/waitlist/handlers/export-purge.write.ts +81 -0
  854. package/packages/bundled-features/src/waitlist/handlers/invite.write.ts +7 -7
  855. package/packages/bundled-features/src/waitlist/handlers/list.query.ts +2 -2
  856. package/packages/bundled-features/src/waitlist/handlers/reject.write.ts +5 -5
  857. package/packages/bundled-features/src/waitlist/handlers/submit.write.ts +5 -5
  858. package/packages/bundled-features/src/waitlist/i18n.ts +4 -0
  859. package/packages/bundled-features/src/waitlist/import.ts +83 -0
  860. package/packages/bundled-features/src/waitlist/index.ts +23 -5
  861. package/packages/bundled-features/src/waitlist/legacy-migrate.ts +220 -0
  862. package/packages/bundled-features/src/waitlist/lib.ts +5 -5
  863. package/packages/bundled-features/src/waitlist/link-on-signup.ts +106 -0
  864. package/packages/bundled-features/src/waitlist/mail.ts +1 -1
  865. package/packages/bundled-features/src/waitlist/options.ts +15 -3
  866. package/packages/bundled-features/src/waitlist/payloads.ts +3 -1
  867. package/packages/bundled-features/src/waitlist/screens.ts +2 -2
  868. package/packages/bundled-features/src/waitlist/user-data-hooks.ts +3 -3
  869. package/packages/bundled-features/src/workflow-runner/changes.json +8 -0
  870. package/packages/bundled-features/src/workflow-runner/db/queries/due-runs.ts +1 -1
  871. package/packages/bundled-features/src/workflow-runner/event-subscriber.ts +2 -2
  872. package/packages/bundled-features/src/workflow-runner/event-trigger.ts +4 -4
  873. package/packages/bundled-features/src/workflow-runner/feature.ts +4 -7
  874. package/packages/bundled-features/src/workflow-runner/handlers/resume-run.write.ts +3 -3
  875. package/packages/bundled-features/src/workflow-runner/index.ts +4 -4
  876. package/packages/bundled-features/src/workflow-runner/pending-projection.ts +1 -1
  877. package/samples/apps/ui-walkthrough/package.json +2 -1
  878. package/samples/apps/ui-walkthrough/src/app/auth-constants.ts +4 -0
  879. package/samples/apps/ui-walkthrough/src/app/server.ts +10 -1
  880. package/samples/apps/ui-walkthrough/src/app/template-seed-data.ts +1 -1
  881. package/samples/apps/ui-walkthrough/src/features/billing/feature.ts +11 -10
  882. package/samples/apps/ui-walkthrough/src/features/billing/i18n.ts +22 -1
  883. package/samples/apps/ui-walkthrough/src/run-config.ts +14 -5
  884. package/samples/apps/ui-walkthrough/tsconfig.json +1 -0
  885. package/samples/apps/use-all-bundled/feature-manifest.json +44 -3
  886. package/samples/apps/use-all-bundled/scripts/check-coverage.ts +2 -3
  887. package/samples/apps/use-all-bundled/src/run-config.ts +22 -20
  888. package/samples/recipes/apex-surface-auth/README.md +1 -0
  889. package/samples/recipes/apex-surface-auth/src/feature.ts +1 -1
  890. package/samples/recipes/api-worker-split/bin/api.ts +6 -1
  891. package/samples/recipes/app-config/README.md +28 -0
  892. package/samples/recipes/app-config/kumiko.config.ts +9 -0
  893. package/samples/recipes/app-config/package.json +8 -0
  894. package/samples/recipes/app-config/src/feature.ts +6 -0
  895. package/samples/recipes/app-config/tsconfig.json +22 -0
  896. package/samples/recipes/auth-mfa/README.md +14 -0
  897. package/samples/recipes/auth-mfa/src/feature.ts +7 -0
  898. package/samples/recipes/compose-stacks/README.md +60 -0
  899. package/samples/recipes/compose-stacks/package.json +11 -0
  900. package/samples/recipes/compose-stacks/src/app.ts +44 -0
  901. package/samples/recipes/env-composition/README.md +36 -0
  902. package/samples/recipes/env-composition/bin/server.ts +15 -0
  903. package/samples/recipes/env-composition/package.json +15 -0
  904. package/samples/recipes/env-composition/src/env.ts +47 -0
  905. package/samples/recipes/host-routing/README.md +25 -0
  906. package/samples/recipes/host-routing/package.json +12 -0
  907. package/samples/recipes/host-routing/src/feature.ts +35 -0
  908. package/samples/recipes/legal-pages/README.md +15 -0
  909. package/samples/recipes/legal-pages/src/feature.ts +13 -2
  910. package/samples/recipes/managed-config/README.md +1 -0
  911. package/samples/recipes/managed-pages/README.md +1 -0
  912. package/samples/recipes/prod-boot-options/README.md +48 -0
  913. package/samples/recipes/prod-boot-options/bin/server.ts +11 -0
  914. package/samples/recipes/prod-boot-options/package.json +13 -0
  915. package/samples/recipes/prod-boot-options/src/app.ts +32 -0
  916. package/samples/recipes/security-baseline/README.md +16 -13
  917. package/samples/recipes/security-baseline/package.json +2 -1
  918. package/samples/recipes/security-baseline/src/feature.ts +3 -3
  919. package/packages/bundled-features/src/file-provider-s3-env/changes.json +0 -1
  920. package/packages/bundled-features/src/file-provider-s3-env/index.ts +0 -8
  921. package/packages/bundled-features/src/files-provider-s3/changes.json +0 -1
  922. package/packages/bundled-features/src/files-provider-s3/index.ts +0 -11
@@ -1,45 +1,45 @@
1
- export { collectErasureFailure, throwIfErasureFailed } from "./assert-erased.js";
2
- export { assertNoWhereRuleInOwnershipWrite } from "./assert-no-where-rule-in-ownership-write.js";
1
+ export { collectErasureFailure, throwIfErasureFailed } from "./assert-erased.ts";
2
+ export { assertNoWhereRuleInOwnershipWrite } from "./assert-no-where-rule-in-ownership-write.ts";
3
3
  export {
4
4
  attachmentFileNameSchema,
5
5
  sanitizePdfAttachmentFileName,
6
- } from "./attachment-file-name.js";
6
+ } from "./attachment-file-name.ts";
7
7
  export {
8
8
  type ChunkedMigrationOptions,
9
9
  type ChunkedMigrationResult,
10
10
  type ChunkedMigrationStopReason,
11
11
  type MigrationRowOutcome,
12
12
  runChunkedMigration,
13
- } from "./chunked-entity-migration.js";
13
+ } from "./chunked-entity-migration.ts";
14
14
  export {
15
15
  classifyStoredEnvelope,
16
16
  type StoredEnvelopeClassification,
17
- } from "./classify-stored-envelope.js";
18
- export { decryptStoredPii } from "./decrypt-stored-pii.js";
19
- export { encryptForDirectWrite } from "./encrypt-for-direct-write.js";
20
- export { entitiesOf } from "./entities-of.js";
21
- export { isWithinGracePeriod } from "./grace-period.js";
22
- export { isIdentityV3Hash, verifyIdentityV3Hash } from "./identity-v3-hash.js";
23
- export { isTenantDb } from "./is-tenant-db.js";
24
- export { createLockoutCounter, type LockoutCounterState } from "./lockout-counter.js";
25
- export { mailHeading, mailParagraph, mailRepeatedRows } from "./mail-template-body.js";
26
- export { mapWithConcurrency } from "./map-with-concurrency.js";
17
+ } from "./classify-stored-envelope.ts";
18
+ export { decryptStoredPii } from "./decrypt-stored-pii.ts";
19
+ export { encryptForDirectWrite } from "./encrypt-for-direct-write.ts";
20
+ export { entitiesOf } from "./entities-of.ts";
21
+ export { isWithinGracePeriod } from "./grace-period.ts";
22
+ export { isIdentityV3Hash, verifyIdentityV3Hash } from "./identity-v3-hash.ts";
23
+ export { isTenantDb } from "./is-tenant-db.ts";
24
+ export { createLockoutCounter, type LockoutCounterState } from "./lockout-counter.ts";
25
+ export { mailHeading, mailParagraph, mailRepeatedRows } from "./mail-template-body.ts";
26
+ export { mapWithConcurrency } from "./map-with-concurrency.ts";
27
27
  export {
28
28
  denyUnlessJoinRowParentVisible,
29
29
  hostRowIsGone,
30
30
  joinRowParentIsVisible,
31
31
  parentRowIsVisible,
32
- } from "./parent-visibility.js";
33
- export { hashPassword, verifyDummyPassword, verifyPassword } from "./password-hashing.js";
34
- export { rateLimitedTextResponse } from "./rate-limited-text-response.js";
32
+ } from "./parent-visibility.ts";
33
+ export { hashPassword, verifyDummyPassword, verifyPassword } from "./password-hashing.ts";
34
+ export { rateLimitedTextResponse } from "./rate-limited-text-response.ts";
35
35
  export {
36
36
  redactBotTokens,
37
37
  redactEmailAddresses,
38
38
  redactErrorText,
39
39
  redactUrls,
40
- } from "./redact.js";
41
- export { REDACTED_PII_PLACEHOLDER, redactPiiCiphertext } from "./redact-pii-ciphertext.js";
42
- export { requireForTenant } from "./require-for-tenant.js";
40
+ } from "./redact.ts";
41
+ export { REDACTED_PII_PLACEHOLDER, redactPiiCiphertext } from "./redact-pii-ciphertext.ts";
42
+ export { requireForTenant } from "./require-for-tenant.ts";
43
43
  export {
44
44
  extensionForResourceContentType,
45
45
  isResourceImageContentType,
@@ -47,23 +47,23 @@ export {
47
47
  RESOURCE_IMAGE_FORMATS,
48
48
  type ResourceImageContentType,
49
49
  type ResourceImageFormat,
50
- } from "./resource-image-formats.js";
50
+ } from "./resource-image-formats.ts";
51
51
  export {
52
52
  type RowBoundGrantResult,
53
53
  redeemRowBoundGrant,
54
54
  signRowBoundGrant,
55
- } from "./row-bound-grant.js";
56
- export { runInSubTransaction } from "./run-in-sub-transaction.js";
57
- export { registrationLocaleFromRequest, sessionLocaleField } from "./session-locale-field.js";
58
- export { sessionTimezoneField } from "./session-timezone-field.js";
59
- export { assertNotSvg, MAX_INPUT_PIXELS, SHARP_INPUT_OPTIONS } from "./sharp-input-limits.js";
55
+ } from "./row-bound-grant.ts";
56
+ export { runInSubTransaction } from "./run-in-sub-transaction.ts";
57
+ export { registrationLocaleFromRequest, sessionLocaleField } from "./session-locale-field.ts";
58
+ export { sessionTimezoneField } from "./session-timezone-field.ts";
59
+ export { assertNotSvg, MAX_INPUT_PIXELS, SHARP_INPUT_OPTIONS } from "./sharp-input-limits.ts";
60
60
  export {
61
61
  peekTokenSubject,
62
62
  signToken,
63
63
  TokenPurpose,
64
64
  type VerifyResult,
65
65
  verifyToken,
66
- } from "./signed-token.js";
66
+ } from "./signed-token.ts";
67
67
  export {
68
68
  EXT_SIGNUP_HANDOVER,
69
69
  findSignupHandoverProvider,
@@ -71,7 +71,7 @@ export {
71
71
  SIGNUP_HANDOVER_BENIGN_CLAIM_REJECTION_CODE,
72
72
  type SignupHandoverBinding,
73
73
  type SignupHandoverProvider,
74
- } from "./signup-handover.js";
75
- export { createSingleUseTokenStore, hashSingleUseToken } from "./single-use-token-store.js";
76
- export type { SystemQueryFn } from "./system-query.js";
77
- export { type BurnResult, burnToken, unburnToken } from "./token-burn-store.js";
74
+ } from "./signup-handover.ts";
75
+ export { createSingleUseTokenStore, hashSingleUseToken } from "./single-use-token-store.ts";
76
+ export type { SystemQueryFn } from "./system-query.ts";
77
+ export { type BurnResult, burnToken, unburnToken } from "./token-burn-store.ts";
@@ -1,5 +1,5 @@
1
1
  import { hash as argonHash, verify as argonVerify } from "@node-rs/argon2";
2
- import { isIdentityV3Hash, verifyIdentityV3Hash } from "./identity-v3-hash.js";
2
+ import { isIdentityV3Hash, verifyIdentityV3Hash } from "./identity-v3-hash.ts";
3
3
 
4
4
  // OWASP-recommended argon2id parameters (2024 guidance):
5
5
  // memoryCost: 19 MiB, timeCost: 2, parallelism: 1
@@ -32,7 +32,7 @@
32
32
 
33
33
  import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
34
34
  import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
35
- import { peekTokenSubject, signToken, verifyToken } from "./signed-token.js";
35
+ import { peekTokenSubject, signToken, verifyToken } from "./signed-token.ts";
36
36
 
37
37
  export type RowBoundGrantResult =
38
38
  | { readonly ok: true; readonly subject: string; readonly expiresAtMs: number }
@@ -9,15 +9,15 @@ import {
9
9
  import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
10
10
  import type { MultiStreamApplyContext } from "@cosmicdrift/kumiko-framework/pipeline";
11
11
  import { SYSTEM_USER_ID, type TenantId } from "@cosmicdrift/kumiko-types/identifiers";
12
- import { redactEmailAddresses } from "../shared/index.js";
12
+ import { redactEmailAddresses } from "../shared/index.ts";
13
13
  import {
14
14
  buildDispatchSpec,
15
15
  dispatchRequestedPayloadSchema,
16
16
  rawStepKindOf,
17
17
  readPayloadFields,
18
- } from "./dispatch-payload.js";
19
- import { type MailDispatchResult, performMailDispatch } from "./mail-runner.js";
20
- import { performWebhookDispatch } from "./webhook-runner.js";
18
+ } from "./dispatch-payload.ts";
19
+ import { type MailDispatchResult, performMailDispatch } from "./mail-runner.ts";
20
+ import { performWebhookDispatch } from "./webhook-runner.ts";
21
21
 
22
22
  const log = createFallbackLogger("step-dispatcher");
23
23
 
@@ -6,8 +6,8 @@ import {
6
6
  PII_ERASED_SENTINEL,
7
7
  } from "@cosmicdrift/kumiko-framework/crypto";
8
8
  import * as z from "zod";
9
- import { type MailSpec, mailSpecSchema } from "./mail-runner.js";
10
- import { type WebhookSpec, webhookSpecSchema } from "./webhook-runner.js";
9
+ import { type MailSpec, mailSpecSchema } from "./mail-runner.ts";
10
+ import { type WebhookSpec, webhookSpecSchema } from "./webhook-runner.ts";
11
11
 
12
12
  // PII fields of the flat payload are ciphertext under the per-dispatch
13
13
  // record key (system-event-pii.ts). `to`/`headersJson`/`bodyJson` are JSON
@@ -24,16 +24,16 @@ import {
24
24
  deliverJobId,
25
25
  STEP_DISPATCHER_FEATURE,
26
26
  StepDispatcherJobs,
27
- } from "./constants.js";
27
+ } from "./constants.ts";
28
28
  import {
29
29
  deliverDispatchRequest,
30
30
  eraseDispatchKey,
31
31
  isDispatchOutcome,
32
- } from "./deliver-dispatch-request.js";
32
+ } from "./deliver-dispatch-request.ts";
33
33
  import {
34
34
  WEBHOOK_ALLOWED_PRIVATE_HOSTS_ENV_VAR,
35
35
  WEBHOOK_AUTH_SECRET_NAMESPACE_OPTIONS,
36
- } from "./webhook-runner.js";
36
+ } from "./webhook-runner.ts";
37
37
 
38
38
  export const stepDispatcherEnvSchema = z.object({
39
39
  [WEBHOOK_ALLOWED_PRIVATE_HOSTS_ENV_VAR]: z
@@ -2,14 +2,14 @@ export {
2
2
  createStepDispatcherFeature,
3
3
  STEP_DISPATCH_AGGREGATE_TYPE,
4
4
  stepDispatcherEnvSchema,
5
- } from "./feature.js";
5
+ } from "./feature.ts";
6
6
  export {
7
7
  type MailDispatchResult,
8
8
  type MailSpec,
9
9
  mailSpecSchema,
10
10
  performMailDispatch,
11
11
  setMailRunner,
12
- } from "./mail-runner.js";
12
+ } from "./mail-runner.ts";
13
13
  export {
14
14
  performWebhookDispatch,
15
15
  readAllowedPrivateWebhookHostsFromEnv,
@@ -22,4 +22,4 @@ export {
22
22
  type WebhookSpec,
23
23
  webhookAuthSecretKey,
24
24
  webhookSpecSchema,
25
- } from "./webhook-runner.js";
25
+ } from "./webhook-runner.ts";
@@ -31,7 +31,7 @@ import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
31
31
  import type { SecretsContext } from "@cosmicdrift/kumiko-framework/secrets";
32
32
  import type { TenantId } from "@cosmicdrift/kumiko-types/identifiers";
33
33
  import * as z from "zod";
34
- import { isHostAllowlisted, readHostAllowlistFromEnv } from "../foundation-shared/index.js";
34
+ import { isHostAllowlisted, readHostAllowlistFromEnv } from "../foundation-shared/index.ts";
35
35
 
36
36
  const log = createFallbackLogger("step-dispatcher");
37
37
 
@@ -43,9 +43,9 @@ import type { SubscriptionProviderPlugin } from "@cosmicdrift/kumiko-bundled-fea
43
43
  import { defineFeature, type FeatureDefinition } from "@cosmicdrift/kumiko-framework/engine";
44
44
  import { createMollieClient } from "@mollie/api-client";
45
45
  import * as z from "zod";
46
- import { MOLLIE_PROVIDER_NAME, SUBSCRIPTION_MOLLIE_FEATURE } from "./constants.js";
47
- import { createMollieCheckoutSession, type MolliePriceConfig } from "./plugin-methods.js";
48
- import { type MollieClientShape, verifyAndParseMollieWebhook } from "./verify-webhook.js";
46
+ import { MOLLIE_PROVIDER_NAME, SUBSCRIPTION_MOLLIE_FEATURE } from "./constants.ts";
47
+ import { createMollieCheckoutSession, type MolliePriceConfig } from "./plugin-methods.ts";
48
+ import { type MollieClientShape, verifyAndParseMollieWebhook } from "./verify-webhook.ts";
49
49
 
50
50
  /**
51
51
  * Env-vars contract for the `subscription-mollie` feature.
@@ -5,10 +5,10 @@
5
5
  // - mapMollieEventType / mapMollieStatus / extractMollieId (pure helpers,
6
6
  // test-only — direct-import aus dem File wenn echt mal extern gebraucht)
7
7
 
8
- export { MOLLIE_PROVIDER_NAME, SUBSCRIPTION_MOLLIE_FEATURE } from "./constants.js";
8
+ export { MOLLIE_PROVIDER_NAME, SUBSCRIPTION_MOLLIE_FEATURE } from "./constants.ts";
9
9
  export {
10
10
  createSubscriptionMollieFeature,
11
11
  type SubscriptionMollieOptions,
12
12
  subscriptionMollieEnvSchema,
13
- } from "./feature.js";
14
- export type { MolliePriceConfig } from "./plugin-methods.js";
13
+ } from "./feature.ts";
14
+ export type { MolliePriceConfig } from "./plugin-methods.ts";
@@ -28,8 +28,8 @@ import type {
28
28
  Payment as MolliePayment,
29
29
  Subscription as MollieSubscription,
30
30
  } from "@mollie/api-client";
31
- import { MOLLIE_PROVIDER_NAME } from "./constants.js";
32
- import type { MolliePriceConfig } from "./plugin-methods.js";
31
+ import { MOLLIE_PROVIDER_NAME } from "./constants.ts";
32
+ import type { MolliePriceConfig } from "./plugin-methods.ts";
33
33
 
34
34
  const log = createFallbackLogger("subscription-mollie");
35
35
 
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.370.0",
4
+ "type": "improvement",
5
+ "title": "stripeEnvSchema adds price slots to the Stripe env block",
6
+ "detail": "stripeEnvSchema({ prices: [\"PRO\", \"TEAM\"] }) returns the bridge keys plus one optional STRIPE_PRICE_<NAME> per price, each checked for the price_ prefix. Spread it into composeEnvSchema({ extend }) next to createSubscriptionStripeFeature; the shared bridge fields are no key clash."
7
+ },
2
8
  {
3
9
  "version": "0.364.0",
4
10
  "type": "fix",
@@ -38,6 +38,7 @@ import {
38
38
  defineFeature,
39
39
  type FeatureDefinition,
40
40
  } from "@cosmicdrift/kumiko-framework/engine";
41
+ import { type FeatureWithEnvSchema, featureWithEnvSchema } from "@cosmicdrift/kumiko-framework/env";
41
42
  import * as z from "zod";
42
43
  import {
43
44
  STRIPE_API_KEY_CONFIG,
@@ -45,7 +46,7 @@ import {
45
46
  STRIPE_PROVIDER_NAME,
46
47
  STRIPE_WEBHOOK_SECRET_CONFIG,
47
48
  SUBSCRIPTION_STRIPE_FEATURE,
48
- } from "./constants.js";
49
+ } from "./constants.ts";
49
50
  import {
50
51
  createStripeCancelSubscription,
51
52
  createStripeCheckoutSession,
@@ -54,9 +55,9 @@ import {
54
55
  createStripePriceCache,
55
56
  createStripeRetrievePrices,
56
57
  createStripeRetrieveSubscription,
57
- } from "./plugin-methods.js";
58
- import { createStripeRuntimes } from "./runtime.js";
59
- import { verifyAndParseStripeWebhook } from "./verify-webhook.js";
58
+ } from "./plugin-methods.ts";
59
+ import { createStripeRuntimes } from "./runtime.ts";
60
+ import { verifyAndParseStripeWebhook } from "./verify-webhook.ts";
60
61
 
61
62
  /**
62
63
  * Env-vars contract for the `subscription-stripe` feature — now a **bridge
@@ -86,6 +87,32 @@ export const subscriptionStripeEnvSchema = z.object({
86
87
  .optional(),
87
88
  });
88
89
 
90
+ type StripePriceEnvShape<TPrice extends string> = {
91
+ [Key in `STRIPE_PRICE_${TPrice}`]: z.ZodOptional<z.ZodString>;
92
+ };
93
+
94
+ /** Stripe env block plus one `STRIPE_PRICE_<NAME>` slot per price the app
95
+ * maps to a tier, e.g. `stripeEnvSchema({ prices: ["PRO", "TEAM"] })`.
96
+ * Shares its bridge fields with `subscriptionStripeEnvSchema`, so spreading
97
+ * it into `composeEnvSchema({ extend })` next to the mounted feature is no
98
+ * key clash. */
99
+ export function stripeEnvSchema<const TPrice extends string>(options: {
100
+ readonly prices: readonly TPrice[];
101
+ }) {
102
+ const priceShape = Object.fromEntries(
103
+ options.prices.map((price) => [
104
+ `STRIPE_PRICE_${price}`,
105
+ z
106
+ .string()
107
+ .regex(/^price_/, `STRIPE_PRICE_${price} must start with 'price_'`)
108
+ .optional()
109
+ .describe(`Stripe price id (\`price_...\`) of the ${price} plan.`),
110
+ ]),
111
+ // @cast-boundary schema-walk — Object.fromEntries widens to an index signature; the entries are exactly one optional string per listed price.
112
+ ) as StripePriceEnvShape<TPrice>;
113
+ return z.object({ ...subscriptionStripeEnvSchema.shape, ...priceShape });
114
+ }
115
+
89
116
  export type SubscriptionStripeOptions = {
90
117
  /** Bridge-fallback webhook-secret. Optional: v2 liest aus dem
91
118
  * `subscription-stripe:config:webhook-secret`-Key (backing:"secrets").
@@ -141,9 +168,9 @@ function validateOneOffPriceIds(priceIds: readonly string[]): void {
141
168
  */
142
169
  export function createSubscriptionStripeFeature(
143
170
  options: SubscriptionStripeOptions = {},
144
- ): FeatureDefinition {
171
+ ): FeatureWithEnvSchema<FeatureDefinition, typeof subscriptionStripeEnvSchema.shape> {
145
172
  validateOneOffPriceIds(options.oneOffPriceIds ?? []);
146
- return defineFeature(SUBSCRIPTION_STRIPE_FEATURE, (r) => {
173
+ const feature: FeatureDefinition = defineFeature(SUBSCRIPTION_STRIPE_FEATURE, (r) => {
147
174
  r.describe(
148
175
  '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).',
149
176
  );
@@ -248,4 +275,5 @@ export function createSubscriptionStripeFeature(
248
275
 
249
276
  return { configKeys };
250
277
  });
278
+ return featureWithEnvSchema(feature, subscriptionStripeEnvSchema);
251
279
  }
@@ -10,9 +10,10 @@ export {
10
10
  STRIPE_PROVIDER_NAME,
11
11
  StripeEventTypes,
12
12
  SUBSCRIPTION_STRIPE_FEATURE,
13
- } from "./constants.js";
13
+ } from "./constants.ts";
14
14
  export {
15
15
  createSubscriptionStripeFeature,
16
16
  type SubscriptionStripeOptions,
17
+ stripeEnvSchema,
17
18
  subscriptionStripeEnvSchema,
18
- } from "./feature.js";
19
+ } from "./feature.ts";
@@ -27,8 +27,8 @@ import {
27
27
  import type { HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
28
28
  import { ConflictError, UnprocessableError } from "@cosmicdrift/kumiko-framework/errors";
29
29
  import Stripe from "stripe";
30
- import type { StripeCtxRuntime } from "./runtime.js";
31
- import { isResourceMissingStripeError, mapStripeSubscriptionState } from "./verify-webhook.js";
30
+ import type { StripeCtxRuntime } from "./runtime.ts";
31
+ import { isResourceMissingStripeError, mapStripeSubscriptionState } from "./verify-webhook.ts";
32
32
 
33
33
  // =============================================================================
34
34
  // createCheckoutSession
@@ -35,7 +35,7 @@ import { FeatureDisabledError, UnconfiguredError } from "@cosmicdrift/kumiko-fra
35
35
  import type { SecretsContext } from "@cosmicdrift/kumiko-framework/secrets";
36
36
  import { parseJsonOrThrow } from "@cosmicdrift/kumiko-framework/utils";
37
37
  import Stripe from "stripe";
38
- import { SUBSCRIPTION_STRIPE_FEATURE } from "./constants.js";
38
+ import { SUBSCRIPTION_STRIPE_FEATURE } from "./constants.ts";
39
39
 
40
40
  const API_KEY_HINT =
41
41
  "Set the Stripe API key via config:write:set on `subscription-stripe:config:api-key` (or seed it from STRIPE_API_KEY during the env bridge).";
@@ -49,8 +49,8 @@ import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
49
49
  import type { SecretsContext } from "@cosmicdrift/kumiko-framework/secrets";
50
50
  import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
51
51
  import Stripe from "stripe";
52
- import { STRIPE_PROVIDER_NAME, StripeEventTypes } from "./constants.js";
53
- import type { StripeWebhookRuntime } from "./runtime.js";
52
+ import { STRIPE_PROVIDER_NAME, StripeEventTypes } from "./constants.ts";
53
+ import type { StripeWebhookRuntime } from "./runtime.ts";
54
54
 
55
55
  const log = createFallbackLogger("subscription-stripe");
56
56
 
@@ -1,4 +1,12 @@
1
1
  [
2
+ {
3
+ "version": "0.370.0",
4
+ "type": "breaking",
5
+ "title": "The deprecated tagsFeature constant is removed",
6
+ "detail": "tagsFeature was kept next to createTagsFeature() for one release. Mount the feature by calling createTagsFeature().",
7
+ "migration": "Run bun kumiko-upgrade --apply. It replaces tagsFeature with createTagsFeature().",
8
+ "codemod": "scripts/codemod/feature-factory.ts"
9
+ },
2
10
  {
3
11
  "version": "0.338.0",
4
12
  "type": "breaking",
@@ -1,5 +1,5 @@
1
1
  import { createEntityExecutor, type EntityDefinition } from "@cosmicdrift/kumiko-framework/engine";
2
- import { createTagAssignmentEntity, tagAssignmentEntity, tagEntity } from "./entity.js";
2
+ import { createTagAssignmentEntity, tagAssignmentEntity, tagEntity } from "./entity.ts";
3
3
 
4
4
  // Shared executors for the tag + tag-assignment write-handlers.
5
5
  // createEntityExecutor is side-effect-free; instantiating once keeps the
@@ -27,17 +27,17 @@ import {
27
27
  type EntityDefinition,
28
28
  type FeatureRegistrar,
29
29
  } from "@cosmicdrift/kumiko-framework/engine";
30
- import { assertNoWhereRuleInOwnershipWrite } from "../shared/index.js";
31
- import { DEFAULT_TAG_ACCESS, TAGS_FEATURE_NAME } from "./constants.js";
32
- import { createTagAssignmentEntity, tagEntity } from "./entity.js";
33
- import { createTagAssignmentExecutor } from "./executor.js";
34
- import { createAssignTagHandler } from "./handlers/assign-tag.write.js";
35
- import { createCreateTagHandler } from "./handlers/create-tag.write.js";
36
- import { createDeleteTagHandler } from "./handlers/delete-tag.write.js";
37
- import { createRemoveTagHandler } from "./handlers/remove-tag.write.js";
38
- import { createUpdateTagHandler } from "./handlers/update-tag.write.js";
39
- import { TAGS_FEATURE_I18N } from "./i18n.js";
40
- import { createTagEditScreen, createTagListScreen } from "./screens.js";
30
+ import { assertNoWhereRuleInOwnershipWrite } from "../shared/index.ts";
31
+ import { DEFAULT_TAG_ACCESS, TAGS_FEATURE_NAME } from "./constants.ts";
32
+ import { createTagAssignmentEntity, tagEntity } from "./entity.ts";
33
+ import { createTagAssignmentExecutor } from "./executor.ts";
34
+ import { createAssignTagHandler } from "./handlers/assign-tag.write.ts";
35
+ import { createCreateTagHandler } from "./handlers/create-tag.write.ts";
36
+ import { createDeleteTagHandler } from "./handlers/delete-tag.write.ts";
37
+ import { createRemoveTagHandler } from "./handlers/remove-tag.write.ts";
38
+ import { createUpdateTagHandler } from "./handlers/update-tag.write.ts";
39
+ import { TAGS_FEATURE_I18N } from "./i18n.ts";
40
+ import { createTagEditScreen, createTagListScreen } from "./screens.ts";
41
41
 
42
42
  // Opt-in tier-gating: when set, the feature declares itself r.toggleable so the
43
43
  // dispatcher gate + feature-toggles + tier-engine can switch the WHOLE feature
@@ -207,6 +207,3 @@ export function createTagsFeature(opts: TagsFeatureOptions = {}): typeof default
207
207
  registerTags(r, access, opts.toggleable, opts.ownership, opts.parents),
208
208
  );
209
209
  }
210
-
211
- /** @deprecated Use createTagsFeature(). Run `bun kumiko-upgrade --apply`. Removed in the first release after 2026-10-29. */
212
- export const tagsFeature = createTagsFeature();
@@ -1,11 +1,11 @@
1
1
  import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
2
2
  import { NotFoundError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
3
3
  import { isPlainObject } from "@cosmicdrift/kumiko-types/type-guards";
4
- import { denyUnlessJoinRowParentVisible } from "../../shared/index.js";
5
- import { tagAssignmentAggregateId } from "../aggregate-id.js";
6
- import { DEFAULT_TAG_ACCESS } from "../constants.js";
7
- import { tagAssignmentExecutor, tagExecutor } from "../executor.js";
8
- import { type AssignTagPayload, assignTagPayloadSchema } from "../schemas.js";
4
+ import { denyUnlessJoinRowParentVisible } from "../../shared/index.ts";
5
+ import { tagAssignmentAggregateId } from "../aggregate-id.ts";
6
+ import { DEFAULT_TAG_ACCESS } from "../constants.ts";
7
+ import { tagAssignmentExecutor, tagExecutor } from "../executor.ts";
8
+ import { type AssignTagPayload, assignTagPayloadSchema } from "../schemas.ts";
9
9
 
10
10
  // assign-tag — links a tag to a host entity by (entityType, entityId). The
11
11
  // assignment id is deterministic, so the row is unique per (tag, entity).
@@ -1,7 +1,7 @@
1
1
  import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
2
- import { DEFAULT_TAG_ACCESS } from "../constants.js";
3
- import { tagExecutor } from "../executor.js";
4
- import { type CreateTagPayload, createTagPayloadSchema } from "../schemas.js";
2
+ import { DEFAULT_TAG_ACCESS } from "../constants.ts";
3
+ import { tagExecutor } from "../executor.ts";
4
+ import { type CreateTagPayload, createTagPayloadSchema } from "../schemas.ts";
5
5
 
6
6
  // create-tag — adds a tag to the tenant's catalog. The framework mints a fresh
7
7
  // UUIDv7 id (no explicit id passed). Tag names are not unique by design: the
@@ -1,7 +1,7 @@
1
1
  import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
2
- import { DEFAULT_TAG_ACCESS } from "../constants.js";
3
- import { tagAssignmentExecutor, tagExecutor } from "../executor.js";
4
- import { type DeleteTagPayload, deleteTagPayloadSchema } from "../schemas.js";
2
+ import { DEFAULT_TAG_ACCESS } from "../constants.ts";
3
+ import { tagAssignmentExecutor, tagExecutor } from "../executor.ts";
4
+ import { type DeleteTagPayload, deleteTagPayloadSchema } from "../schemas.ts";
5
5
 
6
6
  const CASCADE_PAGE = 200;
7
7
 
@@ -1,9 +1,9 @@
1
1
  import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
2
- import { denyUnlessJoinRowParentVisible } from "../../shared/index.js";
3
- import { tagAssignmentAggregateId } from "../aggregate-id.js";
4
- import { DEFAULT_TAG_ACCESS } from "../constants.js";
5
- import { tagAssignmentExecutor } from "../executor.js";
6
- import { type RemoveTagPayload, removeTagPayloadSchema } from "../schemas.js";
2
+ import { denyUnlessJoinRowParentVisible } from "../../shared/index.ts";
3
+ import { tagAssignmentAggregateId } from "../aggregate-id.ts";
4
+ import { DEFAULT_TAG_ACCESS } from "../constants.ts";
5
+ import { tagAssignmentExecutor } from "../executor.ts";
6
+ import { type RemoveTagPayload, removeTagPayloadSchema } from "../schemas.ts";
7
7
 
8
8
  // remove-tag — unlinks a tag from a host entity. Idempotent: removing an
9
9
  // assignment that doesn't exist is already the requested end state (not
@@ -1,7 +1,7 @@
1
1
  import type { AccessRule, WriteHandlerDef } from "@cosmicdrift/kumiko-framework/engine";
2
- import { DEFAULT_TAG_ACCESS } from "../constants.js";
3
- import { tagExecutor } from "../executor.js";
4
- import { type UpdateTagPayload, updateTagPayloadSchema } from "../schemas.js";
2
+ import { DEFAULT_TAG_ACCESS } from "../constants.ts";
3
+ import { tagExecutor } from "../executor.ts";
4
+ import { type UpdateTagPayload, updateTagPayloadSchema } from "../schemas.ts";
5
5
 
6
6
  // update-tag — edits a catalog tag (rename / recolor / re-scope). Optimistic-
7
7
  // locked: the client sends the `version` it read (mirrors tenant:update). Only
@@ -1,4 +1,4 @@
1
- export { tagAssignmentAggregateId } from "./aggregate-id.js";
1
+ export { tagAssignmentAggregateId } from "./aggregate-id.ts";
2
2
  export {
3
3
  DEFAULT_TAG_ACCESS,
4
4
  DEFAULT_TAG_ROLES,
@@ -10,29 +10,29 @@ export {
10
10
  TAGS_SECTION_EXTENSION_NAME,
11
11
  TagsHandlers,
12
12
  TagsQueries,
13
- } from "./constants.js";
14
- export { tagAssignmentEntity, tagEntity } from "./entity.js";
15
- export { createTagsFeature, type TagsFeatureOptions, tagsFeature } from "./feature.js";
13
+ } from "./constants.ts";
14
+ export { tagAssignmentEntity, tagEntity } from "./entity.ts";
15
+ export { createTagsFeature, type TagsFeatureOptions } from "./feature.ts";
16
16
  export {
17
17
  assignTagHandler,
18
18
  createAssignTagHandler,
19
- } from "./handlers/assign-tag.write.js";
19
+ } from "./handlers/assign-tag.write.ts";
20
20
  export {
21
21
  createCreateTagHandler,
22
22
  createTagHandler,
23
- } from "./handlers/create-tag.write.js";
23
+ } from "./handlers/create-tag.write.ts";
24
24
  export {
25
25
  createDeleteTagHandler,
26
26
  deleteTagHandler,
27
- } from "./handlers/delete-tag.write.js";
27
+ } from "./handlers/delete-tag.write.ts";
28
28
  export {
29
29
  createRemoveTagHandler,
30
30
  removeTagHandler,
31
- } from "./handlers/remove-tag.write.js";
31
+ } from "./handlers/remove-tag.write.ts";
32
32
  export {
33
33
  createUpdateTagHandler,
34
34
  updateTagHandler,
35
- } from "./handlers/update-tag.write.js";
35
+ } from "./handlers/update-tag.write.ts";
36
36
  export {
37
37
  type AssignTagPayload,
38
38
  assignTagPayloadSchema,
@@ -44,5 +44,5 @@ export {
44
44
  removeTagPayloadSchema,
45
45
  type UpdateTagPayload,
46
46
  updateTagPayloadSchema,
47
- } from "./schemas.js";
48
- export { createTagEditScreen, createTagListScreen } from "./screens.js";
47
+ } from "./schemas.ts";
48
+ export { createTagEditScreen, createTagListScreen } from "./screens.ts";
@@ -4,7 +4,7 @@ import {
4
4
  type EntityListScreenDefinition,
5
5
  i18nKey,
6
6
  } from "@cosmicdrift/kumiko-framework/engine";
7
- import { DEFAULT_TAG_ACCESS, TAGS_EDIT_SCREEN_ID, TAGS_SCREEN_ID } from "./constants.js";
7
+ import { DEFAULT_TAG_ACCESS, TAGS_EDIT_SCREEN_ID, TAGS_SCREEN_ID } from "./constants.ts";
8
8
 
9
9
  // Declarative catalog screens (Phase-3 / #2312). Access matches create/update/
10
10
  // delete so createTagsFeature({ access|roles }) stays consistent. TagManager
@@ -6,11 +6,11 @@ import {
6
6
  TAGS_FEATURE_NAME,
7
7
  TAGS_FILTER_EXTENSION_NAME,
8
8
  TAGS_SECTION_EXTENSION_NAME,
9
- } from "../constants.js";
10
- import { defaultTranslations } from "./i18n.js";
11
- import { TagFilter } from "./tag-filter.js";
12
- import { TagSection } from "./tag-section.js";
13
- import { TagsCell } from "./tags-cell.js";
9
+ } from "../constants.ts";
10
+ import { defaultTranslations } from "./i18n.ts";
11
+ import { TagFilter } from "./tag-filter.tsx";
12
+ import { TagSection } from "./tag-section.tsx";
13
+ import { TagsCell } from "./tags-cell.tsx";
14
14
 
15
15
  export function tagsClient(): ClientFeatureDefinition {
16
16
  return {
@@ -6,8 +6,8 @@
6
6
 
7
7
  import { useQuery } from "@cosmicdrift/kumiko-renderer";
8
8
  import type { ReactNode } from "react";
9
- import { TagsQueries } from "../constants.js";
10
- import { TagChip } from "./tag-chip.js";
9
+ import { TagsQueries } from "../constants.ts";
10
+ import { TagChip } from "./tag-chip.tsx";
11
11
 
12
12
  type TagRow = { readonly id: string; readonly name: string; readonly color?: string | null };
13
13
  type AssignmentRow = {