@classytic/arc 2.50.0 → 2.52.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 (167) hide show
  1. package/dist/{EventTransport-B18mcj_M.mjs → EventTransport-DeNze_-C.mjs} +2 -2
  2. package/dist/{HookSystem-FUBaLTRm.mjs → HookSystem-DTffXM1X.mjs} +2 -2
  3. package/dist/{ResourceRegistry-C5NM07fZ.mjs → ResourceRegistry-tlqXSZoK.mjs} +2 -2
  4. package/dist/{acquire-MHCnbDtH.mjs → acquire-7JKEkKnN.mjs} +1 -1
  5. package/dist/audit/index.mjs +4 -4
  6. package/dist/auth/audit.mjs +1 -1
  7. package/dist/auth/index.d.mts +30 -0
  8. package/dist/auth/index.mjs +172 -32
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/auth/social/index.d.mts +42 -0
  11. package/dist/auth/social/index.mjs +311 -0
  12. package/dist/{authorizationDecision-BD8K4jdQ.mjs → authorizationDecision-DKmH4tZ-.mjs} +9 -7
  13. package/dist/{boundedMap-CuCwos_X.mjs → boundedMap-zxGBpXX0.mjs} +1 -1
  14. package/dist/{buildHandler-BttjNkTM.mjs → buildHandler-ZDV6LRZ_.mjs} +5 -5
  15. package/dist/cache/index.mjs +4 -4
  16. package/dist/{caching-CxUQLHfR.mjs → caching-DceUN9Xk.mjs} +2 -2
  17. package/dist/{claimed-CQ4ZpD8K.mjs → claimed-DsP5Hi_f.mjs} +1 -1
  18. package/dist/cleanup/index.mjs +4 -4
  19. package/dist/cli/commands/describe.mjs +3 -3
  20. package/dist/cli/commands/docs.mjs +3 -3
  21. package/dist/cli/commands/doctor.mjs +1 -1
  22. package/dist/cli/commands/generate.mjs +2 -2
  23. package/dist/cli/commands/init.mjs +2 -2
  24. package/dist/cli/commands/introspect.mjs +2 -2
  25. package/dist/cli/index.mjs +3 -3
  26. package/dist/{constants-BZFsZwJh.mjs → constants-Ca2IQFy2.mjs} +1 -1
  27. package/dist/context/index.mjs +5 -5
  28. package/dist/core/index.d.mts +1 -1
  29. package/dist/core/index.mjs +7 -7
  30. package/dist/{core-DWA1-5IE.mjs → core-M18RhMqi.mjs} +3 -3
  31. package/dist/{createActionRouter-fP3l2xVF.mjs → createActionRouter-zXlrwWVs.mjs} +5 -5
  32. package/dist/{createAggregationRouter-BJZeOmBa.mjs → createAggregationRouter-CN0Da9nC.mjs} +7 -7
  33. package/dist/{createApp-Db9JRumw.mjs → createApp-BC67ACu4.mjs} +29 -29
  34. package/dist/{defineAggregation-BskqRz8M.mjs → defineAggregation-DqAGb5oI.mjs} +1 -1
  35. package/dist/{defineResource-B2vTvKzW.mjs → defineResource-DC5UqkQv.mjs} +8 -8
  36. package/dist/discovery/index.mjs +1 -1
  37. package/dist/docs/index.mjs +3 -3
  38. package/dist/{elevation-XoY0C73T.mjs → elevation-DiXVg98q.mjs} +5 -5
  39. package/dist/encryption/index.d.mts +26 -1
  40. package/dist/encryption/index.mjs +56 -6
  41. package/dist/{errorHandler-BYI-JQMm.mjs → errorHandler-BUTm9P_f.mjs} +3 -3
  42. package/dist/{errors-3xaK0i9n.mjs → errors-DxpHZBlW.mjs} +1 -1
  43. package/dist/{eventPlugin-CVQ9ddnL.mjs → eventPlugin-ZsIQPRso.mjs} +8 -8
  44. package/dist/{eventTypes-UPYg7gW1.mjs → eventTypes-D-pFtqT1.mjs} +2 -2
  45. package/dist/events/index.mjs +8 -8
  46. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  47. package/dist/events/transports/redis.mjs +2 -2
  48. package/dist/factory/index.d.mts +4 -4
  49. package/dist/factory/index.mjs +7 -7
  50. package/dist/{fastify-augmentation-baQc3MaO.d.mts → fastify-augmentation-CPReFhZ1.d.mts} +1 -1
  51. package/dist/{fieldTypes-CxRvCaaZ.mjs → fieldTypes-f-3TZgR3.mjs} +2 -2
  52. package/dist/{fields-DLFcJiDe.mjs → fields-kCbIDTjA.mjs} +1 -1
  53. package/dist/{filter-merge-Bvjk_8dV.mjs → filter-merge-UJCgjbZR.mjs} +1 -1
  54. package/dist/{generate-0OpCUjUv.mjs → generate-CLpmzbJ_.mjs} +2 -2
  55. package/dist/{headers-BROW65-r.mjs → headers-Bh47h0XH.mjs} +2 -2
  56. package/dist/{health-Cy6aOg1i.mjs → health-CEpgVAl7.mjs} +1 -1
  57. package/dist/{health-Cfh-kYI_.mjs → health-W4S2yFBL.mjs} +1 -1
  58. package/dist/hooks/index.mjs +2 -2
  59. package/dist/http-cache/index.mjs +4 -4
  60. package/dist/http-cache/purgers/cloudflare.mjs +2 -2
  61. package/dist/http-cache/purgers/fastly.mjs +2 -2
  62. package/dist/http-cache/testing/index.mjs +1 -1
  63. package/dist/idempotency/index.mjs +7 -7
  64. package/dist/idempotency/redis.mjs +2 -2
  65. package/dist/{index-DexdFs1a.d.mts → index-CSbDhif4.d.mts} +19 -1
  66. package/dist/{index-DKM2p5w5.d.mts → index-DCH08eqQ.d.mts} +1 -1
  67. package/dist/{index-Dhrks-hM.d.mts → index-yXXCsKl7.d.mts} +1 -1
  68. package/dist/index.d.mts +2 -2
  69. package/dist/index.mjs +11 -11
  70. package/dist/{init-D7PQcvvL.mjs → init-B43DXBpc.mjs} +22 -22
  71. package/dist/integrations/event-gateway.mjs +2 -2
  72. package/dist/integrations/index.mjs +1 -1
  73. package/dist/integrations/jobs/index.mjs +3 -3
  74. package/dist/integrations/mcp/index.mjs +2 -2
  75. package/dist/integrations/mcp/testing.mjs +2 -2
  76. package/dist/integrations/streamline.mjs +3 -3
  77. package/dist/integrations/webhooks.mjs +4 -4
  78. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  79. package/dist/integrations/websocket-redis.mjs +1 -1
  80. package/dist/integrations/websocket.mjs +2 -2
  81. package/dist/{jsonBody-C0oREwUc.mjs → jsonBody-CkKs6dA_.mjs} +2 -2
  82. package/dist/{keys-CGlPoVSn.mjs → keys-DHrHnT0f.mjs} +1 -1
  83. package/dist/{loadResources-Oi47dogA.mjs → loadResources-CFdzAWQZ.mjs} +3 -3
  84. package/dist/{loadResourcesFromEntry-BW-LexBz.mjs → loadResourcesFromEntry-DkoSiJsI.mjs} +2 -2
  85. package/dist/logger/index.mjs +2 -2
  86. package/dist/{logger-BagW7_YA.mjs → logger-DJwz_-Pl.mjs} +1 -1
  87. package/dist/{mcpPlugin-C6-wFsOX.mjs → mcpPlugin-CA_MDFlS.mjs} +21 -21
  88. package/dist/{memory-Bl7kv6TS.mjs → memory-B9CFHbA_.mjs} +3 -3
  89. package/dist/{metrics-CqnMJKrJ.mjs → metrics-DSKv-T9K.mjs} +3 -3
  90. package/dist/middleware/index.mjs +3 -3
  91. package/dist/migrations/index.mjs +2 -2
  92. package/dist/{module-lbEbHUfI.mjs → module-C0JCsnO7.mjs} +17 -2
  93. package/dist/{multipartBody-CqNezaB3.mjs → multipartBody-Bxz-q6hI.mjs} +1 -1
  94. package/dist/{observeSend-BjilzlYl.mjs → observeSend-DfNkdGww.mjs} +1 -1
  95. package/dist/{openapi-DXNbadgd.mjs → openapi-Dmp7Ipsi.mjs} +6 -6
  96. package/dist/outbox-admin/index.mjs +5 -5
  97. package/dist/{outbox-module-k5rIszQ4.mjs → outbox-module-vT6PaThj.mjs} +7 -7
  98. package/dist/permissions/index.mjs +7 -7
  99. package/dist/{permissions-BJylQopQ.mjs → permissions-Cga6KBOX.mjs} +9 -9
  100. package/dist/{pipe-D1cq8hET.mjs → pipe-CqPweKdL.mjs} +2 -2
  101. package/dist/pipeline/index.mjs +2 -2
  102. package/dist/{plan-iEgaS5_H.mjs → plan-CbDTFbTj.mjs} +1 -1
  103. package/dist/{plugin-DsLr6L4O.mjs → plugin-8Z1khbAI.mjs} +24 -24
  104. package/dist/plugins/index.d.mts +1 -1
  105. package/dist/plugins/index.mjs +18 -18
  106. package/dist/plugins/response-cache.mjs +4 -4
  107. package/dist/plugins/tracing-entry.mjs +2 -2
  108. package/dist/{pluralize-CX4ZvwCa.mjs → pluralize-D4vcPLVs.mjs} +1 -1
  109. package/dist/presets/filesUpload.mjs +5 -5
  110. package/dist/presets/index.mjs +2 -2
  111. package/dist/presets/multiTenant.mjs +5 -5
  112. package/dist/presets/search.mjs +2 -2
  113. package/dist/{presets-D_suT4OY.mjs → presets-D28IABZe.mjs} +4 -4
  114. package/dist/{projection-CmjGjFih.mjs → projection-aHCtDQQ9.mjs} +2 -2
  115. package/dist/{purger.types-CZwkTZ7B.mjs → purger.types-CNFmEtFu.mjs} +1 -1
  116. package/dist/{queryCachePlugin-BDOPEAmH.mjs → queryCachePlugin-CwpEjCwz.mjs} +6 -6
  117. package/dist/{rateLimitKey-igF1x64n.mjs → rateLimitKey-D9dl3FQn.mjs} +1 -1
  118. package/dist/{realtime-Cq_ugiWw.mjs → realtime-Dvu8ES2z.mjs} +11 -11
  119. package/dist/registry/index.d.mts +1 -1
  120. package/dist/registry/index.mjs +3 -3
  121. package/dist/{registry-DmF9Akvn.mjs → registry-DmxbzW7-.mjs} +2 -2
  122. package/dist/{relay-DA89IhFt.mjs → relay-CEaCmUfG.mjs} +5 -5
  123. package/dist/{renewingLease-DBtGUt8T.mjs → renewingLease-g2FjB3im.mjs} +1 -1
  124. package/dist/{replyHelpers-CUbeUc5q.mjs → replyHelpers-CSByAX_Z.mjs} +2 -2
  125. package/dist/{requestContext-DO9Qv0gw.mjs → requestContext-yc7MSgmq.mjs} +1 -1
  126. package/dist/{requirement-C3GaQmkR.mjs → requirement-Dm8njSoC.mjs} +1 -1
  127. package/dist/{resourceRateLimit-KKn-sFhb.mjs → resourceRateLimit-PQaY3HW1.mjs} +2 -2
  128. package/dist/{rolldown-runtime-Ck1Tj4Ax.mjs → rolldown-runtime-BBBkGgwA.mjs} +1 -1
  129. package/dist/{routeValidator-BF7n34xV.mjs → routeValidator-fuG51bQA.mjs} +1 -1
  130. package/dist/{runtimeCapabilities-D0A4kkrC.mjs → runtimeCapabilities-B8IT7xiQ.mjs} +1 -1
  131. package/dist/{schedules-CLrQRSTt.mjs → schedules-0-aS4jDV.mjs} +5 -5
  132. package/dist/{schemaConverter-JEmU21fu.mjs → schemaConverter-Cs3SwP4R.mjs} +2 -2
  133. package/dist/{schemaIR-wOffQlbq.mjs → schemaIR-By8XiNeE.mjs} +14 -14
  134. package/dist/schemas/index.mjs +1 -1
  135. package/dist/scim/index.mjs +2 -2
  136. package/dist/scope/index.mjs +5 -5
  137. package/dist/{scope-CcTMRd7s.mjs → scope-BWNAlBj0.mjs} +4 -4
  138. package/dist/{shutdown-BIR-QBYM.mjs → shutdown-Cf-27xsS.mjs} +1 -1
  139. package/dist/{simpleEqualityMatcher-DqqJqovq.mjs → simpleEqualityMatcher-e-dgJcUO.mjs} +1 -1
  140. package/dist/{sse-OEuPpgss.mjs → sse-C3bj5qWi.mjs} +7 -7
  141. package/dist/{sseStream-DknHE2K5.mjs → sseStream-BYZbpFDa.mjs} +2 -2
  142. package/dist/{store-helpers-D4vtEXt2.mjs → store-helpers-B9HierHY.mjs} +1 -1
  143. package/dist/{streaming-CcIpcx02.mjs → streaming-EN8NJWxr.mjs} +1 -1
  144. package/dist/{subscriberIdentity-PO6kimAl.mjs → subscriberIdentity-DSqCh38x.mjs} +1 -1
  145. package/dist/{tenancy-CH2Kuksc.mjs → tenancy-CAqjGQcQ.mjs} +2 -2
  146. package/dist/{tenantPreparation-BTGpblQW.mjs → tenantPreparation-CVBWarqs.mjs} +4 -4
  147. package/dist/testing/cleanupStoreContract.mjs +1 -1
  148. package/dist/testing/index.d.mts +2 -2
  149. package/dist/testing/index.mjs +11 -11
  150. package/dist/testing/outboxStoreContract.mjs +2 -2
  151. package/dist/testing/requiredPorts.mjs +2 -2
  152. package/dist/testing/storageContract.mjs +1 -1
  153. package/dist/{timing-Dii5X7AP.mjs → timing-CKI_Oyub.mjs} +1 -1
  154. package/dist/{transactionContext-DMPhYEOt.mjs → transactionContext-D0UZFoSy.mjs} +1 -1
  155. package/dist/{typeGuards-C1o_XEyp.mjs → typeGuards-CLYkmBLT.mjs} +1 -1
  156. package/dist/types/index.mjs +1 -1
  157. package/dist/types/storage.mjs +1 -1
  158. package/dist/{types-BuV_cFqT.mjs → types-Cunc4shv.mjs} +4 -4
  159. package/dist/usage/index.mjs +4 -4
  160. package/dist/{userHelpers-D4m_pLSC.mjs → userHelpers-cT5j1kgp.mjs} +1 -1
  161. package/dist/utils/index.mjs +12 -12
  162. package/dist/{utils-CxLMXGn5.mjs → utils-DlNkm1dI.mjs} +6 -6
  163. package/dist/{validate-CZ975J8N.mjs → validate-63QThRoS.mjs} +3 -3
  164. package/dist/{versioning-B2_8SBZo.mjs → versioning-f2YGmh4i.mjs} +3 -3
  165. package/dist/{workScope-B3W3r35s.mjs → workScope-DwspXz70.mjs} +2 -2
  166. package/package.json +17 -12
  167. package/skills/arc/references/auth-better-auth.md +27 -1
@@ -1,19 +1,19 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-BagW7_YA.mjs";
4
- import { n as PUBLIC_SCOPE } from "./types-BuV_cFqT.mjs";
5
- import { t as runObservingSend } from "./observeSend-BjilzlYl.mjs";
6
- import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-D0A4kkrC.mjs";
7
- import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-BIR-QBYM.mjs";
8
- import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-igF1x64n.mjs";
9
- import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-KKn-sFhb.mjs";
10
- import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-BF7n34xV.mjs";
11
- import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-Cfh-kYI_.mjs";
12
- import { t as parseJsonBody } from "./jsonBody-C0oREwUc.mjs";
13
- import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-iEgaS5_H.mjs";
14
- import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-UPYg7gW1.mjs";
15
- import { r as withSubscriberId } from "./subscriberIdentity-PO6kimAl.mjs";
16
- import { r as getOptionalModuleExports } from "./module-lbEbHUfI.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-DJwz_-Pl.mjs";
4
+ import { n as PUBLIC_SCOPE } from "./types-Cunc4shv.mjs";
5
+ import { t as runObservingSend } from "./observeSend-DfNkdGww.mjs";
6
+ import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-B8IT7xiQ.mjs";
7
+ import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-Cf-27xsS.mjs";
8
+ import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-D9dl3FQn.mjs";
9
+ import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-PQaY3HW1.mjs";
10
+ import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-fuG51bQA.mjs";
11
+ import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-W4S2yFBL.mjs";
12
+ import { t as parseJsonBody } from "./jsonBody-CkKs6dA_.mjs";
13
+ import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-CbDTFbTj.mjs";
14
+ import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-D-pFtqT1.mjs";
15
+ import { r as withSubscriberId } from "./subscriberIdentity-DSqCh38x.mjs";
16
+ import { r as getOptionalModuleExports } from "./module-C0JCsnO7.mjs";
17
17
  import { isProductionEnv, readEnv } from "@classytic/primitives/environment";
18
18
  import Fastify from "fastify";
19
19
  import qs from "qs";
@@ -766,7 +766,7 @@ async function registerArcCore(fastify, config, trackPlugin) {
766
766
  await fastify.register(arcCorePlugin, { emitEvents: config.arcPlugins?.emitEvents !== false });
767
767
  trackPlugin("arc-core");
768
768
  if (config.arcPlugins?.events !== false) {
769
- const { default: eventPlugin } = await import("./eventPlugin-CVQ9ddnL.mjs").then((n) => n.r);
769
+ const { default: eventPlugin } = await import("./eventPlugin-ZsIQPRso.mjs").then((n) => n.r);
770
770
  const eventOpts = typeof config.arcPlugins?.events === "object" ? config.arcPlugins.events : {};
771
771
  await fastify.register(eventPlugin, {
772
772
  /**
@@ -821,15 +821,15 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
821
821
  trackPlugin("arc-graceful-shutdown", shutdownOpts);
822
822
  }
823
823
  if (config.arcPlugins?.caching) {
824
- const { default: cachingPlugin } = await import("./caching-CxUQLHfR.mjs").then((n) => n.n);
824
+ const { default: cachingPlugin } = await import("./caching-DceUN9Xk.mjs").then((n) => n.n);
825
825
  const opts = config.arcPlugins.caching === true ? {} : config.arcPlugins.caching;
826
826
  await fastify.register(cachingPlugin, opts);
827
827
  trackPlugin("arc-caching", opts);
828
828
  }
829
829
  if (config.arcPlugins?.queryCache) {
830
- const { queryCachePlugin } = await import("./queryCachePlugin-BDOPEAmH.mjs").then((n) => n.n);
830
+ const { queryCachePlugin } = await import("./queryCachePlugin-CwpEjCwz.mjs").then((n) => n.n);
831
831
  const opts = config.arcPlugins.queryCache === true ? {} : config.arcPlugins.queryCache;
832
- const store = config.stores?.queryCache ?? new (await (import("./memory-Bl7kv6TS.mjs").then((n) => n.n))).MemoryCacheStore();
832
+ const store = config.stores?.queryCache ?? new (await (import("./memory-B9CFHbA_.mjs").then((n) => n.n))).MemoryCacheStore();
833
833
  await fastify.register(queryCachePlugin, {
834
834
  store,
835
835
  ...opts
@@ -839,7 +839,7 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
839
839
  if (config.arcPlugins?.sse) {
840
840
  if (config.arcPlugins?.events === false) fastify.log.warn("SSE plugin requires events plugin (arcPlugins.events). SSE disabled.");
841
841
  else {
842
- const { default: ssePlugin } = await import("./sse-OEuPpgss.mjs").then((n) => n.n);
842
+ const { default: ssePlugin } = await import("./sse-C3bj5qWi.mjs").then((n) => n.n);
843
843
  const opts = config.arcPlugins.sse === true ? {} : config.arcPlugins.sse;
844
844
  await fastify.register(ssePlugin, opts);
845
845
  trackPlugin("arc-sse", opts);
@@ -848,20 +848,20 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
848
848
  if (config.arcPlugins?.realtime) {
849
849
  if (config.arcPlugins?.events === false) fastify.log.warn("Realtime plugin requires events plugin (arcPlugins.events). Realtime disabled.");
850
850
  else {
851
- const { default: realtimePlugin } = await import("./realtime-Cq_ugiWw.mjs").then((n) => n.n);
851
+ const { default: realtimePlugin } = await import("./realtime-Dvu8ES2z.mjs").then((n) => n.n);
852
852
  const opts = config.arcPlugins.realtime === true ? {} : config.arcPlugins.realtime;
853
853
  await fastify.register(realtimePlugin, opts);
854
854
  trackPlugin("arc-realtime", opts);
855
855
  }
856
856
  }
857
857
  if (config.arcPlugins?.metrics) {
858
- const { default: metricsPlugin } = await import("./metrics-CqnMJKrJ.mjs").then((n) => n.n);
858
+ const { default: metricsPlugin } = await import("./metrics-DSKv-T9K.mjs").then((n) => n.n);
859
859
  const opts = config.arcPlugins.metrics === true ? {} : config.arcPlugins.metrics;
860
860
  await fastify.register(metricsPlugin, opts);
861
861
  trackPlugin("arc-metrics", opts);
862
862
  }
863
863
  if (config.arcPlugins?.versioning) {
864
- const { default: versioningPlugin } = await import("./versioning-B2_8SBZo.mjs").then((n) => n.n);
864
+ const { default: versioningPlugin } = await import("./versioning-f2YGmh4i.mjs").then((n) => n.n);
865
865
  await fastify.register(versioningPlugin, config.arcPlugins.versioning);
866
866
  trackPlugin("arc-versioning", config.arcPlugins.versioning);
867
867
  }
@@ -938,7 +938,7 @@ async function registerAuth(fastify, config, trackPlugin) {
938
938
  */
939
939
  async function registerElevation(fastify, config, trackPlugin) {
940
940
  if (!config.elevation) return;
941
- const { elevationPlugin } = await import("./elevation-XoY0C73T.mjs").then((n) => n.n);
941
+ const { elevationPlugin } = await import("./elevation-DiXVg98q.mjs").then((n) => n.n);
942
942
  await fastify.register(elevationPlugin, config.elevation);
943
943
  trackPlugin("arc-elevation", config.elevation);
944
944
  fastify.log.debug("Elevation plugin enabled");
@@ -953,7 +953,7 @@ async function registerElevation(fastify, config, trackPlugin) {
953
953
  */
954
954
  async function registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers) {
955
955
  if (config.errorHandler === false) return;
956
- const { errorHandlerPlugin } = await import("./errorHandler-BYI-JQMm.mjs").then((n) => n.r);
956
+ const { errorHandlerPlugin } = await import("./errorHandler-BUTm9P_f.mjs").then((n) => n.r);
957
957
  /**
958
958
  * DISCLOSURE DEFAULTS MERGE — they used to be REPLACED, and that was two bugs.
959
959
  *
@@ -1172,7 +1172,7 @@ async function registerResources(fastify, config, preResolvedModules, skippedBri
1172
1172
  let discoveryPath;
1173
1173
  let discoveryYieldedZero = false;
1174
1174
  if (resolvedResources === void 0 && config.resourceDir) {
1175
- const { loadResources } = await import("./loadResources-Oi47dogA.mjs").then((n) => n.n);
1175
+ const { loadResources } = await import("./loadResources-CFdzAWQZ.mjs").then((n) => n.n);
1176
1176
  const { resolve, dirname } = await import("node:path");
1177
1177
  const { fileURLToPath } = await import("node:url");
1178
1178
  const rawDir = config.resourceDir;
@@ -1297,7 +1297,7 @@ Resources supplied by "${m.name}": ${provided}.`);
1297
1297
  if (fastify.hasDecorator("getScheduleStats")) throw new Error("[arc] modules declare scheduledJobs but schedulesPlugin was already registered manually. Configure their runner through arcPlugins.schedules so Arc can compose one schedule table.");
1298
1298
  const frozenJobs = Object.freeze(scheduledJobs.map((job) => Object.freeze({ ...job })));
1299
1299
  const scheduleOptions = typeof config.arcPlugins?.schedules === "object" ? config.arcPlugins.schedules : {};
1300
- const { default: schedulesPlugin } = await import("./schedules-CLrQRSTt.mjs").then((n) => n.n);
1300
+ const { default: schedulesPlugin } = await import("./schedules-0-aS4jDV.mjs").then((n) => n.n);
1301
1301
  await fastify.register(schedulesPlugin, {
1302
1302
  ...scheduleOptions,
1303
1303
  schedules: frozenJobs
@@ -2291,7 +2291,7 @@ async function buildApp(options, loggerScope, onInstance, onBootDisposer) {
2291
2291
  await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
2292
2292
  await registerResources(fastify, config, resolvedModules, skippedBridges);
2293
2293
  if (config.replyHelpers) {
2294
- const { replyHelpersPlugin } = await import("./replyHelpers-CUbeUc5q.mjs").then((n) => n.n);
2294
+ const { replyHelpersPlugin } = await import("./replyHelpers-CSByAX_Z.mjs").then((n) => n.n);
2295
2295
  await fastify.register(replyHelpersPlugin);
2296
2296
  }
2297
2297
  if (config.serializeBigInt) {
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/core/aggregation/defineAggregation.ts
3
3
  /**
4
4
  * Declare a single resource aggregation. Exported configs flow into
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
3
- import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-DsLr6L4O.mjs";
4
- import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-BZFsZwJh.mjs";
5
- import { B as requireAuth } from "./permissions-BJylQopQ.mjs";
6
- import { n as getAvailablePresets, t as applyPresets } from "./presets-D_suT4OY.mjs";
7
- import { t as pluralize } from "./pluralize-CX4ZvwCa.mjs";
8
- import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-JEmU21fu.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
3
+ import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-8Z1khbAI.mjs";
4
+ import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-Ca2IQFy2.mjs";
5
+ import { B as requireAuth } from "./permissions-Cga6KBOX.mjs";
6
+ import { n as getAvailablePresets, t as applyPresets } from "./presets-D28IABZe.mjs";
7
+ import { t as pluralize } from "./pluralize-D4vcPLVs.mjs";
8
+ import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-Cs3SwP4R.mjs";
9
9
  import { isReadOnlyRepo } from "@classytic/repo-core/repository";
10
10
  import { readEnv } from "@classytic/primitives/environment";
11
11
  // src/core/defineResource/writeVerbs.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  import { readdir } from "node:fs/promises";
3
3
  import { extname, join, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-DXNbadgd.mjs";
3
- import { n as getUserRoles } from "../userHelpers-D4m_pLSC.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-Dmp7Ipsi.mjs";
3
+ import { n as getUserRoles } from "../userHelpers-cT5j1kgp.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  // src/docs/scalar.ts
6
6
  const scalarPlugin = async (fastify, opts = {}) => {
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
4
- import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
5
- import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
4
+ import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
6
6
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
7
7
  import fp from "fastify-plugin";
8
8
  // src/scope/elevation.ts
@@ -33,6 +33,31 @@ interface ParsedFieldEnvelope {
33
33
  export declare function parseFieldEnvelope(token: string): ParsedFieldEnvelope | null;
34
34
  /** Decrypt a parsed `arc.v1` envelope with the resolved key. Throws on tamper. */
35
35
  export declare function decryptField(envelope: ParsedFieldEnvelope, key: unknown): string;
36
+ /**
37
+ * A synchronous string sealer over the `arc.v1` field envelope and a STATIC key ring, for values sealed
38
+ * at rest (an account number, a token). The ring's first key seals; every listed key opens (rotation).
39
+ * A value that does not open THROWS; it never returns its input. Pinned by tests/encryption/field-sealer.test.ts.
40
+ */
41
+ /** Keys by `kid`, in ring order; `activeKid` (the first) seals; `label` names the source in errors. */
42
+ interface FieldKeyRing {
43
+ readonly activeKid: string;
44
+ readonly keys: ReadonlyMap<string, Buffer>;
45
+ readonly label: string;
46
+ }
47
+ interface FieldSealer {
48
+ readonly activeKid: string;
49
+ encrypt(plain: string): string;
50
+ /** Throws on a value that is not an envelope, names a kid the ring lacks, or fails the GCM tag. */
51
+ decrypt(token: string): string;
52
+ /** The kid a value is sealed under, or `null` when it is not an `arc.v1` envelope. */
53
+ kidOf(token: string): string | null;
54
+ }
55
+ /**
56
+ * Parse `kid:base64(32 bytes)` entries (e.g. an env list) into a ring. `label` names the source in every
57
+ * error. Empty, malformed, short or repeated entries throw.
58
+ */
59
+ export declare function parseFieldKeyRing(entries: readonly string[], label: string): FieldKeyRing;
60
+ export declare function createFieldSealer(ring: FieldKeyRing): FieldSealer;
36
61
  interface StaticKeyProviderOptions {
37
62
  /**
38
63
  * Active key used to ENCRYPT outbound responses. For `jwe` mode this is the
@@ -72,4 +97,4 @@ interface StaticKeyProviderOptions {
72
97
  * ```
73
98
  */
74
99
  export declare function createStaticKeyProvider(options: StaticKeyProviderOptions): KeyProvider;
75
- export { type ActiveKey, type EncryptionDirective, type EncryptionMode, type EncryptionOptions, type JweAlg, type JweEnc, type KeyContext, type KeyMaterial, type KeyProvider, type ParsedFieldEnvelope, type StaticKeyProviderOptions, _default as default, encryptionPlugin };
100
+ export { type ActiveKey, type EncryptionDirective, type EncryptionMode, type EncryptionOptions, type FieldKeyRing, type FieldSealer, type JweAlg, type JweEnc, type KeyContext, type KeyMaterial, type KeyProvider, type ParsedFieldEnvelope, type StaticKeyProviderOptions, _default as default, encryptionPlugin };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-3xaK0i9n.mjs";
3
- import { t as parseJsonBody } from "../jsonBody-C0oREwUc.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-DxpHZBlW.mjs";
3
+ import { t as parseJsonBody } from "../jsonBody-CkKs6dA_.mjs";
4
4
  import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
5
5
  import fp from "fastify-plugin";
6
6
  // src/encryption/fieldCipher.ts
@@ -23,13 +23,13 @@ import fp from "fastify-plugin";
23
23
  */
24
24
  const ENVELOPE_PREFIX = "arc.v1";
25
25
  const IV_BYTES = 12;
26
- const KEY_BYTES = 32;
26
+ const KEY_BYTES$1 = 32;
27
27
  function b64url(buf) {
28
28
  return buf.toString("base64url");
29
29
  }
30
30
  function toKeyBuffer(key) {
31
31
  if (Buffer.isBuffer(key)) {
32
- if (key.length !== KEY_BYTES) throw new Error(`[arc/encryption] field-mode key must be ${KEY_BYTES} bytes (AES-256); got ${key.length}`);
32
+ if (key.length !== KEY_BYTES$1) throw new Error(`[arc/encryption] field-mode key must be ${KEY_BYTES$1} bytes (AES-256); got ${key.length}`);
33
33
  return key;
34
34
  }
35
35
  if (key instanceof Uint8Array) return toKeyBuffer(Buffer.from(key));
@@ -236,6 +236,56 @@ var encryptionPlugin_default = fp(encryptionPlugin, {
236
236
  name: "arc-encryption",
237
237
  fastify: "5.x"
238
238
  });
239
+ // src/encryption/fieldSealer.ts
240
+ /**
241
+ * A synchronous string sealer over the `arc.v1` field envelope and a STATIC key ring, for values sealed
242
+ * at rest (an account number, a token). The ring's first key seals; every listed key opens (rotation).
243
+ * A value that does not open THROWS; it never returns its input. Pinned by tests/encryption/field-sealer.test.ts.
244
+ */
245
+ const KID = /^[A-Za-z0-9_-]{1,32}$/;
246
+ const KEY_BYTES = 32;
247
+ /**
248
+ * Parse `kid:base64(32 bytes)` entries (e.g. an env list) into a ring. `label` names the source in every
249
+ * error. Empty, malformed, short or repeated entries throw.
250
+ */
251
+ function parseFieldKeyRing(entries, label) {
252
+ const trimmed = entries.map((e) => e.trim()).filter((e) => e !== "");
253
+ if (trimmed.length === 0) throw new Error(`${label} is not set: a field key ring needs at least one kid:base64 entry (32 random bytes)`);
254
+ const keys = /* @__PURE__ */ new Map();
255
+ let activeKid = "";
256
+ for (const entry of trimmed) {
257
+ const at = entry.indexOf(":");
258
+ const kid = at > 0 ? entry.slice(0, at) : "";
259
+ if (!KID.test(kid)) throw new Error(`${label}: each entry is kid:base64 with a kid of [A-Za-z0-9_-]{1,32}`);
260
+ const key = Buffer.from(entry.slice(at + 1), "base64");
261
+ if (key.length !== KEY_BYTES) throw new Error(`${label}: key ${kid} must be ${KEY_BYTES} bytes (AES-256), got ${key.length}`);
262
+ if (keys.has(kid)) throw new Error(`${label}: key id ${kid} is listed twice`);
263
+ keys.set(kid, key);
264
+ activeKid ||= kid;
265
+ }
266
+ return {
267
+ activeKid,
268
+ keys,
269
+ label
270
+ };
271
+ }
272
+ function createFieldSealer(ring) {
273
+ const { label } = ring;
274
+ const activeKey = ring.keys.get(ring.activeKid);
275
+ if (!activeKey) throw new Error(`createFieldSealer: active key ${ring.activeKid} is not in ${label}`);
276
+ return {
277
+ activeKid: ring.activeKid,
278
+ encrypt: (plain) => encryptField(plain, ring.activeKid, activeKey),
279
+ decrypt(token) {
280
+ const envelope = parseFieldEnvelope(token);
281
+ if (!envelope) throw new Error("not a sealed value (expected an arc.v1 field envelope)");
282
+ const key = ring.keys.get(envelope.kid);
283
+ if (!key) throw new Error(`the value is sealed with key ${envelope.kid}, which ${label} does not hold`);
284
+ return decryptField(envelope, key);
285
+ },
286
+ kidOf: (token) => parseFieldEnvelope(token)?.kid ?? null
287
+ };
288
+ }
239
289
  // src/encryption/keyProvider.ts
240
290
  /**
241
291
  * A static, in-memory key provider with `kid`-based rotation. Keys are held
@@ -268,4 +318,4 @@ function createStaticKeyProvider(options) {
268
318
  decryptionKey: (kid) => decryptionKeys[kid]
269
319
  };
270
320
  }
271
- export { createStaticKeyProvider, decryptField, encryptionPlugin_default as default, encryptField, encryptionPlugin, parseFieldEnvelope };
321
+ export { createFieldSealer, createStaticKeyProvider, decryptField, encryptionPlugin_default as default, encryptField, encryptionPlugin, parseFieldEnvelope, parseFieldKeyRing };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { m as statusToArcCode, p as isArcError } from "./errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { m as statusToArcCode, p as isArcError } from "./errors-DxpHZBlW.mjs";
4
4
  import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
5
5
  import { isProductionEnv } from "@classytic/primitives/environment";
6
6
  import fp from "fastify-plugin";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
3
3
  // src/utils/errors.ts
4
4
  /**
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { n as requestContext } from "./requestContext-DO9Qv0gw.mjs";
4
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
5
- import { d as createDomainError } from "./errors-3xaK0i9n.mjs";
6
- import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BIR-QBYM.mjs";
7
- import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-B18mcj_M.mjs";
8
- import { n as preserveSubscriberIdentity } from "./subscriberIdentity-PO6kimAl.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { n as requestContext } from "./requestContext-yc7MSgmq.mjs";
4
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
5
+ import { d as createDomainError } from "./errors-DxpHZBlW.mjs";
6
+ import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-Cf-27xsS.mjs";
7
+ import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-DeNze_-C.mjs";
8
+ import { n as preserveSubscriberIdentity } from "./subscriberIdentity-DSqCh38x.mjs";
9
9
  import { isProductionEnv } from "@classytic/primitives/environment";
10
10
  import fp from "fastify-plugin";
11
11
  import { NonDurablePublishError } from "@classytic/primitives/durable-events";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { r as createEvent } from "./EventTransport-B18mcj_M.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { r as createEvent } from "./EventTransport-DeNze_-C.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { durableEventMeta } from "@classytic/primitives/durable-events";
5
5
  // src/events/defineEvent.ts
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { a as crudEventType, d as createEventRegistry, f as defineEvent, i as CRUD_EVENT_SUFFIXES, l as wrapWithBoundary, n as CACHE_EVENTS, o as subscribeWithBoundary, s as subscribeWithSchema, t as ARC_LIFECYCLE_EVENTS, u as wrapWithSchema } from "../eventTypes-UPYg7gW1.mjs";
3
- import { n as MemoryEventTransport } from "../EventTransport-B18mcj_M.mjs";
4
- import { a as withRetry, i as createDeadLetterPublisher, n as eventPlugin } from "../eventPlugin-CVQ9ddnL.mjs";
5
- import { r as withSubscriberId } from "../subscriberIdentity-PO6kimAl.mjs";
6
- import { r as readOutboxHealth, t as DEFAULT_RELAY_LAG_UNHEALTHY_MS } from "../health-Cy6aOg1i.mjs";
7
- import { t as createOutboxModule } from "../outbox-module-k5rIszQ4.mjs";
8
- import { n as repositoryAsOutboxStore, r as exponentialBackoff, t as EventOutbox } from "../relay-DA89IhFt.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { a as crudEventType, d as createEventRegistry, f as defineEvent, i as CRUD_EVENT_SUFFIXES, l as wrapWithBoundary, n as CACHE_EVENTS, o as subscribeWithBoundary, s as subscribeWithSchema, t as ARC_LIFECYCLE_EVENTS, u as wrapWithSchema } from "../eventTypes-D-pFtqT1.mjs";
3
+ import { n as MemoryEventTransport } from "../EventTransport-DeNze_-C.mjs";
4
+ import { a as withRetry, i as createDeadLetterPublisher, n as eventPlugin } from "../eventPlugin-ZsIQPRso.mjs";
5
+ import { r as withSubscriberId } from "../subscriberIdentity-DSqCh38x.mjs";
6
+ import { r as readOutboxHealth, t as DEFAULT_RELAY_LAG_UNHEALTHY_MS } from "../health-CEpgVAl7.mjs";
7
+ import { t as createOutboxModule } from "../outbox-module-vT6PaThj.mjs";
8
+ import { n as repositoryAsOutboxStore, r as exponentialBackoff, t as EventOutbox } from "../relay-CEaCmUfG.mjs";
9
9
  import { fingerprintRequest, runIdempotent } from "@classytic/repo-core/idempotency";
10
10
  import { MemoryOutboxStore } from "@classytic/primitives/memory-outbox";
11
11
  // src/events/inbox.ts
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as evictToSize } from "../../boundedMap-CuCwos_X.mjs";
3
- import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-B3W3r35s.mjs";
4
- import { t as getSubscriberId } from "../../subscriberIdentity-PO6kimAl.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { n as evictToSize } from "../../boundedMap-zxGBpXX0.mjs";
3
+ import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-DwspXz70.mjs";
4
+ import { t as getSubscriberId } from "../../subscriberIdentity-DSqCh38x.mjs";
5
5
  import sjson from "secure-json-parse";
6
6
  import { createEventRouter } from "@classytic/primitives/events";
7
7
  // src/events/transports/redis-stream.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-B3W3r35s.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-DwspXz70.mjs";
3
3
  import sjson from "secure-json-parse";
4
4
  // src/events/transports/redis.ts
5
5
  /**
@@ -1,8 +1,8 @@
1
1
 
2
- import { a as ResolvedModuleDescriptor, o as ResolvedModuleLifecycle, s as ResolvedResourceDescriptor } from "../fastify-augmentation-baQc3MaO.mjs";
3
- import { a as RawBodyOptions, c as BetterAuthOption, d as JwtAuthOption, i as MultipartOptions, l as CustomAuthenticatorOption, n as CreateAppHttpOptions, o as UnderPressureOptions, r as CreateAppOptions, s as AuthOption, t as BootDisposer, u as CustomPluginAuthOption } from "../index-Dhrks-hM.mjs";
2
+ import { a as ResolvedModuleDescriptor, o as ResolvedModuleLifecycle, s as ResolvedResourceDescriptor } from "../fastify-augmentation-CPReFhZ1.mjs";
3
+ import { a as RawBodyOptions, c as BetterAuthOption, d as JwtAuthOption, i as MultipartOptions, l as CustomAuthenticatorOption, n as CreateAppHttpOptions, o as UnderPressureOptions, r as CreateAppOptions, s as AuthOption, t as BootDisposer, u as CustomPluginAuthOption } from "../index-yXXCsKl7.mjs";
4
4
  import { F as HealthCheck, _ as ResourceLike, a as ArcPortRegistry, c as LazyBridge, d as ModulePorts, f as ModuleRequirements, g as LoadResourcesOptions, h as ModuleSetupContext, i as ArcModuleRegistry, l as ModuleContribution, m as ModuleDisposer, n as ArcModule, o as ArcPorts, p as PortName, r as ArcModuleInput, s as EventHandlerDefinition, t as ArcCompositionConfig, u as ModuleName, v as ResourceModule, y as loadResources } from "../types-BeEJm-DV.mjs";
5
- import { $ as verifyModuleGraph, A as AsyncApiCatalogEntry, B as ModuleGraphMode, C as planModules, D as ModuleExtension, E as subscribeModuleEventHandlers, F as DurabilityFacts, G as activateBridges, H as ModuleGraphOptions, I as HandlerDurabilityFact, J as crudEventsOf, K as analyzeModuleGraph, L as ModuleGraph, M as toAsyncApi, N as CrudSurface, O as extendModule, P as DerivedPublishes, Q as verifyEventDurability, R as ModuleGraphAnalysis, S as compositionProblems, T as orderModules, U as ModuleKind, V as ModuleGraphNode, W as SkippedBridge, X as eventTopology, Y as dependentsOf, Z as renderModuleGraph, _ as ClosureNode, a as lazyModuleExports, b as PlanModulesOptions, c as getModuleResources, d as resolveContribution, f as resolveModule, g as withRelayNudge, h as createRelayNudge, i as hasModuleExports, j as AsyncApiInfo, k as collectModuleWorkflows, l as getModuleState, m as RelayOption, n as getModuleExports, o as lazyRequiredModuleExports, p as RelayNudge, q as buildModuleGraph, r as getOptionalModuleExports, s as ModuleState, t as defineModule, u as hasModule, v as CompositionProblem, w as resolveModuleClosure, x as assertComposable, y as ModulePlan, z as ModuleGraphIssue } from "../index-DexdFs1a.mjs";
5
+ import { $ as renderModuleGraph, A as extendModule, B as ModuleGraphAnalysis, C as assertComposable, D as orderModules, E as resolveModuleClosure, F as CrudSurface, G as ModuleKind, H as ModuleGraphMode, I as DerivedPublishes, J as analyzeModuleGraph, K as SkippedBridge, L as DurabilityFacts, M as AsyncApiCatalogEntry, N as AsyncApiInfo, O as subscribeModuleEventHandlers, P as toAsyncApi, Q as eventTopology, R as HandlerDurabilityFact, S as PlanModulesOptions, T as planModules, U as ModuleGraphNode, V as ModuleGraphIssue, W as ModuleGraphOptions, X as crudEventsOf, Y as buildModuleGraph, Z as dependentsOf, _ as createRelayNudge, a as hasModuleExports, b as CompositionProblem, c as moduleHandleRef, d as getModuleState, et as verifyEventDurability, f as hasModule, g as RelayOption, h as RelayNudge, i as getOptionalModuleExports, j as collectModuleWorkflows, k as ModuleExtension, l as ModuleState, m as resolveModule, n as defineModule, o as lazyModuleExports, p as resolveContribution, q as activateBridges, r as getModuleExports, s as lazyRequiredModuleExports, t as ModuleHandleRef, tt as verifyModuleGraph, u as getModuleResources, v as withRelayNudge, w as compositionProblems, x as ModulePlan, y as ClosureNode, z as ModuleGraph } from "../index-CSbDhif4.mjs";
6
6
  import { FastifyInstance, FastifyServerOptions } from "fastify";
7
7
  /**
8
8
  * Default pino redact paths (auth/cookie/API-key headers, nested
@@ -157,4 +157,4 @@ export declare const testingPreset: Partial<CreateAppOptions>;
157
157
  */
158
158
  export declare const edgePreset: Partial<CreateAppOptions>;
159
159
  export declare function getPreset(name: "production" | "development" | "testing" | "edge" | "worker"): Partial<CreateAppOptions>;
160
- export { type ArcCompositionConfig, type ArcModule, type ArcModuleInput, type ArcModuleRegistry, type ArcPortRegistry, type ArcPorts, type ArcWorker, type AsyncApiCatalogEntry, type AsyncApiInfo, type AuthOption, type BetterAuthOption, type BootDisposer, type ClosureNode, type CompositionProblem, type CreateAppHttpOptions, type CreateAppOptions, type CreateWorkerOptions, type CrudSurface, type CustomAuthenticatorOption, type CustomPluginAuthOption, type DerivedPublishes, type DurabilityFacts, type EagerGlobResult, type EventHandlerDefinition, type FetchHandlerOptions, type HandlerDurabilityFact, type JwtAuthOption, type LazyBridge, type LazyGlobResult, type LoadResourcesOptions, type ModuleContribution, type ModuleDisposer, type ModuleExtension, type ModuleGraph, type ModuleGraphAnalysis, type ModuleGraphIssue, type ModuleGraphMode, type ModuleGraphNode, type ModuleGraphOptions, type ModuleKind, type ModuleName, type ModulePlan, type ModulePorts, type ModuleRequirements, type ModuleSetupContext, type ModuleState, type MultipartOptions, type PlanModulesOptions, type PortName, type RawBodyOptions, type RelayNudge, type RelayOption, type ResolvedModuleDescriptor, type ResolvedModuleLifecycle, type ResolvedResourceDescriptor, type ResourceLike, type ResourceModule, type SkippedBridge, type UnderPressureOptions, type WorkerHealthOptions, activateBridges, analyzeModuleGraph, assertComposable, buildModuleGraph, collectModuleWorkflows, compositionProblems, createRelayNudge, crudEventsOf, defineModule, dependentsOf, eventTopology, extendModule, getModuleExports, getModuleResources, getModuleState, getOptionalModuleExports, hasModule, hasModuleExports, lazyModuleExports, lazyRequiredModuleExports, loadResources, orderModules, planModules, renderModuleGraph, resolveContribution, resolveModule, resolveModuleClosure, subscribeModuleEventHandlers, toAsyncApi, verifyEventDurability, verifyModuleGraph, withRelayNudge };
160
+ export { type ArcCompositionConfig, type ArcModule, type ArcModuleInput, type ArcModuleRegistry, type ArcPortRegistry, type ArcPorts, type ArcWorker, type AsyncApiCatalogEntry, type AsyncApiInfo, type AuthOption, type BetterAuthOption, type BootDisposer, type ClosureNode, type CompositionProblem, type CreateAppHttpOptions, type CreateAppOptions, type CreateWorkerOptions, type CrudSurface, type CustomAuthenticatorOption, type CustomPluginAuthOption, type DerivedPublishes, type DurabilityFacts, type EagerGlobResult, type EventHandlerDefinition, type FetchHandlerOptions, type HandlerDurabilityFact, type JwtAuthOption, type LazyBridge, type LazyGlobResult, type LoadResourcesOptions, type ModuleContribution, type ModuleDisposer, type ModuleExtension, type ModuleGraph, type ModuleGraphAnalysis, type ModuleGraphIssue, type ModuleGraphMode, type ModuleGraphNode, type ModuleGraphOptions, type ModuleHandleRef, type ModuleKind, type ModuleName, type ModulePlan, type ModulePorts, type ModuleRequirements, type ModuleSetupContext, type ModuleState, type MultipartOptions, type PlanModulesOptions, type PortName, type RawBodyOptions, type RelayNudge, type RelayOption, type ResolvedModuleDescriptor, type ResolvedModuleLifecycle, type ResolvedResourceDescriptor, type ResourceLike, type ResourceModule, type SkippedBridge, type UnderPressureOptions, type WorkerHealthOptions, activateBridges, analyzeModuleGraph, assertComposable, buildModuleGraph, collectModuleWorkflows, compositionProblems, createRelayNudge, crudEventsOf, defineModule, dependentsOf, eventTopology, extendModule, getModuleExports, getModuleResources, getModuleState, getOptionalModuleExports, hasModule, hasModuleExports, lazyModuleExports, lazyRequiredModuleExports, loadResources, moduleHandleRef, orderModules, planModules, renderModuleGraph, resolveContribution, resolveModule, resolveModuleClosure, subscribeModuleEventHandlers, toAsyncApi, verifyEventDurability, verifyModuleGraph, withRelayNudge };
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { a as developmentPreset, c as productionPreset, d as getModuleResources, f as getModuleState, g as collectModuleWorkflows, l as testingPreset, m as subscribeModuleEventHandlers, n as DEFAULT_LOGGER_REDACT_PATHS, o as edgePreset, p as hasModule, r as createApp, s as getPreset, t as ArcFactory, u as workerPreset } from "../createApp-Db9JRumw.mjs";
3
- import { r as mergeHealthChecks, t as healthPlugin } from "../health-Cfh-kYI_.mjs";
4
- import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, t as defineModule } from "../module-lbEbHUfI.mjs";
5
- import { t as loadResources } from "../loadResources-Oi47dogA.mjs";
6
- import { _ as dependentsOf, b as verifyEventDurability, d as resolveModule, g as crudEventsOf, h as buildModuleGraph, i as planModules, m as analyzeModuleGraph, o as resolveModuleClosure, p as activateBridges, r as compositionProblems, s as orderModules, t as assertComposable, u as resolveContribution, v as eventTopology, x as verifyModuleGraph, y as renderModuleGraph } from "../plan-iEgaS5_H.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { a as developmentPreset, c as productionPreset, d as getModuleResources, f as getModuleState, g as collectModuleWorkflows, l as testingPreset, m as subscribeModuleEventHandlers, n as DEFAULT_LOGGER_REDACT_PATHS, o as edgePreset, p as hasModule, r as createApp, s as getPreset, t as ArcFactory, u as workerPreset } from "../createApp-BC67ACu4.mjs";
3
+ import { r as mergeHealthChecks, t as healthPlugin } from "../health-W4S2yFBL.mjs";
4
+ import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, s as moduleHandleRef, t as defineModule } from "../module-C0JCsnO7.mjs";
5
+ import { t as loadResources } from "../loadResources-CFdzAWQZ.mjs";
6
+ import { _ as dependentsOf, b as verifyEventDurability, d as resolveModule, g as crudEventsOf, h as buildModuleGraph, i as planModules, m as analyzeModuleGraph, o as resolveModuleClosure, p as activateBridges, r as compositionProblems, s as orderModules, t as assertComposable, u as resolveContribution, v as eventTopology, x as verifyModuleGraph, y as renderModuleGraph } from "../plan-CbDTFbTj.mjs";
7
7
  // src/factory/module/asyncapi.ts
8
8
  /**
9
9
  * The module graph as an AsyncAPI 3.0 document — one channel per event (addressed by the event
@@ -418,4 +418,4 @@ function pickResource(value) {
418
418
  ];
419
419
  for (const c of candidates) if (c && typeof c === "object" && typeof c.toPlugin === "function") return c;
420
420
  }
421
- export { ArcFactory, DEFAULT_LOGGER_REDACT_PATHS, activateBridges, analyzeModuleGraph, assertComposable, buildModuleGraph, collectModuleWorkflows, compositionProblems, createApp, createRelayNudge, createWorker, crudEventsOf, defineModule, dependentsOf, developmentPreset, edgePreset, eventTopology, extendModule, getModuleExports, getModuleResources, getModuleState, getOptionalModuleExports, getPreset, hasModule, hasModuleExports, lazyModuleExports, lazyRequiredModuleExports, loadResources, orderModules, planModules, preloadResources, preloadResourcesAsync, productionPreset, renderModuleGraph, resolveContribution, resolveModule, resolveModuleClosure, subscribeModuleEventHandlers, testingPreset, toAsyncApi, toFetchHandler, verifyEventDurability, verifyModuleGraph, withRelayNudge };
421
+ export { ArcFactory, DEFAULT_LOGGER_REDACT_PATHS, activateBridges, analyzeModuleGraph, assertComposable, buildModuleGraph, collectModuleWorkflows, compositionProblems, createApp, createRelayNudge, createWorker, crudEventsOf, defineModule, dependentsOf, developmentPreset, edgePreset, eventTopology, extendModule, getModuleExports, getModuleResources, getModuleState, getOptionalModuleExports, getPreset, hasModule, hasModuleExports, lazyModuleExports, lazyRequiredModuleExports, loadResources, moduleHandleRef, orderModules, planModules, preloadResources, preloadResourcesAsync, productionPreset, renderModuleGraph, resolveContribution, resolveModule, resolveModuleClosure, subscribeModuleEventHandlers, testingPreset, toAsyncApi, toFetchHandler, verifyEventDurability, verifyModuleGraph, withRelayNudge };
@@ -2,7 +2,7 @@
2
2
  import { M as ResourceRegistry, pn as HookSystem } from "./index-DLCcLUQT.mjs";
3
3
  import { t as ExternalOpenApiPaths } from "./externalPaths-BOqdq5wr.mjs";
4
4
  import { F as HealthCheck, i as ArcModuleRegistry, n as ArcModule, x as ScheduleDefinition } from "./types-BeEJm-DV.mjs";
5
- import { L as ModuleGraph, s as ModuleState } from "./index-DexdFs1a.mjs";
5
+ import { l as ModuleState, z as ModuleGraph } from "./index-CSbDhif4.mjs";
6
6
  import { FastifyPluginAsync } from "fastify";
7
7
  /**
8
8
  * Resolved module introspection — what a module ACTUALLY composed to.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
3
  // src/core/aggregation/fieldTypes.ts
4
4
  var fieldTypes_exports = /* @__PURE__ */ __exportAll({
5
5
  coerceByType: () => coerceByType,
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/permissions/fields.ts
3
3
  /**
4
4
  * Field-Level Permissions
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/permissions/filter-merge.ts
3
3
  /**
4
4
  * Policy-filter composition — logical AND, never last-writer-wins.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as pluralize } from "./pluralize-CX4ZvwCa.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as pluralize } from "./pluralize-D4vcPLVs.mjs";
3
3
  import { join } from "node:path";
4
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
5
5
  // src/cli/commands/generate/name-helpers.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { u as ValidationError } from "./errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { u as ValidationError } from "./errors-DxpHZBlW.mjs";
3
3
  // src/utils/headers.ts
4
4
  /**
5
5
  * Canonical header typing + accessor.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/events/outbox/health.ts
3
3
  /** Pending age past which the relay counts as stalled. */
4
4
  const DEFAULT_RELAY_LAG_UNHEALTHY_MS = 3e5;
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  import { randomUUID } from "node:crypto";
3
3
  import fp from "fastify-plugin";
4
4
  // src/plugins/requestId.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- export { t as HookSystem, n as afterCreate, r as afterDelete, i as afterUpdate, a as beforeCreate, o as beforeDelete, s as beforeUpdate, c as createHookSystem, l as defineHook } from "../HookSystem-FUBaLTRm.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ export { t as HookSystem, n as afterCreate, r as afterDelete, i as afterUpdate, a as beforeCreate, o as beforeDelete, s as beforeUpdate, c as createHookSystem, l as defineHook } from "../HookSystem-DTffXM1X.mjs";
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as chunkTags, t as CachePurgeError } from "../purger.types-CZwkTZ7B.mjs";
3
- import { t as hasEvents } from "../typeGuards-C1o_XEyp.mjs";
4
- import { r as exponentialBackoff, t as EventOutbox } from "../relay-DA89IhFt.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { n as chunkTags, t as CachePurgeError } from "../purger.types-CNFmEtFu.mjs";
3
+ import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
4
+ import { r as exponentialBackoff, t as EventOutbox } from "../relay-CEaCmUfG.mjs";
5
5
  import fp from "fastify-plugin";
6
6
  import { createEvent } from "@classytic/primitives/events";
7
7
  // src/http-cache/invalidation/delivery.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as CachePurgeError } from "../../purger.types-CZwkTZ7B.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as CachePurgeError } from "../../purger.types-CNFmEtFu.mjs";
3
3
  // src/http-cache/purgers/cloudflare.ts
4
4
  /**
5
5
  * Cloudflare purge-by-tag (`Cache-Tag`). Needs an API token scoped to Zone > Cache Purge only.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as CachePurgeError } from "../../purger.types-CZwkTZ7B.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as CachePurgeError } from "../../purger.types-CNFmEtFu.mjs";
3
3
  // src/http-cache/purgers/fastly.ts
4
4
  /**
5
5
  * Fastly surrogate-key purge, with soft purge (`Fastly-Soft-Purge: 1`). Responses must carry the tags in
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/http-cache/testing/assertions.ts
3
3
  const header = (res, name) => {
4
4
  const v = res.headers[name];