@classytic/arc 2.46.0 → 2.48.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 (195) hide show
  1. package/dist/{EventTransport-DNgD9NP4.mjs → EventTransport-BWwg5YAU.mjs} +4 -4
  2. package/dist/{HookSystem-DRbPzEcP.mjs → HookSystem-B9x-Y_k7.mjs} +2 -2
  3. package/dist/{ResourceRegistry-Douk51fa.mjs → ResourceRegistry-BcvEJoZd.mjs} +2 -2
  4. package/dist/{acquire-RbtvDg9s.mjs → acquire-D2yj6Zzl.mjs} +1 -1
  5. package/dist/{actionPermissions-De0AJ7hm.mjs → actionPermissions-Dha8sAz2.mjs} +13 -13
  6. package/dist/audit/index.d.mts +1 -1
  7. package/dist/audit/index.mjs +4 -4
  8. package/dist/auth/audit.mjs +1 -1
  9. package/dist/auth/index.d.mts +1 -1
  10. package/dist/auth/index.mjs +7 -7
  11. package/dist/auth/redis-session.mjs +1 -1
  12. package/dist/{authorizationDecision-DeZMrHcm.mjs → authorizationDecision-BZSJcPNE.mjs} +4 -4
  13. package/dist/{boundedMap-2WBh3gM9.mjs → boundedMap-o2KZDCWy.mjs} +1 -1
  14. package/dist/{buildHandler-DxVOOBpw.mjs → buildHandler-G3k59KY2.mjs} +4 -4
  15. package/dist/cache/index.mjs +4 -4
  16. package/dist/{caching-BYRwYrUo.mjs → caching-CJIDPZOv.mjs} +2 -2
  17. package/dist/{claimed-DYlELdnm.mjs → claimed-D0A43wjT.mjs} +1 -1
  18. package/dist/cleanup/index.d.mts +1 -1
  19. package/dist/cleanup/index.mjs +4 -4
  20. package/dist/cli/commands/describe.d.mts +1 -1
  21. package/dist/cli/commands/describe.mjs +3 -3
  22. package/dist/cli/commands/docs.mjs +3 -3
  23. package/dist/cli/commands/doctor.mjs +1 -1
  24. package/dist/cli/commands/generate.mjs +2 -2
  25. package/dist/cli/commands/init.mjs +2 -2
  26. package/dist/cli/commands/introspect.mjs +2 -2
  27. package/dist/cli/index.mjs +3 -3
  28. package/dist/{constants-CHZMUwBW.mjs → constants-D-faL5SX.mjs} +1 -1
  29. package/dist/context/index.mjs +5 -5
  30. package/dist/core/index.d.mts +2 -2
  31. package/dist/core/index.mjs +7 -7
  32. package/dist/{core-D9rS2BxO.mjs → core-NSu1peyq.mjs} +3 -3
  33. package/dist/{createActionRouter-0qkCRzTL.mjs → createActionRouter-DTSVv1VK.mjs} +6 -6
  34. package/dist/{createAggregationRouter-CUf5Esd9.mjs → createAggregationRouter-zEasm-ax.mjs} +7 -7
  35. package/dist/{createApp-DZIXfDKD.mjs → createApp-CjqhkX1x.mjs} +29 -29
  36. package/dist/{createMcpServer-DeVpqQF-.d.mts → createMcpServer-hSFeqRUb.d.mts} +9 -10
  37. package/dist/{defineAggregation-bmKQ4NmC.mjs → defineAggregation-DH2L6_v9.mjs} +1 -1
  38. package/dist/{defineResource-CGmdmGwh.mjs → defineResource-zYCrhNaN.mjs} +10 -8
  39. package/dist/discovery/index.mjs +1 -1
  40. package/dist/docs/index.d.mts +1 -1
  41. package/dist/docs/index.mjs +3 -3
  42. package/dist/{elevation-CzhqAyVN.mjs → elevation-z--rFcZ5.mjs} +5 -5
  43. package/dist/encryption/index.mjs +3 -3
  44. package/dist/{errorHandler-dFyGOEoB.mjs → errorHandler-3_3oN-Uc.mjs} +3 -3
  45. package/dist/{errors-BY8vzlP4.mjs → errors-DyY48oRi.mjs} +1 -1
  46. package/dist/{eventPlugin-eMhAPtQA.mjs → eventPlugin-Co9sABCg.mjs} +8 -8
  47. package/dist/{eventTypes-Do2KYeJx.mjs → eventTypes-HmAFyJmJ.mjs} +2 -2
  48. package/dist/events/index.d.mts +2 -2
  49. package/dist/events/index.mjs +8 -7
  50. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  51. package/dist/events/transports/redis.mjs +2 -2
  52. package/dist/factory/index.d.mts +3 -3
  53. package/dist/factory/index.mjs +6 -6
  54. package/dist/{fastify-augmentation-Dtn0IIRn.d.mts → fastify-augmentation-bzkWPt1f.d.mts} +2 -2
  55. package/dist/{fields-LnbCcvsw.mjs → fields-rfsl26Ov.mjs} +1 -1
  56. package/dist/{filter-merge-BAWi019Q.mjs → filter-merge-8glLr7Dk.mjs} +1 -1
  57. package/dist/{generate-oXoDnpJf.mjs → generate-BOfBueRt.mjs} +2 -2
  58. package/dist/{headers-DBd3Qheo.mjs → headers-CHSOqpcY.mjs} +2 -2
  59. package/dist/{health-BlJu9GXS.mjs → health-DHvAIVmM.mjs} +1 -1
  60. package/dist/{health-Dp-3EC9o.mjs → health-ezwTHQh2.mjs} +1 -1
  61. package/dist/hooks/index.d.mts +1 -1
  62. package/dist/hooks/index.mjs +2 -2
  63. package/dist/http-cache/index.d.mts +211 -0
  64. package/dist/http-cache/index.mjs +605 -0
  65. package/dist/http-cache/purgers/cloudflare.d.mts +13 -0
  66. package/dist/http-cache/purgers/cloudflare.mjs +46 -0
  67. package/dist/http-cache/purgers/fastly.d.mts +12 -0
  68. package/dist/http-cache/purgers/fastly.mjs +47 -0
  69. package/dist/http-cache/testing/index.d.mts +68 -0
  70. package/dist/http-cache/testing/index.mjs +168 -0
  71. package/dist/idempotency/index.mjs +8 -8
  72. package/dist/idempotency/redis.mjs +2 -2
  73. package/dist/{index-BTxzJ_MN.d.mts → index-BxZS-8So.d.mts} +2 -2
  74. package/dist/{index-DyJFTJLA.d.mts → index-Cy2-QffW.d.mts} +9 -0
  75. package/dist/{index-CUdaoCYt.d.mts → index-D1X_C_qz.d.mts} +2 -2
  76. package/dist/{index-Bqfo8hLz.d.mts → index-DFCCQ9AE.d.mts} +1 -1
  77. package/dist/index.d.mts +3 -3
  78. package/dist/index.mjs +11 -11
  79. package/dist/{init-BOaNkLYb.mjs → init-MoE3eZNR.mjs} +1 -1
  80. package/dist/integrations/event-gateway.mjs +2 -2
  81. package/dist/integrations/index.d.mts +1 -1
  82. package/dist/integrations/index.mjs +1 -1
  83. package/dist/integrations/jobs/index.mjs +3 -3
  84. package/dist/integrations/mcp/index.d.mts +4 -36
  85. package/dist/integrations/mcp/index.mjs +2 -2
  86. package/dist/integrations/mcp/testing.d.mts +11 -15
  87. package/dist/integrations/mcp/testing.mjs +22 -42
  88. package/dist/integrations/streamline.mjs +3 -3
  89. package/dist/integrations/webhooks.d.mts +1 -1
  90. package/dist/integrations/webhooks.mjs +4 -3
  91. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  92. package/dist/integrations/websocket-redis.mjs +1 -1
  93. package/dist/integrations/websocket.mjs +2 -2
  94. package/dist/{jsonBody-DpRpKR_K.mjs → jsonBody-DZGiCawf.mjs} +2 -2
  95. package/dist/{keys-FBz6Ull-.mjs → keys-CrMOZuk6.mjs} +1 -1
  96. package/dist/{loadResources-Bx1sKPnF.mjs → loadResources-CVQvYUhN.mjs} +3 -3
  97. package/dist/{loadResourcesFromEntry-b_jcqbxh.mjs → loadResourcesFromEntry-D0naccV2.mjs} +2 -2
  98. package/dist/logger/index.mjs +2 -2
  99. package/dist/{logger-CbFcIEBZ.mjs → logger-VyMcSmVG.mjs} +1 -1
  100. package/dist/{mcpPlugin-yix548XX.mjs → mcpPlugin-DQACaqVu.mjs} +210 -373
  101. package/dist/{memory-Bgw5dn8N.mjs → memory-Lpfu8Hga.mjs} +3 -3
  102. package/dist/{metrics-CZDQWVjS.mjs → metrics-DjVj1sg5.mjs} +3 -3
  103. package/dist/middleware/index.d.mts +1 -1
  104. package/dist/middleware/index.mjs +3 -3
  105. package/dist/migrations/index.mjs +2 -2
  106. package/dist/{module-Dsc_nKL5.mjs → module-BqPJpZ_L.mjs} +1 -1
  107. package/dist/{multiTenant-XCxAUlru.d.mts → multiTenant-KZj8j1uJ.d.mts} +1 -1
  108. package/dist/{multipartBody-B85ek8Kj.mjs → multipartBody-BNgNv7r0.mjs} +1 -1
  109. package/dist/{observeSend-BK-JN1jK.mjs → observeSend-BKJHibJz.mjs} +1 -1
  110. package/dist/{openapi-Co7hl073.mjs → openapi-T90KrPR6.mjs} +6 -6
  111. package/dist/outbox-admin/index.mjs +5 -5
  112. package/dist/{outbox-module-XvUThpqn.d.mts → outbox-module-5Mnwcycy.d.mts} +1 -1
  113. package/dist/outbox-module-C874VgBr.mjs +297 -0
  114. package/dist/permissions/index.mjs +7 -7
  115. package/dist/{permissions-A1oKtpiC.mjs → permissions-R9T2G1PH.mjs} +9 -9
  116. package/dist/{pipe-Czpw9U2n.mjs → pipe-DzqbsZy-.mjs} +2 -2
  117. package/dist/pipeline/index.d.mts +1 -1
  118. package/dist/pipeline/index.mjs +2 -2
  119. package/dist/{plan-KVseuBCL.mjs → plan-C0gkeABY.mjs} +1 -1
  120. package/dist/{plugin-DTWt_8C3.mjs → plugin-BJcVOX5r.mjs} +48 -24
  121. package/dist/plugins/index.d.mts +2 -2
  122. package/dist/plugins/index.mjs +17 -17
  123. package/dist/plugins/response-cache.mjs +4 -4
  124. package/dist/plugins/tracing-entry.mjs +2 -2
  125. package/dist/{pluralize-msB9X3yw.mjs → pluralize-CrCpyoZs.mjs} +1 -1
  126. package/dist/policy.types-DPqToKG1.d.mts +50 -0
  127. package/dist/presets/filesUpload.d.mts +1 -1
  128. package/dist/presets/filesUpload.mjs +5 -5
  129. package/dist/presets/index.d.mts +2 -2
  130. package/dist/presets/index.mjs +2 -2
  131. package/dist/presets/multiTenant.d.mts +1 -1
  132. package/dist/presets/multiTenant.mjs +5 -5
  133. package/dist/presets/search.d.mts +1 -1
  134. package/dist/presets/search.mjs +2 -2
  135. package/dist/{presets-qKCehiJM.mjs → presets-CNDvNYsz.mjs} +4 -4
  136. package/dist/{projection-ClBqtsIw.mjs → projection-CIUe8b59.mjs} +2 -2
  137. package/dist/purger.types-DvPp4-yd.d.mts +26 -0
  138. package/dist/purger.types-f83fTzGy.mjs +24 -0
  139. package/dist/{queryCachePlugin-3gJj5Rbz.mjs → queryCachePlugin-B2jpwFcv.mjs} +6 -6
  140. package/dist/{rateLimitKey-Kro---xl.mjs → rateLimitKey-BWx-qep0.mjs} +1 -1
  141. package/dist/{realtime-Ber8uJN2.mjs → realtime-D2tqi3d2.mjs} +11 -11
  142. package/dist/registry/index.d.mts +2 -2
  143. package/dist/registry/index.mjs +3 -3
  144. package/dist/{registry-BA-_vFYk.mjs → registry-Dl0k6UXy.mjs} +2 -2
  145. package/dist/{outbox-module-mg9kDYkd.mjs → relay-ZYvS4xyW.mjs} +5 -299
  146. package/dist/{renewingLease-CMY8YOcc.mjs → renewingLease-DT4yLb29.mjs} +1 -1
  147. package/dist/{replyHelpers-DK9P_XSz.mjs → replyHelpers-BJFN5AW7.mjs} +2 -2
  148. package/dist/{requestContext-GYO_0gEw.mjs → requestContext-Ct5la-SA.mjs} +1 -1
  149. package/dist/{requirement-DeNjZIH3.mjs → requirement-CxDxjB6V.mjs} +1 -1
  150. package/dist/{resourceRateLimit-tHLbrtWc.mjs → resourceRateLimit-D1oH2obv.mjs} +2 -2
  151. package/dist/{rolldown-runtime-Kv1fZdLg.mjs → rolldown-runtime-BdTN42uL.mjs} +1 -1
  152. package/dist/{routeValidator-C_H5NanI.mjs → routeValidator-DclDl5WJ.mjs} +1 -1
  153. package/dist/{runtimeCapabilities-DWqbxkyw.mjs → runtimeCapabilities-ClWr60El.mjs} +1 -1
  154. package/dist/{schedules-eO_RzhCU.mjs → schedules-gVkRcs-9.mjs} +5 -5
  155. package/dist/{schemaConverter-DBJrPZN4.mjs → schemaConverter-CIwB5wPO.mjs} +2 -2
  156. package/dist/{schemaIR-CEScKT2v.mjs → schemaIR-A0IoD05P.mjs} +2 -2
  157. package/dist/schemas/index.mjs +1 -1
  158. package/dist/scim/index.mjs +2 -2
  159. package/dist/scope/index.mjs +5 -5
  160. package/dist/{scope-B-Sm9m_E.mjs → scope-VMZhdkbT.mjs} +4 -4
  161. package/dist/{shutdown-DzLFbe27.mjs → shutdown-Bi19vH0z.mjs} +1 -1
  162. package/dist/{simpleEqualityMatcher-DOJhwQ8g.mjs → simpleEqualityMatcher-CaCS09fh.mjs} +1 -1
  163. package/dist/{sse-2972pVwV.mjs → sse-BqM359f1.mjs} +7 -7
  164. package/dist/{sseStream-AWLEeNV-.mjs → sseStream-qSa-F2Qm.mjs} +2 -2
  165. package/dist/{store-helpers-VzjgVTkM.mjs → store-helpers-rx-F2ZGR.mjs} +1 -1
  166. package/dist/{streaming-DvraWW6x.mjs → streaming-CPChx3A7.mjs} +1 -1
  167. package/dist/{subscriberIdentity-Bya56jsg.mjs → subscriberIdentity-CYNYw8p_.mjs} +1 -1
  168. package/dist/{tenancy-DSa_0hhw.mjs → tenancy-BoWImS3K.mjs} +2 -2
  169. package/dist/{tenantPreparation-BrpkQre3.mjs → tenantPreparation-oqKCZQZM.mjs} +4 -4
  170. package/dist/testing/cleanupStoreContract.mjs +1 -1
  171. package/dist/testing/index.d.mts +3 -3
  172. package/dist/testing/index.mjs +11 -11
  173. package/dist/testing/outboxStoreContract.mjs +2 -2
  174. package/dist/testing/requiredPorts.mjs +2 -2
  175. package/dist/testing/storageContract.mjs +1 -1
  176. package/dist/{timing-6rQTuCwg.mjs → timing-Dsteq59c.mjs} +1 -1
  177. package/dist/{transactionContext-DaxYUEgH.mjs → transactionContext-C1OgH-hW.mjs} +1 -1
  178. package/dist/{typeGuards-UKnX8wPX.mjs → typeGuards-DNlpASzd.mjs} +1 -1
  179. package/dist/types/index.d.mts +1 -1
  180. package/dist/types/index.mjs +1 -1
  181. package/dist/types/storage.mjs +1 -1
  182. package/dist/{types-BYEb_dLW.d.mts → types-DduBiYaI.d.mts} +19 -30
  183. package/dist/{types-CuGjhn83.mjs → types-HFFSwF_K.mjs} +4 -4
  184. package/dist/usage/index.mjs +4 -4
  185. package/dist/{userHelpers-oX5_mOVs.mjs → userHelpers-N-k-8dNF.mjs} +1 -1
  186. package/dist/utils/index.d.mts +1 -1
  187. package/dist/utils/index.mjs +12 -12
  188. package/dist/{utils-CjjGOT4E.mjs → utils-C7w_RVlx.mjs} +5 -5
  189. package/dist/{validate-4RlTKOJb.mjs → validate-Brr4b_fH.mjs} +3 -3
  190. package/dist/{versioning-Dk2-19La.mjs → versioning-CE5kdWOY.mjs} +3 -3
  191. package/dist/{workScope-DoBsoVo4.mjs → workScope-A3XBpYTa.mjs} +2 -2
  192. package/package.json +47 -27
  193. package/skills/arc/references/mcp-custom-tools.md +1 -1
  194. package/skills/arc/references/mcp-setup.md +11 -10
  195. package/skills/arc/references/mcp-testing.md +3 -3
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-DoBsoVo4.mjs";
3
- import { createEvent, createEventRouter } from "@classytic/primitives/events";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-A3XBpYTa.mjs";
3
+ import { createEvent as createEvent$1, createEventRouter } from "@classytic/primitives/events";
4
4
  // src/events/EventTransport.ts
5
5
  /**
6
6
  * Internal arc events module — concrete in-memory transport.
@@ -194,4 +194,4 @@ function describeFailures(failures) {
194
194
  }).join("; ");
195
195
  return joined.length > FAILURES_MESSAGE_MAX ? `${joined.slice(0, FAILURES_MESSAGE_MAX)}… (${failures.length} causes)` : joined;
196
196
  }
197
- export { resolveEventTransport as i, MemoryEventTransport as n, createEvent as r, ARC_EVENT_TRANSPORT as t };
197
+ export { resolveEventTransport as i, MemoryEventTransport as n, createEvent$1 as r, ARC_EVENT_TRANSPORT as t };
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as buildRequestScopeProjection } from "./projection-ClBqtsIw.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as buildRequestScopeProjection } from "./projection-CIUe8b59.mjs";
3
3
  // src/hooks/HookSystem.ts
4
4
  /**
5
5
  * Hook System
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import "./constants-CHZMUwBW.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import "./constants-D-faL5SX.mjs";
3
3
  // src/registry/ResourceRegistry.ts
4
4
  /**
5
5
  * Resource Registry
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/idempotency/acquire.ts
3
3
  async function acquireIdempotencyKey(store, key, requestId, lockTtlMs) {
4
4
  if (typeof store.acquire === "function") return store.acquire(key, requestId, lockTtlMs);
@@ -1,16 +1,16 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { f as createError } from "./errors-BY8vzlP4.mjs";
3
- import { n as getUserRoles } from "./userHelpers-oX5_mOVs.mjs";
4
- import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-CuGjhn83.mjs";
5
- import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-LnbCcvsw.mjs";
6
- import { t as buildRequestScopeProjection } from "./projection-ClBqtsIw.mjs";
7
- import { n as requestContext } from "./requestContext-GYO_0gEw.mjs";
8
- import { n as isTenantPreparation } from "./tenantPreparation-BrpkQre3.mjs";
9
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-DeZMrHcm.mjs";
10
- import { t as executePipeline } from "./pipe-Czpw9U2n.mjs";
11
- import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-DeNjZIH3.mjs";
12
- import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-tHLbrtWc.mjs";
13
- import { n as arcRouteValidatorCompiler } from "./routeValidator-C_H5NanI.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-DyY48oRi.mjs";
3
+ import { n as getUserRoles } from "./userHelpers-N-k-8dNF.mjs";
4
+ import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-HFFSwF_K.mjs";
5
+ import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-rfsl26Ov.mjs";
6
+ import { t as buildRequestScopeProjection } from "./projection-CIUe8b59.mjs";
7
+ import { n as requestContext } from "./requestContext-Ct5la-SA.mjs";
8
+ import { n as isTenantPreparation } from "./tenantPreparation-oqKCZQZM.mjs";
9
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-BZSJcPNE.mjs";
10
+ import { t as executePipeline } from "./pipe-DzqbsZy-.mjs";
11
+ import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-CxDxjB6V.mjs";
12
+ import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-D1oH2obv.mjs";
13
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-DclDl5WJ.mjs";
14
14
  import { isPaginatedResult, toCanonicalList } from "@classytic/repo-core/pagination";
15
15
  // src/core/fastifyAdapter.ts
16
16
  /** Type guard for Mongoose-like documents with toObject() */
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { d as UserBase } from "../base-HXNgPQww.mjs";
3
- import "../index-DyJFTJLA.mjs";
3
+ import "../index-Cy2-QffW.mjs";
4
4
  import { FastifyPluginAsync } from "fastify";
5
5
  import { RepositoryLike } from "@classytic/repo-core/adapter";
6
6
  type AuditAction = "create" | "update" | "delete" | "restore" | "custom";
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { g as getUserId, i as getClientId } from "../types-CuGjhn83.mjs";
3
- import { t as transactionContext } from "../transactionContext-DaxYUEgH.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { g as getUserId, i as getClientId } from "../types-HFFSwF_K.mjs";
3
+ import { t as transactionContext } from "../transactionContext-C1OgH-hW.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
5
5
  import { and, anyOf, eq, gte, lt, lte } from "@classytic/repo-core/filter";
6
6
  import fp from "fastify-plugin";
7
7
  // src/audit/repository-audit-adapter.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/auth/audit.ts
3
3
  function compileGlobs(patterns) {
4
4
  if (patterns.length === 0) return () => false;
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { i as RequestScope } from "../types-DnkIALZ8.mjs";
3
3
  import { l as PermissionCheck } from "../base-HXNgPQww.mjs";
4
- import { At as AuthHelpers, jt as AuthPluginOptions } from "../index-DyJFTJLA.mjs";
4
+ import { At as AuthHelpers, jt as AuthPluginOptions } from "../index-Cy2-QffW.mjs";
5
5
  import { t as ExternalOpenApiPaths } from "../externalPaths-BOqdq5wr.mjs";
6
6
  import { a as SessionManagerOptions, c as createSessionManager, i as SessionData, n as MemorySessionStoreOptions, o as SessionManagerResult, r as SessionCookieOptions, s as SessionStore, t as MemorySessionStore } from "../sessionManager-CdvDF04x.mjs";
7
7
  import { FastifyPluginAsync, FastifyReply as FastifyReply$1, FastifyRequest } from "fastify";
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-BY8vzlP4.mjs";
3
- import { n as requireSingleHeaderValue } from "../headers-DBd3Qheo.mjs";
4
- import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-oX5_mOVs.mjs";
5
- import { o as toJsonSchema } from "../schemaConverter-DBJrPZN4.mjs";
6
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
7
- import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-A1oKtpiC.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-DyY48oRi.mjs";
3
+ import { n as requireSingleHeaderValue } from "../headers-CHSOqpcY.mjs";
4
+ import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-N-k-8dNF.mjs";
5
+ import { o as toJsonSchema } from "../schemaConverter-CIwB5wPO.mjs";
6
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
7
+ import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-R9T2G1PH.mjs";
8
8
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
9
9
  import { isProductionEnv } from "@classytic/primitives/environment";
10
10
  import { createHmac, randomUUID, timingSafeEqual } from "node:crypto";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import sjson from "secure-json-parse";
3
3
  // src/auth/redis-session.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-CbFcIEBZ.mjs";
3
- import { t as conjoinPolicyFilters } from "./filter-merge-BAWi019Q.mjs";
4
- import { t as ArcError } from "./errors-BY8vzlP4.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-VyMcSmVG.mjs";
3
+ import { t as conjoinPolicyFilters } from "./filter-merge-8glLr7Dk.mjs";
4
+ import { t as ArcError } from "./errors-DyY48oRi.mjs";
5
5
  // src/permissions/authorizationDecision.ts
6
6
  const log = arcLog("permissions:enforce");
7
7
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/collections/boundedMap.ts
3
3
  /**
4
4
  * Insertion-order LRU on a plain `Map` — the two moves, written once.
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as conjoinPolicyFilters } from "./filter-merge-BAWi019Q.mjs";
3
- import { D as toRepositoryFilter } from "./plugin-DTWt_8C3.mjs";
4
- import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-4RlTKOJb.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as conjoinPolicyFilters } from "./filter-merge-8glLr7Dk.mjs";
3
+ import { D as toRepositoryFilter } from "./plugin-BJcVOX5r.mjs";
4
+ import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-Brr4b_fH.mjs";
5
5
  // src/core/aggregation/buildHandler.ts
6
6
  /**
7
7
  * Framework-agnostic aggregation execution. Runs safety guards,
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-FBz6Ull-.mjs";
3
- import { t as MemoryCacheStore } from "../memory-Bgw5dn8N.mjs";
4
- import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-3gJj5Rbz.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-CrMOZuk6.mjs";
3
+ import { t as MemoryCacheStore } from "../memory-Lpfu8Hga.mjs";
4
+ import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-B2jpwFcv.mjs";
5
5
  // src/cache/redis.ts
6
6
  /**
7
7
  * Redis-backed cache store.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  // src/plugins/caching.ts
5
5
  var caching_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/events/outbox/claimed.ts
3
3
  function claimedAttempts(claimed) {
4
4
  const value = claimed.attempts;
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { l as PermissionCheck } from "../base-HXNgPQww.mjs";
3
- import { A as RequestWithExtras } from "../index-DyJFTJLA.mjs";
3
+ import { A as RequestWithExtras } from "../index-Cy2-QffW.mjs";
4
4
  import { A as CleanupStepResult, B as VerificationResult, C as CleanupResult, D as CleanupRunStore, E as CleanupRunStatus, F as PurgeEvidence, I as PurgeResourceResult, L as PurgeStrategyKind, M as CleanupWriteFence, N as DEFAULT_CLEANUP_LIMITS, O as CleanupRunTransitionPatch, P as PurgeActor, R as PurgeVerificationSummary, S as CleanupRecipe, T as CleanupRunCreateResult, _ as CleanupPermissions, a as CleanupEvidenceStore, b as CleanupPlanItem, c as CleanupInput, d as CleanupLease, f as CleanupLimits, g as CleanupPermissionCheck, h as CleanupOutcomeStatus, i as CleanupContext, j as CleanupStepRunStatus, k as CleanupStepProgress, l as CleanupJob, m as CleanupManifest, n as CLEANUP_TERMINAL_STATUSES, o as CleanupExecutionContext, p as CleanupLogger, r as CleanupCancelRequest, s as CleanupFinalizationPayload, t as Availability, u as CleanupJobQueue, v as CleanupPlan, w as CleanupRun, x as CleanupProgressSummary, y as CleanupPlanDraft, z as VerificationCheck } from "../types-C0YJAiL0.mjs";
5
5
  import { n as ArcModule } from "../types-BeEJm-DV.mjs";
6
6
  import { PurgeStrategyKind as PurgeStrategyKind$1 } from "@classytic/primitives/retention";
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { g as getUserId } from "../types-CuGjhn83.mjs";
3
- import { t as defineResource } from "../defineResource-CGmdmGwh.mjs";
4
- import { t as defineModule } from "../module-Dsc_nKL5.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { g as getUserId } from "../types-HFFSwF_K.mjs";
3
+ import { t as defineResource } from "../defineResource-zYCrhNaN.mjs";
4
+ import { t as defineModule } from "../module-BqPJpZ_L.mjs";
5
5
  import { createPurgeEvidence } from "@classytic/primitives/retention";
6
6
  import { canonicalJson, sha256Hex } from "@classytic/primitives/canonical";
7
7
  // src/cleanup/errors.ts
@@ -1,5 +1,5 @@
1
1
 
2
- import { F as ResourceDefinition, X as RouteSchemaOptions, kt as RateLimitConfig } from "../../index-DyJFTJLA.mjs";
2
+ import { F as ResourceDefinition, X as RouteSchemaOptions, kt as RateLimitConfig } from "../../index-Cy2-QffW.mjs";
3
3
  export interface DescribedResource {
4
4
  name: string;
5
5
  displayName: string;
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../../constants-CHZMUwBW.mjs";
3
- import { n as stringifyMeasureMap } from "../../ResourceRegistry-Douk51fa.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../../constants-D-faL5SX.mjs";
3
+ import { n as stringifyMeasureMap } from "../../ResourceRegistry-BcvEJoZd.mjs";
4
4
  import { resolve } from "node:path";
5
5
  import { pathToFileURL } from "node:url";
6
6
  // src/cli/commands/describe.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as buildOpenApiSpec } from "../../openapi-Co7hl073.mjs";
3
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-b_jcqbxh.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as buildOpenApiSpec } from "../../openapi-T90KrPR6.mjs";
3
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D0naccV2.mjs";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { mkdirSync, writeFileSync } from "node:fs";
6
6
  // src/cli/commands/docs.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { dirname, join, parse, resolve } from "node:path";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  // src/cli/commands/doctor.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- export { t as generate } from "../../generate-oXoDnpJf.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ export { t as generate } from "../../generate-BOfBueRt.mjs";
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- export { t as init } from "../../init-BOaNkLYb.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ export { t as init } from "../../init-MoE3eZNR.mjs";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-b_jcqbxh.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D0naccV2.mjs";
3
3
  // src/cli/commands/introspect.ts
4
4
  function describePermission(value) {
5
5
  if (!value) return "none";
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { describe } from "./commands/describe.mjs";
3
3
  import { exportDocs } from "./commands/docs.mjs";
4
4
  import { doctor } from "./commands/doctor.mjs";
5
- import { t as generate } from "../generate-oXoDnpJf.mjs";
6
- import { t as init } from "../init-BOaNkLYb.mjs";
5
+ import { t as generate } from "../generate-BOfBueRt.mjs";
6
+ import { t as init } from "../init-MoE3eZNR.mjs";
7
7
  import { introspect } from "./commands/introspect.mjs";
8
8
  export { describe, doctor, exportDocs, generate, init, introspect };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/constants.ts
3
3
  /**
4
4
  * Arc Framework Constants — Single Source of Truth
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as transactionContext } from "../transactionContext-DaxYUEgH.mjs";
3
- import { n as requestContext, t as getTraceHeaders } from "../requestContext-GYO_0gEw.mjs";
4
- import { n as evictToSize, r as touch } from "../boundedMap-2WBh3gM9.mjs";
5
- import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-DoBsoVo4.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as transactionContext } from "../transactionContext-C1OgH-hW.mjs";
3
+ import { n as requestContext, t as getTraceHeaders } from "../requestContext-Ct5la-SA.mjs";
4
+ import { n as evictToSize, r as touch } from "../boundedMap-o2KZDCWy.mjs";
5
+ import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-A3XBpYTa.mjs";
6
6
  // src/context/requestScopedCache.ts
7
7
  /** The memo slot the per-scope store hangs off. */
8
8
  const SLOT = Symbol.for("arc.requestScopedCache");
@@ -1,4 +1,4 @@
1
1
 
2
- import { $t as AccessControl, An as MixinConstructor, Bt as TreeMixin, Dn as ControllerConfigurableOptions, En as BaseControllerOptions, F as ResourceDefinition, Gt as BaseCrudController, Ht as SlugMixin, It as BaseController, Jt as ActionTargetCheck, Kt as QueryResolver, Lt as SoftDeleteExt, Mn as BodySanitizerConfig, On as ControllerConstructionOptions, P as defineResource, Qt as getEntityQuery, Rt as SoftDeleteMixin, Ut as BulkExt, Vt as SlugExt, Wt as BulkMixin, Xt as getEntityId, Yt as getActionTarget, Zt as getEntityIdField, at as AggregationCacheConfig, ct as AggregationIndexHint, dt as AggregationRateLimit, en as AccessControlConfig, ft as AggregationsMap, it as AggMeasureShorthand, jn as BodySanitizer, kn as ListResult, lt as AggregationMaterializedContext, nn as FetchDenialReason, ot as AggregationConfig, qt as QueryResolverConfig, rn as FetchResult, rt as AggMeasureInput, st as AggregationDateRangeRequirement, tn as AccessControlRepository, ut as AggregationMaterializedResult, zt as TreeExt } from "../index-DyJFTJLA.mjs";
3
- import { $ as RESERVED_QUERY_PARAMS, A as DefineActionConfig, B as DEFAULT_SORT, C as VariantsMap, D as ResourceSeams, E as AdapterLike, F as CRUD_OPERATIONS, G as HOOK_PHASES, H as DEFAULT_UPDATE_METHOD, I as CrudOperation, J as MAX_FILTER_DEPTH, K as HookOperation, L as DEFAULT_ID_FIELD, M as createCrudRouter, N as createPermissionMiddleware, O as SeamedResourceConfig, P as defineAggregation, Q as MutationOperation, R as DEFAULT_LIMIT, S as VariantOverride, T as defineResourceVariants, U as DEFAULT_VERSION_FIELD, V as DEFAULT_TENANT_FIELD, W as HOOK_OPERATIONS, X as MAX_SEARCH_LENGTH, Y as MAX_REGEX_LENGTH, Z as MUTATION_OPERATIONS, _ as createFastifyHandler, a as formatValidationErrors, b as getControllerScope, c as RouteInputSlots, d as parsed, et as SYSTEM_FIELDS, f as routeInput, g as isFieldReadable, h as collectReadBlockedFields, i as assertValidConfig, j as defineAction, k as mergeResourceConfig, l as crudInput, m as nativePolicyFilter, n as ValidateOptions, o as validateResourceConfig, p as NativePolicyFilter, q as HookPhase, r as ValidationResult, s as InputSchema, t as ConfigError, u as noPayloadSchema, v as createRequestContext, w as VariantsResult, x as sendControllerResponse, y as getControllerContext, z as DEFAULT_MAX_LIMIT } from "../index-BTxzJ_MN.mjs";
2
+ import { $t as AccessControl, An as MixinConstructor, Bt as TreeMixin, Dn as ControllerConfigurableOptions, En as BaseControllerOptions, F as ResourceDefinition, Gt as BaseCrudController, Ht as SlugMixin, It as BaseController, Jt as ActionTargetCheck, Kt as QueryResolver, Lt as SoftDeleteExt, Mn as BodySanitizerConfig, On as ControllerConstructionOptions, P as defineResource, Qt as getEntityQuery, Rt as SoftDeleteMixin, Ut as BulkExt, Vt as SlugExt, Wt as BulkMixin, Xt as getEntityId, Yt as getActionTarget, Zt as getEntityIdField, at as AggregationCacheConfig, ct as AggregationIndexHint, dt as AggregationRateLimit, en as AccessControlConfig, ft as AggregationsMap, it as AggMeasureShorthand, jn as BodySanitizer, kn as ListResult, lt as AggregationMaterializedContext, nn as FetchDenialReason, ot as AggregationConfig, qt as QueryResolverConfig, rn as FetchResult, rt as AggMeasureInput, st as AggregationDateRangeRequirement, tn as AccessControlRepository, ut as AggregationMaterializedResult, zt as TreeExt } from "../index-Cy2-QffW.mjs";
3
+ import { $ as RESERVED_QUERY_PARAMS, A as DefineActionConfig, B as DEFAULT_SORT, C as VariantsMap, D as ResourceSeams, E as AdapterLike, F as CRUD_OPERATIONS, G as HOOK_PHASES, H as DEFAULT_UPDATE_METHOD, I as CrudOperation, J as MAX_FILTER_DEPTH, K as HookOperation, L as DEFAULT_ID_FIELD, M as createCrudRouter, N as createPermissionMiddleware, O as SeamedResourceConfig, P as defineAggregation, Q as MutationOperation, R as DEFAULT_LIMIT, S as VariantOverride, T as defineResourceVariants, U as DEFAULT_VERSION_FIELD, V as DEFAULT_TENANT_FIELD, W as HOOK_OPERATIONS, X as MAX_SEARCH_LENGTH, Y as MAX_REGEX_LENGTH, Z as MUTATION_OPERATIONS, _ as createFastifyHandler, a as formatValidationErrors, b as getControllerScope, c as RouteInputSlots, d as parsed, et as SYSTEM_FIELDS, f as routeInput, g as isFieldReadable, h as collectReadBlockedFields, i as assertValidConfig, j as defineAction, k as mergeResourceConfig, l as crudInput, m as nativePolicyFilter, n as ValidateOptions, o as validateResourceConfig, p as NativePolicyFilter, q as HookPhase, r as ValidationResult, s as InputSchema, t as ConfigError, u as noPayloadSchema, v as createRequestContext, w as VariantsResult, x as sendControllerResponse, y as getControllerContext, z as DEFAULT_MAX_LIMIT } from "../index-BxZS-8So.mjs";
4
4
  export { AccessControl, type AccessControlConfig, type AccessControlRepository, type ActionTargetCheck, type AdapterLike, type AggMeasureInput, type AggMeasureShorthand, type AggregationCacheConfig, type AggregationConfig, type AggregationDateRangeRequirement, type AggregationIndexHint, type AggregationMaterializedContext, type AggregationMaterializedResult, type AggregationRateLimit, type AggregationsMap, BaseController, type BaseControllerOptions, BaseCrudController, BodySanitizer, type BodySanitizerConfig, type BulkExt, BulkMixin, CRUD_OPERATIONS, type ConfigError, type ControllerConfigurableOptions, type ControllerConstructionOptions, CrudOperation, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, DEFAULT_VERSION_FIELD, type DefineActionConfig, type FetchDenialReason, type FetchResult, HOOK_OPERATIONS, HOOK_PHASES, HookOperation, HookPhase, type InputSchema, type ListResult, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, type MixinConstructor, MutationOperation, type NativePolicyFilter, QueryResolver, type QueryResolverConfig, RESERVED_QUERY_PARAMS, ResourceDefinition, type ResourceSeams, type RouteInputSlots, SYSTEM_FIELDS, type SeamedResourceConfig, type SlugExt, SlugMixin, type SoftDeleteExt, SoftDeleteMixin, type TreeExt, TreeMixin, type ValidateOptions, type ValidationResult, type VariantOverride, type VariantsMap, type VariantsResult, assertValidConfig, collectReadBlockedFields, createCrudRouter, createFastifyHandler, createPermissionMiddleware, createRequestContext, crudInput, defineAction, defineAggregation, defineResource, defineResourceVariants, formatValidationErrors, getActionTarget, getControllerContext, getControllerScope, getEntityId, getEntityIdField, getEntityQuery, isFieldReadable, mergeResourceConfig, nativePolicyFilter, noPayloadSchema, parsed, routeInput, sendControllerResponse, validateResourceConfig };
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, 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-CHZMUwBW.mjs";
3
- import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-DTWt_8C3.mjs";
4
- import { t as defineAggregation } from "../defineAggregation-bmKQ4NmC.mjs";
5
- import { C as sendControllerResponse, S as getControllerScope, b as createRequestContext, x as getControllerContext, y as createFastifyHandler } from "../actionPermissions-De0AJ7hm.mjs";
6
- import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-D9rS2BxO.mjs";
7
- import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-CGmdmGwh.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, 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-D-faL5SX.mjs";
3
+ import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-BJcVOX5r.mjs";
4
+ import { t as defineAggregation } from "../defineAggregation-DH2L6_v9.mjs";
5
+ import { C as sendControllerResponse, S as getControllerScope, b as createRequestContext, x as getControllerContext, y as createFastifyHandler } from "../actionPermissions-Dha8sAz2.mjs";
6
+ import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-NSu1peyq.mjs";
7
+ import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-zYCrhNaN.mjs";
8
8
  export { AccessControl, BaseController, BaseCrudController, BodySanitizer, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, DEFAULT_VERSION_FIELD, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, QueryResolver, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, assertValidConfig, collectReadBlockedFields, createCrudRouter, createFastifyHandler, createPermissionMiddleware, createRequestContext, crudInput, defineAction, defineAggregation, defineResource, defineResourceVariants, formatValidationErrors, getActionTarget, getControllerContext, getControllerScope, getEntityId, getEntityIdField, getEntityQuery, isFieldReadable, mergeResourceConfig, nativePolicyFilter, noPayloadSchema, parsed, routeInput, sendControllerResponse, validateResourceConfig };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import "./constants-CHZMUwBW.mjs";
3
- import { t as defineResource } from "./defineResource-CGmdmGwh.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import "./constants-D-faL5SX.mjs";
3
+ import { t as defineResource } from "./defineResource-zYCrhNaN.mjs";
4
4
  // src/core/defineAction.ts
5
5
  /**
6
6
  * Build an `ActionDefinition` with a typed handler. The literal schema
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
- import "./constants-CHZMUwBW.mjs";
4
- import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-BY8vzlP4.mjs";
5
- import { C as sendControllerResponse, _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, g as buildAuthMiddlewareForPermissions, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig, s as buildActionPipelineHandler, u as buildActionPermissionMw } from "./actionPermissions-De0AJ7hm.mjs";
6
- import { n as schemaIRToJsonSchemaBranch, t as normalizeSchemaIR } from "./schemaIR-CEScKT2v.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
+ import "./constants-D-faL5SX.mjs";
4
+ import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-DyY48oRi.mjs";
5
+ import { C as sendControllerResponse, _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, g as buildAuthMiddlewareForPermissions, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig, s as buildActionPipelineHandler, u as buildActionPermissionMw } from "./actionPermissions-Dha8sAz2.mjs";
6
+ import { n as schemaIRToJsonSchemaBranch, t as normalizeSchemaIR } from "./schemaIR-A0IoD05P.mjs";
7
7
  // src/core/createActionRouter.ts
8
8
  var createActionRouter_exports = /* @__PURE__ */ __exportAll({
9
9
  buildActionBodySchema: () => buildActionBodySchema,
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { f as createError } from "./errors-BY8vzlP4.mjs";
3
- import { u as getRequestScope } from "./types-CuGjhn83.mjs";
4
- import { _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, h as buildAuthMiddleware, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig } from "./actionPermissions-De0AJ7hm.mjs";
5
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-DeZMrHcm.mjs";
6
- import { n as validateAggregations } from "./validate-4RlTKOJb.mjs";
7
- import { t as buildAggregationHandler } from "./buildHandler-DxVOOBpw.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-DyY48oRi.mjs";
3
+ import { u as getRequestScope } from "./types-HFFSwF_K.mjs";
4
+ import { _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, h as buildAuthMiddleware, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig } from "./actionPermissions-Dha8sAz2.mjs";
5
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-BZSJcPNE.mjs";
6
+ import { n as validateAggregations } from "./validate-Brr4b_fH.mjs";
7
+ import { t as buildAggregationHandler } from "./buildHandler-G3k59KY2.mjs";
8
8
  // src/core/aggregation/createAggregationRouter.ts
9
9
  /**
10
10
  * Register one Fastify route per aggregation. No-op when the map is
@@ -1,19 +1,19 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
- import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-CbFcIEBZ.mjs";
4
- import { n as PUBLIC_SCOPE } from "./types-CuGjhn83.mjs";
5
- import { t as runObservingSend } from "./observeSend-BK-JN1jK.mjs";
6
- import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-DWqbxkyw.mjs";
7
- import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-DzLFbe27.mjs";
8
- import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-Kro---xl.mjs";
9
- import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-tHLbrtWc.mjs";
10
- import { r as markArcRootValidator, t as arcAjvCustomOptions } from "./routeValidator-C_H5NanI.mjs";
11
- import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-Dp-3EC9o.mjs";
12
- import { t as parseJsonBody } from "./jsonBody-DpRpKR_K.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-KVseuBCL.mjs";
14
- import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-Do2KYeJx.mjs";
15
- import { r as withSubscriberId } from "./subscriberIdentity-Bya56jsg.mjs";
16
- import { r as getOptionalModuleExports } from "./module-Dsc_nKL5.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
+ import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-VyMcSmVG.mjs";
4
+ import { n as PUBLIC_SCOPE } from "./types-HFFSwF_K.mjs";
5
+ import { t as runObservingSend } from "./observeSend-BKJHibJz.mjs";
6
+ import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-ClWr60El.mjs";
7
+ import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-Bi19vH0z.mjs";
8
+ import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-BWx-qep0.mjs";
9
+ import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-D1oH2obv.mjs";
10
+ import { r as markArcRootValidator, t as arcAjvCustomOptions } from "./routeValidator-DclDl5WJ.mjs";
11
+ import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-ezwTHQh2.mjs";
12
+ import { t as parseJsonBody } from "./jsonBody-DZGiCawf.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-C0gkeABY.mjs";
14
+ import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-HmAFyJmJ.mjs";
15
+ import { r as withSubscriberId } from "./subscriberIdentity-CYNYw8p_.mjs";
16
+ import { r as getOptionalModuleExports } from "./module-BqPJpZ_L.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-eMhAPtQA.mjs").then((n) => n.r);
769
+ const { default: eventPlugin } = await import("./eventPlugin-Co9sABCg.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-BYRwYrUo.mjs").then((n) => n.n);
824
+ const { default: cachingPlugin } = await import("./caching-CJIDPZOv.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-3gJj5Rbz.mjs").then((n) => n.n);
830
+ const { queryCachePlugin } = await import("./queryCachePlugin-B2jpwFcv.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-Bgw5dn8N.mjs").then((n) => n.n))).MemoryCacheStore();
832
+ const store = config.stores?.queryCache ?? new (await (import("./memory-Lpfu8Hga.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-2972pVwV.mjs").then((n) => n.n);
842
+ const { default: ssePlugin } = await import("./sse-BqM359f1.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-Ber8uJN2.mjs").then((n) => n.n);
851
+ const { default: realtimePlugin } = await import("./realtime-D2tqi3d2.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-CZDQWVjS.mjs").then((n) => n.n);
858
+ const { default: metricsPlugin } = await import("./metrics-DjVj1sg5.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-Dk2-19La.mjs").then((n) => n.n);
864
+ const { default: versioningPlugin } = await import("./versioning-CE5kdWOY.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-CzhqAyVN.mjs").then((n) => n.n);
941
+ const { elevationPlugin } = await import("./elevation-z--rFcZ5.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-dFyGOEoB.mjs").then((n) => n.r);
956
+ const { errorHandlerPlugin } = await import("./errorHandler-3_3oN-Uc.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-Bx1sKPnF.mjs").then((n) => n.n);
1175
+ const { loadResources } = await import("./loadResources-CVQvYUhN.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-eO_RzhCU.mjs").then((n) => n.n);
1300
+ const { default: schedulesPlugin } = await import("./schedules-gVkRcs-9.mjs").then((n) => n.n);
1301
1301
  await fastify.register(schedulesPlugin, {
1302
1302
  ...scheduleOptions,
1303
1303
  schedules: frozenJobs
@@ -1999,7 +1999,7 @@ async function buildApp(options, loggerScope, onInstance, onBootDisposer) {
1999
1999
  await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
2000
2000
  await registerResources(fastify, config, resolvedModules, skippedBridges);
2001
2001
  if (config.replyHelpers) {
2002
- const { replyHelpersPlugin } = await import("./replyHelpers-DK9P_XSz.mjs").then((n) => n.n);
2002
+ const { replyHelpersPlugin } = await import("./replyHelpers-BJFN5AW7.mjs").then((n) => n.n);
2003
2003
  await fastify.register(replyHelpersPlugin);
2004
2004
  }
2005
2005
  if (config.serializeBigInt) {