@classytic/arc 2.44.0 → 2.45.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 (154) hide show
  1. package/dist/{EventTransport-DZWDsaPa.mjs → EventTransport-Ci6hGO1Y.mjs} +2 -2
  2. package/dist/{HookSystem-yjEgn7Cm.mjs → HookSystem-CtnnYHME.mjs} +2 -2
  3. package/dist/{ResourceRegistry-DJxHUpE4.mjs → ResourceRegistry-BNoHOx-D.mjs} +2 -2
  4. package/dist/{acquire-BozJ-9yt.mjs → acquire-BW_2Dt60.mjs} +1 -1
  5. package/dist/{actionPermissions-5N04zBL4.mjs → actionPermissions-TAc_6LCw.mjs} +13 -13
  6. package/dist/audit/index.mjs +4 -4
  7. package/dist/auth/audit.mjs +1 -1
  8. package/dist/auth/index.mjs +10 -11
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/{authorizationDecision-wX3SA9w_.mjs → authorizationDecision-BixzgirP.mjs} +4 -4
  11. package/dist/{boundedMap-DWiKW7lP.mjs → boundedMap-DQfXgxMo.mjs} +1 -1
  12. package/dist/{buildHandler-Bswu_vNb.mjs → buildHandler-mEUmO2_u.mjs} +4 -4
  13. package/dist/cache/index.mjs +4 -4
  14. package/dist/{caching-Drp68DIS.mjs → caching-TQfW2QX7.mjs} +2 -2
  15. package/dist/{claimed-DYvQoZLv.mjs → claimed-CnEEOHuL.mjs} +1 -1
  16. package/dist/cleanup/index.mjs +4 -4
  17. package/dist/cli/commands/describe.mjs +3 -3
  18. package/dist/cli/commands/docs.mjs +3 -3
  19. package/dist/cli/commands/doctor.mjs +1 -1
  20. package/dist/cli/commands/generate.mjs +2 -2
  21. package/dist/cli/commands/init.mjs +2 -2
  22. package/dist/cli/commands/introspect.mjs +2 -2
  23. package/dist/cli/index.mjs +3 -3
  24. package/dist/{constants-B2QHb6u6.mjs → constants-B90SnSQn.mjs} +1 -1
  25. package/dist/context/index.mjs +5 -5
  26. package/dist/core/index.mjs +7 -7
  27. package/dist/{core-COcqo0Cp.mjs → core-DV9PSXtr.mjs} +3 -3
  28. package/dist/{createActionRouter-zG13rpPJ.mjs → createActionRouter-BgPCYU2U.mjs} +6 -6
  29. package/dist/{createAggregationRouter-CWRz96Vr.mjs → createAggregationRouter-lNCkDwKe.mjs} +7 -7
  30. package/dist/{createApp-BGLYtErt.mjs → createApp-BSBPntOQ.mjs} +28 -28
  31. package/dist/{defineAggregation--3xguLkk.mjs → defineAggregation-CwD8_XNd.mjs} +1 -1
  32. package/dist/{defineResource-gUp9ug66.mjs → defineResource-CRkhRRSj.mjs} +7 -7
  33. package/dist/discovery/index.mjs +1 -1
  34. package/dist/docs/index.mjs +3 -3
  35. package/dist/{elevation-BG4gnMsJ.mjs → elevation-BAfsnnO0.mjs} +5 -5
  36. package/dist/encryption/index.mjs +3 -3
  37. package/dist/{errorHandler-COHw3N1b.mjs → errorHandler-DbHGwrQM.mjs} +3 -3
  38. package/dist/{errors-CW4anJBy.mjs → errors-C9G4A8cN.mjs} +1 -1
  39. package/dist/{eventPlugin-BweHAVws.mjs → eventPlugin-Dghr7iL5.mjs} +8 -8
  40. package/dist/{eventTypes-N4-omQFR.mjs → eventTypes-DDy7BMAn.mjs} +2 -2
  41. package/dist/events/index.mjs +7 -7
  42. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  43. package/dist/events/transports/redis.mjs +2 -2
  44. package/dist/factory/index.d.mts +1 -1
  45. package/dist/factory/index.mjs +6 -6
  46. package/dist/{fields-A5crhsJb.mjs → fields-Da--1DNS.mjs} +1 -1
  47. package/dist/{filter-merge-DGM-GQ1J.mjs → filter-merge-BYKBa9b2.mjs} +1 -1
  48. package/dist/{generate-BXKo2Gc8.mjs → generate-Cm5Ct81v.mjs} +2 -2
  49. package/dist/{headers-DKZQKL-Z.mjs → headers-B6DRXXzT.mjs} +2 -2
  50. package/dist/{health-BYAwA6YS.mjs → health-hRGgxnOC.mjs} +1 -1
  51. package/dist/{health-CrqUp3sz.mjs → health-pLbfckGB.mjs} +1 -1
  52. package/dist/hooks/index.mjs +2 -2
  53. package/dist/idempotency/index.mjs +7 -7
  54. package/dist/idempotency/redis.mjs +2 -2
  55. package/dist/{index-BkV55WlV.d.mts → index-uhkUA5-U.d.mts} +1 -1
  56. package/dist/index.mjs +11 -11
  57. package/dist/{init-BPzK5Lnr.mjs → init-lpaUB-Ph.mjs} +1 -1
  58. package/dist/integrations/event-gateway.mjs +2 -2
  59. package/dist/integrations/index.mjs +1 -1
  60. package/dist/integrations/jobs/index.mjs +3 -3
  61. package/dist/integrations/mcp/index.mjs +2 -2
  62. package/dist/integrations/mcp/testing.mjs +2 -2
  63. package/dist/integrations/streamline.mjs +3 -3
  64. package/dist/integrations/webhooks.mjs +3 -3
  65. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  66. package/dist/integrations/websocket-redis.mjs +1 -1
  67. package/dist/integrations/websocket.mjs +2 -2
  68. package/dist/{jsonBody-YIq-vGLv.mjs → jsonBody-CzKHE-Fg.mjs} +2 -2
  69. package/dist/{keys-CpoiZ8hU.mjs → keys-BoZKnBel.mjs} +1 -1
  70. package/dist/{loadResources-6jO52-RR.mjs → loadResources-BEKG6bP9.mjs} +3 -3
  71. package/dist/{loadResourcesFromEntry-MP8xEppu.mjs → loadResourcesFromEntry-BEPA0ptL.mjs} +2 -2
  72. package/dist/logger/index.mjs +2 -2
  73. package/dist/{logger-D4V1zGLI.mjs → logger-vxu0DXf_.mjs} +1 -1
  74. package/dist/{mcpPlugin-srPc7ItN.mjs → mcpPlugin-DP_UB0LK.mjs} +22 -22
  75. package/dist/{memory-CTa5pOCW.mjs → memory-DJN6kyC8.mjs} +3 -3
  76. package/dist/{metrics-DsZrvnpB.mjs → metrics-wfr7XFE7.mjs} +3 -3
  77. package/dist/middleware/index.mjs +3 -3
  78. package/dist/migrations/index.mjs +2 -2
  79. package/dist/{module--L0iBIZz.mjs → module-BtdcGn_E.mjs} +1 -1
  80. package/dist/{mongodb-memory-server-CHhYSq5y.mjs → mongodb-memory-server-Cn57YIsc.mjs} +3 -3
  81. package/dist/{mongoose-CYJCLyi-.mjs → mongoose-DzFjTtBN.mjs} +3 -3
  82. package/dist/{multipartBody-Cc7eZ9cq.mjs → multipartBody-NHGOuUnG.mjs} +1 -1
  83. package/dist/{node-D8UZv_8c.mjs → node-C0HB_V6E.mjs} +2 -2
  84. package/dist/{openapi-CMegfsm8.mjs → openapi-BCOaGAgE.mjs} +6 -6
  85. package/dist/outbox-admin/index.mjs +5 -5
  86. package/dist/{outbox-module-Ryk270jd.mjs → outbox-module-BVDiMwXb.mjs} +9 -9
  87. package/dist/permissions/index.mjs +7 -7
  88. package/dist/{permissions-C5ijIz5Q.mjs → permissions-IdHJ0_5V.mjs} +9 -9
  89. package/dist/{pipe-D81zMtWs.mjs → pipe-BPJPifhi.mjs} +2 -2
  90. package/dist/pipeline/index.mjs +2 -2
  91. package/dist/{plan-CJGMKoui.mjs → plan-CEedaMlr.mjs} +1 -1
  92. package/dist/{plugin-DALd9dcF.mjs → plugin-BDBOS3-c.mjs} +22 -22
  93. package/dist/plugins/index.d.mts +2 -2
  94. package/dist/plugins/index.mjs +17 -17
  95. package/dist/plugins/response-cache.mjs +4 -4
  96. package/dist/plugins/tracing-entry.mjs +2 -2
  97. package/dist/{pluralize-COUNYo3d.mjs → pluralize-B4FcZEyI.mjs} +1 -1
  98. package/dist/presets/filesUpload.mjs +5 -5
  99. package/dist/presets/index.mjs +2 -2
  100. package/dist/presets/multiTenant.mjs +5 -5
  101. package/dist/presets/search.mjs +2 -2
  102. package/dist/{presets-CONf2Qem.mjs → presets-BPjNc-Np.mjs} +4 -4
  103. package/dist/{projection-wFoLqdss.mjs → projection-BXUOYosj.mjs} +2 -2
  104. package/dist/{queryCachePlugin-BATECpyh.mjs → queryCachePlugin-s4pBvjFF.mjs} +6 -6
  105. package/dist/{rateLimitKey-DVEZ_UpV.mjs → rateLimitKey-C4mkCwQ-.mjs} +1 -1
  106. package/dist/{realtime-xyubMKSB.mjs → realtime-MPj6eIoV.mjs} +11 -11
  107. package/dist/registry/index.mjs +3 -3
  108. package/dist/{registry-Bdzg-hdm.mjs → registry-DIdh6mWE.mjs} +2 -2
  109. package/dist/{renewingLease-BFJxGPuh.mjs → renewingLease-boGRXWCr.mjs} +1 -1
  110. package/dist/{replyHelpers-Bnc6lJyy.mjs → replyHelpers-BW_p67QD.mjs} +2 -2
  111. package/dist/{requestContext-C10UeFe5.mjs → requestContext-B8JKbeb7.mjs} +1 -1
  112. package/dist/{requirement-Bu50QALH.mjs → requirement-tXpcD56f.mjs} +1 -1
  113. package/dist/{resourceRateLimit-urWPJxrt.mjs → resourceRateLimit-DWob9nQ8.mjs} +2 -2
  114. package/dist/{rolldown-runtime-MYrLNGnq.mjs → rolldown-runtime-AD16t29l.mjs} +1 -1
  115. package/dist/{routeValidator-DHtpzrzk.mjs → routeValidator-CnmenC4Y.mjs} +1 -1
  116. package/dist/{runtimeCapabilities-DIMKMV2G.mjs → runtimeCapabilities-C7gAbIxC.mjs} +1 -1
  117. package/dist/{schedules-CKTs5ys8.mjs → schedules-Dr9gNFzx.mjs} +5 -5
  118. package/dist/{schemaConverter-BVjkQ5DD.mjs → schemaConverter-rzBovk00.mjs} +2 -2
  119. package/dist/{schemaIR-BA0Hb21Y.mjs → schemaIR-GrOK1JO4.mjs} +2 -2
  120. package/dist/schemas/index.mjs +1 -1
  121. package/dist/scim/index.mjs +2 -2
  122. package/dist/scope/index.mjs +5 -5
  123. package/dist/{scope-DINaj7Ax.mjs → scope-DpOpxyHT.mjs} +4 -4
  124. package/dist/{shutdown-LpLMH8T1.mjs → shutdown-BW8qwgpx.mjs} +1 -1
  125. package/dist/{simpleEqualityMatcher-DbwIM1f1.mjs → simpleEqualityMatcher-WdZw6GOt.mjs} +1 -1
  126. package/dist/sse-D8AgoUN3.mjs +212 -0
  127. package/dist/{sseStream-DQChzGTs.mjs → sseStream-B7rPhIQw.mjs} +2 -2
  128. package/dist/{store-helpers-Coj9RhOZ.mjs → store-helpers-Bxk7TDgG.mjs} +1 -1
  129. package/dist/{streaming-JzB5CAga.mjs → streaming-BLg1buwL.mjs} +1 -1
  130. package/dist/{subscriberIdentity-DeyppIif.mjs → subscriberIdentity-Cxp19Ked.mjs} +1 -1
  131. package/dist/{tenancy-DxV8OuX2.mjs → tenancy-D7jo78AP.mjs} +2 -2
  132. package/dist/{tenantPreparation-CBvvAcAj.mjs → tenantPreparation-DqJnokDW.mjs} +4 -4
  133. package/dist/testing/cleanupStoreContract.mjs +1 -1
  134. package/dist/testing/index.d.mts +1 -1
  135. package/dist/testing/index.mjs +16 -16
  136. package/dist/testing/outboxStoreContract.mjs +2 -2
  137. package/dist/testing/requiredPorts.mjs +2 -2
  138. package/dist/testing/storageContract.mjs +1 -1
  139. package/dist/{timing-CntavTlR.mjs → timing-Y6_ZpoYG.mjs} +1 -1
  140. package/dist/{transactionContext-orvnGu4F.mjs → transactionContext-BWp0MBGL.mjs} +1 -1
  141. package/dist/{typeGuards-kEaP_WmO.mjs → typeGuards-CtZJypJO.mjs} +1 -1
  142. package/dist/types/index.mjs +1 -1
  143. package/dist/types/storage.mjs +1 -1
  144. package/dist/{types-fvO6Ovzx.mjs → types-4JKkSvds.mjs} +4 -4
  145. package/dist/usage/index.mjs +4 -4
  146. package/dist/{userHelpers-C76zD5pa.mjs → userHelpers-Nc5ePCsf.mjs} +1 -1
  147. package/dist/utils/index.mjs +12 -12
  148. package/dist/{utils-BpkVZ8rB.mjs → utils-QWSIKqAk.mjs} +4 -4
  149. package/dist/{validate-CWp-lsrm.mjs → validate-CT4umNhp.mjs} +3 -3
  150. package/dist/{versioning-Bsb51gGT.d.mts → versioning-Bqm_57Qt.d.mts} +23 -1
  151. package/dist/{versioning-CHhL9P3o.mjs → versioning-JIqxO64K.mjs} +3 -3
  152. package/dist/{workScope-n9a7d_lZ.mjs → workScope-BDjGXwU9.mjs} +2 -2
  153. package/package.json +17 -16
  154. package/dist/sse-BzJFPX_1.mjs +0 -89
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
3
3
  //#region src/utils/errors.ts
4
4
  /**
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { t as arcLog } from "./logger-D4V1zGLI.mjs";
4
- import { d as createDomainError } from "./errors-CW4anJBy.mjs";
5
- import { n as requestContext } from "./requestContext-C10UeFe5.mjs";
6
- import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-LpLMH8T1.mjs";
7
- import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-DZWDsaPa.mjs";
8
- import { n as preserveSubscriberIdentity } from "./subscriberIdentity-DeyppIif.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { t as arcLog } from "./logger-vxu0DXf_.mjs";
4
+ import { d as createDomainError } from "./errors-C9G4A8cN.mjs";
5
+ import { n as requestContext } from "./requestContext-B8JKbeb7.mjs";
6
+ import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BW8qwgpx.mjs";
7
+ import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-Ci6hGO1Y.mjs";
8
+ import { n as preserveSubscriberIdentity } from "./subscriberIdentity-Cxp19Ked.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.44.0 | MIT | https://classytic.com */
2
- import { r as createEvent } from "./EventTransport-DZWDsaPa.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as createEvent } from "./EventTransport-Ci6hGO1Y.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { durableEventMeta } from "@classytic/primitives/durable-events";
5
5
  //#region src/events/defineEvent.ts
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as MemoryEventTransport } from "../EventTransport-DZWDsaPa.mjs";
3
- 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-N4-omQFR.mjs";
4
- import { r as withSubscriberId } from "../subscriberIdentity-DeyppIif.mjs";
5
- import { a as withRetry, i as createDeadLetterPublisher, n as eventPlugin } from "../eventPlugin-BweHAVws.mjs";
6
- import { r as readOutboxHealth, t as DEFAULT_RELAY_LAG_UNHEALTHY_MS } from "../health-BYAwA6YS.mjs";
7
- import { i as exponentialBackoff, n as EventOutbox, r as repositoryAsOutboxStore, t as createOutboxModule } from "../outbox-module-Ryk270jd.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as MemoryEventTransport } from "../EventTransport-Ci6hGO1Y.mjs";
3
+ 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-DDy7BMAn.mjs";
4
+ import { r as withSubscriberId } from "../subscriberIdentity-Cxp19Ked.mjs";
5
+ import { a as withRetry, i as createDeadLetterPublisher, n as eventPlugin } from "../eventPlugin-Dghr7iL5.mjs";
6
+ import { r as readOutboxHealth, t as DEFAULT_RELAY_LAG_UNHEALTHY_MS } from "../health-hRGgxnOC.mjs";
7
+ import { i as exponentialBackoff, n as EventOutbox, r as repositoryAsOutboxStore, t as createOutboxModule } from "../outbox-module-BVDiMwXb.mjs";
8
8
  import { fingerprintRequest, runIdempotent } from "@classytic/repo-core/idempotency";
9
9
  import { MemoryOutboxStore } from "@classytic/primitives/memory-outbox";
10
10
  //#region src/events/inbox.ts
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as evictToSize } from "../../boundedMap-DWiKW7lP.mjs";
3
- import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-n9a7d_lZ.mjs";
4
- import { t as getSubscriberId } from "../../subscriberIdentity-DeyppIif.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as evictToSize } from "../../boundedMap-DQfXgxMo.mjs";
3
+ import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-BDjGXwU9.mjs";
4
+ import { t as getSubscriberId } from "../../subscriberIdentity-Cxp19Ked.mjs";
5
5
  import sjson from "secure-json-parse";
6
6
  import { createEventRouter } from "@classytic/primitives/events";
7
7
  //#region src/events/transports/redis-stream.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-n9a7d_lZ.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-BDjGXwU9.mjs";
3
3
  import sjson from "secure-json-parse";
4
4
  //#region src/events/transports/redis.ts
5
5
  /**
@@ -2,7 +2,7 @@
2
2
  import { _ 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, w as HealthCheck, y as loadResources } from "../types-BJ-2XqVF.mjs";
3
3
  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-CUJvoyw3.mjs";
4
4
  import { a as ResolvedModuleDescriptor, o as ResolvedModuleLifecycle, s as ResolvedResourceDescriptor } from "../fastify-augmentation-DRlCIWE9.mjs";
5
- import { a as UnderPressureOptions, c as CustomAuthenticatorOption, i as RawBodyOptions, l as CustomPluginAuthOption, n as CreateAppOptions, o as AuthOption, r as MultipartOptions, s as BetterAuthOption, t as BootDisposer, u as JwtAuthOption } from "../index-BkV55WlV.mjs";
5
+ import { a as UnderPressureOptions, c as CustomAuthenticatorOption, i as RawBodyOptions, l as CustomPluginAuthOption, n as CreateAppOptions, o as AuthOption, r as MultipartOptions, s as BetterAuthOption, t as BootDisposer, u as JwtAuthOption } from "../index-uhkUA5-U.mjs";
6
6
  import { FastifyInstance, FastifyServerOptions } from "fastify";
7
7
  //#region src/factory/createApp.d.ts
8
8
  /**
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as mergeHealthChecks, t as healthPlugin } from "../health-CrqUp3sz.mjs";
3
- 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-BGLYtErt.mjs";
4
- 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-CJGMKoui.mjs";
5
- import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, t as defineModule } from "../module--L0iBIZz.mjs";
6
- import { t as loadResources } from "../loadResources-6jO52-RR.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as mergeHealthChecks, t as healthPlugin } from "../health-pLbfckGB.mjs";
3
+ 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-BSBPntOQ.mjs";
4
+ 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-CEedaMlr.mjs";
5
+ import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, t as defineModule } from "../module-BtdcGn_E.mjs";
6
+ import { t as loadResources } from "../loadResources-BEKG6bP9.mjs";
7
7
  //#region 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
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region src/permissions/fields.ts
3
3
  /**
4
4
  * Field-Level Permissions
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region 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.44.0 | MIT | https://classytic.com */
2
- import { t as pluralize } from "./pluralize-COUNYo3d.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as pluralize } from "./pluralize-B4FcZEyI.mjs";
3
3
  import { join } from "node:path";
4
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
5
5
  //#region src/cli/commands/generate/name-helpers.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { u as ValidationError } from "./errors-CW4anJBy.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { u as ValidationError } from "./errors-C9G4A8cN.mjs";
3
3
  //#region src/utils/headers.ts
4
4
  /**
5
5
  * Canonical header typing + accessor.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region 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.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import { randomUUID } from "node:crypto";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/plugins/requestId.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.44.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-yjEgn7Cm.mjs";
1
+ /*! @classytic/arc v2.45.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-CtnnYHME.mjs";
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { d as createDomainError } from "../errors-CW4anJBy.mjs";
3
- import { n as requireSingleHeaderValue } from "../headers-DKZQKL-Z.mjs";
4
- import { i as requestRequiresIdempotencyKey, n as idempotencyConfigProblem, r as requestDedupedByHandler, t as declaresIdempotencyFence } from "../requirement-Bu50QALH.mjs";
5
- import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "../store-helpers-Coj9RhOZ.mjs";
6
- import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "../timing-CntavTlR.mjs";
7
- import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "../acquire-BozJ-9yt.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { d as createDomainError } from "../errors-C9G4A8cN.mjs";
3
+ import { n as requireSingleHeaderValue } from "../headers-B6DRXXzT.mjs";
4
+ import { i as requestRequiresIdempotencyKey, n as idempotencyConfigProblem, r as requestDedupedByHandler, t as declaresIdempotencyFence } from "../requirement-tXpcD56f.mjs";
5
+ import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "../store-helpers-Bxk7TDgG.mjs";
6
+ import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "../timing-Y6_ZpoYG.mjs";
7
+ import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "../acquire-BW_2Dt60.mjs";
8
8
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
9
9
  import { and, eq, exists, gt, lt, or, startsWith } from "@classytic/repo-core/filter";
10
10
  import { createHash } from "node:crypto";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as acquireBySteps } from "../acquire-BozJ-9yt.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as acquireBySteps } from "../acquire-BW_2Dt60.mjs";
3
3
  import { createHash } from "node:crypto";
4
4
  //#region src/idempotency/stores/redis.ts
5
5
  /**
@@ -9,7 +9,7 @@ import { t as ErrorHandlerOptions } from "./errorHandler--4rSMMvq.mjs";
9
9
  import { S as SchedulesPluginOptions, T as HealthOptions, _ as ResourceLike, o as ArcPorts, r as ArcModuleInput } from "./types-BJ-2XqVF.mjs";
10
10
  import { H as ModuleGraphOptions } from "./index-CUJvoyw3.mjs";
11
11
  import { t as EventPluginOptions } from "./eventPlugin-BtmA4-3P.mjs";
12
- import { a as MetricsOptions, c as RealtimeOptions, f as CachingOptions, h as GracefulShutdownOptions, t as VersioningOptions, u as SSEOptions } from "./versioning-Bsb51gGT.mjs";
12
+ import { a as MetricsOptions, c as RealtimeOptions, g as GracefulShutdownOptions, p as CachingOptions, t as VersioningOptions, u as SSEOptions } from "./versioning-Bqm_57Qt.mjs";
13
13
  import { i as IdempotencyStore } from "./interface-JJzwH4Ro.mjs";
14
14
  import { FastifyInstance, FastifyPluginAsync, FastifyReply, FastifyRequest, FastifyServerOptions } from "fastify";
15
15
  //#region src/factory/types/assets.d.ts
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-B2QHb6u6.mjs";
3
- import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-CW4anJBy.mjs";
4
- import { S as nativePolicyFilter, c as BaseController, d as SlugMixin, f as BulkMixin, l as TreeMixin, p as BaseCrudController, u as SoftDeleteMixin } from "./plugin-DALd9dcF.mjs";
5
- import { t as defineAggregation } from "./defineAggregation--3xguLkk.mjs";
6
- import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-A5crhsJb.mjs";
7
- import { S as getControllerScope } from "./actionPermissions-5N04zBL4.mjs";
8
- import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-COcqo0Cp.mjs";
9
- import { a as ResourceDefinition, t as defineResource } from "./defineResource-gUp9ug66.mjs";
10
- import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-C5ijIz5Q.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-B90SnSQn.mjs";
3
+ import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-C9G4A8cN.mjs";
4
+ import { S as nativePolicyFilter, c as BaseController, d as SlugMixin, f as BulkMixin, l as TreeMixin, p as BaseCrudController, u as SoftDeleteMixin } from "./plugin-BDBOS3-c.mjs";
5
+ import { t as defineAggregation } from "./defineAggregation-CwD8_XNd.mjs";
6
+ import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-Da--1DNS.mjs";
7
+ import { S as getControllerScope } from "./actionPermissions-TAc_6LCw.mjs";
8
+ import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-DV9PSXtr.mjs";
9
+ import { a as ResourceDefinition, t as defineResource } from "./defineResource-CRkhRRSj.mjs";
10
+ import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-IdHJ0_5V.mjs";
11
11
  //#region src/index.ts
12
- const version = "2.44.0";
12
+ const version = "2.45.0";
13
13
  //#endregion
14
14
  export { ArcError, BaseController, BaseCrudController, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, ForbiddenError, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, NotFoundError, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, UnauthorizedError, ValidationError, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, version, when };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import * as fs from "node:fs/promises";
3
3
  import * as path from "node:path";
4
4
  import { dirname, join } from "node:path";
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import fp from "fastify-plugin";
3
3
  //#region src/integrations/event-gateway.ts
4
4
  const eventGatewayPluginImpl = async (fastify, opts = {}) => {
5
5
  const { auth = true, orgScoped, roomPolicy, maxMessageBytes, maxSubscriptionsPerClient, authenticate } = opts;
6
6
  if (auth && !authenticate && !fastify.hasDecorator("authenticate")) throw new Error("[arc-event-gateway] auth is true but fastify.authenticate is not registered. Register an auth plugin first, provide a custom authenticate function, or set auth: false.");
7
7
  if (opts.sse !== false) {
8
- const { default: ssePlugin } = await import("../sse-BzJFPX_1.mjs").then((n) => n.n);
8
+ const { default: ssePlugin } = await import("../sse-D8AgoUN3.mjs").then((n) => n.n);
9
9
  await fastify.register(ssePlugin, {
10
10
  path: opts.sse?.path ?? "/events/stream",
11
11
  requireAuth: auth,
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as evaluateAndApplyPermission } from "../../authorizationDecision-wX3SA9w_.mjs";
3
- import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-LpLMH8T1.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as evaluateAndApplyPermission } from "../../authorizationDecision-BixzgirP.mjs";
3
+ import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-BW8qwgpx.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/integrations/jobs/execution.ts
6
6
  async function executeTimedHandler(options) {
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { _ as resolveToolCollisions, a as toolInputShape, c as resolveCrudDescription, d as permissionDeniedResult, f as toCallToolError, g as createMcpServer, h as buildRequestContext, i as isZodTypeSchema, l as invokeController, m as toCallToolSuccess, n as mcpPlugin, o as fieldRulesToZod, p as toCallToolResult, r as resourceToTools, s as defaultCrudDescription, t as filterResourcesForMcp, u as mcpHandlerAdapter } from "../../mcpPlugin-srPc7ItN.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { _ as resolveToolCollisions, a as toolInputShape, c as resolveCrudDescription, d as permissionDeniedResult, f as toCallToolError, g as createMcpServer, h as buildRequestContext, i as isZodTypeSchema, l as invokeController, m as toCallToolSuccess, n as mcpPlugin, o as fieldRulesToZod, p as toCallToolResult, r as resourceToTools, s as defaultCrudDescription, t as filterResourcesForMcp, u as mcpHandlerAdapter } from "../../mcpPlugin-DP_UB0LK.mjs";
3
3
  //#region src/integrations/mcp/defineTool.ts
4
4
  /**
5
5
  * Define a type-safe MCP tool.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { g as createMcpServer, r as resourceToTools, t as filterResourcesForMcp } from "../../mcpPlugin-srPc7ItN.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { g as createMcpServer, r as resourceToTools, t as filterResourcesForMcp } from "../../mcpPlugin-DP_UB0LK.mjs";
3
3
  //#region src/integrations/mcp/testing.ts
4
4
  /**
5
5
  * Serve an already-built `McpServer` on an ephemeral loopback port and connect
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-CW4anJBy.mjs";
3
- import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-JzB5CAga.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-C9G4A8cN.mjs";
3
+ import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-BLg1buwL.mjs";
4
4
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
5
5
  import fp from "fastify-plugin";
6
6
  //#region src/integrations/streamline.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DIMKMV2G.mjs";
3
- import { i as exponentialBackoff, t as createOutboxModule } from "../outbox-module-Ryk270jd.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-C7gAbIxC.mjs";
3
+ import { i as exponentialBackoff, t as createOutboxModule } from "../outbox-module-BVDiMwXb.mjs";
4
4
  import { createHmac, timingSafeEqual } from "node:crypto";
5
5
  import fp from "fastify-plugin";
6
6
  import { createChildEvent, matchEventPattern } from "@classytic/primitives/events";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region src/integrations/websocket-pushref-redis.ts
3
3
  /**
4
4
  * Lua script for atomic claim. Runs server-side, single-roundtrip.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region src/integrations/websocket-redis.ts
3
3
  /**
4
4
  * Redis Pub/Sub adapter for cross-instance WebSocket broadcast.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DIMKMV2G.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-C7gAbIxC.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import sjson from "secure-json-parse";
5
5
  import fp from "fastify-plugin";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "./errors-CW4anJBy.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "./errors-C9G4A8cN.mjs";
3
3
  import sjson from "secure-json-parse";
4
4
  //#region src/utils/jsonBody.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import { contentHash } from "@classytic/repo-core/hash";
3
3
  //#region src/cache/keys.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { t as arcLog } from "./logger-D4V1zGLI.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { t as arcLog } from "./logger-vxu0DXf_.mjs";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { dirname, join, resolve } from "node:path";
6
6
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as ResourceRegistry } from "./ResourceRegistry-DJxHUpE4.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as ResourceRegistry } from "./ResourceRegistry-BNoHOx-D.mjs";
3
3
  import { resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
5
  //#region src/cli/utils/loadResourcesFromEntry.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-D4V1zGLI.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-vxu0DXf_.mjs";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/logger/scope.ts
4
4
  /**
@@ -1,25 +1,25 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-D4V1zGLI.mjs";
3
- import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-CW4anJBy.mjs";
4
- import { c as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-DALd9dcF.mjs";
5
- import { n as requireSingleHeaderValue } from "./headers-DKZQKL-Z.mjs";
6
- import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-fvO6Ovzx.mjs";
7
- import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-A5crhsJb.mjs";
8
- import { o as toJsonSchema } from "./schemaConverter-BVjkQ5DD.mjs";
9
- import { t as buildRequestScopeProjection } from "./projection-wFoLqdss.mjs";
10
- import { l as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-5N04zBL4.mjs";
11
- import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-CBvvAcAj.mjs";
12
- import { r as evaluatePermissionDecision } from "./authorizationDecision-wX3SA9w_.mjs";
13
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-DIMKMV2G.mjs";
14
- import { t as executePipeline } from "./pipe-D81zMtWs.mjs";
15
- import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-urWPJxrt.mjs";
16
- import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-DWiKW7lP.mjs";
17
- import { t as pluralize } from "./pluralize-COUNYo3d.mjs";
18
- import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-CntavTlR.mjs";
19
- import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-BozJ-9yt.mjs";
20
- import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-BA0Hb21Y.mjs";
21
- import { n as validateAggregations } from "./validate-CWp-lsrm.mjs";
22
- import { n as executeAggregation } from "./buildHandler-Bswu_vNb.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-vxu0DXf_.mjs";
3
+ import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-C9G4A8cN.mjs";
4
+ import { c as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-BDBOS3-c.mjs";
5
+ import { n as requireSingleHeaderValue } from "./headers-B6DRXXzT.mjs";
6
+ import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-4JKkSvds.mjs";
7
+ import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-Da--1DNS.mjs";
8
+ import { o as toJsonSchema } from "./schemaConverter-rzBovk00.mjs";
9
+ import { t as buildRequestScopeProjection } from "./projection-BXUOYosj.mjs";
10
+ import { l as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-TAc_6LCw.mjs";
11
+ import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-DqJnokDW.mjs";
12
+ import { r as evaluatePermissionDecision } from "./authorizationDecision-BixzgirP.mjs";
13
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-C7gAbIxC.mjs";
14
+ import { t as executePipeline } from "./pipe-BPJPifhi.mjs";
15
+ import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-DWob9nQ8.mjs";
16
+ import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-DQfXgxMo.mjs";
17
+ import { t as pluralize } from "./pluralize-B4FcZEyI.mjs";
18
+ import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-Y6_ZpoYG.mjs";
19
+ import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-BW_2Dt60.mjs";
20
+ import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-GrOK1JO4.mjs";
21
+ import { n as validateAggregations } from "./validate-CT4umNhp.mjs";
22
+ import { n as executeAggregation } from "./buildHandler-mEUmO2_u.mjs";
23
23
  import { ARC_ERROR_CODES, isHttpError, toErrorContract } from "@classytic/repo-core/errors";
24
24
  import { createHash, randomUUID } from "node:crypto";
25
25
  import fp from "fastify-plugin";
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { n as evictToSize } from "./boundedMap-DWiKW7lP.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { n as evictToSize } from "./boundedMap-DQfXgxMo.mjs";
4
4
  //#region src/cache/memory.ts
5
5
  var memory_exports = /* @__PURE__ */ __exportAll({ MemoryCacheStore: () => MemoryCacheStore });
6
6
  /**
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-CrqUp3sz.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-pLbfckGB.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/plugins/metrics.ts
6
6
  var metrics_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../constants-B2QHb6u6.mjs";
3
- import { t as multipartBody } from "../multipartBody-Cc7eZ9cq.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../constants-B90SnSQn.mjs";
3
+ import { t as multipartBody } from "../multipartBody-NHGOuUnG.mjs";
4
4
  //#region src/middleware/middleware.ts
5
5
  /**
6
6
  * Named Middleware — Priority-based, conditional middleware execution.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as startRenewingLease } from "../renewingLease-BFJxGPuh.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { t as startRenewingLease } from "../renewingLease-boGRXWCr.mjs";
3
3
  import { createHash, randomUUID } from "node:crypto";
4
4
  //#region src/migrations/index.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  //#region src/factory/module/index.ts
3
3
  /**
4
4
  * Identity helper for authoring a typed module — mirrors `defineResource`.
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { i as require_ms, n as require_lib$4, r as require_bson$1, t as require_node$1 } from "./node-D8UZv_8c.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { i as require_ms, n as require_lib$4, r as require_bson$1, t as require_node$1 } from "./node-C0HB_V6E.mjs";
4
4
  //#region node_modules/tslib/tslib.es6.mjs
5
5
  var tslib_es6_exports = /* @__PURE__ */ __exportAll({
6
6
  __addDisposableResource: () => __addDisposableResource,
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { i as __require, t as __commonJSMin } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { i as require_ms, n as require_lib$4, r as require_bson$1, t as require_node$1 } from "./node-D8UZv_8c.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { i as __require, t as __commonJSMin } from "./rolldown-runtime-AD16t29l.mjs";
3
+ import { i as require_ms, n as require_lib$4, r as require_bson$1, t as require_node$1 } from "./node-C0HB_V6E.mjs";
4
4
  //#region node_modules/mongodb/lib/bson.js
5
5
  var require_bson = /* @__PURE__ */ __commonJSMin(((exports) => {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
2
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
3
3
  import sjson from "secure-json-parse";
4
4
  //#region src/middleware/multipartBody.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { i as __require, t as __commonJSMin } from "./rolldown-runtime-MYrLNGnq.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { i as __require, t as __commonJSMin } from "./rolldown-runtime-AD16t29l.mjs";
3
3
  //#region node_modules/ms/index.js
4
4
  var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  /**
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as getUserRoles } from "./userHelpers-C76zD5pa.mjs";
3
- import { n as convertRouteSchema } from "./schemaConverter-BVjkQ5DD.mjs";
4
- import { t as resolveActionPermission } from "./actionPermissions-5N04zBL4.mjs";
5
- import { t as pluralize } from "./pluralize-COUNYo3d.mjs";
6
- import { t as buildActionBodySchema } from "./createActionRouter-zG13rpPJ.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { n as getUserRoles } from "./userHelpers-Nc5ePCsf.mjs";
3
+ import { n as convertRouteSchema } from "./schemaConverter-rzBovk00.mjs";
4
+ import { t as resolveActionPermission } from "./actionPermissions-TAc_6LCw.mjs";
5
+ import { t as pluralize } from "./pluralize-B4FcZEyI.mjs";
6
+ import { t as buildActionBodySchema } from "./createActionRouter-BgPCYU2U.mjs";
7
7
  import fp from "fastify-plugin";
8
8
  //#region src/docs/openapi/canonical-schemas.ts
9
9
  /**
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { i as NotFoundError, u as ValidationError } from "../errors-CW4anJBy.mjs";
3
- import { t as defineResource } from "../defineResource-gUp9ug66.mjs";
4
- import { n as getModuleExports, t as defineModule } from "../module--L0iBIZz.mjs";
5
- import { r as readOutboxHealth } from "../health-BYAwA6YS.mjs";
1
+ /*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
2
+ import { i as NotFoundError, u as ValidationError } from "../errors-C9G4A8cN.mjs";
3
+ import { t as defineResource } from "../defineResource-CRkhRRSj.mjs";
4
+ import { n as getModuleExports, t as defineModule } from "../module-BtdcGn_E.mjs";
5
+ import { r as readOutboxHealth } from "../health-hRGgxnOC.mjs";
6
6
  //#region src/outbox-admin/module.ts
7
7
  /**
8
8
  * Strip the domain payload and the stack unless explicitly opted in.