@classytic/arc 2.44.0 → 2.45.1

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 (155) hide show
  1. package/dist/{EventTransport-DZWDsaPa.mjs → EventTransport-4b0noGwa.mjs} +2 -2
  2. package/dist/{HookSystem-yjEgn7Cm.mjs → HookSystem-4pABQnGn.mjs} +2 -2
  3. package/dist/{ResourceRegistry-DJxHUpE4.mjs → ResourceRegistry-BBaN_Ne-.mjs} +2 -2
  4. package/dist/{acquire-BozJ-9yt.mjs → acquire-kiZzy5bX.mjs} +1 -1
  5. package/dist/{actionPermissions-5N04zBL4.mjs → actionPermissions-BLnbDA6g.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-CVlaTjAX.mjs} +4 -4
  11. package/dist/{boundedMap-DWiKW7lP.mjs → boundedMap-DSy7KkeX.mjs} +1 -1
  12. package/dist/{buildHandler-Bswu_vNb.mjs → buildHandler-B4IhILv9.mjs} +4 -4
  13. package/dist/cache/index.mjs +4 -4
  14. package/dist/{caching-Drp68DIS.mjs → caching-DqakP2vY.mjs} +2 -2
  15. package/dist/{claimed-DYvQoZLv.mjs → claimed-XoiVrWZ2.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-CtWkmWn3.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-Cro2v5a7.mjs} +3 -3
  28. package/dist/{createActionRouter-zG13rpPJ.mjs → createActionRouter-k-gwiPv6.mjs} +6 -6
  29. package/dist/{createAggregationRouter-CWRz96Vr.mjs → createAggregationRouter-BqWqhAPG.mjs} +7 -7
  30. package/dist/{createApp-BGLYtErt.mjs → createApp-Dw7L72Hz.mjs} +28 -28
  31. package/dist/{defineAggregation--3xguLkk.mjs → defineAggregation-pxbd7BBK.mjs} +1 -1
  32. package/dist/{defineResource-gUp9ug66.mjs → defineResource-DwgEjLCO.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-B9wF2Z1F.mjs} +5 -5
  36. package/dist/encryption/index.mjs +3 -3
  37. package/dist/{errorHandler-COHw3N1b.mjs → errorHandler-Dr2nG0Ui.mjs} +3 -3
  38. package/dist/{errors-CW4anJBy.mjs → errors-BtHzrSA6.mjs} +1 -1
  39. package/dist/{eventPlugin-BweHAVws.mjs → eventPlugin-Dvs7OBw8.mjs} +8 -8
  40. package/dist/{eventTypes-N4-omQFR.mjs → eventTypes-BVoCTG5c.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-C1e_7Fwi.mjs} +1 -1
  47. package/dist/{filter-merge-DGM-GQ1J.mjs → filter-merge-xaiEKtz8.mjs} +1 -1
  48. package/dist/{generate-BXKo2Gc8.mjs → generate-DJiJMaXN.mjs} +2 -2
  49. package/dist/{headers-DKZQKL-Z.mjs → headers-Dr-wt6Tr.mjs} +2 -2
  50. package/dist/{health-CrqUp3sz.mjs → health-BLYn_Hds.mjs} +1 -1
  51. package/dist/{health-BYAwA6YS.mjs → health-DkkWbJtQ.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-CW3kJqNW.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-DPU8yYwA.mjs} +2 -2
  69. package/dist/{keys-CpoiZ8hU.mjs → keys-Dgn6OYhl.mjs} +1 -1
  70. package/dist/{loadResources-6jO52-RR.mjs → loadResources-BtKj6P1P.mjs} +3 -3
  71. package/dist/{loadResourcesFromEntry-MP8xEppu.mjs → loadResourcesFromEntry-Bmq6TnB7.mjs} +2 -2
  72. package/dist/logger/index.mjs +2 -2
  73. package/dist/{logger-D4V1zGLI.mjs → logger-qQNLlOAU.mjs} +1 -1
  74. package/dist/{mcpPlugin-srPc7ItN.mjs → mcpPlugin-DDfe8jAP.mjs} +22 -22
  75. package/dist/{memory-CTa5pOCW.mjs → memory-C0Blueoh.mjs} +3 -3
  76. package/dist/{metrics-DsZrvnpB.mjs → metrics-DYka72iN.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-BszSyWbd.mjs} +1 -1
  80. package/dist/{multipartBody-Cc7eZ9cq.mjs → multipartBody-RHvIkNmc.mjs} +1 -1
  81. package/dist/{openapi-CMegfsm8.mjs → openapi-BrFPc3Ny.mjs} +6 -6
  82. package/dist/outbox-admin/index.mjs +5 -5
  83. package/dist/{outbox-module-Ryk270jd.mjs → outbox-module-DF4Bu_Qa.mjs} +9 -9
  84. package/dist/permissions/index.mjs +7 -7
  85. package/dist/{permissions-C5ijIz5Q.mjs → permissions-DN1CWH56.mjs} +9 -9
  86. package/dist/{pipe-D81zMtWs.mjs → pipe-B8uq865o.mjs} +2 -2
  87. package/dist/pipeline/index.mjs +2 -2
  88. package/dist/{plan-CJGMKoui.mjs → plan-DUGfynNg.mjs} +1 -1
  89. package/dist/{plugin-DALd9dcF.mjs → plugin-ByU3h-bR.mjs} +22 -22
  90. package/dist/plugins/index.d.mts +2 -2
  91. package/dist/plugins/index.mjs +17 -17
  92. package/dist/plugins/response-cache.mjs +4 -4
  93. package/dist/plugins/tracing-entry.mjs +2 -2
  94. package/dist/{pluralize-COUNYo3d.mjs → pluralize-Cdya8zYt.mjs} +1 -1
  95. package/dist/presets/filesUpload.mjs +5 -5
  96. package/dist/presets/index.mjs +2 -2
  97. package/dist/presets/multiTenant.mjs +5 -5
  98. package/dist/presets/search.mjs +2 -2
  99. package/dist/{presets-CONf2Qem.mjs → presets-CCOlKTZw.mjs} +4 -4
  100. package/dist/{projection-wFoLqdss.mjs → projection-BGty6ie4.mjs} +2 -2
  101. package/dist/{queryCachePlugin-BATECpyh.mjs → queryCachePlugin-B7itTkWu.mjs} +6 -6
  102. package/dist/{rateLimitKey-DVEZ_UpV.mjs → rateLimitKey-DBWO59H9.mjs} +1 -1
  103. package/dist/{realtime-xyubMKSB.mjs → realtime-_59Rlje8.mjs} +11 -11
  104. package/dist/registry/index.mjs +3 -3
  105. package/dist/{registry-Bdzg-hdm.mjs → registry-uG4wr541.mjs} +2 -2
  106. package/dist/{renewingLease-BFJxGPuh.mjs → renewingLease-CiU3ZynH.mjs} +1 -1
  107. package/dist/{replyHelpers-Bnc6lJyy.mjs → replyHelpers-Dr2pnXZg.mjs} +2 -2
  108. package/dist/{requestContext-C10UeFe5.mjs → requestContext-DBKIdmDi.mjs} +1 -1
  109. package/dist/{requirement-Bu50QALH.mjs → requirement-DxOaghWD.mjs} +1 -1
  110. package/dist/{resourceRateLimit-urWPJxrt.mjs → resourceRateLimit-BBdj5yRq.mjs} +2 -2
  111. package/dist/rolldown-runtime-DpVPUeXF.mjs +15 -0
  112. package/dist/{routeValidator-DHtpzrzk.mjs → routeValidator-BNTqM1Eh.mjs} +1 -1
  113. package/dist/{runtimeCapabilities-DIMKMV2G.mjs → runtimeCapabilities-D_3eUO6V.mjs} +1 -1
  114. package/dist/{schedules-CKTs5ys8.mjs → schedules-CVS7c1nv.mjs} +5 -5
  115. package/dist/{schemaConverter-BVjkQ5DD.mjs → schemaConverter-BQbg7loK.mjs} +2 -2
  116. package/dist/{schemaIR-BA0Hb21Y.mjs → schemaIR-CUI3hPQR.mjs} +2 -2
  117. package/dist/schemas/index.mjs +1 -1
  118. package/dist/scim/index.mjs +2 -2
  119. package/dist/scope/index.mjs +5 -5
  120. package/dist/{scope-DINaj7Ax.mjs → scope-DFXngazv.mjs} +4 -4
  121. package/dist/{shutdown-LpLMH8T1.mjs → shutdown-BCXCwghd.mjs} +1 -1
  122. package/dist/{simpleEqualityMatcher-DbwIM1f1.mjs → simpleEqualityMatcher-5jOzYQ_L.mjs} +1 -1
  123. package/dist/sse-BilBz766.mjs +212 -0
  124. package/dist/{sseStream-DQChzGTs.mjs → sseStream-BG_uJL6J.mjs} +2 -2
  125. package/dist/{store-helpers-Coj9RhOZ.mjs → store-helpers-CzLZdVa1.mjs} +1 -1
  126. package/dist/{streaming-JzB5CAga.mjs → streaming-DgUvMWlv.mjs} +1 -1
  127. package/dist/{subscriberIdentity-DeyppIif.mjs → subscriberIdentity-EWnIZ-U8.mjs} +1 -1
  128. package/dist/{tenancy-DxV8OuX2.mjs → tenancy-CVMvO5DH.mjs} +2 -2
  129. package/dist/{tenantPreparation-CBvvAcAj.mjs → tenantPreparation-DIH-GX4g.mjs} +4 -4
  130. package/dist/testing/cleanupStoreContract.mjs +1 -1
  131. package/dist/testing/index.d.mts +1 -1
  132. package/dist/testing/index.mjs +15 -16
  133. package/dist/testing/outboxStoreContract.mjs +2 -2
  134. package/dist/testing/requiredPorts.mjs +2 -2
  135. package/dist/testing/storageContract.mjs +1 -1
  136. package/dist/{timing-CntavTlR.mjs → timing-q9NITK04.mjs} +1 -1
  137. package/dist/{transactionContext-orvnGu4F.mjs → transactionContext-NHmhDIOF.mjs} +1 -1
  138. package/dist/{typeGuards-kEaP_WmO.mjs → typeGuards-CPYR9RCg.mjs} +1 -1
  139. package/dist/types/index.mjs +1 -1
  140. package/dist/types/storage.mjs +1 -1
  141. package/dist/{types-fvO6Ovzx.mjs → types-BI4sbUJ3.mjs} +4 -4
  142. package/dist/usage/index.mjs +4 -4
  143. package/dist/{userHelpers-C76zD5pa.mjs → userHelpers-oBTU3a_k.mjs} +1 -1
  144. package/dist/utils/index.mjs +12 -12
  145. package/dist/{utils-BpkVZ8rB.mjs → utils-BmE8zRrh.mjs} +4 -4
  146. package/dist/{validate-CWp-lsrm.mjs → validate-Dby08LhR.mjs} +3 -3
  147. package/dist/{versioning-Bsb51gGT.d.mts → versioning-Bqm_57Qt.d.mts} +23 -1
  148. package/dist/{versioning-CHhL9P3o.mjs → versioning-P6JMNcJr.mjs} +3 -3
  149. package/dist/{workScope-n9a7d_lZ.mjs → workScope-BcMLKa3G.mjs} +2 -2
  150. package/package.json +17 -16
  151. package/dist/mongodb-memory-server-CHhYSq5y.mjs +0 -35539
  152. package/dist/mongoose-CYJCLyi-.mjs +0 -67451
  153. package/dist/node-D8UZv_8c.mjs +0 -41236
  154. package/dist/rolldown-runtime-MYrLNGnq.mjs +0 -45
  155. package/dist/sse-BzJFPX_1.mjs +0 -89
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as conjoinPolicyFilters } from "../filter-merge-DGM-GQ1J.mjs";
3
- import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-C76zD5pa.mjs";
4
- import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-A5crhsJb.mjs";
5
- import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-wX3SA9w_.mjs";
6
- import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-urWPJxrt.mjs";
7
- import { A as requireAgentScope, B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, H as requirePlatformRole, I as anyOf, K as scopeOf, L as deny, M as requireMandate, N as allOf, O as requireServiceScope, P as allow, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, W as roles, _ as requireGrant, a as adminOnly, b as describePermissionMap, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, g as modeSatisfies, h as GRANT_MODES, i as introspectRegistry, j as requireDPoP, k as requireTeamMembership, l as permissionMatrix, m as createRoleHierarchy, n as introspectCheck, o as authenticated, p as readOnly, r as introspectModule, s as fullPublic, t as buildPermissionMatrix, u as presets_exports, v as collectPublicSurface, w as requireOrgInScope, x as explainAccess, y as describePermission, z as not } from "../permissions-C5ijIz5Q.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as conjoinPolicyFilters } from "../filter-merge-xaiEKtz8.mjs";
3
+ import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-oBTU3a_k.mjs";
4
+ import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-C1e_7Fwi.mjs";
5
+ import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-CVlaTjAX.mjs";
6
+ import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-BBdj5yRq.mjs";
7
+ import { A as requireAgentScope, B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, H as requirePlatformRole, I as anyOf, K as scopeOf, L as deny, M as requireMandate, N as allOf, O as requireServiceScope, P as allow, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, W as roles, _ as requireGrant, a as adminOnly, b as describePermissionMap, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, g as modeSatisfies, h as GRANT_MODES, i as introspectRegistry, j as requireDPoP, k as requireTeamMembership, l as permissionMatrix, m as createRoleHierarchy, n as introspectCheck, o as authenticated, p as readOnly, r as introspectModule, s as fullPublic, t as buildPermissionMatrix, u as presets_exports, v as collectPublicSurface, w as requireOrgInScope, x as explainAccess, y as describePermission, z as not } from "../permissions-DN1CWH56.mjs";
8
8
  export { GRANT_MODES, adminOnly, allOf, allow, allowPublic, anyOf, applyAuthorizationDecision, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, buildPermissionMatrix, collectPublicSurface, conjoinPolicyFilters, createDynamicPermissionMatrix, createMemoryResourceRateLimiter, createOrgPermissions, createRoleHierarchy, deny, denyAll, describePermission, describePermissionMap, evaluatePermissionDecision, explainAccess, fields, fullPublic, getUserRoles, introspectCheck, introspectModule, introspectRegistry, modeSatisfies, normalizeRoles, normalizeToDecision, not, ownerWithAdminBypass, permissionMatrix, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAgentScope, requireAuth, requireDPoP, requireGrant, requireMandate, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requirePlatformRole, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, resolveEffectiveRoles, resolveResourceRateLimiter, roles, scopeOf, when };
@@ -1,12 +1,12 @@
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 { t as conjoinPolicyFilters } from "./filter-merge-DGM-GQ1J.mjs";
5
- import { n as getUserRoles } from "./userHelpers-C76zD5pa.mjs";
6
- import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-fvO6Ovzx.mjs";
7
- import { i as normalizeToDecision } from "./authorizationDecision-wX3SA9w_.mjs";
8
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-DIMKMV2G.mjs";
9
- import { t as MemoryCacheStore } from "./memory-CTa5pOCW.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
+ import { t as arcLog } from "./logger-qQNLlOAU.mjs";
4
+ import { t as conjoinPolicyFilters } from "./filter-merge-xaiEKtz8.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-oBTU3a_k.mjs";
6
+ import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-BI4sbUJ3.mjs";
7
+ import { i as normalizeToDecision } from "./authorizationDecision-CVlaTjAX.mjs";
8
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-D_3eUO6V.mjs";
9
+ import { t as MemoryCacheStore } from "./memory-C0Blueoh.mjs";
10
10
  import { randomUUID } from "node:crypto";
11
11
  //#region src/permissions/context.ts
12
12
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as ForbiddenError } from "./errors-CW4anJBy.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { r as ForbiddenError } from "./errors-BtHzrSA6.mjs";
3
3
  //#region src/pipeline/pipe.ts
4
4
  /**
5
5
  * Compose pipeline steps into an ordered array.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as pipe, t as executePipeline } from "../pipe-D81zMtWs.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { n as pipe, t as executePipeline } from "../pipe-B8uq865o.mjs";
3
3
  //#region src/pipeline/guard.ts
4
4
  /**
5
5
  * Create a named guard.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { createEventRouter, matchEventPattern } from "@classytic/primitives/events";
3
3
  //#region src/factory/module/graph.ts
4
4
  /**
@@ -1,23 +1,23 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { g as SYSTEM_FIELDS, o as DEFAULT_TENANT_FIELD, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-B2QHb6u6.mjs";
3
- import { t as arcLog } from "./logger-D4V1zGLI.mjs";
4
- import { t as conjoinPolicyFilters } from "./filter-merge-DGM-GQ1J.mjs";
5
- import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-CW4anJBy.mjs";
6
- import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-DbwIM1f1.mjs";
7
- import { n as requireSingleHeaderValue } from "./headers-DKZQKL-Z.mjs";
8
- import { n as getUserRoles, t as getUserId } from "./userHelpers-C76zD5pa.mjs";
9
- import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-fvO6Ovzx.mjs";
10
- import { r as resolveTenancy } from "./tenancy-DxV8OuX2.mjs";
11
- import { t as buildQueryKey } from "./keys-CpoiZ8hU.mjs";
12
- import { t as transactionContext } from "./transactionContext-orvnGu4F.mjs";
13
- import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-A5crhsJb.mjs";
14
- import { E as ArcQueryParser, v as getDefaultCrudSchemas } from "./utils-BpkVZ8rB.mjs";
15
- import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-BVjkQ5DD.mjs";
16
- import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-JzB5CAga.mjs";
17
- import { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-5N04zBL4.mjs";
18
- import { a as withoutTenantInjection } from "./tenantPreparation-CBvvAcAj.mjs";
19
- import { t as hasEvents } from "./typeGuards-kEaP_WmO.mjs";
20
- import { n as idempotencyConfigProblem } from "./requirement-Bu50QALH.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { g as SYSTEM_FIELDS, o as DEFAULT_TENANT_FIELD, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-CtWkmWn3.mjs";
3
+ import { t as arcLog } from "./logger-qQNLlOAU.mjs";
4
+ import { t as conjoinPolicyFilters } from "./filter-merge-xaiEKtz8.mjs";
5
+ import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-BtHzrSA6.mjs";
6
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-5jOzYQ_L.mjs";
7
+ import { n as requireSingleHeaderValue } from "./headers-Dr-wt6Tr.mjs";
8
+ import { n as getUserRoles, t as getUserId } from "./userHelpers-oBTU3a_k.mjs";
9
+ import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-BI4sbUJ3.mjs";
10
+ import { r as resolveTenancy } from "./tenancy-CVMvO5DH.mjs";
11
+ import { t as buildQueryKey } from "./keys-Dgn6OYhl.mjs";
12
+ import { t as transactionContext } from "./transactionContext-NHmhDIOF.mjs";
13
+ import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-C1e_7Fwi.mjs";
14
+ import { E as ArcQueryParser, v as getDefaultCrudSchemas } from "./utils-BmE8zRrh.mjs";
15
+ import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-BQbg7loK.mjs";
16
+ import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-DgUvMWlv.mjs";
17
+ import { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-BLnbDA6g.mjs";
18
+ import { a as withoutTenantInjection } from "./tenantPreparation-DIH-GX4g.mjs";
19
+ import { t as hasEvents } from "./typeGuards-CPYR9RCg.mjs";
20
+ import { n as idempotencyConfigProblem } from "./requirement-DxOaghWD.mjs";
21
21
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
22
22
  import { policyRecordToFilter } from "@classytic/repo-core/filter";
23
23
  import { retryingTransaction } from "@classytic/repo-core/repository";
@@ -3084,7 +3084,7 @@ function buildResourcePlugin(resource) {
3084
3084
  extensions: resource.extensions
3085
3085
  });
3086
3086
  if (resource.actions && Object.keys(resource.actions).length > 0) {
3087
- const { createActionRouter } = await import("./createActionRouter-zG13rpPJ.mjs").then((n) => n.n);
3087
+ const { createActionRouter } = await import("./createActionRouter-k-gwiPv6.mjs").then((n) => n.n);
3088
3088
  const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
3089
3089
  const actionTarget = resolveActionTargetFence(resource, actionConfig);
3090
3090
  createActionRouter(typedInstance, {
@@ -3104,7 +3104,7 @@ function buildResourcePlugin(resource) {
3104
3104
  });
3105
3105
  }
3106
3106
  if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
3107
- const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-CWRz96Vr.mjs"), import("./validate-CWp-lsrm.mjs").then((n) => n.r)]);
3107
+ const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-BqWqhAPG.mjs"), import("./validate-Dby08LhR.mjs").then((n) => n.r)]);
3108
3108
  const repoForAgg = resource.controller?.repository ?? resource.repository;
3109
3109
  if (!adapterSupportsAggregate(repoForAgg)) {
3110
3110
  const undispatchable = Object.entries(resource.aggregations).filter(([, cfg]) => !cfg.materialized).map(([name]) => name);
@@ -4,7 +4,7 @@ import { Et as RouteDefinition, J as MiddlewareConfig, U as PresetHook, X as Rou
4
4
  import { i as errorHandlerPlugin, n as ErrorMapper, r as defaultIsDuplicateKeyError, t as ErrorHandlerOptions } from "../errorHandler--4rSMMvq.mjs";
5
5
  import { C as _default$8, E as _default$3, S as SchedulesPluginOptions, T as HealthOptions, b as ScheduleDefinition, w as HealthCheck, x as ScheduleStats } from "../types-BJ-2XqVF.mjs";
6
6
  import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-DRlCIWE9.mjs";
7
- import { _ as _default$2, a as MetricsOptions, c as RealtimeOptions, d as _default$9, f as CachingOptions, g as ShutdownState, h as GracefulShutdownOptions, i as MetricsCollector, l as _default$6, m as _default$1, n as _default$10, o as _default$4, p as CachingRule, r as MetricEntry, s as ChangeOperation, t as VersioningOptions, u as SSEOptions } from "../versioning-Bsb51gGT.mjs";
7
+ import { _ as ShutdownState, a as MetricsOptions, c as RealtimeOptions, d as SSEStats, f as _default$9, g as GracefulShutdownOptions, h as _default$1, i as MetricsCollector, l as _default$6, m as CachingRule, n as _default$10, o as _default$4, p as CachingOptions, r as MetricEntry, s as ChangeOperation, t as VersioningOptions, u as SSEOptions, v as _default$2 } from "../versioning-Bqm_57Qt.mjs";
8
8
  import { t as TracingOptions } from "../tracing-Dro5eH6j.mjs";
9
9
  import { PaginatedResult } from "@classytic/repo-core/pagination";
10
10
  import { FastifyInstance, FastifyPluginAsync } from "fastify";
@@ -226,4 +226,4 @@ export declare function createRequestIdGenerator(opts?: Pick<RequestIdOptions, "
226
226
  }) => string;
227
227
  declare const _default$7: FastifyPluginAsync<RequestIdOptions>;
228
228
  //#endregion
229
- export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type MetricEntry, type MetricsCollector, type MetricsOptions, type PluginMeta, type PluginResourceResult, type PressureApi, type PressureOptions, type PressureSignal, type PressureSnapshot, type PressureState, type PressureThresholds, type RealtimeOptions, type RequestIdOptions, type SSEOptions, type ScheduleDefinition, type ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, defaultIsDuplicateKeyError, errorHandlerPlugin, _default$2 as gracefulShutdownPlugin, _default$3 as healthPlugin, _default$4 as metricsPlugin, _default$5 as pressurePlugin, _default$6 as realtimePlugin, _default$7 as requestIdPlugin, _default$8 as schedulesPlugin, _default$9 as ssePlugin, _default$10 as versioningPlugin };
229
+ export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type MetricEntry, type MetricsCollector, type MetricsOptions, type PluginMeta, type PluginResourceResult, type PressureApi, type PressureOptions, type PressureSignal, type PressureSnapshot, type PressureState, type PressureThresholds, type RealtimeOptions, type RequestIdOptions, type SSEOptions, type SSEStats, type ScheduleDefinition, type ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, defaultIsDuplicateKeyError, errorHandlerPlugin, _default$2 as gracefulShutdownPlugin, _default$3 as healthPlugin, _default$4 as metricsPlugin, _default$5 as pressurePlugin, _default$6 as realtimePlugin, _default$7 as requestIdPlugin, _default$8 as schedulesPlugin, _default$9 as ssePlugin, _default$10 as versioningPlugin };
@@ -1,20 +1,20 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { m as MUTATION_OPERATIONS } from "../constants-B2QHb6u6.mjs";
3
- import { t as arcLog } from "../logger-D4V1zGLI.mjs";
4
- import { c as getOrgId } from "../types-fvO6Ovzx.mjs";
5
- import { n as requestContext } from "../requestContext-C10UeFe5.mjs";
6
- import { t as hasEvents } from "../typeGuards-kEaP_WmO.mjs";
7
- import { t as HookSystem } from "../HookSystem-yjEgn7Cm.mjs";
8
- import { t as ResourceRegistry } from "../ResourceRegistry-DJxHUpE4.mjs";
9
- import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-CrqUp3sz.mjs";
10
- import { t as caching_default } from "../caching-Drp68DIS.mjs";
11
- import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-COHw3N1b.mjs";
12
- import { t as metrics_default } from "../metrics-DsZrvnpB.mjs";
13
- import { t as realtime_default } from "../realtime-xyubMKSB.mjs";
14
- import { t as replyHelpersPlugin } from "../replyHelpers-Bnc6lJyy.mjs";
15
- import { t as schedules_default } from "../schedules-CKTs5ys8.mjs";
16
- import { t as sse_default } from "../sse-BzJFPX_1.mjs";
17
- import { t as versioning_default } from "../versioning-CHhL9P3o.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { m as MUTATION_OPERATIONS } from "../constants-CtWkmWn3.mjs";
3
+ import { t as arcLog } from "../logger-qQNLlOAU.mjs";
4
+ import { c as getOrgId } from "../types-BI4sbUJ3.mjs";
5
+ import { n as requestContext } from "../requestContext-DBKIdmDi.mjs";
6
+ import { t as hasEvents } from "../typeGuards-CPYR9RCg.mjs";
7
+ import { t as HookSystem } from "../HookSystem-4pABQnGn.mjs";
8
+ import { t as ResourceRegistry } from "../ResourceRegistry-BBaN_Ne-.mjs";
9
+ import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-BLYn_Hds.mjs";
10
+ import { t as caching_default } from "../caching-DqakP2vY.mjs";
11
+ import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-Dr2nG0Ui.mjs";
12
+ import { t as metrics_default } from "../metrics-DYka72iN.mjs";
13
+ import { t as realtime_default } from "../realtime-_59Rlje8.mjs";
14
+ import { t as replyHelpersPlugin } from "../replyHelpers-Dr2pnXZg.mjs";
15
+ import { t as schedules_default } from "../schedules-CVS7c1nv.mjs";
16
+ import { t as sse_default } from "../sse-BilBz766.mjs";
17
+ import { t as versioning_default } from "../versioning-P6JMNcJr.mjs";
18
18
  import fp from "fastify-plugin";
19
19
  import { performance as performance$1 } from "node:perf_hooks";
20
20
  //#region src/core/arcCorePlugin.ts
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DIMKMV2G.mjs";
3
- import { t as hasEvents } from "../typeGuards-kEaP_WmO.mjs";
4
- import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-DWiKW7lP.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-D_3eUO6V.mjs";
3
+ import { t as hasEvents } from "../typeGuards-CPYR9RCg.mjs";
4
+ import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-DSy7KkeX.mjs";
5
5
  import fp from "fastify-plugin";
6
6
  //#region src/plugins/response-cache.ts
7
7
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { createRequire } from "node:module";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/plugins/tracing.ts
@@ -59,7 +59,7 @@ try {
59
59
  function createTracerProvider(options) {
60
60
  if (!isAvailable || !NodeTracerProvider || !BatchSpanProcessor || !OTLPTraceExporter) return null;
61
61
  const { serviceName = "@classytic/arc", serviceVersion, exporterUrl = "http://localhost:4318/v1/traces" } = options;
62
- const resolvedVersion = serviceVersion ?? "2.44.0";
62
+ const resolvedVersion = serviceVersion ?? "2.45.1";
63
63
  const exporter = new OTLPTraceExporter({ url: exporterUrl });
64
64
  const provider = new NodeTracerProvider({ resource: { attributes: {
65
65
  "service.name": serviceName,
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/pluralize.ts
3
3
  /**
4
4
  * Lightweight English pluralization for the Arc CLI.
@@ -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 { c as getOrgId, g as getUserId } from "../types-fvO6Ovzx.mjs";
4
- import { B as requireAuth, F as allowPublic } from "../permissions-C5ijIz5Q.mjs";
5
- import { t as multipartBody } from "../multipartBody-Cc7eZ9cq.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { i as NotFoundError, u as ValidationError } from "../errors-BtHzrSA6.mjs";
3
+ import { c as getOrgId, g as getUserId } from "../types-BI4sbUJ3.mjs";
4
+ import { B as requireAuth, F as allowPublic } from "../permissions-DN1CWH56.mjs";
5
+ import { t as multipartBody } from "../multipartBody-RHvIkNmc.mjs";
6
6
  //#region src/presets/filesUpload.ts
7
7
  const DEFAULT_FIELD_NAME = "file";
8
8
  const DEFAULT_MAX_FILE_SIZE = 10485760;
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { a as treePreset, c as ownedByUserPreset, i as registerPreset, l as bulkPreset, n as getAvailablePresets, o as softDeletePreset, r as getPreset, s as slugLookupPreset, t as applyPresets, u as auditedPreset } from "../presets-CONf2Qem.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { a as treePreset, c as ownedByUserPreset, i as registerPreset, l as bulkPreset, n as getAvailablePresets, o as softDeletePreset, r as getPreset, s as slugLookupPreset, t as applyPresets, u as auditedPreset } from "../presets-CCOlKTZw.mjs";
3
3
  import { filesUploadPreset } from "./filesUpload.mjs";
4
4
  import { multiTenantPreset } from "./multiTenant.mjs";
5
5
  import { searchPreset } from "./search.mjs";
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import "../constants-B2QHb6u6.mjs";
3
- import { t as ArcError } from "../errors-CW4anJBy.mjs";
4
- import { u as getRequestScope } from "../types-fvO6Ovzx.mjs";
5
- import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-CBvvAcAj.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import "../constants-CtWkmWn3.mjs";
3
+ import { t as ArcError } from "../errors-BtHzrSA6.mjs";
4
+ import { u as getRequestScope } from "../types-BI4sbUJ3.mjs";
5
+ import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-DIH-GX4g.mjs";
6
6
  //#region src/presets/multiTenant.ts
7
7
  function createTenantMiddleware(specs, mode) {
8
8
  const preparation = {
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { B as requireAuth, F as allowPublic } from "../permissions-C5ijIz5Q.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { B as requireAuth, F as allowPublic } from "../permissions-DN1CWH56.mjs";
3
3
  //#region src/presets/search.ts
4
4
  const BUILTINS = [
5
5
  {
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { l as UnauthorizedError } from "./errors-CW4anJBy.mjs";
3
- import { b as isElevated, n as PUBLIC_SCOPE } from "./types-fvO6Ovzx.mjs";
4
- import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-C5ijIz5Q.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { l as UnauthorizedError } from "./errors-BtHzrSA6.mjs";
3
+ import { b as isElevated, n as PUBLIC_SCOPE } from "./types-BI4sbUJ3.mjs";
4
+ import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-DN1CWH56.mjs";
5
5
  import { multiTenantPreset } from "./presets/multiTenant.mjs";
6
6
  //#region src/presets/audited.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-fvO6Ovzx.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-BI4sbUJ3.mjs";
3
3
  //#region src/scope/projection.ts
4
4
  /**
5
5
  * Compute the request-scope projection. Returns `undefined` when no
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { i as versionKey, r as tagVersionKey } from "./keys-CpoiZ8hU.mjs";
4
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-DIMKMV2G.mjs";
5
- import { t as hasEvents } from "./typeGuards-kEaP_WmO.mjs";
6
- import { t as MemoryCacheStore } from "./memory-CTa5pOCW.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
+ import { i as versionKey, r as tagVersionKey } from "./keys-Dgn6OYhl.mjs";
4
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-D_3eUO6V.mjs";
5
+ import { t as hasEvents } from "./typeGuards-CPYR9RCg.mjs";
6
+ import { t as MemoryCacheStore } from "./memory-C0Blueoh.mjs";
7
7
  import fp from "fastify-plugin";
8
8
  //#region src/cache/QueryCache.ts
9
9
  const MISS = Object.freeze({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/scope/rateLimitKey.ts
3
3
  /**
4
4
  * Marks a key generator as SCOPE-AWARE, so `buildRateLimitOpts` can place the rate-limit
@@ -1,14 +1,14 @@
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 { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-DbwIM1f1.mjs";
5
- import { n as getUserRoles } from "./userHelpers-C76zD5pa.mjs";
6
- import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-DxV8OuX2.mjs";
7
- import { t as applyFieldReadPermissions } from "./fields-A5crhsJb.mjs";
8
- import { a as promoteStreamTokenToHeader } from "./streaming-JzB5CAga.mjs";
9
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-wX3SA9w_.mjs";
10
- import { t as openSseStream } from "./sseStream-DQChzGTs.mjs";
11
- import { n as arcRouteValidatorCompiler } from "./routeValidator-DHtpzrzk.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
+ import { t as arcLog } from "./logger-qQNLlOAU.mjs";
4
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-5jOzYQ_L.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-oBTU3a_k.mjs";
6
+ import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CVMvO5DH.mjs";
7
+ import { t as applyFieldReadPermissions } from "./fields-C1e_7Fwi.mjs";
8
+ import { a as promoteStreamTokenToHeader } from "./streaming-DgUvMWlv.mjs";
9
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-CVlaTjAX.mjs";
10
+ import { t as openSseStream } from "./sseStream-BG_uJL6J.mjs";
11
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-BNTqM1Eh.mjs";
12
12
  import fp from "fastify-plugin";
13
13
  //#region src/plugins/realtime.ts
14
14
  var realtime_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-Bdzg-hdm.mjs";
3
- import { t as ResourceRegistry } from "../ResourceRegistry-DJxHUpE4.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-uG4wr541.mjs";
3
+ import { t as ResourceRegistry } from "../ResourceRegistry-BBaN_Ne-.mjs";
4
4
  export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin };
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "./constants-B2QHb6u6.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "./constants-CtWkmWn3.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/registry/assertNoTenantData.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/lock/renewingLease.ts
3
3
  /**
4
4
  * Start renewing an ALREADY-ACQUIRED lease. The caller performed the
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
3
  import { toCanonicalList } from "@classytic/repo-core/pagination";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/plugins/replyHelpers.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/context/requestContext.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/idempotency/requirement.ts
3
3
  /** What is wrong with a route's idempotency declaration, or `undefined` when it is sound. */
4
4
  function idempotencyConfigProblem(config) {
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as createTenantKeyGenerator } from "./rateLimitKey-DVEZ_UpV.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as createTenantKeyGenerator } from "./rateLimitKey-DBWO59H9.mjs";
3
3
  //#region src/permissions/resourceRateLimit.ts
4
4
  function decision(allowed, max, remaining, ttlSeconds) {
5
5
  const reset = Math.max(1, ttlSeconds);
@@ -0,0 +1,15 @@
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import "node:module";
3
+ //#region \0rolldown/runtime.js
4
+ var __defProp = Object.defineProperty;
5
+ var __exportAll = (all, no_symbols) => {
6
+ let target = {};
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
12
+ return target;
13
+ };
14
+ //#endregion
15
+ export { __exportAll as t };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { AjvCompiler } from "@fastify/ajv-compiler";
3
3
  //#region src/core/routeValidator.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/runtimeCapabilities.ts
3
3
  /**
4
4
  * `Symbol.for` so declarations from two arc copies in one dependency graph
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { r as __exportAll } from "./rolldown-runtime-MYrLNGnq.mjs";
3
- import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-LpLMH8T1.mjs";
4
- import { t as runWorkScope } from "./workScope-n9a7d_lZ.mjs";
5
- import { t as startRenewingLease } from "./renewingLease-BFJxGPuh.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
+ import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BCXCwghd.mjs";
4
+ import { t as runWorkScope } from "./workScope-BcMLKa3G.mjs";
5
+ import { t as startRenewingLease } from "./renewingLease-CiU3ZynH.mjs";
6
6
  import fp from "fastify-plugin";
7
7
  //#region src/plugins/schedules.ts
8
8
  var schedules_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-D4V1zGLI.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-qQNLlOAU.mjs";
3
3
  //#region src/utils/schemaConverter.ts
4
4
  /**
5
5
  * Schema Converter — Detect-First, Convert-Only-When-Needed
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { o as toJsonSchema } from "./schemaConverter-BVjkQ5DD.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { o as toJsonSchema } from "./schemaConverter-BQbg7loK.mjs";
3
3
  //#region src/core/schemaIR.ts
4
4
  /**
5
5
  * Schema IR — one canonical representation, two adapters.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { errorContractSchema, errorDetailSchema } from "@classytic/repo-core/errors";
3
3
  import { Type, Type as Type$1 } from "typebox";
4
4
  //#region src/schemas/index.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { t as parseJsonBody } from "../jsonBody-YIq-vGLv.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { t as parseJsonBody } from "../jsonBody-DPU8yYwA.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/scim/errors.ts
5
5
  var ScimError = class extends Error {
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-fvO6Ovzx.mjs";
3
- import { t as createTenantKeyGenerator } from "../rateLimitKey-DVEZ_UpV.mjs";
4
- import { t as elevation_default } from "../elevation-BG4gnMsJ.mjs";
5
- import { t as resolveOrgFromHeader } from "../scope-DINaj7Ax.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-BI4sbUJ3.mjs";
3
+ import { t as createTenantKeyGenerator } from "../rateLimitKey-DBWO59H9.mjs";
4
+ import { t as elevation_default } from "../elevation-B9wF2Z1F.mjs";
5
+ import { t as resolveOrgFromHeader } from "../scope-DFXngazv.mjs";
6
6
  export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, createTenantKeyGenerator, elevation_default as elevationPlugin, getAncestorOrgIds, getClientId, getDPoPJkt, getMandate, getOrgContext, getOrgId, getOrgRoles, getRequestScope, getScopeContext, getScopeContextMap, getServiceScopes, getTeamId, getTenantFromRequest, getUserId, getUserRoles, hasOrgAccess, isAuthenticated, isElevated, isMember, isOrgInScope, isService, requireClientId, requireOrgId, requireTeamId, requireUserId, resolveOrgFromHeader, scopeFirstCtx };
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
2
- import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-CW4anJBy.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-DKZQKL-Z.mjs";
4
- import { n as getUserRoles } from "./userHelpers-C76zD5pa.mjs";
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-BtHzrSA6.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-Dr-wt6Tr.mjs";
4
+ import { n as getUserRoles } from "./userHelpers-oBTU3a_k.mjs";
5
5
  //#region src/scope/resolveOrgFromHeader.ts
6
6
  /**
7
7
  * Create a preHandler hook that resolves org scope from a header.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/utils/shutdown.ts
4
4
  /** Stop admissions across every runtime before draining work and disposing domain engines. */
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.44.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/simpleEqualityMatcher.ts
3
3
  /**
4
4
  * `simpleEqualityMatcher` — a minimal, dialect-agnostic flat-key equality